Parašė nuken· 2009 Lap. 24 09:11:20
#1
Sveiki, man sutampo visą temą nesuprantu aš kaip ištaisyt, jei ištaisysit susitartumėm kaip nors.
P.S. ištampo tik per Internet Explorer - Vistiek būna žmonių kurie su juom webina
www.csm.our.lt - Siuntinių paneles pataško
Theme.php kodas:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "750";
$theme_width_l = "237";
$theme_width_r = "237";
function render_header($header_content) {
global $theme_width, $db_prefix, $locale, $aidlink;
echo "<table id='Table_01' width='800' height='251' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td rowspan='4'>
<img src='".THEME."images/ed_0.png' width='28' height='250' alt=''></td>
<td colspan='7'>
<img src='".THEME."images/ed_2.png' width='738' height='63' alt=''></td>
<td rowspan='4'>
<img src='".THEME."images/ed_3.png' width='34' height='250' alt=''></td>
</tr>
<tr>
<td colspan='2'>
<img src='".THEME."images/ed_4.png' width='372' height='47' alt=''></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/ed_5.png' width='96' height='47' alt='' border='0'></a></td>
<td colspan='2'>
<a href='".BASEDIR."downloads.php'><img src='".THEME."images/ed_6.png' width='83' height='47' alt='' border='0'></a></td></a></td>
<td>
<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/ed_7.png' width='83' height='47' alt='' border='0'></a></td>
<td>
<a href='".BASEDIR."pamokos.php'><img src='".THEME."images/ed_8.png' width='104' height='47' alt='' border='0'></a></td>
</tr>
<tr>
<td background='".THEME."images/ed_9.png' width='252' height='122' >";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,6");
if (dbrows($result) != 0) {
echo "<table width='220' cellpadding='0' cellspacing='0' style='padding-bottom: 20px;'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 15);
echo "<tr><td class='header'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='header'>$itemsubject</a></td>
<td align='right'><span style='color: #ffffff'>".$data['download_count']."</span></td></tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td>";
echo "<td colspan='3' background='".THEME."images/ed_10.png' width='252' height='122'>";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,6");
if (dbrows($result) != 0) {
echo "<table width='230' cellpadding='0' cellspacing='0' style='padding-bottom: 20px;'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 15);
echo "<tr><td class='header'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='header'>$itemsubject</a></td>
<td align='right'><span style='color: #ffffff'>".$data['download_count']."</span></td></tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "</td>";
echo "<td colspan='3' background='".THEME."images/ed_11.png' width='252' height='122' >";
if (iMEMBER) {
echo "<table cellspacing='0' cellpadding='0' width='230' style='padding-left: 20px;'>
<tr>
<td>";
if (iMEMBER) {
if ($userdata['user_avatar'] != "" && file_exists(IMAGES."avatars/".$userdata['user_avatar'])) {
$size = @getimagesize(IMAGES."avatars/".$userdata['user_avatar']);
if ($size[1] > 65) {
$k = $size[0]/$size[1];
$height = 65;
$width = round(65*$k);
} else {
$height = $size[0];
$width = $size[1];
}
$avatar = "<div><img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='65' height='65'></div>";
} else {
$avatar = "<div><img width='65' height='65' src='http://csm.our.lt/images/nera.png'></div>";
}
}
echo "$avatar";
echo "</td>";
echo "<td>
<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='pink'>Mano profilis</a><br />
<a href='".BASEDIR."edit_profile.php' class='pink'>Redaguoti profili</a><br />
<a href='".BASEDIR."messages.php' class='pink'>Asmenines žinutes</a><br />";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<a href='".ADMIN."index.php".$aidlink."' class='pink'>Administracija</a><br />";
}
echo "<a href='".BASEDIR."setuser.php?logout=yes' style='text-decoration: none'><span style='color: #000000'>Atsijungti</span> <span style='color: #FF0083'>[x]</span></a><br>";
echo "</td>
</tr>
</table>";
} else {
echo "<form name='loginform' method='post' action='".FUSION_REQUEST."'>
<table cellspacing='0' cellpadding='0' width='237'>
<tr>
<td colspan='2' style='padding-left: 20px;'><input type='text' name='user_name' class='inputvardas' style='margin-bottom: 3px' value='Slapyvardis' onfocus=\"if(this.value=='Slapyvardis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slapyvardis';}\"></td>
</tr>
<tr>
<td style='padding-left: 20px;'><input type='password' name='user_pass' class='inputslaptazodis' value='Slaptažodis' onfocus=\"if(this.value=='Slaptažodis'){this.value='';}\" onblur=\"if(this.value==''){this.value='Slaptažodis';}\"></td>
<tr>
<td style='padding-left: 20px;'>
<input type='submit' name='login' value='Prisijungti' class='button'><br /><br /></td>
<td align='right'>
<br /><br /><a href='".BASEDIR."register.php' class='header2' style='line-height: 15px'>Registracija</a><br \>
</a>
</tr>
</tr>
</form>
<tr>
</tr>
</table>";
}
echo "</td>";
echo "</tr>
<tr>
<td colspan='7'>
<img src='".THEME."images/ed_12.png' width='738' height='18' alt=''></td>
</tr>
<tr>
<td>
<img src='spacer.gif' width='28' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='242' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='130' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='96' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='26' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='57' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='83' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='104' height='1' alt=''></td>
<td>
<img src='spacer.gif' width='34' height='1' alt=''></td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' align='center'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' height='74' align='center' class='them-footer'>
<tr>
<td style='padding-left: 30px;'>
<img src='http://www.hey.lt/count.php?id=energyLietuva'> <img src='http://www.hey.lt/count.php?id=necty'>
</td>
</tr>
</table>
<table cellpadding='0' cellspacing='0' width='988' align='center'>
<tr>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";
if (!isset($_GET['readmore'])) { echo "<a href='".BASEDIR."news.php?readmore=".$info['news_id']."' style='text-decoration: none'>Skaityti daugiau.</a></td>";
} else {
echo "<a href='".BASEDIR."news.php' style='text-decoration: none'>Sugrižti atgal</a>";
}
echo "</td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr>
<tr>
<td class='panfooter'
</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border' align='center'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</tr>
<tr>
<td class='scapmain-bottom'>
</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border' align='center'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Redagavo nuken· 2009 Lap. 24 10:11:29