Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: tarpas tar headerio ir...

Parašė blist· 2008 Gru. 30 00:12:55
#14

stai theme.php:
<?
$body_text = "#FFFFFF";
$body_bg = "#1e6a8f";
$theme_width = "833";
$theme_width_l = "205";
$theme_width_r = "205";

function render_header($header_content) {

global $theme_width,$locale,$data,$userdata,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
      <td>
   <table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
</table>\n";



echo "<center><table cellpadding='0' cellspacing='0' width='972px' class='paneles'>\n
<td align='right' width='5500'>";
echo "</td>
<td width='1800' class='login_t' align='left'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='70' height'70' align='left' style='border: 2px solid #ff9000;margin-right: 10px;'>" : "<img src='".THEME."images/emotive.png' width='70' height'70' align='left' style='border: 2px solid #ff9000;margin-right: 10px;'>")."
<a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side3'>Profilis</a><br>
<a href='".BASEDIR."edit_profile.php' class='side3'>Keisti profilį</a><br>
<a href='".BASEDIR."messages.php' class='side3'>Asmeninės žinutės</a><br>
<a href='".BASEDIR."members.php' class='side3'>Narių sąrašas</a><br>\n";
   if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
      echo "<a href='".ADMIN."index.php".$aidlink."' class='side3'>Administracija</a><br>\n";
   }
   echo "<a href='".BASEDIR."setuser.php?logout=yes' class='side3'>Atsijungti</a>\n";
} else {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>
<input type='text' name='user_name' class='textbox' style='width:140px' value='Vardas' onFocus=\"if(this.value=='Vardas'){this.value='';}\" onBlur=\"if(this.value==''){this.value='Vardas';}\"><br>
<input type='password' name='user_pass' class='textbox' style='width:140px;margin-top:2px;' value='Slapta?odis' onFocus=\"if(this.value=='Slapta?odis'){this.value='';}\" onBlur=\"if(this.value==''){this.value='Slapta?odis';}\"><br><br>
<input type='checkbox' name='remember_me' value='y' title='prisiminti kitą kartą' style='vertical-align:middle;'>- prisiminti? &nbsp; &nbsp; <input type='submit' name='login' value='Jungtis' class='button'><br>
</form>
<br>\n";

      echo "<a href='".BASEDIR."register.php' class='side3'>Registruotis!</a>\n";
   echo "<a href='".BASEDIR."lostpassword.php' class='side3'>Pamiršai slaptažodį</a></div>\n";
}
echo "</td>
</table></center><br>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "
   <table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='footer' align='left'>Design by: <a href='https://webdnd.com/profile.php?lookup=4967'>blist-</a> CMS: <a href='https://webdnd.com'>PHP-Fusion</a></td>
   <td class='footer' align='right'>Copyright &copy; NBA. All rights reserverd.</td>
   </tr>
   </table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

global $settings,$locale;


echo "<table width='607px' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='naujiena_virsus'>:: $subject</td>
   </tr>
   <tr>
   <td class='naujiena_vidus'>$news</td>
   </tr>
   <tr>
   <td class='naujiena_apacia' align='center'>Parašė: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> <img src='".THEME."images/bullet.gif'> <a href='news.php?readmore=".$info['news_id']."'>Naujieną plačiau</a></td>
   </tr>
</table>\n";

}

function render_article($subject, $article, $info) {

global $locale;

echo "<table width='607px' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='naujiena_virsus'>:: $subject</td>
   </tr>
   <tr>
   <td class='naujiena_vidus'><b>$subject</b><br>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
        <br>
        <br><img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
        ".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif'  width='10' height='10' alt='' > <a href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> ~
".$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' >
        </td>
   </tr>
   <tr>
   <td class='naujiena_apacia'></a></td>
   </tr>
</table>\n";

}

function opentable($title) {

echo "<table width='607px' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='vpanele_virsus'>$title</td>
   </tr>
   <tr>
   <td class='vpanele_vidus'>\n";


}

function closetable() {

echo "</td>
   </tr>
   <tr>
   <td class='vpanele_apacia'></td>
</tr></table>\n";


}

function openside($title) {

echo "
   <table width='205' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td class='paneles_virsus' width='205'>$title</td>
   </tr>
   <tr>
   <td class='paneles_vidus' width='205'>";

}

function closeside() {

echo "
   </td>
   </tr>
   <tr>
   <td class='paneles_apacia'></td>
   </tr>
</table>\n";
tablebreak();

}

function opensidex($title,$open="on") {

$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>
   <tr>
   <td><img src='".THEME."images/table_01.gif' width='10' height='10' alt=''></td>
   <td class='table_top'><img src='".THEME."images/table_02.gif' width='1' height='10' alt=''></td>
   <td><img src='".THEME."images/table_03.gif' width='10' height='10' alt=''></td>
   </tr>
   <tr>
   <td  class='table_left'><img src='".THEME."images/table_04.gif' width='10' height='1' alt=''></td>
   <td class='side-body2'><b>$title</b> <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "</div>
</td>
   <td class='table_right'><img src='".THEME."images/table_06.gif' width='10' height='1' alt=''></td>
   </tr>
   <tr>
   <td><img src='".THEME."images/table_07.gif' width='10' height='23' alt=''></td>
   <td class='table_bottom' align='center'><img src='".THEME."images/table_10.gif' width='287' height='23' alt=''></td>
   <td><img src='".THEME."images/table_09.gif' width='10' height='23' alt=''></td>
   </tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>
     <tr>
     <td height='5'></td>
     </tr>
     </table>\n";
}
?>



Redagavo blist· 2008 Gru. 30 15:12:02