<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Admin_Company_info.aspx.cs" Inherits="MyITJob.Admin.Admin_Company_info" %>
<!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 id="Head1" runat="server">
<title><%=Application["PageTitle"] %>——企业职位管理</title>
<link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../MyITJob.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    function CheckForm()
    {
        if(form1.TextBox1.value <= 0 || form1.TextBox1.value == '')
        {
            alert('招聘人数出现非法数字或者不能为空！');
            form1.TextBox1.focus();
            return false;
        }
        if(form1.TextBox2.value == '')
        {
            alert('年龄不能为空');
            form1.TextBox2.focus();
            return false;
        }
        if(isNaN(form1.TextBox2.value))
        {
            alert('年龄出现非法！');
            form1.TextBox2.focus();
            return false;
        }
        if(isNaN(form1.TextBox3.value))
        {
            alert('年龄出现非法！');
            form1.TextBox3.focus();
            return false;
        }
        if(form1.TextBox7.value == '')
        {
            alert('要求与待遇不能为空！');
            form1.TextBox7.focus();
            return false;
        }
        if(form1.TextBox6.value < 0 || form1.TextBox6.value =='')
        {
            alert('有效期限出现非法数字或者不能为空！');
            form1.TextBox6.focus();
            return false;
        }
        if(form1.TextBox8.value == '')
        {
            alert('联系人不能为空！');
            form1.TextBox8.focus();
            return false;
        }
        if(form1.TextBox9.value == '')
        {
            alert('手机号码不能为空！');
            form1.TextBox9.focus();
            return false;
        }
    }
	
function CheckAll(form){
  for (var i=0;i<form.elements.length;i++){
    var e = form.elements[i];
    if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
      e.checked = form.chkAll.checked;
      if (e.checked)
        hL(e);
      else
        dL(e);
    }
  }
}

function hL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg2';
}
function dL(E){
  while (E.tagName!='TR') {E=E.parentElement;}
  E.className='tdbg';
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return CheckForm();">
  <div>
    <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                <tr class='topbg'>
                  <td height='30' colspan='2'><table width='100%'>
                    <tr class='topbg'>
                      <td align='center'><strong>企 业 用 户 信 息 管 理</strong></td>
                    </tr>
                  </table></td>
                </tr>
                <asp:Panel ID="Manage" runat="server">      
                <tr class="tdbg">
                  <td width='99' height='30'><strong>身份筛选：</strong></td>
                  <td class="dh">
                  <div>
                  <%foreach ( ClassLibrary1.strClass.dhClass d in dh) {%>
                    <a <%= d.id == q("type") ? "class='dhcss'":"" %> href="?type=<%=d.id %>&day=<%=q("day") %>"><%=d.name %></a>
                  <%} %>
                  </div>
                  </td>
                </tr>
                <tr class="tdbg">
                  <td width='99' height='30'><strong>发布时间：</strong></td>
                  <td class="dh">
                  <%foreach (ClassLibrary1.strClass.dhClass d in day) {%>
                    <a <%= d.id == q("day") ? "class='dhcss'":"" %> href="?day=<%=d.id %>&type=<%=q("type") %>"><%=d.name %></a>
                  <%} %>
                  </td>
                </tr>
                <tr class="tdbg">
                  <td height='30'><strong>搜索企业：</strong></td>
                  <td><asp:TextBox ID="searchText" runat="server"></asp:TextBox>
                    <asp:Button ID="searchButton" runat="server" OnClick="searchButton_Click" Text="搜 索" /></td>
                </tr>
              </table>
              <br />              
      <table width='100%' border='0' align='center' cellpadding='6' cellspacing='1' class='border'>
        <tr class='topbg2'>
          <td width="5%" align='center'><strong class="Glow">选中</strong></td>
          <td width="15%" align='center'><strong class="Glow">发布职位</strong></td>
          <td width="23%" align='center'><strong class="Glow">发布公司及注册人</strong></td>
          <td width="32%" align='center'><strong class="Glow">具体要求待遇及时间</strong></td>
          <td width="12%" align='center'><strong class="Glow">紧急|热门|高薪</strong></td>
          <td width="13%" align='center'><strong class="Glow">操作</strong></td>
        </tr>
        <asp:Repeater ID="RP1" runat="server">
          <ItemTemplate>
            <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
              <td width="5%" align='center'><input type="checkbox" name="checkbox" id="checkbox" value='<%#Eval("id") %>' /></td>
              <td width="15%" align='center'>
                <a href="../Company_Lookzl.aspx?pn=<%#Eval("qyname") %>&id=<%#Eval("id") %>#Look" target="_blank"><%#Eval("zpzw") %></a><br />
              </td>
              <td width="23%" align='center'><a href="../Company_Lookzl.aspx?pn=<%#Eval("qyname") %>" target="_blank"> <%#Eval("qyname2") %> <br />
              <%#FormatLeft(Eval("qyname").ToString(),20,19) %>              </a></td>
              <td width="32%" align='center'><%#FormatLeft(MyFormatnoHtml(Eval("zpother").ToString()),20,19) %><br />
                <span style="color:Gray;">【<%#Eval("addtime", "{0:yyyy-MM-dd}")%> 起 <%#Eval("overtime","{0:yyyy-MM-dd}") %>止】</span>
              </td>
              <td width="12%" align='center'><div id="Sure<%#Eval("ID") %>" class="YnEnter"><a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=urgent&amp;Sure=1">通过申请</a> <a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=urgent&amp;Sure=0">取消申请</a></div>
                <a href="###" onclick="YnEnterDiv('Sure<%#Eval("ID") %>')"> <%#urgentHtml()%></a> |
                <div id="Sure<%#Eval("ID") %>1" class="YnEnter"><a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=Hot&amp;Sure=1">申请热门</a> <a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=Hot&amp;Sure=0">取消申请</a></div>
                <a href="###" onclick="YnEnterDiv('Sure<%#Eval("ID") %>1')"> <%#hotHtml()%></a> |
                <div id="Sure<%#Eval("ID") %>2" class="YnEnter"><a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=Height&amp;Sure=1">申请高薪</a> <a href="Admin_Company_info.aspx?id=<%#Eval("id") %>&amp;Action=Height&amp;Sure=0">取消申请</a></div>
                <a href="###" onclick="YnEnterDiv('Sure<%#Eval("ID") %>2')"> <%#HeightHtml()%></a></td>
              <td align='center'><a href="?Action=Edit&id=<%#Eval("ID") %>">修改</a> | <a href="?id=<%#Eval("ID") %>&Action=Del" onclick="return confirm('确定要删除此项吗？此操作不可逆。');">删除</a></td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
      </table>
      <div>
        <input name='chkAll' type='checkbox' onclick='CheckAll(this.form)' value='checkbox' />
        <asp:Button ID="ungent_Yes" runat="server" Text="急招职位" OnClick="ungent_Yes_Click" />
        <asp:Button ID="ungent_No" runat="server" Text="取消急招职位" OnClick="ungent_No_Click" />
          <asp:Button ID="height_Yes" runat="server" Text="高薪职位" onclick="height_Yes_Click" />
          <asp:Button ID="height_No" runat="server" Text="取消高薪职位" onclick="height_No_Click" />
          <asp:Button ID="hot_Yes" runat="server" Text="热门职位" onclick="hot_Yes_Click" />
          <asp:Button ID="hot_No" runat="server" Text="取消热门职位" onclick="hot_No_Click" />
        <asp:Button ID="del_button" runat="server" Text="删 除" OnClick="del_button_Click" /></div>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="669" height="18"><div id="paging" runat="server"></div>
            <p> <span class="style4">备注：<br />
              </span>修改——修改企业招聘资料，防止恶意信息。<br />
              ×——表示企业现在状态是普通招聘；？——表示企业请求中，等待管理员审核通过；√——表示企业的招聘信息通过审核，显示在主页紧急招聘中。<br />
              删除——删除企业该条招聘信息资料。</p></td>
        </tr>
      </table>
      </asp:Panel>
    <asp:Panel ID="Add" runat="server" Visible="false">
      <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
        <tr class='tdbg'>
          <td colspan="2" class="topbg2"><div align="center" class="Glow"> <strong>企业招聘表</strong></div></td>
        </tr>
        <tr class='tdbg'>
          <td width="23%" class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>招聘职位：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:Label ID="zpzw_Lable" runat="server" Text="Label" ForeColor="red"></asp:Label></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> 工作类型：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
              <asp:ListItem Selected="True" Value="不限">不限</asp:ListItem>
              <asp:ListItem Value="全职">全职</asp:ListItem>
              <asp:ListItem Value="兼职">兼职</asp:ListItem>
              <asp:ListItem Value="临时工">临时工</asp:ListItem>
              <asp:ListItem Value="合同工">合同工</asp:ListItem>
            </asp:RadioButtonList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>招聘人数：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:TextBox ID="TextBox1" runat="server" Width="40px"></asp:TextBox>
            人</td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> 要求性别：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
              <asp:ListItem Selected="True">男</asp:ListItem>
              <asp:ListItem>女</asp:ListItem>
              <asp:ListItem Value="">不限</asp:ListItem>
            </asp:RadioButtonList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> 要求年龄：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:TextBox ID="TextBox2" runat="server" MaxLength="2" Width="50px">18 </asp:TextBox>
            岁—
            <asp:TextBox ID="TextBox3" runat="server" MaxLength="2" Width="50px">30</asp:TextBox>
            岁</td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> 专业要求：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:TextBox ID="TextBox4" runat="server" MaxLength="20"></asp:TextBox></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 学历要求：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:DropDownList ID="DropDownList2" runat="server">
              <asp:ListItem Value="不限">不限</asp:ListItem>
              <asp:ListItem>初中</asp:ListItem>
              <asp:ListItem>高中</asp:ListItem>
              <asp:ListItem>中技</asp:ListItem>
              <asp:ListItem>中专</asp:ListItem>
              <asp:ListItem>大专</asp:ListItem>
              <asp:ListItem>本科</asp:ListItem>
              <asp:ListItem>硕士</asp:ListItem>
              <asp:ListItem>博士</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 工作经验：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:DropDownList ID="DropDownList3" runat="server">
              <asp:ListItem Selected="True">不限</asp:ListItem>
              <asp:ListItem>应届生</asp:ListItem>
              <asp:ListItem>一年</asp:ListItem>
              <asp:ListItem>二年</asp:ListItem>
              <asp:ListItem>三年</asp:ListItem>
              <asp:ListItem>三年到五年</asp:ListItem>
              <asp:ListItem>五到十年</asp:ListItem>
              <asp:ListItem>十年以上</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 外语要求：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:DropDownList ID="DropDownList4" runat="server"> </asp:DropDownList>
            熟练度：
            <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
              <asp:ListItem Selected="True">一般</asp:ListItem>
              <asp:ListItem>良好</asp:ListItem>
              <asp:ListItem>优秀</asp:ListItem>
            </asp:RadioButtonList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 政治面貌：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:DropDownList ID="DropDownList5" runat="server">
              <asp:ListItem>中共党员</asp:ListItem>
              <asp:ListItem>共青团员</asp:ListItem>
              <asp:ListItem>群众</asp:ListItem>
              <asp:ListItem>民主党派</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 户口要求：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:TextBox ID="TextBox5" runat="server" MaxLength="20"></asp:TextBox>
            （注：不填表示不限户口）</td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> <span style="color: #ff0000">*</span>工作地区：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:Label ID="dq_Lable" runat="server" Text="Label" ForeColor="red"></asp:Label></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right">
              <div align="right"> 提供月薪：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px"><asp:DropDownList ID="DropDownList7" runat="server">
              <asp:ListItem Value="面议">面议</asp:ListItem>
              <asp:ListItem Value="500以下">500以下</asp:ListItem>
              <asp:ListItem>500-1000</asp:ListItem>
              <asp:ListItem>1000-2000</asp:ListItem>
              <asp:ListItem>2000-3000</asp:ListItem>
              <asp:ListItem>3000-5000</asp:ListItem>
              <asp:ListItem>5000-8000</asp:ListItem>
              <asp:ListItem>8000-10000</asp:ListItem>
              <asp:ListItem>10000-20000</asp:ListItem>
              <asp:ListItem>20000以上</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1" style="height: 11px"><div align="right">
              <div align="right"> 有效期限：</div>
            </div></td>
          <td class="tdbg2" style="width: 482px; height: 11px;"><asp:TextBox ID="TextBox6" runat="server" Width="46px"></asp:TextBox>
            天 <br />
            <span class="style4">*发布的有效天数直接决定扣除的点卡数，请合理的填写信息发布的天数</span></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>具体要求与待遇：</div></td>
          <td class="tdbg2" style="width: 482px"><asp:TextBox ID="TextBox7" runat="server" Height="138px" TextMode="MultiLine" Width="343px"></asp:TextBox></td>
        </tr>
      </table>
      <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
        <tr class='tdbg'>
          <td colspan="2" class="topbg2"><div align="center" class="Glow"> <strong>联系方式</strong></div></td>
        </tr>
        <tr class='tdbg'>
          <td width="23%" class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>联系人：</div></td>
          <td width="77%" class="tdbg2"><asp:TextBox ID="TextBox8" runat="server"></asp:TextBox></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>手机号码：</div></td>
          <td class="tdbg2"><asp:TextBox ID="TextBox9" runat="server"></asp:TextBox></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> <span style="color: #ff0000"></span>电子邮箱：</div></td>
          <td class="tdbg2"><asp:TextBox ID="TextBox10" runat="server"></asp:TextBox></td>
        </tr>
        <tr class='tdbg'>
          <td class="tdbg1"><div align="right"> <span style="color: #ff0000">*</span>联系地址：</div></td>
          <td class="tdbg2"><asp:TextBox ID="TextBox11" runat="server"></asp:TextBox></td>
        </tr>
      </table>
      <table width="100%" border="0">
        <tr>
          <td><div align="center"> &nbsp;
              <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="提 交" />
              &nbsp;
              <label>
                <input type="reset" name="Submit2" value="重 置" />
                <br />
                <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label>
              </label>
            </div></td>
        </tr>
      </table>
      </asp:Panel>
  </div>
</form>
</body>
</html>
