DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.127
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/AppServ/www/umedia3/inc/html_displayserial.php
<?
function html_displayserial($ID,$item = "") {
	global $dcrs;
	global $dcrURL;
	global $thaimonstr;
	pagesection(getlang("รายการสื่อสารสนเทศ (วารสาร)::l::Items (serial)"));
?>
<blockquote> 
<? 
  $sql2 ="SELECT *  FROM media_mid where pid=$ID order by inumber,jenum_1,jenum_2,jenum_3,jenum_4,jenum_5,jenum_6,jchrono_1,jchrono_2,jchrono_3,id"; 
//echo $sql2; 
$r2 = tmq($sql2);

echo "<table border=1 bordercolor=666666 cellpadding=0 width=780 align=center 
bgcolor=666666 cellspacing=1 class=table_border >
<Tr >
	<td width=5% class=table_head><nobr>".getlang("ลำดับที่::l::No.")."</B></td>
	<td align=center width=10% class=table_head><nobr>".getlang("ประเภท::l::Type")."</B></td>
 	<td align=center width=15% class=table_head><nobr>".getlang("เลขเรียก::l::CallNumber")."</B>/<nobr>".getlang("บาร์โค้ด::l::Barcode")."</B></td>
	<td align=center width=15% class=table_head><nobr>".getlang("สถานที่::l::Place")."</B></td>
  <td align=center width=15% class=table_head>".getlang("สถานะ::l::Status")."</B></td>
</tr>";
//echo $mMID;
$i2=1;
	//while (list(,$row2) = each($mMID)) {
  while ($r = tmq_fetch_array($r2)) {
	  $mMID=$r[bcode];
//  echo "/ /$row2/ /";
if ($r[bcode]==$item) {
	$bg=" bgcolor=#FFE6E7";
	$star="**";
} else {
	$bg=" bgcolor=white";
	$star="";
}


echo "<tr $bg><td class=table_td align=right>$i2.</td>
	<td class=table_td  align=center><img border=0 width=48 height=48 src='";
	if ($r[status]=="reservmat") {
		$usecode="reservmat";
	} else {
		$usecode=$r[RESOURCE_TYPE];
	}
	if (file_exists("$dcrs/_tmp/mediatype/$usecode.png")==true) {
		echo "$dcrURL/_tmp/mediatype/$usecode.png";
	} else {
		echo "$dcrURL/_tmp/mediatype.png";
	}
	echo "' > <BR><FONT class=smaller2>".get_media_type($r[RESOURCE_TYPE])."</FONT></td>";
$t02=marc_getserialcalln($r[id]);;
echo "<td  class=table_td align=left> $t02$star <BR><FONT class=smaller2>&nbsp;&nbsp;Barcode: $r[bcode] </FONT></td>		";
echo "	<td class=table_td align=center><a href='$dcrURL"."itemplaces.php' target=_blank>";
echo get_itemplace_name($r[place]);
echo "</a> </td>";

$ecstat=bitem_get_checkoutstr($mMID);
 echo "<TD $bg class=table_td align=center>";
 echo $ecstat;
 html_displayrqitem($mMID,$r[place]);
	$hrs=getval("config","timetocirputtoshelf");

  if (floor($r[lastcheckin]+(60*60*$hrs))>time()) {
  	 echo "<br /><font color='#cc3333'><i>*";
  	 echo getlang("เพิ่งรับคืน::l::At circulation desk");
  	 echo "</i></font>";
  }
 echo "</td>";
$i2 +=1;
echo "</tr>";
}
//echo "$i2";

if ($i2==1) {
  echo "<tr	><td colspan=7 align=center  class=table_td>- ".getlang("ไม่พบข้อมูล::l::No item found")." - </td></tr>";
}
echo "</table>";
           ?>
</blockqoute>
 <?
}
?>

Anon7 - 2022
AnonSec Team