<%@ page language="C#" autoeventwireup="true" inherits="Company_Com_Department, ZhaoPinXiTong" enableEventValidation="false" %>

<%@ Register Tagprefix="UserControls" TagName="Footer" Src="../Controls/Footer.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Header" Src="../Controls/Header_Company_User.ascx" %>
<%@ Register Tagprefix="UserControls" TagName="Right" Src="../Controls/Right_Company_Basic.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
	<HEAD>
		<title>
			<%= "招聘中心_部门管理_" + pub_WebName %>
		</title>
		<meta name="author" content="www.zhaopinxitong.com,无忧招聘系统开发制作" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<LINK rel="stylesheet" type="text/css" href="../Css/Style.css">
	</HEAD>
	<body>
		<form id="Form1" method="post" Runat=server>
			<!--页面顶部-->
			<UserControls:Header Runat=server id="Header1"></UserControls:Header>
			<!--页面主体-->
			<table width="992" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr><td align="center" bgcolor="#FFFFFF"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr valign="top">
<td width="188"  class="UserMenu_bg"><!--菜单--><UserControls:Right Runat=server id="Right1" /></td>
          <td bgcolor="#FFFFFF">
          <!--右侧-->
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="userbg_top"></td>
            </tr>
            <tr>
              <td valign="top" class="userbg_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td valign="bottom" class="userbuttom_bg"> 
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr height="28">
                      <td class="userbuttom12"><a href="../Company/Com_Account_Basic.aspx">基本信息</a></td>
                      <td width="5"></td>
                      <td class="userbuttom11"><a href="../Company/Com_Department.aspx" class="white"><b>部门管理</b></a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Picture_Logo.aspx">公司图片</a></td>
                      <td width="5"></td>
                       <td class="userbuttom12"><a href="../Company/Com_CompanyImage.aspx">形象图片</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Picture_Cert.aspx">营业执照</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Template.aspx">公司模板</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../EMap/Com_Account_Map.aspx">电子地图</a></td>
                      <td width="5"></td>
                      <td class="userbuttom12"><a href="../Company/Com_Mail_Template.aspx">邮件模板</a></td>
                      <td>&nbsp;</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
            </table>
						<!--部门列表-->
						<table width="100%" border="0" cellspacing="0" cellpadding="4">
							<tr>
								<td style="PADDING-LEFT:5px"><font color="#777777">请在本页添加/修改贵公司下属机构和部门；</font></td>
							</tr>
						</table>
						<table width="100%" border="0" cellspacing="1" cellpadding="0">
							<tr>
								<td height="1" bgcolor="#FBB963"></td>
							</tr>
						</table>
						<asp:DataList Runat=server ID="lit_Department" DataKeyField="Mid" RepeatColumns="1" CellPadding="0" CellSpacing="0" Width="100%" OnItemDataBound="lit_Department_ItemDataBound" OnItemCommand="lit_Department_ItemCommand">
						<HeaderTemplate>
						<table width="100%" border="0" cellspacing="1" cellpadding="4">
							<tr bgcolor="#FEEECC">
								<td width="5%" align="center">&nbsp;</td>
								<td width="25%"><strong>部门名称</strong></td>
								<td width="20%"><strong>联系人</strong></td>
								<td width="37%"><strong>邮箱地址</strong></td>
								<td align="center"><strong>操作</strong></td>
							</tr>
						</table>
						</HeaderTemplate>
						<ItemTemplate>
						<table width="100%" border="0" cellspacing="1" cellpadding="4">
							<tr>
								<td width="5%" align="center"><asp:Label Runat=server ID="lbl_Orderid"></asp:Label></td>
								<td width="25%"><%# Eval("DeName") %></td>
								<td width="20%"><%# Eval("Linkman") %></td>
								<td width="37%"><%# Eval("Email") %></td>
								<td align="center"><a href='<%# "?Action=update&Mid=" + Eval("Mid") %>' class="uline">修改</a><img src="../Images/Public/icon2.gif" width="11" height="15" align="absMiddle"><asp:LinkButton Runat=server ID="lbn_Delete" CommandName="Delete" CausesValidation=False CssClass="uline">删除</asp:LinkButton></td>
							</tr>
							<tr>
								<td colspan="5" height="1" bgcolor="#d3d3d3"></td>
							</tr>
						</table>
						</ItemTemplate>
						</asp:DataList>
						<!--新增/修改部门-->
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="28" style="PADDING-LEFT: 12px; PADDING-TOP: 3px; BORDER-BOTTOM: #d3d3d3 1px solid"><strong><asp:Label Runat=server ID="lbl_Operate"></asp:Label></strong>
									(<font color="#ff3300">*</font> 为必填项)</td>
							</tr>
						</table>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#dddddd">
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:12px"><font color="#ff3300">*</font> 部门名称：</td>
								<td><asp:TextBox Runat=server ID="txt_DeName" Width="230" MaxLength="50"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_DeName" ControlToValidate="txt_DeName" Display="Dynamic"
										ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写部门名称！"></asp:requiredfieldvalidator>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:12px"><font color="#ff3300">*</font> 联 系 人：</td>
								<td><asp:TextBox Runat=server ID="txt_Linkman" Width="230" MaxLength="25"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_Linkman" ControlToValidate="txt_Linkman" Display="Dynamic"
										ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写联系人！"></asp:RequiredFieldValidator>
								</td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:24px">联系电话：</td>
								<td><asp:TextBox Runat=server ID="txt_Phone" Width="230" MaxLength="30"></asp:TextBox>
									<asp:RegularExpressionValidator Runat=server ID="rev_Phone" ControlToValidate="txt_Phone" ValidationExpression="[0-9-  +.() -]{7,20}"
										Display="Dynamic" ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写正确的联系电话！"></asp:RegularExpressionValidator></td>
							</tr>
							<tr bgcolor="#ffffff">
								<td width="100" style="PADDING-LEFT:12px"><font color="#ff3300">*</font> 电子邮箱：</td>
								<td><asp:TextBox Runat=server ID="txt_Email" Width="230" MaxLength="100"></asp:TextBox>
									<asp:RequiredFieldValidator SetFocusOnError="True" Runat=server ID="rfv_Email" ControlToValidate="txt_Email" Display="Dynamic" ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写邮箱地址！"></asp:requiredfieldvalidator>
									<asp:RegularExpressionValidator Runat=server ID="rev_Email" ControlToValidate="txt_Email" ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"
										Display="Dynamic" ErrorMessage="<br><img src=../Images/Public/Icon1.gif align=absbottom> 请填写正确的邮箱地址！"></asp:RegularExpressionValidator></td>
							</tr>
						</table>
						
						<asp:Panel Runat=server ID="pan_Add">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" border="0">
								<TR>
									<TD style="PADDING-LEFT: 24px" width="100">&nbsp;</TD>
									<TD align="left">
										<asp:Button id="btn_Submit" onclick="btn_Submit_Click" Width="60" Runat=server Text="保存" Height="30"></asp:Button>
										<asp:Label id="lbl_Error" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
						<asp:Panel Runat=server ID="pan_Update">
							<TABLE cellSpacing="1" cellPadding="4" width="100%" border="0">
								<TR>
									<TD style="PADDING-LEFT: 24px" width="100">&nbsp;</TD>
									<TD align="left">
										<asp:Button id="btn_Update" onclick="btn_Update_Click" Width="60" Runat=server Text="保存" Height="30"></asp:Button>
										<asp:Label id="lbl_Error2" Runat=server ForeColor="#ff0000"></asp:Label></TD>
								</TR>
							</TABLE>
						</asp:Panel>
					</td>
            </tr>
            <tr>
              <td class="userbg_bottom"></td>
            </tr>
          </table></td>
              </tr>
            </table></td>
              </tr>
            </table>
			<!--页面底部-->
<UserControls:Footer Runat=server id="Footer1"></UserControls:Footer>
		</form>
	</body>
</HTML>

