<? $tbl_name = "jos_approve_list"; $sql="select*from $tbl_name where vm_departmentid='$mydepid'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==0) { echo "<BR><B><CENTER><I>***ไม่มีรายการ***</I></CENTER></B>"; } else { echo"<LEFT><table width='80%' cellspacing='0' border='1' bordercolor='Pink'>"; echo"<tr bgcolor='#F9B7FF'> <th>Order Number</th> <th>Order ID</th> <th>Item name</th> <th>Quantity</th> <th>Item price</th> <th>Department</th> <th>Status</th> <th>Update Status</th> "; while($row=mysql_fetch_array($result)) { if($count%2==0) echo "<tr bgcolor='#FFFFFF'>"; else { echo "<tr bgcolor='#F9B7FF'>"; } echo "<td style='text-indent:30' width='50'> ".$row['app_list_id']."</td>"; echo "<td style='text-indent:30' width='50'> ".$row['order_id']."</td>"; echo "<td style='text-indent:10' width='180'> ".$row['item_name']."</td>"; echo "<td style='text-indent:30' width='50'> ".$row['product_quantity']."</td>"; echo "<td width='50'><div align='right'>".number_format($row['product_final_price'],2,'.',',')."</div></td>"; echo "<td width='100'><center> ".$row['vm_departmentid']."</center></td>"; echo "<td style='text-indent:30' width='50'> ".$row['approve_status']."</td>"; echo "<td width='50' align =center>update</td>"; $count++; } echo "</tr></table></center>"; } ?>
print "<td align = left height=35><A HREF='detail.php?id=$id'>คลิก</A></td>"; //หรือ echo "<td align = left height=35><A HREF='detail.php?id=$id'>คลิก</A></td>";
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง