| Server IP : 180.180.241.3 / Your IP : 216.73.216.25 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/umedia3/inc/ |
Upload File : |
<?
function member_showrequestlist($useradminid2) {
global $dcrURL;
global $thaimonstr;
///////////////////////////////////////////รายการจอง
//echo "รายการจอง";
$sql="select * from request_list where memberid='$useradminid2'";
$result=tmq($sql);
$Num=tmq_num_rows($result);
?><BR><?
pagesection("รายการขอยืม::l::Request item.","narrow");
$count=1;
echo "<table cellpadding=1 cellspacing=0 width=780 align=center border=1 class=table_border><tr bgcolor=f2f2f2>
<td align=center class=table_head>".getlang("ลำดับที่::l::No.")."</td>
<td align=center class=table_head>".getlang("ชื่อเรื่อง::l::Title")."</td>
<td align=center class=table_head>".getlang("วันเดือนปีที่จอง::l::Request date")."</td>
<td align=center class=table_head>".getlang("สถานะการจอง::l::Status")."</td>
<td align=center class=table_head>".getlang("ยกเลิก::l::Cancel")."</td></tr>";
while ($row2=tmq_fetch_array($result))
{
$parentid=tmq("select * from media_mid where bcode='$row2[itemid]' ");
$parentid=tmq_fetch_array($parentid);
$itemName=marc_gettitle($parentid[pid]);
echo "<tr>";
echo "<td class=table_td>$count</td>";;
echo "<td class=table_td><a href='$dcrURL"."dublin.php?ID=$parentid[pid]&item=$row2[itemid]' target=_blank>".substr($itemName,0,40)."... ($row2[itemid])</td>";
echo "<td class=table_td>" . ymd_datestr($row2[dt],'date') . " </td>";
echo "<td class=table_td align=center>".ucwords($row2[status])."</td>";
echo "<td class=table_td>";
if (loginchk_lib("check")!=true) {
echo "<a href='removeRequestItemlist.php?ID=$row2[itemid]'>".getlang("ยกเลิกการจอง::l::Cancel")."</a>";
}else {
echo "-";
}
echo "</td>";
echo "</tr>";
$count++;
}
if ($count == 1)
{
echo "<tr><td align=center colspan=6 class=table_td>".getlang("ไม่มีรายการขอยืม::l::No request item.")."</td></tr>";
}
echo "</table>";
}
?>