| Current Path : /var/www/html/mmishra/irp/irp/pcstore/ |
| Current File : /var/www/html/mmishra/irp/irp/pcstore/pc_issued.php |
<?php
//show page head
include "page_header.inc";
echo "<b>Computer Issued</b>";
echo "<table width='100%'><tr><th width='15%'>PC Detail</th><th width='15%' nowrap>Issue Date</th><th width='10%'>Purpose</th><th width='15%'>User</th><th width='20%'>Remark</th></tr>";
$sql1 = "select pm.pc_series, pm.pc_code, pi.issue_date, pi.destination, pi.issue_for, pi.user_code, pi.remark from pc_master pm, pc_issued pi where pm.row_id=pi.pc_code order by pm.pc_series, pi.issue_date";
$rs1 = mysql_query($sql1, $link_id);
if(!$rs1) echo sql_error();
while ($qd1 = mysql_fetch_array($rs1)){
$i++; $j++;
$user_code = $qd1["user_code"];
$user_detail = user_detail($user_code, $link_id);
$pc_code = $qd1["pc_code"];
$issue_date = $qd1["issue_date"];
$destination = $qd1["destination"];
$issue_for = $qd1["issue_for"];
$remark = $qd1["remark"];
if ($series != $qd1["pc_series"]){
$series=$qd1["pc_series"];
echo "<tr><td colspan='5'><font color='red'>$series</td></tr>";
$i=1;
}
if ($i % 2) echo "<tr id='row1' valign='top'>"; else echo "<tr id='row2' valign='top'>";
echo "<td>$pc_code</td><td align='center' nowrap>$issue_date</td><td>$destination ($issue_for)</td><td>$user_detail</td><td>$remark</td></tr>";
}
echo "<tr><td colspan='5'><font color='red' size='+1'>Total: $j</font></td></tr>";
echo "</table>";
include "page_footer.inc";
?>