</a></td>| Code: : |
| /************************************************************/ /* Function themeheader() */ /* */ /* Control the header for your site. You need to define the */ /* BODY tag and in some part of the code call the blocks */ /* function for left side with: blocks(left); */ /************************************************************/ function themeheader() { global $user, $banners, $sitename, $slogan, $cookie, $prefix; cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n" ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"98%\" border=\"0\" align=\"center\" bgcolor=\"#EFEFEF\">\n" ."<tr>\n" ."<td background=\"themes/phpBB2/images/bg_top.gif\" width=\"200\" align=\"left\" valign=\"middle\">\n" ."<a href=\"index.php\"><img src=\"themes/phpBB2/images/mainlogo.gif\" align=\"center\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n" ."<td bgcolor=\"#EFEFEF\" align=\"right\">\n" ."\n" ."\n" ."<td background=\"themes/phpBB2/images/bg_top.gif\"><A href=\"index.php\"><img src=\"themes/phpBB2/images/icon_mini_login.gif\" border=0 ALT=\""._HOME."\"> </a>   \n" ." <A href=\"modules.php?name=Downloads\"><img src=\"themes/phpBB2/images/icon_mini_search.gif\" border=0 ALT=\""._UDOWNLOADS."\"></a>   \n" ." <A href=\"modules.php?name=Your_Account\"><img src=\"themes/phpBB2/images/icon_mini_profile.gif\" border=0 ALT=\""._LOGIN."\"></a>   \n" ." <A href=\"modules.php?name=Submit_News\"><img src=\"themes/phpBB2/images/icon_mini_groups.gif\" border=0 ALT=\""._SUBMISSIONS."\"></a>   \n" ." <A href=\"modules.php?name=Top\"><img src=\"themes/phpBB2/images/icon_mini_message.gif\" border=0 ALT=\"Top 10\"></a>   \n" ." <A href=\"modules.php?name=Topics\"><img src=\"themes/phpBB2/images/icon_mini_register.gif\" border=0 ALT=\""._TOPIC."\"></a>   \n" ." <A href=\"modules.php?name=Forums\"><img src=\"themes/phpBB2/images/icon_mini_members.gif\" border=0 ALT=\""._BBFORUMS."\" ></a>   \n" ." <A href=\"modules.php?name=FAQ\"><img src=\"themes/phpBB2/images/icon_mini_faq.gif\" border=0 ALT=\"FAQ\"></a>\n" ."\n" ."\n"; if ($banners) { include("banners.php"); } echo "<td background=\"themes/phpBB2/images/bg_top.gif\" align=\"center\">\n" ."\n" ."<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"orange\"><b>" .""._SEARCH." </b>\n" ." <input type=\"text\" name=\"query\" size=\"13\"> " ."</font></form>\n" ."<bgcolor=\"#EFEFEF\" align=\"left\">\n" ."</select></font></form></td></tr></table></td>\n" ."<td bgcolor=\"#EFEFEF\" valign=\"top\"> </td>\n" ."</tr></table>\n" ."<table width=\"99%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n" ."<td><img src=\"themes/phpBB/images/pixel.gif\" width=\"5\" height=\"3\" border=\"0\" alt=\"\"></td></tr></table>\n" ."<table width=\"99%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n" //********ส่วนนี้เป็นส่วนช่องระหว่างhead กับ body ของหน้า ส่วนนี้ใส่ menu ได้ครับ ก็เพิ่ม******* ."<td width=\"100%\" align=\"center\"><a href=\"index.php\">หน้าแรก</a> | <a href=\"modules.php?name=Forums\">กระดานข่าวหน้าแรก</a> | <a href=\"modules.php?name=Your_Account\">ข้อมูลสมาชิก</a></td></tr><tr valign=\"top">\n" //********* ."<td><img src=\"themes/phpBB/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td>\n" ."<td width=\"155\" valign=\"top\">\n"; blocks(left); echo "</td><td><img src=\"themes/phpBB/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n"; } |
| Code: : |
| <?php ######################################################### # Sunset theme for PHPNuke 5.0 # # Translation by Ivan Stojmirov [stojmir@linux.net.mk] # # Originaly made by Francisco # ######################################################### $thename = "Sunset"; $lnkcolor = "#035D8A"; $bgcolor1 = "#FFFFE6"; $bgcolor2 = "#EEEEEE"; $bgcolor3 = "#FFFFE6"; $bgcolor4 = "#FFC53A"; $textcolor1 = "FFFFFF"; $textcolor2 = "000000"; $hr = 1; # 1 to have horizonal rule in comments instead of table bgcolor function OpenTable() { global $bgcolor1, $bgcolor2; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"#FFFFFF\"><tr><td>\n"; } function OpenTable2() { global $bgcolor1, $bgcolor2; echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n"; echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n"; } function CloseTable() { echo "</td></tr></table></td></tr></table>\n"; } function CloseTable2() { echo "</td></tr></table></td></tr></table>\n"; } function FormatStory($thetext, $notes, $aid, $informant) { global $anonymous; if ($notes != "") { $notes = "<b>"._NOTE."</b> $notes\n"; } else { $notes = ""; } if ("$aid" == "$informant") { echo "<font size=\"2\" color=\"#505050\">$thetext<br>$notes</font>\n"; } else { if($informant != "") { $boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> "; } else { $boxstuff = "$anonymous "; } $boxstuff .= ""._WRITES." \"$thetext\" $notes\n"; echo "<font size=\"2\" color=\"#505050\">$boxstuff</font>\n"; } } function themeheader() { global $user, $banners, $sitename, $slogan, $cookie, $prefix; cookiedecode($user); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } echo "<body bgcolor=\"ffffff\" text=\"000000\" link=\"0000ff\" vlink=\"0000ff\" topmargin=0 leftmargin=4 marginwidth=2 marginheight=0>" .""; echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"#EFEFEF\">\n" ."<tr>\n" ."<td background=\"themes/Sunset/images/North/bg_top.gif\" width=\"200\" align=\"left\" valign=\"middle\">\n" ."<a href=\"index.php\"><img src=\"themes/Sunset/images/logo.gif\" align=\"center\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n" ."<td bgcolor=\"#EFEFEF\" align=\"right\">\n" ."\n" ."\n" ."<td background=\"themes/Sunset/images/North/bg_top.gif\" align=\"left\" valign=\"middle\">\n"; if ($username == "Anonymous") { echo "<a href=\"modules.php?name=Your_Account\"><img src=\"themes/Sunset/images/users.gif\" border=\"0\" alt=\"Sign Up\" width=\"32\" height=\"30\"></a></font> \n"; } else { echo "<a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"themes/Sunset/images/exit.gif\" border=\"0\" alt=\"Log Out\" width=\"32\" height=\"30\"></a></font> \n"; } echo "<font class=\"content\">\n" ."<A href=\"modules.php?name=Topics\"><img src=\"themes/Sunset/images/topicsman.gif\" border=\"0\" width=\"32\" height=\"30\" alt=\"Topics\"></a> \n" ."<A href=\"modules.php?name=Your_Account\"><img src=\"themes/Sunset/images/messages.gif\" border=\"0\" width=\"32\" height=\"30\" alt=\"Your Account\"></a> \n" ."<A href=\"modules.php?name=My_eGallery\"><img src=\"themes/Sunset/images/gallery.gif\" border=\"0\" alt=\"Gallery\" width=\"32\" height=\"30\"></a> \n" ."<A href=\"modules.php?name=Web_Links\"><img src=\"themes/Sunset/images/links.gif\" border=\"0\" alt=\"Web Links\" width=\"32\" height=\"30\"></a> \n" ."<A href=\"modules.php?name=Forums\"><img src=\"themes/Sunset/images/forum.gif\" border=\"0\" alt=\"Webboard\" width=\"32\" height=\"30\"></a> \n" ."<A href=\"modules.php?name=Guestbook\"><img src=\"themes/Sunset/images/guestbook.gif\" border=\"0\" alt=\"Guestbook\" width=\"32\" height=\"30\"></a></td>\n" ."\n"; echo "<td background=\"themes/Sunset/images/North/bg_top.gif\" align=\"center\">\n" ."\n" ."<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"orange\">" .""._SEARCH.":\n" ." <input type=\"text\" name=\"query\" size=\"13\"> <input type=\"image\" border=\"0\" src=\"images/search.gif\" width=\"34\" height=\"21\">" ."</font></form></td>\n" ."</tr></table>\n"; $public_msg = public_message(); echo "$public_msg"; echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\"><tr valign=\"top\">\n" ."<td background=\"themes/Sunset/images/h_bg.gif\" width=\"160\" valign=\"top\">\n"; blocks(left); echo "</td><td><img src=\"themes/Sunset/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n"; } /************************************************************/ /* Function themefooter() */ /* */ /* Control the footer for your site. You don't need to */ /* close BODY and HTML tags at the end. In some part call */ /* the function for right blocks with: blocks(right); */ /* Also, $index variable need to be global and is used to */ /* determine if the page your're viewing is the Homepage or */ /* and internal one. */ /************************************************************/ function themefooter() { global $index; if ($index == 1) { echo "</td><td><img src=\"themes/Sunset/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td bgcolor=\"#EEEEEE\" valign=\"top\" width=\"160\" background=\"themes/Sunset/images/h_bg.gif\">\n"; blocks(right); } echo "</td>\n" ."</tr></table><br>\n" ."<table bgcolor=\"#000000\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n" ."<tr>\n" ."<td width=\"100%\" height=\"5\"><img src=\"themes/Sunset/images/bottombar.gif\" width=\"100%\" height=\"5\" border=\"0\" alt=\"\"></td>\n" ."</tr>\n" ."<tr>\n" ."<td width=\"100%\"><img src=\"themes/Sunset/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n" ."</tr>\n" ."</table>\n" ."<br>\n" ."<br>\n" ."<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n" ."<tr align=\"center\">\n" ."<td width=\"100%\" colspan=\"3\">\n"; footmsg(); echo "</td>\n" ."</tr>\n" ."</table>\n"; } function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { global $anonymous, $tipath; $ThemeSel = get_theme(); if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $t_image = "themes/$ThemeSel/images/topics/$topicimage"; } else { $t_image = "$tipath$topicimage"; } echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=035D8A><tr><td>\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=FFFFFF><tr><td>\n"; echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n"; echo "<img src=\"themes/Sunset/images/bullet.gif\" border=0 hspace=3><font size=3><b>$title</b></font><br>\n"; echo "<font size=1 color=035D8A>"._POSTEDBY." "; formatAidHeader($aid); echo " "._ON." $time $timezone ($counter "._READS.")<br><br></font>\n"; if ("$aid" == "$informant") { echo "<font size=2 color=000000>$thetext</font><br><br>\n"; } else { if ($informant != "") { $boxstuff = "<a href=modules.php?name=Your_Account&op=userinfo&uname=$informant>$informant</a> "; } else { $boxstuff = "$anonymous "; } $boxstuff .= ""._WRITES." \"$thetext\" $notes\n"; echo "<font size=2 color=000000>$boxstuff</font><br><br>\n"; } echo "<font size=2>$morelink</font><br><img src=themes/Sunset/images/line.gif border=0 vspace=4>\n"; echo "</td></tr></table>\n"; echo "</td></tr></table>\n"; echo "<br>\n\n\n"; } function themearticle($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) { global $admin, $sid, $tipath; $ThemeSel = get_theme(); if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $t_image = "themes/$ThemeSel/images/topics/$topicimage"; } else { $t_image = "$tipath$topicimage"; } echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=035D8A><tr><td>\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" bgcolor=FFFFFF><tr><td>\n"; echo "<a href=modules.php?name=News&new_topic=$topic><img src=$t_image Alt=\"$topictext\" border=0 align=right></a>\n"; echo "<img src=\"themes/Sunset/images/bullet.gif\" border=0 hspace=3><font size=2><b>$title</b></font>\n"; if ($admin) { echo " [ <a href=admin.php?op=EditStory&sid=$sid>"._EDIT."</a> | <a href=admin.php?op=RemoveStory&sid=$sid>"._DELETE."</a> ]<br>\n"; } else { echo "<br>\n"; } echo "<font size=1 color=035D8A>"._POSTEDBY.""; formatAidHeader($aid); echo " "._ON." $datetime<br>\n"; if ($informant != "") { echo ""._CONTRIBUTEDBY." <a href=modules.php?name=Your_Account&op=userinfo&uname=$informant>$informant</a><br><br>\n"; } else { echo ""._CONTRIBUTEDBY." $anonymous<br><br></font>\n"; } echo "<font size=2 color=000000>$thetext</font><br><br>\n"; echo "</td></tr></table>\n"; echo "</td></tr></table>\n\n"; } function themesidebox($title, $content) { mt_srand((double)microtime()*1000000); $rcolor = mt_rand(1, 4); if ($rcolor == 1) { $tcolor = "006699"; } elseif ($rcolor == 2) { $tcolor = "941C31"; } elseif ($rcolor == 3) { $tcolor = "009983"; } elseif ($rcolor == 4) { $tcolor = "0066FF"; } echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td>\n"; echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n"; echo "<img src=\"themes/Sunset/images/left$rcolor.gif\" alt=\"\" border=\"0\" width=\"5\" height=\"19\"></td>\n"; echo "<td bgcolor=$tcolor width=\"100%\"><b><font size=\"2\" color=\"#FFFFFF\">$title</font></b></td>\n"; echo "<td align=\"right\"><img src=\"themes/Sunset/images/right$rcolor.gif\" alt=\"\" border=\"0\" width=\"5\" height=\"19\"></td></tr></table>\n"; echo "</td></tr><tr><td align=\"center\" valign=\"top\">\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=$tcolor><tr><td width=100%>\n"; echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=$tcolor><tr><td width=\"100%\" valign=\"top\" bgcolor=\"#EEEEEE\">\n"; echo "$content\n"; echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td>\n"; echo "<img src=\"pixel.gif\" width=\"1\" height=\"4\" alt=\"\" border=\"0\"></td></tr></table>\n"; echo "</td></tr></table>\n"; echo "</td></tr></table>\n"; echo "</td></tr><tr>\n"; echo "<td align=\"center\" valign=\"bottom\">\n"; echo "<img width=\"100%\" height=\"5\" src=\"themes/Sunset/images/bottom$rcolor.gif\" vspace=\"0\" border=\"0\"></td></tr></table>\n"; echo "<br>\n\n\n"; } ?> ##################################################### |