{include file="header.dwt"}
      <div id="list" class="f_l">

		  <TABLE width="100%" border="0" align="center"  cellSpacing="1">
		    <TR><TD colspan="16" class="font_big">
			{include file="in_statistics.dwt"}</TD>
			</TR>
			<!--每个单元格都定义css及div以方便Johny拷贝制表-->
		    <TR align="middle" class="tb_title">
          <TD class="tb_title"><div align="center">Inspection Date </div></TD>
		  <TD class="tb_title"><div align="center">Factory</div></TD>
          <TD class="tb_title"><div align="center">Product</div></TD>
          <TD class="tb_title"><div align="center">Shipping Q'ty</div></TD>
          <TD class="tb_title"><div align="center">Sampling Size </div></TD>
          <TD class="tb_title"><div align="center">Category</div></TD>
          <TD class="tb_title"><div align="center">Critical</div></TD>
          <TD class="tb_title"  colspan="2"><div align="center">Major</div></TD>
          <TD class="tb_title"  colspan="2"><div align="center">Minor</div></TD>
          <TD class="tb_title"><div align="center">Q/P</div></TD>
          <TD class="tb_title"><div align="center">Result</div></TD>
		  <TD class="tb_title"><div align="center">Inspector</div></TD>
		  <TD class="tb_title"><div align="center">Remark</div></TD>
		  <TD class="tb_title"><div align="center">Details</div></TD>
          </TR>
		  <!--{foreach from=$list_qd item=con}-->
			<TR align="middle" height="30" bgcolor="#ffffff" onMouseOver="this.style.backgroundColor='#E1FFDF'" onMouseOut="this.style.backgroundColor='#ffffff'">
            <TD class="line"><div align="center">{$con.tbInspectionDate}</div></TD>
			<TD class="line"><div align="center">{$con.tbNickName}</div></TD>
            <TD class="line"><div align="center">{$con.tbProductName}</div></TD>
            <TD class="line"><div align="center">{$con.tbLotQty}</div></TD>
            <TD class="line"><div align="center">{$con.tbSampleSize}</div></TD>
            <TD class="line"><div align="center"><!--{if $con.tbCheckone eq 'Final Pre-Shipment Inspection'}-->
            <font class="font_green">F</font>
<!--{elseif $con.tbCheckone eq 'In-Process Inspection'}-->			
            <font class="font_green">I</font>
<!--{elseif $con.tbCheckone eq '1st Re-Inspection'}-->			
            <font class="font_red">R1</font>
<!--{elseif $con.tbCheckone eq '2nd Re-Inspection'}-->			
            <font class="font_red">R2</font>
<!--{elseif $con.tbCheckone eq '3rd Re-Inspection'}-->			
            <font class="font_red">R3</font>
<!--{elseif $con.tbCheckone eq '4th Re-Inspection'}-->			
            <font class="font_red">R4</font>
<!--{elseif $con.tbCheckone eq 'B Stock Inspection'}-->			
            <font class="font_green">B</font>			
<!--{elseif $con.tbCheckone eq 'B Stock 1st Re-Inspection'}-->			
            <font class="font_red">B1</font>
<!--{elseif $con.tbCheckone eq 'B Stock 2nd Re-Inspection'}-->			
            <font class="font_red">B2</font>
<!--{elseif $con.tbCheckone eq 'B Stock 3rd Re-Inspection'}-->			
            <font class="font_red">B3</font>
<!--{/if}-->
			</div></TD>
            <TD class="line"><div align="center"><font class="font_red"><!--{if $con.CR eq ''}-->0<!--{else}-->{$con.CR}<!--{/if}--></font>
			 {number_format($con.CR/$con.tbSampleSize*100,2)}%
			</div></TD>
			 <TD class="line"><div align="center"><font class="font_red"><!--{if $con.MA eq ''}-->0<!--{else}-->{$con.MA}<!--{/if}--></font></div></TD>
            <TD class="line"><div align="center">{number_format($con.MA/$con.tbSampleSize*100,2)}%</div></TD>
			 <TD class="line"><div align="center"><font class="font_red"><!--{if $con.MI eq ''}-->0<!--{else}-->{$con.MI}<!--{/if}--></font>
			</div></TD>
            <TD class="line"><div align="center">{number_format($con.MI/$con.tbSampleSize*100,2)}%
			</div></TD>
            <TD class="line"><div align="center" class="font_big">{number_format(($con.tbSampleSize-($con.CR+$con.MA+$con.MI))/$con.tbSampleSize*100,2)}%</div></TD>
            <TD class="line"><div align="center">
