Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: sub-headeriui paveiksliuko reikia
Parašė GrazvisS· 2008 Kov. 26 16:03:26
#1
Sweiki. Gal galite pasakyti kaip suligiuoti? aciu is anksto
as noriu kad butu kaip yra varotojas virsui kad navigazija ligiuotu su paciu headeriu.
Redagavo MAnjack· 2008 Kov. 26 16:03:21
Parašė MAnjack· 2008 Kov. 26 16:03:16
#2
Praplatink headerį.
Parašė bad_user· 2008 Kov. 26 16:03:35
#3
Ne header... Function opentable reikia pamažinti...
Parašė ___· 2008 Kov. 26 16:03:12
#4
Į pievas abu varot. Trūksta po to prisijungimo kodu vieno </td> arba </table>
Parašė GrazvisS· 2008 Kov. 26 16:03:12
#5
tai kuris cia teisingas? :D
Parašė ___· 2008 Kov. 26 16:03:46
#6
Mano teisingas :D Vakar sušikau similitude norėdamas įdėt į ją.. Ai, nesigilinkim.
Mano teisingas :D
Redagavo ___· 2008 Kov. 26 16:03:26
Parašė GrazvisS· 2008 Kov. 26 16:03:38
#7
Gali pataisyti nes nesuprantu kurioj cia vietoi. ;:/
<?php
$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "950";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table class='forumline' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table align='center' width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td class='header' width='100%'>";
echo "<table align=center width=950 height=299 background='".THEME."images/header_01.jpg' border=0 cellspacing=0 cellpadding=0>";
echo "</div>
</td>
";
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' height='35' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 0px; border-left: solid #b5b5b5 0px;'>\n<tr>";
echo "<td>\n";
if (iMEMBER) {
echo"<center><a href='".BASEDIR."~".$userdata['user_name']."' >Mano profilis</a>|<a href='".BASEDIR."aprasymas' >Profilis</a> |
<a href='".BASEDIR."members.php' class='side'>Nariai [<b><span style='color:#990000'>".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></b>]</span></a>|<a href='".BASEDIR."zinutes' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";
}
echo" | <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></center></td>";
} else {
echo"<center><form name='loginform' method='post' action='".FUSION_SELF."'>
Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
Slaptažodis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a></center>\n";
}
echo"</div>\n";
}
echo "</td></tr></table>\n";
echo "<td>";
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #c1d2ec 1px; border-left: solid #c1d2ec 1px;'>";
echo "<td width='20%' height='40' class='white' align='left'>";
if ($license == false) {
echo "<b><a href='http://php-fusion.co.uk' target='_blank'></a></b>";
}
echo "</td>";
echo "<td width='40%' class='white' align='center'>";
echo "<b>".stripslashes($settings['footer'])."</b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "<b><a href=''></a></b>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style=': 1px solid #000000' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title' align=><center><b>$subject</b></center></font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
echo "<td height='24' align='right' class='news-footer'>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
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']." ";
echo "</td></tr></table></td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td background='".THEME."images/cellpic_news.gif' height='30'><font class='block-title'><center><b>$subject</b></center></font></td>";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' alt='' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #c1d2ec'>";
echo "<tr><td bgcolor='#ffffff' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'><center><b>$title</b></center></font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td></tr></table>\n";
}
function openside($title) {
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'><center><b>$title</b></center></font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#ffffff' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
if($open=="on"){$box_img="off";}else{$box_img="on";}
echo "<table border='0' style='border: 1px solid #c1d2ec' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'><center><b>$title</b></center></font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#ffffff' class='side-body' width='100%'>";
echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Redagavo ___· 2008 Kov. 26 16:03:24
Parašė GrazvisS· 2008 Kov. 26 16:03:51
#8
cia jau pataisiai? jeigu pataisiai tai nlb veikia zinok :/
Parašė ___· 2008 Kov. 26 16:03:39
#9
Čia kažkur bandk, pabaigoj šios dalies
echo "</tr></table></td></tr></table>\n";
// End banner code / Banerio kodo pabaiga
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='100%' height='35' cellspacing='0' cellpadding='0' class='sub-header' style='border-right: solid #b5b5b5 0px; border-left: solid #b5b5b5 0px;'>\n<tr>";
echo "<td>\n";
if (iMEMBER) {
echo"<center><a href='".BASEDIR."~".$userdata['user_name']."' >Mano profilis</a>|<a href='".BASEDIR."aprasymas' >Profilis</a> |
<a href='".BASEDIR."members.php' class='side'>Nariai [<b><span style='color:#990000'>".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span></b>]</span></a>|<a href='".BASEDIR."zinutes' class='side'>Žinutės [naujų: <b><span style='color:#ff0000'>".sprintf($msg_count)."</span></b>]</a>";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo " | <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a>";
}
echo" | <a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></center></td>";
} else {
echo"<center><form name='loginform' method='post' action='".FUSION_SELF."'>
Vartotojas <input type='text' name='user_name' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
Slaptažodis <input type='password' name='user_pass' class='textbox' style='width:100px;filter:alpha(opacity=70)'>
<input type='submit' name='login' value='Prisijungti' class='button'>";
if ($settings['enable_registration']) {
echo " <a href=".BASEDIR."register.php>Registracija</a> | <a href=".BASEDIR."lostpassword.php>Priminti</a></center>\n";
}
echo"</div>\n";
}
echo "</td></tr></table>\n";
echo "<td>";
Redagavo MAnjack· 2008 Kov. 26 16:03:36