<link href="wstyle.css" rel="stylesheet" type="text/css" />

<div align="center">
<? if ($_GET['stat'] == '' ) { ?>
 
  <table width="60%" border="0" align="center">
    <tr>
      <td class="td1">Long</td>
      <td class="td1">Short</td>
      <td class="td1">Name</td>
      <td class="td1">Date</td>
      <td class="td1"><div align="center">Plate No.</div></td>
      <td class="td1">Rack</td>
      <td class="td1">OK</td>
    </tr>
		<?
            $result = mysql_query("select Size1,Size2,Name,Date_a,Plate,outid,Rack from p1_out_order, p1_order_info where p1_out_order.oid =  p1_order_info.oid and p1_out_order.stop1 =0 and p1_out_order.status = 0"); 
            while($row = mysql_fetch_array($result)){ 
        
        ?>
    <tr>
      <td class="td2"><div align="center"><? echo $row['Size1']; ?></div></td>
      <td class="td2"><div align="center"><? echo $row['Size2']; ?></div></td>
      <td class="td2"><div align="center"><? echo $row['Name']; ?></div></td>
      <td class="td2"><div align="center"><? echo $row['Date_a']; ?></div></td>
      <td class="td2"><div align="center"><? echo $row['Plate']; ?></div></td>
      <td class="td2"><? echo $row['Rack']; ?></td>
      <td class="td2"><a href="index.php?page=7&stat=send&outid=<? echo $row['outid']; ?>" class="link">OK</a></td>
    </tr>
		<?
			}
		?>    
  </table>
 
  <? } ?>
</div>
