Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/pcstore/backupxxxxxxx/report_issued_parts.php

<?php

echo "<b>Parts Issued</b>";

echo "<table width='100%'><tr><th width='5%'>No.</th><th width='10%'>Parts Code</th><th width='20%' nowrap>Description</th><th>Model/Make</th><th width='15%' nowrap>Issue Date</th><th width='10%'>Purpose</th><th width='15%'>Customer</th><th width='20%'>Remark</th></tr>";

$sql1="select im.category_code,im.description,im.model_make,pm.parts_code,pi.issue_date,pi.destination,pi.issue_for,pi.user_code,pi.remark from $parts_receipt im, $parts_master pm, $parts_issued pi where im.row_id=pm.item_code and pm.row_id=pi.parts_code order by im.category_code, pi.issue_date";
$rs1 = mysql_query($sql1, $con);
if(!$rs1) echo sql_error();
while ($o = mysql_fetch_object($rs1)){
  $i++; $j++;
  $parts_code = $o->parts_code;
  $issue_date = $o->issue_date;
  $destination = $o->destination;
  $issue_for = $o->issue_for;
  $user_code = $o->user_code;
  $customer = customer($user_code, $con);
  $remark = $o->remark;
  $description = $o->description;
  $model_make = $o->model_make;
  if ($category_code != $o->category_code){
    $category_code = $o->category_code;
    $category = category($category_code, $con);
    echo "<tr><td colspan='8'><font color='red' size='+1' >Parts Category: $category</font></td></tr>";
    $i=1;
  }
  if ($i % 2) echo "<tr id='row1'>"; else echo "<tr id='row2'>";
  echo "<td>$i</td><td><a href='query/search_parts.php?parts_code=$parts_code'>$parts_code</a></td><td>$description</td><td>$model_make</td><td align='center' nowrap>$issue_date</td><td>$destination ($issue_for)</td><td>$customer</td><td>$remark</td></tr>";
}
echo "</table>";
echo "<font color='red' size='+1'>Total: $j</font>";

?>