{include file="header.dwt"}
      <div id="list" class="f_l">
		  <TABLE width="100%" border="0" align="center"  cellSpacing="1">
		    <TR><TD colspan="10" class="font_big title" >Report List</TD></TR>
			<TR align="middle" class="tb_title">
			  <TD>Report Number</TD>
			  <TD>Products</TD>
			  <TD>Customer</TD>
			  <TD>Factory</TD>
			  <TD>Factory Booking NO.</TD>
			  <TD>Inspection Date</TD>
			  <TD>Quantity</TD>
			  <TD>Serial Number Range</TD>
			  <TD>Result</TD>
			  <TD>Report</TD>
			</TR>
		 
		  <!-- {foreach from=$list_rep item=con} -->
            <TR align="middle" height="30" bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#E1FFDF'" onMouseOut="this.style.backgroundColor='#ffffff'" class="cline">
              <TD><a href="report_page.php?id={$con.tbPN}&active=2" target="_blank">{$con.tbReportNumber}</a></TD>
              <TD>{$con.tbProductName}</TD>
              <TD>{$con.client}</TD>
              <TD>{$con.tbNickName}</TD>
              <TD>{$con.tbFactoryBookNO}</TD>
			  <TD>{$con.tbInspectionDate}</TD>
              <TD>&nbsp;{$con.tbLotQty}&nbsp;</TD>
              <TD><div style="text-align:left;">&nbsp;{$con.tbSerialNO}</div></TD>
			  <TD>
		<!--{if $rank eq "90"}-->
			  <!--{if $con.tbResult eq "Accepted"}-->
			  <a href="#" onclick="openresult('{$con.tbPN}','{$con.tbClientID}');"><font color="#006600"><b>A</b></font></a>
			  <!--{elseif $con.tbResult eq "Rejected"}-->
			  <a href="#" onclick="openresult('{$con.tbPN}','{$con.tbClientID}');"><font color="#FF0000"><b>R</b></font></a>
			  <!--{elseif $con.tbResult eq "Concessed"}-->
			  <a href="#" onclick="openresult('{$con.tbPN}','{$con.tbClientID}');"><font color="#0000FF"><b>C</b></font></a>
			  <!--{else}-->
			  <font color="#0000FF"><b>&nbsp;</b></font>
			  <!--{/if}-->
		<!--{else}-->
			  <!--{if $con.tbResult eq "Accepted"}-->
			  <font color="#006600"><b>A</b></font>
			  <!--{elseif $con.tbResult eq "Rejected"}-->
			  <font color="#FF0000"><b>R</b></font>
			  <!--{elseif $con.tbResult eq "Concessed"}-->
			  <font color="#0000FF"><b>C</b></font>
			  <!--{else}-->
			  <font color="#0000FF"><b>&nbsp;</b></font>
			  <!--{/if}-->
		<!--{/if}-->			  
			  
			  </TD>
			  <TD>
			  <!--{if $con.tbReport eq "0"}-->
			      <!--{if $rank > "50"}-->
				  <a href="report_create.php?id={$con.tbPN}&act=ready&active=2"><font class="f_blue">Create Report</font></a>
				  <!--{else}-->
			      <font class="f_blue">On Going</font>
				  <!--{/if}-->
			  <!--{elseif $con.tbReport eq "1"}-->
			      <!--{if $rank > "50"}-->
				  <a href="report_page.php?id={$con.tbPN}"><font class="f_blue">Create Serial NO</font></a>
				  <!--{else}-->
			      <font class="f_blue">On Going</font>
				  <!--{/if}-->
			  <!--{elseif $con.tbReport eq "2"}-->
			      <!--{if $rank > "50"}-->
				  <a href="report_page.php?id={$con.tbPN}"><font class="f_red">Release Report</font></a>
				  <!--{else}-->
			      <font class="f_blue">On Going</font>
				  <!--{/if}-->
			  <!--{elseif $con.tbReport eq "3"}-->
			  <a href="report_page.php?id={$con.tbPN}&active=2" target="_blank"><img src="pics/go.jpg" width="20" height="20" /></a>
			  <!--{else}-->
			  <font color="#FF0000">Cancelled</font>
			  <!--{/if}-->
			  
			  </TD>
			</TR>
			
          <!-- {/foreach} -->
     	  </TABLE>
		  
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr height="50">
		    <td width="12">&nbsp;  </td>
			<td width="700" class="font_big"><font class="font_green">A:</font> Accepted &nbsp; <font class="font_red">R:</font> Rejected &nbsp; <font class="font_blue">C:</font> Concessible</td>
			<td width="200">Current Page:{$now_page} / {$all_page}</td>
			<td width="64" align="right">Jump To:</td>
			<td width="110" align="right">
			<form name="jump_form" id="jump_form">
			  <select name="menu1" onchange="MM_jumpMenu('parent',this,0)" style="width:100px; margin-right:4px;">
                <option value="">Page {$now_page}</option>
                <option value="">======</option>
                <!-- {foreach from=$all_pages item=per_page} -->
				<!--{if $act neq 'search'}-->
                <option value="reports.php?nowpage={$per_page}">Page {$per_page}</option>
				<!--{else}-->
				<option value="search.php?act={$act}&nowpage={$per_page}&category={$cat_val}&keywords={$keywords}">Page {$per_page}</option>
				<!--{/if}-->
                <!-- {/foreach} -->
              </select>
			</form>			</td>
		  </tr>
		  </table>
        
      </div>
      {include file="footer.dwt"}
</div>
</body>
</html>