|
|
|
การแสดงรูปภาพจาก folder...อยากจะให้รูปภาพ แสดงเมื่อเลือก ค้างส่งครับ ตามโค๊ดนี้ ต้องทำอย่างไร |
|
|
|
|
|
|
|
Code (PHP)
<img src="images/warn.gif"/> ต่อท้ายไปเลยครับ แบบนี้รึป่าวที่ต้องการ
|
|
|
|
|
Date :
2011-07-17 20:11:06 |
By :
chonburi f.c |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ไม่ครับ หมายถึงเวลาเราเลือก คลิก ค้างส่ง แล้วให้มันไปแสดงรูปที่หน้าโชว์
|
|
|
|
|
Date :
2011-07-17 20:15:43 |
By :
tossa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
โชว์ที่หน้าไหนครับ อีกหน้านึง หรือว่าหน้าฟอร์มที่เลือก
|
|
|
|
|
Date :
2011-07-17 20:23:40 |
By :
tomrambo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ใส่เงื่อนไขเข้าไปไปครับ ว่าจะให้มันโชว์
เช่นเมื่อกดค้างชำระ มีค่าเท่ากับ 1 ก็ให้ไปโชว์ เมื่อสถานะมันมีค่าเท่ากับ 1
|
|
|
|
|
Date :
2011-07-17 20:24:28 |
By :
chonburi f.c |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ฟอร์มครับ
Code (PHP)
<html>
<head>
<title>ÃкºµÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹ Êӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇ´ÍغÅÃÒª¸Ò¹Õ</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
if (form.name.value == "") {
alert( "â»Ã´¡ÃÍ¡ ª×èÍ-¹ÒÁÊ¡ØÅ ´éÇÂ" );
form.name.focus();
return false ;
}
if (form.year.value == "") {
alert( "â»Ã´¡ÃÍ¡ ¾.È. ´éÇÂ" );
form.year.focus();
return false ;
}
if (form.position.value == "") {
alert( "¡ÃسÒàÅ×Í¡µÓáË¹è§ ´éÇÂ" );
form.position.focus();
return false ;
}
if (form.dept.value == "") {
alert( "¡ÃسÒàÅ×͡˹èǧҹ ´éÇÂ" );
form.dept.focus();
return false ;
}
if (form.money.value == "") {
alert( "â»Ã´¡ÃÍ¡¨Ó¹Ç¹à§Ô¹·ÕèÂ×Á´éÇÂ" );
form.money.focus();
return false ;
}
if (form.budget.value == "") {
alert( "¡ÃسÒàÅ×Í¡»ÃÐàÀ·à§Ô¹·ÕèÂ×Á" );
form.budget.focus();
return false ;
}
if (form.status.value == "") {
alert( "â»Ã´¡ÃÍ¡ ¢éÍÁÙÅ ´éÇÂ" );
form.address.focus();
return false ;
}
if (form.number.value == "") {
alert( "¡ÃسҡÃÍ¡àÅ¢·ÕèãºÂ×Á´éÇÂ" );
form.number.focus();
return false ;
}
return true ;
}
//-->
</script>
<style>
BODY {
FONT-FAMILY: Arial, Helvetica, sans-serif
}
</style>
</head>
<body background="images/bg4.jpg" >
<div align="center"><img src="images/nfe.png" width=100 height=100></div>
<div align="center"><font color="#0033CC" size="4">ÃкºµÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹</font></div>
<p align="center">
<font size="2">
<a href="showdata.php">| µÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹ |</a>
<font size="2">
<a href="adddata.php">| à¾ÔèÁ¡ÒÃÂ×Áà§Ô¹ |</a>
<a href="showdata2.php">| á¡éä¢áÅÐź¢éÍÁÙÅ |</a>
<a href="search.php">| ¤é¹ËÒʶҹСÒÃÂ×Áà§Ô¹ |</a>
<a href="index.php">| ÍÍ¡¨Ò¡Ãкº |</a> </font></p>
<!-- ÊèǹËÑǢͧ¿ÍÃìÁ·Õèà»ç¹¡Òú͡ÇèÒ¨ÐãËéä»Ë¹éÒä˹ ËÅѧ¡´»ØèÁ Submit -->
<form action="adddata_in.php" method="post" onsubmit="return checkform(this);">
<table border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#990033">
<tr>
<td bgcolor="#FFFFFF"><p><font size="2">
ª×èÍ - ¹ÒÁÊ¡ØÅ ¼Ùé¢ÍÂ×Áà§Ô¹</font></p></td>
<td bgcolor="#FFFFFF">
<input name="name" type="text" size="30" style="width: 227px" maxlength="100"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><p><font size="2">
µÓá˹è§</font></p></td>
<td bgcolor="#FFFFFF">
<select name="position" id="positon">
<option>¡ÃسÒàÅ×Í¡µÓá˹è§</option>
<option value="¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´">¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´</option>
<option value="Ãͧ¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´">Ãͧ¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´</option>
<option value="¼ÙéÍӹǡÒà ¡È¹.ÍÓàÀÍ">¼ÙéÍӹǡÒà ¡È¹.ÍÓàÀÍ</option>
<option value="¤ÃÙªÓ¹Ò¡ÒþÔàÈÉ">¤ÃÙªÓ¹Ò¡ÒþÔàÈÉ</option>
<option value="¤ÃÙªÓ¹Ò¡ÒÃ">¤ÃÙªÓ¹Ò¡ÒÃ</option>
<option value="¹Ñ¡ÇÔà¤ÃÒÐËì¹âºÒÂáÅÐá¼¹">¹Ñ¡ÇÔà¤ÃÒÐËì¹âºÒÂáÅÐá¼¹</option>
<option value="ºÃóÒÃÑ¡Éì">ºÃóÒÃÑ¡Éì</option>
<option value="¾¹Ñ¡§Ò¹ÃÒª¡ÒÃ">¾¹Ñ¡§Ò¹ÃÒª¡ÒÃ</option>
<option value="¾¹Ñ¡§Ò¹ÃÒª¡ÒÃ">¾¹Ñ¡§Ò¹ÃÒª¡Òà (¤ÃÙ) </option>
</select> </td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><p><font size="2">
˹èǧҹ</font></p></td>
<td bgcolor="#FFFFFF">
<div align="left">
<select name="dept" id="dept">
<option>¡ÃسÒàÅ×͡˹èǧҹ</option>
<option value="¡È¹.ÍÓàÀÍàÁ×ͧ">¡È¹.ÍÓàÀÍàÁ×ͧ</option>
<option value="¡È¹.ÍÓàÀÍ¡Ø´¢éÒÇ»Øé¹">¡È¹.ÍÓàÀÍ¡Ø´¢éÒÇ»Øé¹</option>
<option value="¡È¹.à¢ÁÃÒ°">¡È¹.ÍÓàÀÍà¢ÁÃÒ°</option>
<option value="¡È¹.ÍÓàÀÍà¢×èͧã¹">¡È¹.ÍÓàÀÍà¢×èͧã¹</option>
<option value="¡È¹.ÍÓàÀÍ⢧à¨ÕÂÁ">¡È¹.ÍÓàÀÍ⢧à¨ÕÂÁ</option>
<option value="¡È¹.ÍÓàÀʹ͹Á´á´§">¡È¹.ÍÓàÀʹ͹Á´á´§</option>
<option value="¡È¹.ÍÓàÀÍà´ªÍØ´Á">¡È¹.ÍÓàÀÍà´ªÍØ´Á</option>
<option value="¡È¹.ÍÓàÀ͵ÃСÒþת¼Å">¡È¹.ÍÓàÀ͵ÃСÒþת¼Å</option>
<option value="¡È¹.ÍÓàÀ͵ÒÅÊØÁ">¡È¹.ÍÓàÀ͵ÒÅÊØÁ</option>
<option value="¡È¹.ÍÓàÀ͹ҨÐËÅÇÂ">¡È¹.ÍÓàÀ͹ҨÐËÅÇÂ</option>
<option value="¡È¹.ÍÓàÀÍ·Øè§ÈÃÕÍØ´Á">¡È¹.ÍÓàÀÍ·Øè§ÈÃÕÍØ´Á</option>
<option value="¡È¹.ÍÓàÀ͹ҵÒÅ">¡È¹.ÍÓàÀ͹ҵÒÅ</option>
<option value="¡È¹.ÍÓàÀ͹ÒàÂÕÂ">¡È¹.ÍÓàÀ͹ÒàÂÕÂ</option>
<option value="¡È¹.ÍÓàÀ͹éÓ¢Øè¹">¡È¹.ÍÓàÀ͹éÓ¢Øè¹</option>
<option value="¡È¹.ÍÓàÀ͹éÓÂ×¹">¡È¹.ÍÓàÀ͹éÓÂ×¹</option>
<option value="¡È¹.ÍÓàÀͺس±ÃÔ¡">¡È¹.ÍÓàÀͺس±ÃÔ¡</option>
<option value="¡È¹.ÍÓàÀ;ԺÙÅÏ">¡È¹.ÍÓàÀ;ԺÙÅÏ</option>
<option value="¡È¹.ÍÓàÀÍ⾸Ôìä·Ã">¡È¹.ÍÓàÀÍ⾸Ôìä·Ã</option>
<option value="¡È¹.ÍÓàÀÍÁèǧÊÒÁÊÔº">¡È¹.ÍÓàÀÍÁèǧÊÒÁÊÔº</option>
<option value="¡È¹.ÍÓàÀÍÇÒÃÔ¹ªÓÃÒº">¡È¹.ÍÓàÀÍÇÒÃÔ¹ªÓÃÒº</option>
<option value="¡È¹.ÍÓàÀÍÈÃÕàÁ×ͧãËÁè">¡È¹.ÍÓàÀÍÈÃÕàÁ×ͧãËÁè</option>
<option value="¡È¹.ÍÓàÀÍÊÇèÒ§ÇÕÃÐǧ¤ì">¡È¹.ÍÓàÀÍÊÇèÒ§ÇÕÃÐǧ¤ì</option>
<option value="¡È¹.ÍÓàÀÍÊÓâç">¡È¹.ÍÓàÀÍÊÓâç</option>
<option value="¡È¹.ÍÓàÀÍÊÔÃÔ¹¸Ã">¡È¹.ÍÓàÀÍÊÔÃÔ¹¸Ã</option>
<option value="¡È¹.ÍÓàÀÍàËÅèÒàÊ×Íâ¡é¡">¡È¹.ÍÓàÀÍàËÅèÒàÊ×Íâ¡é¡</option>
<option value="¡È¹.¨Ñ§ËÇÑ´ÍغÅÃÒª¸Ò¹Õ">¡È¹.¨Ñ§ËÇÑ´ÍغÅÃÒª¸Ò¹Õ</option>
</select>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <font size="2"> Çѹ·ÕèÂ×Áà§Ô¹</font></td>
<td bgcolor="#FFFFFF"><font size="2">Çѹ·Õè
<select name="date">
<option value=1 selected>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
<option value=13>13</option>
<option value=14>14</option>
<option value=15>15</option>
<option value=16>16</option>
<option value=17>17</option>
<option value=18>18</option>
<option value=19>19</option>
<option value=20>20</option>
<option value=21>21</option>
<option value=22>22</option>
<option value=23>23</option>
<option value=24>24</option>
<option value=25>25</option>
<option value=26>26</option>
<option value=27>27</option>
<option value=28>28</option>
<option value=29>29</option>
<option value=30>30</option>
<option value=31>31</option>
</select>
à´×͹
<select name="month">
<option value="1" selected>Á¡ÃÒ¤Á</option>
<option value=2>¡ØÁÀҾѹ¸ì</option>
<option value=3>ÁÕ¹Ò¤Á</option>
<option value=4>àÁÉÒ¹</option>
<option value=5>¾ÄÉÀÒ¤Á</option>
<option value=6>ÁԶعÒ¹</option>
<option value=7>¡Ã¡®Ò¤Á</option>
<option value=8>ÊÔ§ËÒ¤Á</option>
<option value=9>¡Ñ¹ÂÒ¹</option>
<option value=10>µØÅÒ¤Á</option>
<option value=11>¾ÄȨԡÒ¹</option>
<option value=12>¸Ñ¹ÇÒ¤Á</option>
</select>
¾.È.
<input name="year" type="text" size="5" maxlength="5">
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <font size="2">   Çѹ·Õè¡Ó˹´Êè§</font></td>
<td bgcolor="#FFFFFF"><font size="2">Çѹ·Õè
<select name="date2">
<option value=1 selected>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
<option value=13>13</option>
<option value=14>14</option>
<option value=15>15</option>
<option value=16>16</option>
<option value=17>17</option>
<option value=18>18</option>
<option value=19>19</option>
<option value=20>20</option>
<option value=21>21</option>
<option value=22>22</option>
<option value=23>23</option>
<option value=24>24</option>
<option value=25>25</option>
<option value=26>26</option>
<option value=27>27</option>
<option value=28>28</option>
<option value=29>29</option>
<option value=30>30</option>
<option value=31>31</option>
</select>
à´×͹
<select name="month2">
<option value="1" selected>Á¡ÃÒ¤Á</option>
<option value=2>¡ØÁÀҾѹ¸ì</option>
<option value=3>ÁÕ¹Ò¤Á</option>
<option value=4>àÁÉÒ¹</option>
<option value=5>¾ÄÉÀÒ¤Á</option>
<option value=6>ÁԶعÒ¹</option>
<option value=7>¡Ã¡®Ò¤Á</option>
<option value=8>ÊÔ§ËÒ¤Á</option>
<option value=9>¡Ñ¹ÂÒ¹</option>
<option value=10>µØÅÒ¤Á</option>
<option value=11>¾ÄȨԡÒ¹</option>
<option value=12>¸Ñ¹ÇÒ¤Á</option>
</select>
¾.È.
<input name="year2" type="text" size="5" maxlength="5">
</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><p><font size="2">
¨Ó¹Ç¹à§Ô¹·ÕèÂ×Á</font></p></td>
<td bgcolor="#FFFFFF">
<font size="2" ><input name="money" type="text" size="30" style="width: 100px" maxlength="100">ºÒ·</font></td>
</tr>
<td bgcolor="#FFFFFF"><p><font size="2">
»ÃÐàÀ·à§Ô¹Â×Á</font></p></td>
<td bgcolor="#FFFFFF">
<select name="budget" id="budget">
<option>¡ÃسÒàÅ×Í¡»ÃÐàÀ·à§Ô¹</option>
<option value="¡ÒÃÈÖ¡ÉÒÊÓËÃѺà´ç¡àÃèÃè͹">¡ÒÃÈÖ¡ÉÒÊÓËÃѺà´ç¡àÃèÃè͹</option>
<option value="¤èÒàºÕé»ÃЪØÁ¡ÃÃÁ¡ÒÃ">¤èÒàºÕé»ÃЪØÁ¡ÃÃÁ¡ÒÃ</option>
<option value="ÍÒÊÒÊÁѤà ¡È¹.">ÍÒÊÒÊÁѤà ¡È¹.</option>
<option value="¡ÒÃÈÖ¡ÉÒµèÍà¹×èͧ">¡ÒÃÈÖ¡ÉÒµèÍà¹×èͧ</option>
<option value="ºÃÔËÒÃÈÙ¹Âì">ºÃÔËÒÃÈÙ¹Âì</option>
<option value="à§Ô¹Íش˹ع ÇÑÊ´Ø/¡Ô¨¡ÃÃÁ/Êͺ">à§Ô¹Íش˹ع ÇÑÊ´Ø/¡Ô¨¡ÃÃÁ/Êͺ</option>
<option value="ºÃÔËÒçҹËéͧÊÁØ´">ºÃÔËÒçҹËéͧÊÁØ´</option>
<option value="â¤Ã§¡ÒÃÃÑ¡¡ÒÃÍèÒ¹">â¤Ã§¡ÒÃÃÑ¡¡ÒÃÍèÒ¹</option>
<option value="¡Ô¨¡ÃÃÁ¾Ñ²¹Ò¼ÙéàÃÕ¹">¡Ô¨¡ÃÃÁ¾Ñ²¹Ò¼ÙéàÃÕ¹ </option>
<option value="Êè§àÊÃÔÁ»ÃЪҸԻäµÂ">Êè§àÊÃÔÁ»ÃЪҸԻäµÂ </option>
</select> </td>
<tr>
<td bgcolor="#FFFFFF"><font size="2"> ¼Ùé͹ØÁѵÔ</font></td>
<td bgcolor="#FFFFFF"><font size="2">
<input name="director" type="radio" value="¹Ò»ÃСͺ ¡ØźصÃ" checked>
¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´ÍغÅÃÒª¸Ò¹Õ
<input name="director" type="radio" value="¹ÒÂ¸ÄµÔ »ÃÐÊÒ¹Ê͹">
Ãͧ¼ÙéÍӹǡÒÃÊӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´ÍغÅÃÒª¸Ò¹Õ</font>
</tr>
<tr>
<td bgcolor="#FFFFFF"><p><font size="2">
àÅ¢·ÕèãºÂ×Á</font></p></td>
<td bgcolor="#FFFFFF">
<input name="number" type="text" size="30" style="width: 100px" maxlength="50"></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"> ʶҹСÒä׹</font></td>
<td bgcolor="#FFFFFF"><font size="2">
<input name="status" type="radio" value="ÂѧäÁè¶Ö§¡Ó˹´Êè§" checked>
ÂѧäÁè¶Ö§¡Ó˹´Êè§
<input name="status" type="radio" value="Ê觤׹áÅéÇ" checked>
Ê觤׹áÅéÇ
<input name="status" type="radio" value= "¤éÒ§Êè§à§Ô¹Â×Á"> ¤éÒ§Êè§</font>
</tr>
<tr>
<td bgcolor="#FFFFFF"><font size="2"> ËÁÒÂà˵Ø</font></td>
<td bgcolor="#FFFFFF"><font size="2">
<textarea name="note" cols="20" rows="2" wrap="virtual"></textarea>
</font></td>
<tr bgcolor="#FFFFCC">
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="Ê觢éÍÁÙÅ">
<input type="reset" name="Reset" value="ź¢éÍÁÙÅ">
</div></td>
</tr>
</table>
</form>
<?php include("footer.php")?>
</body>
</html>
อันนี้หน้าโชว์ครับ
Code (PHP)
<?
$objConnect = mysql_connect("localhost","root","123456") or die("äÁèÊÒÁÒöµÔ´µèÍ°Ò¹¢éÍÁÙÅä´é");
$objDB = mysql_select_db("borrow_db");
$strSQL = "SELECT * FROM borrow ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$Num_Rows = mysql_num_rows($objQuery);
mysql_query("SET NAMES TIS620");
$Per_Page = 10; // Per Page
$Page = $_GET["Page"];
if(!$_GET["Page"])
{
$Page=1;
}
$Prev_Page = $Page-1;
$Next_Page = $Page+1;
$Page_Start = (($Per_Page*$Page)-$Per_Page);
if($Num_Rows<=$Per_Page)
{
$Num_Pages =1;
}
else if(($Num_Rows % $Per_Page)==0)
{
$Num_Pages =($Num_Rows/$Per_Page) ;
}
else
{
$Num_Pages =($Num_Rows/$Per_Page)+1;
$Num_Pages = (int)$Num_Pages;
}
$strSQL .=" order by id ASC LIMIT $Page_Start , $Per_Page";
$objQuery = mysql_query($strSQL);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<title>:: ÃкºµÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹ Êӹѡ§Ò¹ ¡È¹.¨Ñ§ËÇÑ´ÍغÅÃÒª¸Ò¹Õ ::</title>
<style>
BODY {
FONT-FAMILY: Arial, Helvetica, sans-serif
}
</style>
<script Language="Javascript">
<!--
function Conf(object) {
if (confirm("â»Ã´Â×¹Âѹ¡ÒÃź ?") == true) {
return true;
}
return false;
}
//-->
</script>
</head>
<body background="images/bg4.jpg">
<div align="center"><img src="images/nfe.png" width=100 height=100></div>
<center>
<font color="#3300CC" size="4" ><h>ÃкºµÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹</h1></font></center>
<p align="center">
<font size="2">
<a href="showdata.php">| µÃǨÊͺʶҹСÒÃÂ×Áà§Ô¹ |</a>
<font size="2">
<a href="adddata.php">| à¾ÔèÁ¡ÒÃÂ×Áà§Ô¹ |</a>
<a href="showdata2.php">| á¡éä¢áÅÐź¢éÍÁÙÅ |</a>
<a href="search.php">| ¤é¹ËÒʶҹСÒÃÂ×Áà§Ô¹ |</a>
<a href="index.php">| ÍÍ¡¨Ò¡Ãкº |</a> </font></p>
<p align="center"><u><b><font size="3" color="#FF0066">
| ÃÒ¡ÒÃʶҹСÒÃÂ×Áà§Ô¹·Ñé§ËÁ´ |</font></b></u></p>
<center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" width="1300"
id="AutoNumber1">
<tr>
<td width="20" height="44" bgcolor="#00FFFF"> <p align="center"><font color="#000000" size="2">ÅӴѺ</font></p></td>
<td width="150"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">ª×èͼÙéÂ×Áà§Ô¹</font></div></td>
<td width="150"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">µÓá˹è§</font></div></td>
<td width="150"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">˹èǧҹ</font></div></td>
<td width="100"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">Çѹ·ÕèÂ×Á</font></div></td>
<td width="100"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">Çѹ·Õè<br>
¡Ó˹´Êè§</font></div></td>
<td width="100"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">¨Ó¹Ç¹à§Ô¹·ÕèÂ×Á (ºÒ·)</font></div></td>
<td width="200"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">»ÃÐàÀ·¢Í§à§Ô¹·ÕèÂ×Á</font></div></td>
<td width="150"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">¼Ùé͹ØÁѵÔ<br>
</font></div></td>
<td width="50"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">àÅ¢·ÕèãºÂ×Á<br>
<td width="70"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">ʶҹÐ<br>
<td width="300"bgcolor="#00FFFF"><div align="center"><font color="#000000" size="2">ËÁÒÂà˵Ø
</font></div></td>
</tr>
<?
$i=1;
while($objResult = mysql_fetch_array($objQuery))
{
?>
<tr>
<td width="5" height="30 "bgcolor="#CCCCFF" ><p align="center"><?=$i ; ?></td>
<td width="350" bgcolor="#CCCCFF" ><div align="center"><?php echo$objResult['name'] ; ?></div></td>
<td width="450" bgcolor="#CCCCFF" ><div align="center"><?php echo$objResult['position'] ; ?></div></td>
<td width="250" bgcolor="#CCCCFF" ><div align="center"><?php echo$objResult['dept'] ; ?></div></td>
<td width="6" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['date']."/".$objResult['month']."/".$objResult['year']; ?></div></td>
<td width="6" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['date2']."/".$objResult['month2']."/".$objResult['year2']; ?></div></td>
<td width="100" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['money'] ; ?></div></td>
<td width="450" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['budget'] ; ?></div></td>
<td width="250" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['director'] ; ?></div></td>
<td width="100" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['number'] ; ?></div></td>
<td width="100" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['status'] ; ?></div></td>
<td width="400" bgcolor="#CCCCFF" ><div align="center"><?php echo $objResult['note'] ; ?></div></td>
</tr>
<?php
$i++;
}
?>
</table>
</center>
<div align="center">
<font color="#0033CC" size="2">¨Ó¹Ç¹ÃÒ¡Ò÷Ñé§ËÁ´ <?= $Num_Rows;?> ÅӴѺ : <?=$Num_Pages;?> ˹éÒ : </font>
<?
if($Prev_Page)
{
echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'>¶Í¡ÅѺ</a> ";
}
for($i=1; $i<=$Num_Pages; $i++){
if($i != $Page)
{
echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]";
}
else
{
echo "<b> $i </b>";
}
}
if($Page!=$Num_Pages)
{
echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>˹éҶѴä»</a> ";
}
mysql_close($objConnect);
?>
</body>
</html>
<br>
<br>
<br>
<br>
<?php include("footer.php")?>
</body>
</html>
|
|
|
|
|
Date :
2011-07-17 20:29:52 |
By :
tossa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ที่ ปุ่มค้างส่ง ใส่แบบนี้ครับ
<input name="status" type="radio" value="1">
ส่วนหน้าโชว์ อยากให้โชว์ตรงไหนก็เอาโค๊ดด้านล่างไปใส่ตรงนั้นครับ
<?=$_POST['status']==1?"<img src=\"./images/warn.gif\" border=\"0\">":"";?>
|
ประวัติการแก้ไข 2011-07-18 02:13:33 2011-07-18 02:13:59
|
|
|
|
Date :
2011-07-17 20:39:58 |
By :
tomrambo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<?php if($objResult['status']=="ค้างส่ง") {?>ค้างส่ง<IMG SRC="images/tick.png" width="20" height="20"><?}?>
ได้แล้วครับ ขอบคุณสำหรับคำแนะนำครับ
|
|
|
|
|
Date :
2011-07-18 20:12:28 |
By :
tossa |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|