<!--{if $con.tbResult eq 'Accepted'}-->
            <font class="font_blue">{$con.tbResult}</font>
<!--{elseif $con.tbResult eq 'Rejected'}-->
            <font class="font_red">{$con.tbResult}</font>
<!--{elseif $con.tbResult eq "Concessed"}-->
		    <font class="font_yg">Concessed</font>
<!--{/if}-->
			</div></TD>
			<TD class="line">
			<div align="left">&nbsp;
			<!--{if $con.tbTeam eq ''}-->
            {$con.tbPM}
			<!--{else}-->
			{$con.tbPM},{$con.tbTeam}			
			<!--{/if}-->
			</div></TD>
			<TD class="line"><div align="center">
<!--{if $con.tbCheckone eq 'Final Pre-Shipment Inspection'}-->
<!--{elseif $con.tbCheckone eq 'In-Process Inspection'}-->			
            <font class="font_red">In-Process Inspection</font>
<!--{elseif $con.tbCheckone eq 'During Production Inspection'}-->					
			<font class="font_red">During Production Inspection</font>
<!--{elseif $con.tbCheckone eq '1st Re-Inspection'}-->			
            <font class="font_red">1st Re-Inspection</font>
<!--{elseif $con.tbCheckone eq '2nd Re-Inspection'}-->			
            <font class="font_red">2nd Re-Inspection</font>
<!--{elseif $con.tbCheckone eq '3rd Re-Inspection'}-->			
            <font class="font_red">3rd Re-Inspection</font>
<!--{elseif $con.tbCheckone eq '4th Re-Inspection'}-->			
            <font class="font_red">4th Re-Inspection</font>
<!--{elseif $con.tbCheckone eq 'B Stock Inspection'}-->			
            <font class="font_blue">B Stock Inspection</font>			
<!--{elseif $con.tbCheckone eq 'B Stock 1st Re-Inspection'}-->			
            <font class="font_red">B Stock 1st Re-Inspection</font>
<!--{elseif $con.tbCheckone eq 'B Stock 2nd Re-Inspection'}-->			
            <font class="font_red">B Stock 2nd Re-Inspection</font>
<!--{elseif $con.tbCheckone eq 'B Stock 3rd Re-Inspection'}-->			
            <font class="font_red">B Stock 3rd Re-Inspection</font>
<!--{/if}-->


			<!--{if $con.tbResult eq "Concessed"}-->
            <font class="font_yg">Concessed</font>
<!--{else}-->			
<!--{/if}-->
			</div></TD>
			<TD class="line"><div align="center"><a href="report_page.php?id={$con.tbPN}&active=2&client={$pre}" target="_blank"><img src="pics/go.jpg" width="20" height="20" /></a></div></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">F:</font> Final Pre-Shipment Inspection &nbsp;<font class="font_green">I:</font> In-Process Inspection &nbsp; <font class="font_red">R1:</font> 1st Re-Inspection &nbsp; <font class="font_red">R2:</font> 2nd Re-Inspection &nbsp;<font class="font_red">R3:</font> 3rd Re-Inspection &nbsp;<font class="font_red">R4:</font> 4th Re-Inspection &nbsp;<font class="font_green">B:</font> B Stock Inspection &nbsp;<font class="font_red">B1:</font> B Stock 1st Re-Inspection &nbsp;<font class="font_red">B2:</font> B Stock 2nd Re-Inspection &nbsp;<font class="font_red">B3:</font> B Stock 3rd Re-Inspection &nbsp;
　          </td>
			<td width="200">&nbsp;</td>
			<td width="64" align="right">&nbsp;</td>
		  </tr>
		  </table>
        
      </div>
      {include file="footer.dwt"}
</div>
</body>
</html>
