{include file="header.dwt"}
      <div id="list" class="f_l">
      <script language="javascript" src="ajax/ajax_report.js"></script>
	  <!-- css -->
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="style1.css" rel="stylesheet" />
      <h2 style="text-align:center; margin-top:30px;">INSPECTION REPORT</h2>
      <TABLE width="100%" border="1"  cellSpacing="1" bordercolor="#5272A9">
          <TBODY>
            <TR class="tb_title">
              <TD width="100%">&nbsp;  </TD>
            </TR>
            <TR>
              <TD><div align="center">
                <table width="98%"  border="0" cellpadding="1" cellspacing="1">
                  <tr>
                    <td width="22%"><div class="strong_r">CY PO Number：</div></td>
                    <td width="28%"><div align="left">{$rep.tbPONumber}</div></td>
                    <td width="22%"><div class="strong_r">Report Number：</div></td>
                    <td width="28%"><div align="left">{$rep.tbReportNumber}</div></td>
                  </tr>
                  <tr>
                    <td><div class="strong_r">Buyer：</div></td>
                    <td><div align="left">{$rep.client}</div></td>
					<td><div class="strong_r">Inspection Date：</div></td>
                    <td><div align="left" class="f_blue">{$rep.tbInspectionDate}</div></td>
                  </tr>
                  <tr>
                    <td><div class="strong_r">Factory：</div></td>
                    <td><div align="left">{$rep.tbCompanyName}</div></td> 
                   <td><div class="strong_r">Factory Booking NO.：</div></td>
                    <td><div align="left">{$rep.tbFactoryBookNO} </div></td>
                  </tr>
				  <tr>
                    <td><div class="strong_r">Inspection Location：</div></td>
                    <td colspan="3"><div align="left">{$rep.tbAddress}</div></td>
                  </tr>
                </table>
              </div></TD>
            </TR>
            <TR class="tb_title">
              <TD>Inspection Criteria & Method Applied</TD>
            </TR>
            <TR>
              <TD><div align="center">
                <table width="98%"  border="0" cellpadding="1" cellspacing="1">
                  <tr>
                    <td width="22%"><div class="strong_r">WI Version：</div></td>
                    <td width="28%"><div align="left">Rev. {$rep.tbWI} </div></td>
                    <td width="22%"><div class="strong_r">Sample Plan： </div></td>
                    <td width="28%"><div align="left">{$wi_summary.tbPlan}</div></td>
                  </tr>
				   <tr>
				    <td><div class="strong_r">Reference Sample Provided：</div>					</td>
                    <td><div align="left">
					<!--{if $wi_summary.provide neq ''}-->Sample Provided by {$wi_summary.tbNickName} at {$wi_summary.provide} <!--{else}-->No reference sample<!--{/if}--></div>					</td>
                    <td><div class="strong_r">Inspection Level：</div></td>
                    <td><div align="left">{$rep.tbInspectLevel}</div></td>
                  </tr> 
                  <tr>
				  <td><div class="strong_r">Reference Standard：</div></td>
                    <td><div style="line-height:20px; text-align:left;">Inspection Criteria:
					<!--{if $wi_summary.tbCriteria neq ''}-->
					<a href="../upload/files/{$pre}/criteria/{$wi_summary.tbCriteria}" target="_blank"><img src="pics/acrobat.gif" class="doc" /></a><!--{else}--> N/A<!--{/if}-->
					Test Plan:
					<!--{if $rep.tbTestPlan neq ''}-->
					<a href="../upload/files/{$pre}/test_plan/{$rep.tbTestPlan}" target="_blank"><img src="pics/word.gif" class="doc" /></a><!--{else}--> N/A<!--{/if}-->
					
					Kit Bom:
					 <!--{if $rep.tbKitBom neq ''}-->
					  <a href="../upload/files/{$pre}/kit_bom/{$rep.tbKitBom}" target="_blank"><img src="pics/excel.gif" class="doc"></a><!--{else}--> N/A<!--{/if}--></div></td>
					 <td><div class="strong_r">AQL：</div></td>
                     <td>
					<div align="left">
					<!--{if $rep.tbAQL eq ''}-->
					Critical：0%　Major：0.65%　Minor：1.0%
					<!--{else}-->
						<!--{if $aql=explode(',',$rep.tbAQL)}-->
						Critical：{$aql[0]}　Major：{$aql[1]}　Minor：{$aql[2]}
						<!--{else}-->
						{$rep.tbAQL} 
						<!--{/if}-->
					<!--{/if}-->
					</div></td>
                  </tr>
                  <tr>
				    <td> </td><td> </td>
					<td><div class="strong_r">Sample Size：</div></td>
                    <td><div align="left" class="f_blue">
					{$rep.tbSampleSize} {$rep.tbUnit}
					<!--{if $rep.tbPiece neq ''}-->
					  => {$rep.tbPiece} pcs ({$rep.tbSpec|replace:" & ":"<font color='#333333'>,</font>"} designs per set)
					<!--{else}--><!--{/if}-->
					</div></td>
                  </tr>
                </table>
                </div></TD>
            </TR>
            <TR class="tb_title">
              <TD>Product Model & Quantity</TD>
            </TR>
            <TR>
              <TD>
			  <div align="center">
                <table width="98%"  border="0" cellpadding="1" cellspacing="1">
                  <tr>
				    <td width="22%"><div class="strong_r">Lot Quantity：</div></td>
                    <td width="28%"><div align="left" class="f_blue">{$rep.tbLotQty}</div></td>
                    <td width="22%"><div class="strong_r">Service Perfomed：</div></td>
                    <td width="28%"><div align="left" class="f_blue">{$rep.tbCheckone}</div></td>
                  </tr>
				  <tr><td colspan="4"><hr width=98%></td></tr>
                </table>
				<TABLE width="100%" border="0">			  
				  
								  <TR align="middle">
									<TD><div align="center">Products Name</div></TD>
									<TD><div align="center">Model NO</div></TD>
									<TD><div align="center">PO Number </div></TD>
									<TD><div align="center">Qty</div></TD>
									<TD><div align="center">CTN</div></TD>
									<TD><div align="center">Short Qty</div></TD>
									<TD><div align="center">Serial NO </div></TD>
								  </TR>
					  <!--{if substr_count($rep.tbModelNO,'&')}--> 
								  <!--{section name=loop loop=substr_count($rep.tbModelNO,'&')+1 start='0'}-->
								  <TR align="middle" onMouseOver="this.style.backgroundColor='#E1FFDF'" onMouseOut="this.style.backgroundColor='#ffffff'">
									<TD><div align="center" class="font_blue">{$rep.tbProductName}</div></TD>
									<TD><div align="center">
									<!--{if $models=explode('&',$rep.tbModelNO)}-->
	<!--{if $models[$smarty.section.loop.index] neq ''}-->{$models[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									 <!--{else}-->
									 {$rep.tbModelNO}
									 <!--{/if}--></div></TD>
									 
									<TD><div align="center">
									<!--{if $ClientPO = explode('&',$rep.tbClientPONo)}-->
	<!--{if $ClientPO[$smarty.section.loop.index] neq ''}-->{$ClientPO[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									<!--{else}-->
									{$rep.tbClientPONo}
									<!--{/if}--></div></TD>
									
									<TD><div align="center">
									<!--{if $ShipQty = explode('&',$rep.tbShippingQty)}-->
	<!--{if $ShipQty[$smarty.section.loop.index] neq ''}-->{$ShipQty[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									<!--{else}-->
									{$rep.tbShippingQty}
									<!--{/if}--></div></TD>
									
									<TD><div align="center">
									<!--{if $CTNQty = explode('&',$rep.tbCTNQty)}-->
	<!--{if $CTNQty[$smarty.section.loop.index] neq ''}-->{$CTNQty[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									<!--{else}-->
									{$rep.tbCTNQty}
									<!--{/if}--></div></TD>
									
									<TD><div align="center">
									<!--{if $Short = explode('&',$rep.tbShortQty)}-->
	<!--{if $Short[$smarty.section.loop.index] neq ''}-->{$Short[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									<!--{else}-->
									{$rep.tbShortQty}
									<!--{/if}--></div></TD>
									
									<TD><div align="center">
									<!--{if $SerialNO = explode('&',$rep.tbSerialNO)}-->
	<!--{if $SerialNO[$smarty.section.loop.index] neq ''}-->{$SerialNO[$smarty.section.loop.index]}<!--{else}--><!--{/if}-->
									<!--{else}-->
									{$rep.tbSerialNO}
									<!--{/if}--></div></TD>
									
								  </TR>	
								  <!--{/section}-->
					  
					  <!--{else}-->
								  <TR align="middle" onMouseOver="this.style.backgroundColor='#E1FFDF'" onMouseOut="this.style.backgroundColor='#ffffff'">
									<TD><div align="center" class="font_blue">{$rep.tbProductName}</div></TD>
									<TD><div align="center">{$rep.tbModelNO}</div></TD>
									<TD><div align="center">{$rep.tbClientPONo}</div></TD>
									<TD><div align="center">{$rep.tbShippingQty}</div></TD>
									<TD><div align="center">{$rep.tbCTNQty}</div></TD>
									<TD><div align="center">{$rep.tbShortQty}</div></TD>
									<TD><div align="center">{$rep.tbSerialNO}</div></TD>
								  </TR>	
					  <!--{/if}-->
			    </TABLE>
				  		  
              </div>                
			 </TD>
            </TR>
			 <TR class="tb_title">
              <TD>Inspection Summary</TD>
            </TR>
            <TR>
              <TD><div align="center">
                  <table width="98%"  border="0" cellpadding="2" cellspacing="2">
                    <tr>
                      <td width="22%"><div class="strong_r">Quantity：</div></td>
                      <td width="28%">
	<!--{if $rep.tbCheckQuantity eq 'Pass'}-->
					  <span class="f_l f_green">
					  {$rep.tbCheckQuantity}
					  </span>
	<!--{else}-->
		 			  <span class="f_l f_red">
					  {$rep.tbCheckQuantity}
					  </span>
	<!--{/if}-->
                      </td>
                      <td width="22%"><div class="strong_r">Style, Material, Color：</div></td>
                      <td width="28%">
	<!--{if $rep.tbCheckSMC eq 'Pass'}-->
					  <span class="f_l f_green">					
					  {$rep.tbCheckSMC}
 					  </span>
	<!--{else}-->
					  <span class="f_l f_red">
					  {$rep.tbCheckSMC}
					  </span>
	<!--{/if}--> 
					  </td>
                    </tr>
                    <tr>
                       <td><div class="strong_r">Data Measurement / Field Tests：</div></td>
                      <td>
	<!--{if $rep.tbCheckMeasure eq 'Pass'}-->
					  <span class="f_l f_green">					
					  {$rep.tbCheckMeasure}
 					  </span>
	<!--{else}-->
					  <span class="f_l f_red">
					  {$rep.tbCheckMeasure}
					  </span>
	<!--{/if}--> 
					  </td>
                      <td><div class="strong_r">Packing / Label：</div></td>
                      <td>
	<!--{if $rep.tbCheckPacking eq 'Pass'}-->
					  <span class="f_l f_green">					
					  {$rep.tbCheckPacking}
 					  </span>
	<!--{else}-->
					  <span class="f_l f_red">
					  {$rep.tbCheckPacking}
					  </span>
	<!--{/if}-->
					</td>
                    </tr>
                    <tr>
                      <td><div class="strong_r">Appearance / Function：</div></td>
                      <td>
	<!--{if $rep.tbCheckAppearance eq 'Pass'}-->
					  <span class="f_l f_green">					
					  {$rep.tbCheckAppearance}
 					  </span>
	<!--{else}-->
					  <span class="f_l f_red">
					  {$rep.tbCheckAppearance}
					  </span>
	<!--{/if}--> 
					  </td>
                      <td><div align="right"></div></td>
                      <td><div align="left"></div></td>
                    </tr>
                  </table>
              </div></TD>
            </TR>
            <TR class="tb_title">
              <TD>Inspection Result</TD>
            </TR>
            <TR>
              <TD><div align="center">
                <table width="98%"  border="0" cellpadding="2" cellspacing="2">
                  <tr height="35">
                    <td width="22%"><div class="strong_r">Inspection Result：</div></td>
					<td colspan="3">
					  <div id="list_result">
					     <ul>
						 <li style="margin-left:60px;">
					     <!--{if $rep.tbResult eq 'Accepted'}-->
					         <input name='checkbox' type='checkbox' value='checkbox' checked > <strong class="font_green">Accepted</strong>
						 <!--{else}-->
						     <input name='checkbox' type='checkbox' value='checkbox' disabled="disabled"> <strong class="f_gray">Accepted</strong>
						 <!--{/if}-->
						 </li>
						 <li>
                         <!--{if $rep.tbResult eq 'Rejected'}-->
					         <input type='checkbox' name='checkbox' value='checkbox' checked > <strong class="font_red">Rejected</strong>
						 <!--{else}-->
						     <input type='checkbox' name='checkbox' value='checkbox' disabled="disabled" > <strong class="f_gray">Rejected</strong>
						 <!--{/if}-->
						 </li>
						 <li>
					     <!--{if $rep.tbResult eq "Concessed"}-->
					         <input type='checkbox' name='checkbox' value='checkbox' checked > <strong class="font_blue">Concessed</strong>
						 <!--{else}-->
						     <input type='checkbox' name='checkbox' value='checkbox' disabled="disabled"> <strong class="f_gray">Concessed</strong>
						 <!--{/if}-->
						 </li>
						 </ul>
					  </div>		 
					</td>
                  </tr>
                  <tr>
                    <td width="22%"><div class="strong_r">Manufacture Signature： </div></td>
                    <td width="28%"><div align="left">{$rep.tbMS}</div></td>
                    <td width="22%"><div class="strong_r">Signature Date：</div></td>
                    <td width="28%"><div align="left">{$rep.tbInspectionDate}</div></td>
                  </tr>
                  <tr>
                    <td><div class="strong_r">Report Submit By ：</div></td>
                    <td><div align="left">{$rep.tbJudge}</div></td>
                    <td><div class="strong_r">Signature Date：</div></td>
                    <td><div align="left">{$rep.tbInspectionDate}</div></td>
                  </tr>
                  <tr>
                    <td><div class="strong_r">Report Release By ：</div></td>
                    <td><div align="left">{$rep.tbVerifier}</div></td>
                    <td><div class="strong_r">Release Date：</div></td>
                    <td><div align="left">{$rep.tbVerifyDate}</div></td>
                  </tr>
                </table>
                </div></TD>
            </TR>
			<!--{if $rep.tbApproval neq ""}-->
			<TR>
			  <TD class="tb_title"><div align="center">Concessible Approval </div></TD>
			</TR>
			<TR>
			  <TD><div align="center">
				<table width="98%"  border="0" cellpadding="2" cellspacing="2">
				  <tr>
					<td><div class="strong_r">Approver： </div></td>
					<td><div align="left">{$rep.tbApproval}</div></td>
					<td><div class="strong_r">Approval Date： </div></td>
					<td><div align="left">{$rep.tbAppDate}</div></td>
				  </tr>
				  <tr>
					<td width="20%"><div class="strong_r">Pure Release By： </div></td>
					<td width="18%"><div align="left">{$rep.tbModify}</div></td>
					<td width="27%"><div class="strong_r">Concession Original Mail：</div></td>
					<td width="35%"><div align="left"><!--{foreach from=$mail_file key=k item=email}--><!--{if $email neq ""}--><a href='../upload/files/{$pre}/email/{$email}' target='_blank'><img src='pics/conmail.gif' border='0'></a><!--{/if}--><!--{/foreach}--></div></td>
				  </tr>
				  <tr>
					<td valign="top"><div class="strong_r">Remark：</div></td>
					<td colspan="3">
					<!--{if $issues=explode("***",$rep.tbIssue)}-->
					<!--{section name=loop loop=count($issues) start='0'}-->
					<div style="line-height:20px; text-align:left; float:left;">
					<font color="#000000">Issue {$smarty.section.loop.index+1}: {$issues[$smarty.section.loop.index]}</font><br>
					<!--{if $Reasons = explode('&',$rep.tbModifyReason)}-->{$Reasons[$smarty.section.loop.index]}<!--{else}-->{$rep.tbModifyReason}<!--{/if}-->
					</div>
					<!--{/section}-->
					<!--{/if}-->
					</td>
				  </tr>
				</table>
			  </div></TD>
			</TR>
			<!--{/if}-->
	</TBODY>
</TABLE>
<br><br>
<TABLE width="100%" border="1" align="center" cellPadding="4" cellSpacing="1" bordercolor="#5272A9">
  <TBODY>			
			 <TR class="tb_title">
              <TD>Appearance / Function Inspection Findings</TD>
            </TR>
            <TR>
              <TD><div align="center">
                    <table width="94%"  border="0" cellspacing="0" class="lhide">
						<tr class="strong_l">
						  <!--<td>Picture</td>取消这一列-->
						  <td width="60">Category</td>
						  <td width="180" >Topical</td>
						  <td width="400">Defect Description</td>
						  <td width="120">Serial NO. </td>
						  <td width="50">Critical</td>
						  <td width="50">Major</td>
						  <td width="50">Minor</td>
						</tr>
						<!--{foreach from=$rep_defect item=con}-->
						<tr style="text-align:left; line-height:20px;">
						  <!--<td>取消这一列-->
                          <!--{if $con.tbPic neq ''}-->
						  <!--<a href="../upload/files/{$pre}/{$pre}/defects/{$con.tbPic}" target="_blank"><img src="pics/pic.gif" width="20" height="26" border="0"/></a>-->
						  <!--{else}-->
						  <!--<a onClick="fnLaunch('{$con.tbFN}','defect');" style="cursor:pointer;">Upload</a>-->
						  <!--{/if}-->						  <!--</td>取消这一列结束-->
						  <td>{$con.tbCategory}</td>
						  <td class="lhide_txt" title="{$con.tbTopical}">{$con.tbTopical} </td>
						  <td>{$con.tbDefection}</td>
						  <td style="word-wrap:break-word;">{$con.tbSerial_NO}</td>
						  <td align="center">{$con.tbCritical} </td>
						  <td align="center">{$con.tbMajor} </td>
						  <td align="center">{$con.tbMinor} </td>
						</tr>
						<!--{/foreach}-->
						<tr class="strong_l">
						  <td style="border-top:2px solid #666666;" colspan="4" align="right">&nbsp; Total defects: </td>
						  <td align="center" style="border-top:2px solid #666666;"><!--{if $sum_defect.CR neq ''}-->{$sum_defect.CR}<!--{else}-->0<!--{/if}--></td>
						  <td align="center" style="border-top:2px solid #666666;"><!--{if $sum_defect.MA neq ''}-->{$sum_defect.MA}<!--{else}-->0<!--{/if}--></td>
						  <td align="center" style="border-top:2px solid #666666;"><!--{if $sum_defect.MI neq ''}-->{$sum_defect.MI}<!--{else}-->0<!--{/if}--></td>
						</tr>
						<tr class="strong_l">
						  <td colspan="4" align="right">&nbsp; Maximum Allowed: </td>
						  <td align="center">{$rep.tbCR}</td>
						  <td align="center">{$rep.tbMA}</td>
						  <td align="center">{$rep.tbMI}</td>
						</tr>
					</table>
                    <table width="94%"  border="0" cellpadding="1" cellspacing="1">
					    <tr class="strong_l"><td align="left">Remark:</td><td></td></tr>
						<!--{if $Supple=explode("\n",$rep.tbSupplement)}-->
						<!--{foreach from=$Supple key=k item=con}-->
						<tr style="line-height:14px;"><td valign="top" width="20"><div style="padding:4px 4px 4px 30px;"><!--{if $con neq ""}-->{$k+1}:<!--{/if}--></div></td><td><div style="padding:4px 4px 4px 4px;">{$con}</div></td></tr>
						<!--{/foreach}-->
						<!--{/if}-->
				    </table>
              </div>
                  <div class="preview-img" id="appearance_preview_img">
				    <section id="projects">
                      <ul id="thumbs" class="portfolio">
                          <!--{foreach from=$pic.tbAppearanceimg item=de}-->
                          <li class="item-thumbs col-lg-3 design" data-id="id-0" data-type="findings"><!-- Fancybox - Gallery Enabled - Title - Full Image -->
						<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Press Left/Right Key for The Last/Next Picture" href="../upload/files/{$pre}/defects/{$de}">
						<span class="overlay-me"></span>
						<span class="overlay-me-thumb"><i class="icon-info-blocks fa fa-arrows"></i></span>						</a>
						  <!--{if file_exists("../upload/files/{$pre}/defects/$de")}-->
						  <img src="../upload/files/{$pre}/defects/{$de}" alt="{$de}">
						  <!--{else}-->
						  <img src="../upload/files/{$pre}/temp/{$de}" alt="{$de}">
						  <!--{/if}-->
						  <input type="hidden" name="appearance_upload[]" value="{$de}">
					    </li>
                          <!--{/foreach}-->
                      </ul>
					</section>
                  </div>			  </TD>
            </TR>
			<TR class="tb_title">
              <TD>Data Measurement / Field Tests</TD>
            </TR>
            <TR>
              <TD align="center">
			  <!--{if $rep.tbMeasure eq ''}-->
				   <table width="94%"  border="0" cellspacing="0" class="lhide">
						<tr class="strong_l">
						  <td width="300">Check Points</td>
						  <td width="110" align="center">Qty</td>
						  <td width="200" align="center">Test Result</td>
						  <td width="300">Specification/Tolerance</td>
						</tr>
						<!--{foreach from=$tested item=con}-->
						<tr style="text-align:left; line-height:20px;">
						  <td>
							<!--{if strpos($con.tbTestedID,',')}-->
								{$testedf}
							<!--{else}-->
								{$con.tbCheckPoint}
							<!--{/if}-->
				&nbsp;
						  </td>
						  <td align="center">{$con.tbQty}</td>
						  <td align="center">
	<!--{if $con.tbResult eq 'Pass'}-->
					  <span class="f_green">
					  {$con.tbResult}					  </span>
	<!--{else}-->
		 			  <span class="f_red">
					  {$con.tbResult}					  </span>
	<!--{/if}-->						  </td>
						  <td style="word-wrap:break-word;">{$con.tbSpec}</td>
						</tr>
						<!--{/foreach}-->
						</table>
			  <!--{else}-->
				   <table width="98%"  border="0" cellpadding="1" cellspacing="1">
						<!--{if $Measure=explode("\n",$rep.tbMeasure)}-->
						<!--{foreach from=$Measure key=k item=con}-->
						<tr style="line-height:14px;"><td valign="top" width="20"><div style="padding:4px 4px 4px 30px;">{$k+1}:</div></td><td><div style="padding:4px 4px 4px 4px;">{$con}</div></td></ul></tr>
						<!--{/foreach}-->
						<!--{/if}-->
				  </table>	  
			  <!--{/if}-->
			  <div class="preview-img" id="test_preview_img">
                 <section id="projects">
                      <ul id="thumbs" class="portfolio">
                          <!--{foreach from=$pic.tbTestimg item=de}-->
                          <li class="item-thumbs col-lg-3 design" data-id="id-1" data-type="Measurement"><!-- Fancybox - Gallery Enabled - Title - Full Image -->
						  <a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Press Left/Right Key for The Last/Next Picture" href="../upload/files/{$pre}/testimg/{$de}">
						<span class="overlay-me"></span>
						<span class="overlay-me-thumb"><i class="icon-info-blocks fa fa-arrows"></i></span>						</a>
						   <!--{if file_exists("../upload/files/{$pre}/testimg/$de")}-->
						  <img src="../upload/files/{$pre}/testimg/{$de}" alt="{$de}">
						  <!--{else}-->
						  <img src="../upload/files/{$pre}/temp/{$de}" alt="{$de}">
						  <!--{/if}-->
						  <input type="hidden" name="test_upload[]" value="{$de}">
						  </li>
                          <!--{/foreach}-->
                      </ul>
				</section>
              </div>			  
			  </TD>
			</TR>
			<TR class="tb_title">
              <TD>Style, Material, Color</TD>
            </TR>
            <TR>
              <TD>
                    <table width="98%"  border="0" cellpadding="1" cellspacing="1">
						<!--{if $Material=explode("\n",$rep.tbStyle)}-->
						<!--{foreach from=$Material key=k item=con}-->
						<tr style="line-height:14px;"><td valign="top" width="20"><div style="padding:4px 4px 4px 30px;">{$k+1}:</div></td><td><div style="padding:4px 4px 4px 4px;">{$con}</div></td></tr>
						<!--{/foreach}-->
						<!--{/if}-->
					</table>
                  <div class="preview-img" id="style_preview_img">
                    <section id="projects">
                      	<ul id="thumbs" class="portfolio">
                          <!--{foreach from=$pic.tbStyleimg item=de}-->
                          <li class="item-thumbs col-lg-3 design" data-id="id-2" data-type="styleimg"><!-- Fancybox - Gallery Enabled - Title - Full Image -->
						<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Press Left/Right Key for The Last/Next Picture" href="../upload/files/{$pre}/styleimg/{$de}">
						<span class="overlay-me"></span>
						<span class="overlay-me-thumb"><i class="icon-info-blocks fa fa-arrows"></i></span>						
						</a>
						   <!--{if file_exists("../upload/files/{$pre}/styleimg/$de")}-->
						  <img src="../upload/files/{$pre}/styleimg/{$de}" alt="{$de}">
						  <!--{else}-->
						  <img src="../upload/files/{$pre}/temp/{$de}" alt="{$de}">
						  <!--{/if}-->
						  <input type="hidden" name="style_upload[]" value="{$de}">
						  </li>
                          <!--{/foreach}-->
                         </ul>
					</section>
                  </div>              </TD>
			</TR>
            <TR class="tb_title">
              <TD>Packing Method / Label</TD>
            </TR>
            <TR>
              <TD>
			        <table width="98%"  border="0" cellpadding="1" cellspacing="1">
						<!--{if $Packing=explode("\n",$rep.tbPacking)}-->
						<!--{foreach from=$Packing key=k item=con}-->
						<tr style="line-height:14px;"><td valign="top" width="20"><div style="padding:4px 4px 4px 30px;">{$k+1}:</div></td><td><div style="padding:4px 4px 4px 4px;">{$con}</div></td></ul></tr>
						<!--{/foreach}-->
						<!--{/if}-->
					</table>
                  <div class="preview-img" id="pack_preview_img">
                     <section id="projects">
                      	 <ul id="thumbs" class="portfolio">
                          <!--{foreach from=$pic.tbPackimg item=de}-->
                          <li class="item-thumbs col-lg-3 design" data-id="id-3" data-type="packimg"><!-- Fancybox - Gallery Enabled - Title - Full Image -->
						<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Press Left/Right Key for The Last/Next Picture" href="../upload/files/{$pre}/packimg/{$de}">
						<span class="overlay-me"></span>
						<span class="overlay-me-thumb"><i class="icon-info-blocks fa fa-arrows"></i></span>						
						</a>
						  <!--{if file_exists("../upload/files/{$pre}/packimg/$de")}-->
						  <img src="../upload/files/{$pre}/packimg/{$de}" alt="{$de}">
						  <!--{else}-->
						  <img src="../upload/files/{$pre}/temp/{$de}" alt="{$de}">
						  <!--{/if}-->
						  <input type="hidden" name="pack_upload[]" value="{$de}">
						  </li>
                          <!--{/foreach}-->
                          </ul>
					 </section>
                  </div>			  </TD>
			</TR>
		  </TBODY>
		</TABLE>
<br><br>
<!--{if $pre eq 'vc_'}-->
<!--{else}-->
<TABLE width="100%" border="1" align="center" cellPadding="4" cellSpacing="1" bordercolor="#5272A9">
  <TBODY>
    <TR class="tb_title">
      <TD>Serial Number of Tested Samples</TD>
    </TR>
	 <TR>
      <TD><div align="center" id="show_serials">
          <table width="98%"  border="0" cellpadding="1" cellspacing="1">
            <tr>
			  <!--{foreach from=$serial_details key=i item=ser}-->
			 
					 <!--{if ($i+1)%5 neq 0}-->
                        <td width='20%' align="center">
						<!--{if $rep.tbReport neq '3'}-->
<img src='pics/remove.png' onclick='delserial("{$pre}","{$ser.tbSN}","{$ser.tbReportNumber}");' title='Remove' style="cursor:pointer;" width="12" height="12" />
						<!--{/if}-->
						{$ser.tbSerialNumber}</td>
					 <!--{else}-->
					    <td width='20%' align="center">
						<!--{if $rep.tbReport neq '3'}-->
<img src='pics/remove.png' onclick='delserial("{$pre}","{$ser.tbSN}","{$ser.tbReportNumber}");' title='Remove' style="cursor:pointer;" width="12" height="12" />
						<!--{/if}-->
						{$ser.tbSerialNumber}</td></tr><tr>
					 <!--{/if}-->
			  <!--{/foreach}-->		
			</tr>   
          </table>
      </div></TD>
    </TR>
	<TR>
	<TD><div id="show_serial"></div></TD>
	</TR>
	<TR>
	<TD><div align="center">
	<!--{if $rep.tbReport eq "1" && $rank > "50"}-->
	<form name="add_form" id="add_form" method="post" action="" onsubmit="return add_serial('{$pre}');">
	<input name="tbReportNumber" type="hidden" id="tbReportNumber" value="{$rep.tbReportNumber}">
	<label>Please Enter A Serial Number:</label><input name="serial_add" id="serial_add" type="text" size="20" />
	<label>Count:</label><input name="count" id="count" type="text" size="4" value="4" />
	<input type="submit" name="Submit" value="Add-in">
	</form>
	<!--{/if}-->
	</div></TD>
	</TR>
    <TR>
      <TD bgcolor="#5272A9" align="center" height="20"><strong style="color:#FFFFFF;">Total mount : {$serial_count} </strong></TD>
    </TR>
  </TBODY>
</TABLE>
<!--{/if}-->
		<div style="width:100%; text-align:center; float:left; margin-top:8px;">
		<input name="Close" type="button" value="Close Page" onclick="javascript:self.close();"/>
		<input name="GoBack" type="button" value="Go Back To Report List" onclick="location.href='reports.php?active=2&client={$pre}'" />
		<!--{if $rep.tbReport eq "1" && $rank > "50"}-->
		<input name="Edit Report" type="button" value="Edit Report" onclick="location.href='report_create.php?act=edit_report&id={$rep.tbPN}&active=2&client={$pre}'" />
		<input name="Save Report" type="button" value="Save Report" onclick="location.href='report_create.php?act=c_status&id={$rep.tbPN}&client={$pre}'" />
		<!--{/if}-->
		<!--{if $rep.tbReport eq "2" && $rank > "50"}-->
		<input name="Edit Report" type="button" value="Edit Report" onclick="location.href='report_create.php?act=edit_report&id={$rep.tbPN}&active=2&client={$pre}'" />
		<input name="Release Report" type="button" value="Release Report" onclick="location.href='send_mail.php?act=release_rep&id={$rep.tbPN}&active=2&client={$pre}'" />
		<!--{/if}-->
		</div>
      </div>
      {include file="footer.dwt"}	 
</div>
<!-- Placed at the end of the document so the pages load faster -->
<script src="ajax/js/jquery.js"></script>
<script src="ajax/js/bootstrap.min.js"></script>
<script src="ajax/js/jquery.fancybox.pack.js"></script>
<script src="ajax/js/jquery.fancybox-media.js"></script> 
<script src="ajax/js/custom.js"></script>
</body>
</html>