Parašė Zidezzon· 2008 Rugp. 6 17:08:58
#1
Ka daryti, kad tie migtukai, pavirstu paprastais linkais?:
Edit:
Stai theme.php
<?
// z-Green by zszywak (http://z-themes.prv.pl)
// theme settings
$body_text = "#000000";
$body_bg = "#243D53";
$theme_width = "100%";
$theme_width_l = "180px";
$theme_width_r = "180px";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<script type='text/javascript' src='".THEME."date1.js'></script>";
echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px #444 solid;'>
<tr>
<td>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-left:2px #fff ridge;border-top: 2px #fff ridge;border-right: 2px #fff ridge'>\n<tr>\n<td class='header2' height='30px'>\n";
include THEME."login.php";
echo"
</td><td class='header2'>
<form name='clock' onSubmit='0'>
<input type='text' name='face' class='date' value=''>
</form>
<script type='text/javascript' language='javascript'>
startclock2()
</script>
</td>
";
echo "</tr>
</table>
</td>
</tr>
<tr>
<td class='header'>
$header_content</td>
</tr>
<tr><td>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-left:2px #fff ridge;border-bottom:2px #fff ridge;border-top: 2px #fff ridge;border-right: 2px #fff ridge'>
\n<tr>\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td class='header2'><table cellspacing='5' cellpadding='3' border='0'><tr>\n";
$i = 1;
while($data = dbarray($result)) {
if ($data['link_url']!="---") {
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<td class='navbar' style='cursor: hand;' onClick=\"window.location='".$data['link_url']."'\" onMouseover=\"this.className='navbar-over'\" onMouseout=\"this.className='navbar'\">".$data['link_name']."</td>";
} else {
echo "<td class='navbar' style='cursor: hand;' onClick=\"window.location='".BASEDIR.$data['link_url']."'\" onMouseover=\"this.className='navbar-over'\" onMouseout=\"this.className='navbar'\">".$data['link_name']."</td>";
}
}
if ($i != dbrows($result)) { echo "\n"; } else { echo "\n"; } $i++;
}
echo "</tr></table></td>\n";
}
echo "<td align='right' class='header3'>".ucwords(showdate("%A, %B %d, %Y", time()))."</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>\n";
echo "<table width='100%' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='footer'>".stripslashes($settings['footer'])."</td>
</tr>
<tr>
<td>
<table align='center' cellpadding='0' cellspacing='0' height='32px' width='100%' class='footer2'>
<td align='center' width='180px' height='32px' class='footer-left'>
z-Green Theme by <a href='http://z-themes.prv.pl' target='blank' class='side'>zszywak</a>
</td>
<td align='center' height='32px' class='footer-mid'>";
if ($license == false) {
echo "Powered by <a href='http://www.php-fusion.co.uk' class='side'>PHP-Fusion</a> v".$settings['version']." © 2003-2005\n";
}
echo "</td>
<td align='center' width='180px' height='32px' class='footer-right'>
".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."<br><br>\n" : $locale['141']."<br>\n");
echo "</td>
</tr>
</table>
</td></tr></table>
</td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'>$subject</td>
</tr>
<tr>
<td class='main-body'>
$news
</td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar' align='left'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='infobar2'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."
</td>
<td class='infobar' align='right'>
".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='infobar2'>".$locale['042']."</a> ·\n" : "")."
<a href='news.php?readmore=".$info['news_id']."' class='infobar2'>";
if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> · ";
echo "".$info['news_reads'].$locale['044']."
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'>$subject</td>
</tr>
<tr>
<td class='main-body'>\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar' align='left'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['040'].showdate("longdate", $info['article_date'])."</td>
<td class='infobar' align='right'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='caption'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td class='side-caption'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
</table>\n";
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='side-captionl'>$title</td>
<td class='side-captionr' align='right'>
<img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='10'></td></tr>
</table>\n";
}
?>
Redagavo Zidezzon· 2008 Rugp. 6 17:08:23