{include file="header.dwt"}
      <div id="list" class="f_l">
		<script language="javascript" type="text/javascript">
		function fnLaunch(tbID)
		{
			var myObject = new Object();
			var returnv=window.showModalDialog("management.php?act=cpForm&tbID="+tbID,myObject, "dialogWidth:420px; dialogHeight:280px; dialogLeft:300px;");
			alert(returnv);
		}
		</script>
	  <form action="management.php?act=save_user&tab=user_list" method="post" name="edit_user" id="edit_user">
	  <h2 style="text-align:center; margin-top:30px;">User Summary</h2>
      <TABLE width="100%" border="1" cellPadding="1" cellSpacing="1" bordercolor="#5272A9">
          <TBODY>
            <TR align="middle" class="tb_title">
              <TD width="100%">User Summary Add/Edit</TD>
            </TR>
            <TR>
              <TD>
                <table width="100%"  border="0" cellpadding="1" cellspacing="1">
				<tr>
                    <td width="25%" class="strong_r">User Name：</td>
                    <td  width="26%">
<input name="tbID" type="hidden" size="10" value="{$get_man.tbID}" />
<input name="tbUserName" id="tbUserName" type="text" size="30" value="{$get_man.tbUserName}" readonly="readonly" />
					</td>
					<td width="21%" class="strong_r">Password：</td>
                    <td width="31%">
					<!--{if $get_man.tbID neq ''}-->					
										****** &nbsp;&nbsp;<font class="f_blue"><a onClick="fnLaunch('{$get_man.tbID}');" style="cursor:pointer; text-decoration:underline;">Change Password</a></font>
					<!--{else}-->
					<input name="tbPassword" type="text" size="40" value="789963" />					
					<!--{/if}-->						
				   </td>
                  </tr>
                  <tr>
                    <td class="strong_r">English Name：</td>
                    <td>
					<input name="tbName" type="text" size="30" value="{$get_man.tbName}" /></td>
					<td width="21%" class="strong_r">Company：</td>
                    <td width="31%">
 							<select name="tbCompanyID" id="tbCompanyID">
                            <option value=''>====Select Company====</option>
                           <!--{foreach from=$allCompany item=all }-->
                            <!--{if $get_man.tbCompanyID eq $all.tbCompanyID}-->
							<option value='{$all.tbCompanyID}' selected="selected">{$all.tbNickName}</option>
							<!--{else}-->
							<option value='{$all.tbCompanyID}'>{$all.tbNickName}</option>
							<!--{/if}-->
                           <!--{/foreach}-->
                          </select>
				   </td>
                   </tr>
				   <tr>
                    <td class="strong_r">Chinese Name：</td>
                    <td><input name="tbCnName" type="text" size="30" value="{$get_man.tbCnName}" /></td>
					 <td class="strong_r">Email：</td>
                    <td><input name="tbMail" type="text" size="40" value="{$get_man.tbMail}" /></td>
                  </tr>
                  <tr>
				    <td class="strong_r" height="30">Rank：</td>
                    <td colspan="3">
					<!--{if $get_man.tbRank gte '90'}-->
					<input name="tbRank" type="radio" checked="checked" value="90" title="Super Admin"  />Super Admin
					<!--{else}-->
					<input name="tbRank" type="radio" value="90" title="Super Admin"  />Super Admin
					<!--{/if}-->
			  		<!--{if $get_man.tbRank lt '90' and $get_man.tbRank gte '70'}-->
			        <input name="tbRank" type="radio" checked="checked" value="70" title="System Admin" />System Admin
					<!--{else}-->
					<input name="tbRank" type="radio" value="70" title="System Admin"  />System Admin
					<!--{/if}-->
					<!--{if $get_man.tbRank lt '70' and $get_man.tbRank gte '60'}-->
			        <input name="tbRank" type="radio" checked="checked" value="60" title="QA" />CY's QA
					<!--{else}-->
					<input name="tbRank" type="radio" value="60" title="QA"  />CY's QA
					<!--{/if}-->
					<!--{if $get_man.tbRank lt '60' and $get_man.tbRank gte '50'}-->
			        <input name="tbRank" type="radio" checked="checked" value="50" title="Client" />Client
					<!--{else}-->
					<input name="tbRank" type="radio" value="50" title="Client"  />Client
					<!--{/if}-->
					<!--{if $get_man.tbRank lt '50' and $get_man.tbRank gte '40'}-->
			        <input name="tbRank" type="radio" checked="checked" value="40" title="Factory" />Factory
					<!--{else}-->
					<input name="tbRank" type="radio" value="40" title="Factory"  />Factory
					<!--{/if}-->
					<!--{if $get_man.tbRank lt '40' and $get_man.tbRank gte '20'}-->
			        <input name="tbRank" type="radio" checked="checked" value="20" title="Client's Client" />Client's Client
					<!--{else}-->
					<input name="tbRank" type="radio" value="20" title="Client's Client"  />Client's Client
					<!--{/if}-->
					</td>
                  </tr>
				  <tr>
				  <td class="strong_r" height="30">Receive Inspection Notification：</td>
                    <td><!--{if $get_man.tbSentMail eq '1'}-->
					<input name="tbSentMail" type="radio" value="1" title="Yes" checked="checked" />Yes
			  <!--{else}-->
					<input name="tbSentMail" type="radio" value="0" title="No" />No
			  <!--{/if}-->
					</td>
				  <td class="strong_r">Open/Close：</td>
                    <td>
					<!--{if $get_man.tbOpen eq '1'}-->
					<input name="tbOpen" type="radio" value="1" title="Open" checked="checked" />Open
			  <!--{else}-->
					<input name="tbOpen" type="radio" value="0" title="Close" />Close
			  <!--{/if}-->
			 		</td>
				  </tr>
				  <tr>
				    <td class="strong_r">Title：</td>
                    <td><input name="tbTitle" type="text" size="40" value="{$get_man.tbTitle}" /></td>
				    <td width="21%" class="strong_r">Department：</td>
                    <td width="31%"><input name="tbDepartment" type="text" size="40" value="{$get_man.tbDepartment}" /></td>
                  </tr>
                  <tr>
				    <td width="22%" class="strong_r">Phone Number：</td>
                    <td width="26%"><input name="tbPhoneNumber" type="text" size="40" value="{$get_man.tbPhoneNumber}" /></td>
                    <td class="strong_r">Cell Number：</td>
                    <td><input name="tbCellNumber" type="text" size="40" value="{$get_man.tbCellNumber}" /></td>
                  </tr>
                </table>
             </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="management.php"' value="Back To management List">
        <input type="submit" name="Save" value="Save">
</div></td>
  </tr>
</table></form>
      </div>
      {include file="footer.dwt"}
</div>
</body>
</html>
