{include file="header.dwt"}
<script language="javascript" src="ajax/ajax_instructs.js"></script>
      <div id="list" class="f_l">
	  <form action="instructs.php?client={$pre}" method="post" name="edit">
	  <h2 style="text-align:center; margin-top:30px;">Product Summary</h2>
      <TABLE width="100%" border="1" cellPadding="1" cellSpacing="1" bordercolor="#5272A9">
          <TBODY>
            <TR align=middle>
              <TD width="100%" class="tb_title"><div align="center">Product Summary Memo</div></TD>
            </TR>
            <TR align=middle>
              <TD><div align="center">
                <table width="100%"  border="0" cellpadding="1" cellspacing="1">
                  <tr>
                    <td width="19%" class="strong_r">Product Name：</td>
                    <td><div class="title_style">
    <!--{if $act eq 'edit'}-->	
	<input name="tbProductName" type="text" size="30" value="{$wi.tbProductName}" />
	<!--{elseif $act eq 'upgrade'}-->
	<input name="tbProductName" type="text" size="30" value="{$wi.tbProductName}" readonly="readonly" />
	<!--{elseif $act eq 'create'}-->
	<input name="tbProductName" type="text" size="30" value="{$wi.tbProductName}" />
	<!--{/if}-->						
					</div></td>
					<td class="strong_r">Buyer：</td>
                    <td><div class="title_style"><input name="tbClientID" type="text" size="25" value="{$wi.tbClientID}" /></div></td>
                  </tr>
                  <tr>
                    <td class="strong_r">Version：</td>
                    <td><div class="title_style">
	<!--{if $act eq 'edit'}-->	
	<input name="tbVersion" type="text" size="15" value="{$wi.tbVersion}" />
	<!--{elseif $act eq 'upgrade'}-->
	<input name="tbVersion" type="text" size="15" value="{$max_ver}" readonly="readonly" />
	<!--{elseif $act eq 'create'}-->
	<input name="tbVersion" type="text" size="15" value="{$wi.tbVersion}" />	
	<!--{/if}-->	
					    </div>
					</td>
                    <td class="strong_r">Issue Date：</td>
                    <td><div class="title_style"><input name="tbIssueDate" type="text" size="25" value="{$wi.tbIssueDate}" /></div></td>
                  </tr>
				   <tr>
				    <td width="20%" class="strong_r">Description：</td>
                    <td width="31%"><div class="title_style"><input name="tbDescript" type="text" size="40" value="{$wi.tbDescript}" /></div></td>
                    <td width="20%" class="strong_r">Effective Date ：</td>
                    <td width="31%"><div class="title_style"><input name="tbEffect" type="text" size="25" value="{$wi.tbEffect}" /></div></td>
                  </tr>
                  <tr>
                    <td class="strong_r">Model Applicable：</td>
                    <td colspan="3"><div class="title_style"><input name="tbModel" type="text" size="116" value="{$wi.tbModel}" /></div></td>
                  </tr>
                </table>
              </div></TD>
            </TR>
            <TR align=middle>
              <TD class="tb_title"><div class="title_style">1.0　Reference / Documentation </div></TD>
            </TR>
            <TR align=middle>
              <TD><div class="con_style">
                 Reference Standard： Inspection Criteria: <a href='../upload/files/{$pre}/criteria/{$wi.tbCriteria}' target=_blank><img src="pics/acrobat.gif" width="20" height="20" border="0"></a>,Test Plan: <a href='../upload/files/{$pre}/{$wi.tbTestPlan}' target=_blank><img src="pics/word.gif" width="20" height="20" border="0"></a>,Kit Bom: <a href='../upload/files/{$pre}/{$wi.tbKitBom}' target=_blank><img src="pics/excel.gif" width="20" height="20" border="0"></a>.<br>Reference Sample Provided：Sample provied by <select name="tbFactoryID" id="tbFactoryID">
                            <option value=''>====Select Factory====</option>
                           <!--{foreach from=$factory_list item=factory }-->
					   <!--{if $wi.tbFactoryID eq $factory.tbCompanyID}-->
                            <option value='{$factory.tbCompanyID}' selected="selected">{$factory.tbNickName}</option>
					   <!--{else}-->
							<option value='{$factory.tbCompanyID}'>{$factory.tbNickName}</option>
					   <!--{/if}-->
                           <!--{/foreach}-->
                           </select>
						  
						  <input name="id" type="hidden" size="10" value="{$id}" />
	<!--{if $act eq 'edit'}-->	
	<input name="act" type="hidden" size="10" value="save_edit" />
	<!--{elseif $act eq 'upgrade'}-->
	<input name="act" type="hidden" size="10" value="save_upgrade" />
	<!--{elseif $act eq 'create'}-->
	<input name="act" type="hidden" size="10" value="save_create" />
	<!--{/if}-->							  
              </div></TD>
            </TR>
            <TR align=middle>
              <TD class="tb_title"><div class="title_style">2.0　Inspection Method Applied </div></TD>
            </TR>
            <TR align=middle>
              <TD><div align="center">
                <table width="98%"  border="0">
                  <tr>
                    <td><div class="con_style">
					Sampling Plan：<input name="tbPlan" type="text" size="20" value="{$wi.tbPlan}" /><br>
                    Sampling Level：<input name="tbInspectLevel" type="text" size="20" value="{$wi.tbInspectLevel}" /><br>
                    <b class="f_red">*</b> Critical： <input name="tbCritical" type="text" size="6" value="{$wi.tbCritical}" /><br>
                    <b class="f_red">*</b> Major：<input name="tbMajor" type="text" size="6" value="{$wi.tbMajor}" /><br>
                    <b class="f_red">*</b> Minor：<input name="tbMinor" type="text" size="6" value="{$wi.tbMinor}" /><br>
                    </div></td>
                  </tr>
                </table>
                </div></TD>
            </TR>
            <TR align=middle>
              <TD class="tb_title">
                <div class="title_style">3.0　Packing Method / Label </div></TD></TR>
            <TR align=middle>
              <TD>        
               <textarea name="tbPacking" cols="115" rows="30">{$wi.tbPacking}</textarea>
             </TD>
            </TR>
            <TR align=middle>
              <TD class="tb_title"><div class="title_style">4.0　Style, Material, Color</div></TD>
            </TR>
            <TR align=middle>
              <TD>
			  <textarea name="tbStyle" cols="115" rows="6">{$wi.tbStyle}</textarea>
			  </TD>
            </TR>
            <TR align=middle>
              <TD class="tb_title">
                <div class="title_style">5.0　Data Measurement / Field Tests </div></TD></TR>
            <TR>
              <TD>
