Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/indem/mailscript/mcell/public_html/query/
Upload File :
Current File : /var/www/html/mmishra/indem/mailscript/mcell/public_html/query/issued_status.php

<?php
include "../page_header.inc";

echo "<b>Parts Utilised Under $issue_for</b>";

$issue_for = $_REQUEST["issue_for"];

$sql1 = "select c.*, p.item_code, i.category_code from $parts_issued c, $parts_master p, parts_receipt 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, $con);
if(!$rs1) echo sql_error();
echo "<table width='100%'><tr><th>Customer</th><th nowrap>Parts Code</th><th nowrap>Description</th><th nowrap>Issue Date</th><th>Destination</th><th>Remark</th></tr>";
while($o = mysql_fetch_object($rs1)){
  $i++;
  $parts_code = $o->parts_code;
  $parts = parts($parts_code, $con);
  $user_code = $o->user_code;
  $customer = customer($user_code, $con);
  $item_code = $o->item_code;
  $item = item($item_code, $con);
  $category_code = $o->category_code;
  $category = category($category_code, $con);
  $issue_date = $o->issue_date;
  $destination = $o->destination;
  $status = $o->status;
  if ($status == "") $status="working";
  $remark = $o["remark"];
  if ($i % 2) echo "<tr valign='top' id='row1'>"; else echo "<tr valign='top' id='row2'>";
  echo "<th>$customer</th><td>$parts</td><td>$item</td><td align='center'>$issue_date</td><td>$destination</td><td>$remark</td></tr>";
}
echo "</table>Total: $i";

include "../page_footer.inc";
?>