Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/irp/irp/pcstore/
Upload File :
Current File : /var/www/html/mmishra/irp/irp/pcstore/issued_status.php

<?php
include "page_header.inc";

echo "<b>Items Issued for $issue_for Use</b>";

$issue_for = $_REQUEST["issue_for"];

$sql1 = "select c.*, p.item_code, i.category_code from parts_issued c, parts_master p, item_master i where c.issue_for='$issue_for' and c.parts_code=p.row_id and p.item_code=i.row_id order by i.category_code";
$rs1 = mysql_query($sql1, $link_id);
if(!$rs1) echo sql_error();
echo "<table width='100%'><tr><th>User</th><th nowrap>Parts Code</th><th nowrap>Item Description</th><th nowrap>Issue Date</th><th>Destination</th><th>Remark</th></tr>";
while($qd1 = mysql_fetch_array($rs1)){
  $i++;
  $parts_code = $qd1["parts_code"];
  $parts_detail = parts_detail($parts_code, $link_id);
  $user_code = $qd1["user_code"];
  $user_detail = user_detail($user_code, $link_id);
  $item_code = $qd1["item_code"];
  $item_detail = item_detail($item_code, $link_id);
  $category_code = $qd1["category_code"];
  $category_detail = category_detail($category_code, $link_id);
  $issue_date = $qd1["issue_date"];
  $destination = $qd1["destination"];
  $status = $qd1["status"];
  if ($status == "") $status="working";
  $remark = $qd1["remark"];
  if ($i % 2) echo "<tr valign='top' id='row1'>"; else echo "<tr valign='top' id='row2'>";
  echo "<th>$user_detail</th><td>$parts_detail</td><td>$item_detail</td><td align='center'>$issue_date</td><td>$destination</td><td>$remark</td></tr>";
}
echo "</table>Total: $i";

include "page_footer.inc";
?>