<div id="list_points">
	<div id="show_points">
		<div class="c_line">
		<li style="width:1100px;line-height:20px; text-align:left; padding-left:50px;">1: Function testing({$tbTest})
		</li>
		<li style="width:1100px;line-height:20px; text-align:left; padding-left:50px;">{$tbMeasure}
		</li>
		</div>
	</div>			  
<hr>			  
	<div class="c_line">
		<li style="width:140px;">Function Check Point:</li>
		<li style="width:850px;line-height:20px; text-align:left; padding-left:20px;">
		<!--{foreach from=$ftest key=k item=ite }-->
        		<!--{if in_array($ite.tbSN,$idt)}-->
					<input name="ck" id="ck" type="checkbox" value="{$ite.tbSN}" checked="checked" onClick="pushVal();">{$ite.tbCheckPoint}		
				<!--{else}-->
					<input name="ck" id="ck" type="checkbox" value="{$ite.tbSN}" onClick="pushVal();">{$ite.tbCheckPoint}
				<!--{/if}-->
				, &nbsp;
        <!--{/foreach}-->
		</li>
		<li style="width:40px;line-height:20px; text-align:left; margin-left:50px;">
			<input name="tbTest" id="tbTest" value="{$stbTest}" size="80" type="hidden">
			<img src="pics/save.png" onclick="saveWiT('{$pre}','{$wi.tbWN}');" title="Save(保存)" style="cursor:pointer;" />
		</li>
	</div>
<hr>	  
	<div class="c_line">
	    <li style="width:140px;">Other Check Point:</li>
		<li style="width:850px;line-height:20px; text-align:left; padding-left:20px;">
			<select name="tbTestedID" id="tbTestedID" style="width:400px;">
		<!--{foreach from=$tests item=items }-->
        		<!--{if $items.tbSN eq '1'}-->
					<option value='{$items.tbSN}' selected="selected">{$items.tbCheckPoint}</option>		
				<!--{else}-->
					<option value='{$items.tbSN}'>{$items.tbCheckPoint}</option>
				<!--{/if}-->
        <!--{/foreach}-->
      		</select>
		</li>
		<li style="width:40px;line-height:20px; text-align:left; margin-left:50px;">
			<img src="pics/save.png" onclick="saveWiM('{$pre}','{$wi.tbWN}');" title="Save(保存)" style="cursor:pointer;" />
		</li>
	</div>
</div>				 
			  </TD>
            </TR>
            <TR align=middle>
              <TD bgcolor="#5272A9"><div align="center">　

                </div></TD>
            </TR>
          </TBODY>
      </TABLE>
<table width="624"  border="0" align="center" cellpadding="3" cellspacing="3">
  <tr>
    <td><div align="center">
        <input type="button" name="Back" OnClick='location.href="instructs.php?client={$pre}"' value="Back To Product Summary List">
		<!--{if $act eq 'edit'}-->
        <input type="submit" name="Save" value="Save Summary">
		<!--{elseif $act eq 'upgrade'}-->
        <input type="submit" name="Upgrade" value="Upgrade Summary">
		<!--{elseif $act eq 'create'}-->
        <input type="submit" name="Create" value="Create Summary">
		<!--{/if}-->
</div></td>
  </tr>
</table></form>
      </div>
      {include file="footer.dwt"}
</div>
</body>
</html>
