>>  Site Map >>  Forums >>  Tips&Trick for Nukeplus&phpNUKE

Forum module - topics in forum:



Tips&Trick for Nukeplus&phpNUKE - รวบรวมกลเม็ดการพัฒนาเวปด้วย phpNUKE plus BB



สาเหตุที่nuke ช้า ตอน2 "กำจัดจุดอ่อน"

วันนี้ผมก็ได้ตัด left side bar ออกไปแล้วเฉพาะ ใน forums
เอา bandwith มาให้ ลูกเล่นต่าง ๆ ของบอร์ด เช่น bbcode และภาพสวย ๆ ที่ใครอยาก post เร็วขึ้นนิดหน่อยไหมครับ

ครับ ผมเห็นด้วยนะที่บางคนบอกว่าn้ukeเหมือน ๆ กันหมดเลย เพราะบางครั้งเข้าไปที่ไหนก็เจอแต่ nuke nuke แต่ก็อย่างว่าแหละครับ ผมว่า nuke ก็เหมือนบะหมี่กึ่งสำเร็จรูปแหละครับ จะชงน้ำกินอย่างเดียวก็ได้รสชาติเดิม ถ้าจะเอามาประยุกต์ก็ต้องอาศัยฝีมือหน่อย คนไม่ชอบก็ไม่ชอบ (แต่ตอนเรียนผมอยู่ได้ก็เพราะมาม่านี่แหละ Very Happy ) คนที่ชอบความสะดวกหน่อยก็ ok ผมว่า phpNUKE ก้ OK นะ สำหรับการupdate เวปบ่อย ๆ

ตอนนี้กำลังพยายามยำโดย

ลดขนาด code โดยใช้ css ใน center block
ลองใช้ GZIP ในเวปบอร์ด
รวมบลอคซ้ายเหลือสองอัน บล็อคขวาเป็นแบบยุบตัวได้

อยากหาคนช่วยทำช่วยวิจารณ์น่ะครับ


[/b]






เร็วดีครับ แต่ของผมซิ ส่วน header ที่มากับ theme ไม่ยอมออก ช่วยแนะทริคหน่อยครับ






ข้อความก่อนหน้านี้ของ Navyman ครับ ไม่ได้ล็อคอิน






ธีมไหนเหรอครับ ถ้าเป็นของ thaihealth theme ล่ะสบายเลยครับ เหมือนบะหมี่กึ่งสำเร็จรูป จะแกะ จะแงะ จะเอา java หรือ flash ลงง่าย ๆ ครับ ลองเลือกดูถ้า theme ไหนมี header.html ให้เอาอันนั้นจะง่าย เพราะ header อยู่แยกจากอันหลัก






ถ้ามี theme.php อย่างเดียวเลยแบบของ phpBB ต้องเหงื่อตกหน่อย เดี๋ยวผมขอ download มาศึกษาหน่อย






แต่ถ้าเอาแบบไม่ต้องแกะก็ได้ครับ ลองเลื่อนลงไปล่างสุด จะเห็น แถบlink สีฟ้าครับ ก็เข้าไปแก้ไขที่ foot message ในหน้า admin-->configuration น่ะครับ






ม่ายช่าย ๆ ๆ คืองี้ครับ ตรงส่วนของ header มันจะแสดงสองส่วนครับ คือในส่วนอง phpnuke กับ phpbb เช่น (เอา Source มาให้ดูอาจจะยาวไปหน่อย)
########################################

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Navy28.com </title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-874">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META NAME="RESOURCE-TYPE" CONTENT="DOCUMENT">
<META NAME="DISTRIBUTION" CONTENT="GLOBAL">
<META NAME="AUTHOR" CONTENT="Navy28.com">
<META NAME="COPYRIGHT" CONTENT="Copyright (c) 2002 by Navy28.com">
<META NAME="DESCRIPTION" CONTENT="แหล่งรวมพล นรจ.28">
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW">
<META NAME="REVISIT-AFTER" CONTENT="1 DAYS">
<META NAME="RATING" CONTENT="GENERAL">
<META NAME="GENERATOR" CONTENT="PHP-Nuke 6.0 - Copyright 2002 by http://phpnuke.org">
<LINK REL="StyleSheet" HREF="themes/Sunset/style/style.css" TYPE="text/css">
</head>
<center><table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" bgcolor="#EFEFEF">
<tr>
<td background="themes/Sunset/images/North/bg_top.gif" width="200" align="left" valign="middle">
<a href="index.php">ขอต้อนรับสู่ Navy28.com</a></td>
<td bgcolor="#EFEFEF" align="right">

########### ตรงนี้เป็นส่วนของ PHP-Nuke ##################
########### ตรงนี้เป็นของ phpBB #######################

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<meta http-equiv="Content-Style-Type" content="text/css">

