<%@ Page language="c#" Codebehind="EmpsRecord.cs" AutoEventWireup="false" Inherits="Employee_Directory.EmpsRecord" %>
<%@ Register TagPrefix="CC" TagName="Header" Src="Header.ascx" %>
<html>
  <head>
	<title>职工信息更新</title>
	<meta name="CODE_LANGUAGE" Content="C#">
	<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head>
  <body text="#000000" link="#000080" vlink="#000080" alink="#000080">

  <form method="post" runat="server">
<CC:Header id="Header" runat="server"/>
	<input type=hidden id=p_emps_emp_id runat=server />
	
<table><tr><td valign="top" >

<table  id="emps_holder" runat="Server" border="0" cellspacing="2" cellpadding="0">
	<tr><td colspan=2 align="center" bgcolor="#FFBB55"><font style="font-size: 12pt; color: #FFFFFF; font-family: Arial, Tahoma, Verdana, Helvetica; font-weight: bold"><asp:label id="empsForm_Title" runat="server">职工信息更新</asp:label></font><br>
	</td></tr>
	<tr><td colspan="2" >
	<asp:Label id=emps_ValidationSummary  runat="server" Visible="false"></asp:Label>

	<input type="Hidden" id="emps_emp_id" value="" runat="server">
</td></tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">姓名</font>
	<asp:RequiredFieldValidator id=emps_name_Validator_Req runat="server" ErrorMessage="The value in field Name is required." ControlToValidate="emps_name" display="None" EnableClientScript="False"></asp:RequiredFieldValidator></td>
    	<td >
        <asp:TextBox
	id=emps_name
 Columns=50 MaxLength=100
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">职务</font>
	<asp:RequiredFieldValidator id=emps_title_Validator_Req runat="server" ErrorMessage="The value in field Title is required." ControlToValidate="emps_title" display="None" EnableClientScript="False"></asp:RequiredFieldValidator></td>
    	<td >
        <asp:TextBox
	id=emps_title
 Columns=50 MaxLength=50
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">户名</font>
	<asp:RequiredFieldValidator id=emps_emp_login_Validator_Req runat="server" ErrorMessage="The value in field Login is required." ControlToValidate="emps_emp_login" display="None" EnableClientScript="False"></asp:RequiredFieldValidator></td>
    	<td >
        <asp:TextBox
	id=emps_emp_login
 Columns=20 MaxLength=20
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">密码</font>
	<asp:RequiredFieldValidator id=emps_emp_password_Validator_Req runat="server" ErrorMessage="The value in field Password is required." ControlToValidate="emps_emp_password" display="None" EnableClientScript="False"></asp:RequiredFieldValidator></td>
    	<td >
        <asp:TextBox
	id=emps_emp_password
 TextMode=Password Columns=20 MaxLength=20
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">级别</font>
	<asp:RequiredFieldValidator id=emps_emp_level_Validator_Req runat="server" ErrorMessage="The value in field Level is required." ControlToValidate="emps_emp_level" display="None" EnableClientScript="False"></asp:RequiredFieldValidator>
	<asp:CustomValidator  id=emps_emp_level_Validator_Num OnServerValidate="ValidateNumeric" runat="server" EnableClientScript="False" ErrorMessage="The value in field Level is incorrect." ControlToValidate="emps_emp_level" display="None"></asp:CustomValidator ></td>
    	<td >
        <asp:DropDownList 
	id=emps_emp_level

	DataTextField=""
	DataValueField=""
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">部门</font>
	<asp:RequiredFieldValidator id=emps_dep_id_Validator_Req runat="server" ErrorMessage="The value in field Department is required." ControlToValidate="emps_dep_id" display="None" EnableClientScript="False"></asp:RequiredFieldValidator>
	<asp:CustomValidator  id=emps_dep_id_Validator_Num OnServerValidate="ValidateNumeric" runat="server" EnableClientScript="False" ErrorMessage="The value in field Department is incorrect." ControlToValidate="emps_dep_id" display="None"></asp:CustomValidator ></td>
    	<td >
        <asp:DropDownList 
	id=emps_dep_id

	DataTextField="name"
	DataValueField="dep_id"
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">地址</font></td>
    	<td >
        
	<asp:TextBox	id=emps_address
 TextMode=MultiLine Rows=2 Columns=50 runat="server">
	
	</asp:TextBox>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">Email</font></td>
    	<td >
        <asp:TextBox
	id=emps_email
 Columns=50 MaxLength=50
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">单位电话</font></td>
    	<td >
        <asp:TextBox
	id=emps_work_phone
 Columns=50 MaxLength=50
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">家庭电话</font></td>
    	<td >
        <asp:TextBox
	id=emps_home_phone
 Columns=50 MaxLength=50
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">移动电话</font></td>
    	<td >
        <asp:TextBox
	id=emps_cell_phone
 Columns=50 MaxLength=50
	runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">本月之星</font></td>
    	<td >
        
	<asp:CheckBox  id=emps_manmonth runat="server"/>
&nbsp;</td>
	</tr>
<tr>
	<td bgcolor="#FFDD00"><font style="font-size: 10pt; color: #000000; font-family: Arial, Tahoma, Verdana, Helvetica">照片名称</font></td>
    	<td >
        <asp:TextBox
	id=emps_picture
 Columns=50 MaxLength=100
	runat="server"/>
&nbsp;</td>
	</tr>

    <tr><td align=right colspan=2 >

	<input type="button"
		id=emps_insert
		Value="新增"
		runat="server" >
	
	<input type="button"
		id=emps_update
		Value="修改"
		runat="server" >
	
	<input type="button"
		id=emps_delete
		Value="删除"
		runat="server" >
	
	<input type="button"
		id=emps_cancel
		Value="取消"
		runat="server" >
	
    </td></tr>

	</table>

<SCRIPT Language="JavaScript" type="text/javascript">
if (document.forms["emps"])
  document.emps.onsubmit=delconf;
function delconf() {
if (document.emps.FormAction.value == 'delete')
  return confirm('Delete record?');
}
</SCRIPT>
</td>
    </tr></table>


<center><font face="Arial"><small>—— 欢迎访问<a href="http://localhost/ex46-50/default.aspx">职工信息查询网站</a></small></font></center>
    </form>
</body>
</html>