Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,028

HOME > PHP > PHP Forum > รบกวนพี่ๆช่วยดูให้หน่อยค่ะว่าโค้ดหน้าโชว์ข้อมูลนี้มันผิดตรงไหนทำไม่ foooter ไม่ขึ้นค่ะ



 

รบกวนพี่ๆช่วยดูให้หน่อยค่ะว่าโค้ดหน้าโชว์ข้อมูลนี้มันผิดตรงไหนทำไม่ foooter ไม่ขึ้นค่ะ

 



Topic : 075113



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์




คือตรง footer มันไม่ออกค่ะไม่รู้ผิดตรงไหนค่ะ......ช่วยดูให้หน่อยนะค่ะ


<?php include("head.php"); ?>
<? include_once "connDB.php"; ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>::: ข้อมูลกิจกรรมความร่วมมือกับต่างประเทศ:::</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<fieldset class="uiforms-fieldset ui-widget-content ui-corner-all"
style="width: 1120px;"><legend
class="uiforms-legend ui-widget-header ui-corner-all"> <font
face="4815_KwangMD_Catthai" size="5" color="#000000"><b>ข้อมูลกิจกรรมความร่วมมือกับต่างประเทศ</b></font></legend>
<?
if(!isset($start)){
$start = 0;
$page=1;
}
$limit = '10';
$Qtotal = mysql_query("select * from dbcooperation");
$total = mysql_num_rows($Qtotal);
$Query= mysql_query("select * from dbcooperation order by id DESC LIMIT $start,$limit");
$totalp = mysql_num_rows($Query);
$xx=$totalp+$start;
$yy=$start+1;
echo "<font face = 4815_KwangMD_Catthai size = 5 >"."ข้อมูลที่ "."</font>".$yy."<font face = 4815_KwangMD_Catthai size = 5 >"." ถึงข้อมูลที่ "."</font> ".$xx;
printf("<font face = 4815_KwangMD_Catthai size = 5 >"." | จากทั้งหมด %d รายการ "."</font>",$total);
printf("<font face = 4815_KwangMD_Catthai size = 5 >"." | หน้าที่ %d <br />"."</font>",$page);
?><br>
<h2><font face = "4815_KwangMD_Catthai" size = "6" color='#000000' > ข้อมูลกิจกรรมความร่วมมือกับต่างประเทศ </font></h2>
<table border="2" cellpadding="0" cellspacing="0" bgcolor = "#FoFoFo">
<tr bgcolor="#FFA500 ">
<th width="180"><font face = "4815_KwangMD_Catthai" size = "5" ><B>หน่วยงาน</B></font></th>
<th width="200"><font face = "4815_KwangMD_Catthai" size = "5" ><B>ประเภทกิจกรรม</B></font></th>
<th width="200"><font face = "4815_KwangMD_Catthai" size = "5" ><B>ชื่อ-สกุล</B></font></th>
<th width="386"><font face = "4815_KwangMD_Catthai" size = "5" ><B>รายละเอียด</B></font></th>
</tr>
<?

while($arr = mysql_fetch_array($Query)){
$autoid = $arr['id'];
$i++;
if($i%2==0){
$bg = "#CCCCCC";
}else{
$bg = "#FFFFFF";
}//bgcolor="$bg" onmouseover="this.style.backgroundColor='#CCFFCC'" onmouseout="this.style.backgroundColor=''" valign="top"
echo "<tr bgcolor= $bg onmouseover=this.style.backgroundColor=#CCFFCC onmouseout=this.style.backgroundColor='' valign=top>".
"<td align='center'>" ."<br>"."<font face = 'MS Sans Serif' size = '2'>". $arr ['institute'] ."</font>". "</td>" .
"<td align='left'>" ."<br>" ."<font face = 'MS Sans Serif' size = '2'>". $arr ['activities'] ."</font". "</td>" .
"<td align='center'>" ."<br>" ."<font face = 'MS Sans Serif' size = '2'>". $arr ['title'] . $arr ['name'] ."</font>". "</td>" .
"<td align='left'>" ."<br>" ."<font face = 'MS Sans Serif' size = '2'>". $arr ['details']."</font>" ."<br>"."
<font face = 'MS Sans Serif' size = '2' color='navy'>วันที่ดำเนินกิจกรรม :</font>" . DateThai($arr ['durationsince'])."</font>"."
<font face = 'MS Sans Serif' size = '2' color='navy'>ถึง</font>&nbsp;".DateThai($arr ['durationto'])."<br>"."
<font face = 'MS Sans Serif' size = '2' color='navy'> แหล่งงบประมาณ :</font>".$arr ['fund']."<br>"."<br>"."</td>"."</tr>";
}
function DateThai($strDate)
{
$strYear = date("Y",strtotime($strDate))+543;
$strMonth= date("n",strtotime($strDate));
$strDay= date("j",strtotime($strDate));
$strHour= date("H",strtotime($strDate));
$strMinute= date("i",strtotime($strDate));
$strSeconds= date("s",strtotime($strDate));
$strMonthCut = Array("","ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค.");
$strMonthThai=$strMonthCut[$strMonth];
return "$strDay $strMonthThai $strYear";
}
return $strDate = "2008-08-14 ";

//function convertDateFormatShow($yyyyMMdd){
//input: $yyyyMMdd = 2011-08-20
//$ddMMyyyy = "";
//if($yyyyMMdd!=null || $yyyyMMdd !=""){
//$obj = explode("-",$yyyyMMdd);
//$ddMMyyyy = $obj[2]."-".$obj[1]."-".$obj[0];
//$a = " $ddMMyyyy";
//list($d,$m,$y) = explode("-",$a);
//}
// return $thisyear = $d."-".$m."-".($y+543);
//}


?>
</table>
<div id="footer">
<? if($submit=="" or $show=="OK"){
$page = ceil($total/$limit);
for($i=1;$i<=$page;$i++){
if($_GET['page']==$i){
echo "[<a href='?start=".$limit*($i-1)."&page=$i&strSearch=$strSearch&Search=$Search&Search2=$Search2'><B>$i</B></A>]";
}else{
echo "[<a href='?start=".$limit*($i-1)."&page=$i&strSearch=$strSearch&Search=$Search&Search2=$Search2'>$i</A>]";
}}} ?>
</div>
</fieldset>
</center>
</body></html>



Tag : PHP, HTML/CSS







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-03-07 11:05:44 By : Yarindaaa View : 974 Reply : 2
 

 

No. 1



โพสกระทู้ ( 61 )
บทความ ( 0 )



สถานะออฟไลน์


footer



ตรงนี้แหละค่ะ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-07 11:10:25 By : Yarindaaa
 


 

No. 2



โพสกระทู้ ( 1,819 )
บทความ ( 20 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ตัวแปร $submit และตัวแปร $show มาจากตรงไหนก็ไปเช็คค่าของมันตรงนั้นครับ ว่ามันมีการกำหนดค่าจากที่ใด

เพราะเงื่อนไขที่จะแสดงหรือไม่แสดงของคุณมันขึ้นอยู่กับตัวแปรสองตัวนี้
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-07 11:29:10 By : actioncookie
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : รบกวนพี่ๆช่วยดูให้หน่อยค่ะว่าโค้ดหน้าโชว์ข้อมูลนี้มันผิดตรงไหนทำไม่ foooter ไม่ขึ้นค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่