<link rel="top" href="modules.php?name=Forums&file=./../index" title="" />
<link rel="search" href="modules.php?name=Forums&file=./../search" title="" />
<link rel="help" href="modules.php?name=Forums&file=./../faq" title="" />
<link rel="author" href="./../modules.php?name=Members_List&file=index" title="" />
<link rel="up" href="modules.php?name=Forums&file=index&amp;sid=af98280dde2bc0bd1f9fbb56fc1b7246" title="กระดานหน้าแรก" />

<title>192.168.130.11/navy28 :: หัวข้อ - Nuke Forums</title>
<!-- link rel="stylesheet" href="templates/subRebel/subRebel.css" type="text/css" -->
<style type="text/css">
<!--
/*
The subRebel Theme for phpBB version 2+
Created by Karl Tauber
http://www.ktauber.com

Based on the original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com

NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/

/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: #E5E5E5;
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
}

#############################################
ทั้งหมดอยู่ในหน้าเดียวกันตอน View Source ครับ






header ไม่ต้องเอาออกครับ นี่ผมเพิ่ง download มาสด ๆ ร้อน ๆ
theme.php ของ phpBB
ส่วน header
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>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Downloads\"><img src=\"themes/phpBB2/images/icon_mini_search.gif\" border=0 ALT=\""._UDOWNLOADS."\"></a>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Your_Account\"><img src=\"themes/phpBB2/images/icon_mini_profile.gif\" border=0 ALT=\""._LOGIN."\"></a>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Submit_News\"><img src=\"themes/phpBB2/images/icon_mini_groups.gif\" border=0 ALT=\""._SUBMISSIONS."\"></a>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Top\"><img src=\"themes/phpBB2/images/icon_mini_message.gif\" border=0 ALT=\"Top 10\"></a>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Topics\"><img src=\"themes/phpBB2/images/icon_mini_register.gif\" border=0 ALT=\""._TOPIC."\"></a>&nbsp;&nbsp \n"
        ." <A href=\"modules.php?name=Forums\"><img src=\"themes/phpBB2/images/icon_mini_members.gif\" border=0 ALT=\""._BBFORUMS."\" ></a>&nbsp;&nbsp \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"
   ."&nbsp;<input type=\"text\" name=\"query\" size=\"13\">&nbsp;"
   ."</font></form>\n"
   ."<bgcolor=\"#EFEFEF\" align=\"left\">\n"
        ."</select></font></form></td></tr></table></td>\n"
   ."<td bgcolor=\"#EFEFEF\" valign=\"top\">&nbsp;</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";
   
}








ความต้องการคือไม่ให้แสดง head ของ phpnuke ครับ






ผมใช้ Theme ของ Sunset ครับ แต่ Modify จนเละครับ เอาโค้ดมาให้ดูครับ
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&amp;op=userinfo&amp;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>&nbsp;\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>&nbsp;\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>&nbsp;\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>&nbsp;\n"
        ."<A href=\"modules.php?name=My_eGallery\"><img src=\"themes/Sunset/images/gallery.gif\" border=\"0\" alt=\"Gallery\" width=\"32\" height=\"30\"></a>&nbsp;\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>&nbsp;\n"
      ."<A href=\"modules.php?name=Forums\"><img src=\"themes/Sunset/images/forum.gif\" border=\"0\" alt=\"Webboard\" width=\"32\" height=\"30\"></a>&nbsp;\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"
   ."&nbsp;<input type=\"text\" name=\"query\" size=\"13\">&nbsp;<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&amp;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&amp;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&amp;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 "&nbsp;&nbsp; [ <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&amp;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";
}

?>
#####################################################







ตอนนี้ได้กำจัดheaderออกสมบูรณ์แบบแล้ว ดูได้ที่ http://www.thaihealth.net/clinic และเข้าไปดูที่ในกระทู้ได้ครับ




Attention! T!sitemap page!คุณอยู่ที่ sitemap ของ ไทยเฮลท์ สุขภาพ โรค ไข้ ยา บทความ ข่าว ไปที่เนื้อหาเดิม-original content
เว็บสุขภาพ อัพเดตโดยแพทย์ โปรแกรม คลินิค บทความ ข่าว เกมส์ เกม และเรื่องโรคต่างๆ เช่น โรคเบาหวาน ไขมัน หัวใจ ไข้หวัดนก ไข้เลือดออก โรคเอดส์ คลิปวีดีโอ ค้นหา ข้อมูล ภาพ ของไทย

Search from web


เว็บ คีย์เวอร์ด คลิปวีดีโอ




ไทยเฮลท์

Valid HTML 4.01 Valid CSS