<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.Admin_Admin_searchPerson"
    Codebehind="Admin_searchPerson.aspx.cs" %>

<!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 runat="server">
    <title>
        <%=Application["PageTitle"]%>
    </title>
    <link href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script src="../MyITJob.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
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">
        <div>
            <asp:Panel ID="Manage" runat="server">
            <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>
                <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") %>&pic=<%=q("pic") %>"><%=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 pic) {%>
                    <a <%= d.id == q("pic") ? "class='dhcss'":"" %> href="?pic=<%=d.id %>&day=<%=q("day") %>&type=<%=q("type") %>"><%=d.name %></a>
                  <%} %>
                  </td>
                </tr>
                <tr class="tdbg">
                  <td width='99' height='30'><strong>服务到期：</strong></td>
                  <td class="dh">
                  <%foreach (ClassLibrary1.strClass.dhClass d in dh2) {%>
                    <a <%= d.id == q("day") ? "class='dhcss'":"" %> href="?day=<%=d.id %>&type=<%=q("type") %>&pic=<%=q("pic") %>"><%=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='topbg'>
                        <td width="5%" align='center'><strong class="Glow">选中</strong></td>
                        <td width="11%" align='center'><strong class="Glow">登录名</strong></td>
                        <td width="9%" align='center'>
                            <strong class="Glow">真实姓名</strong></td>
                        <td width="5%" align='center'>
                            <strong class="Glow">性别</strong></td>
                        <td width="6%" align='center'>
                            <strong class="Glow">学历</strong></td>
                        <td width="13%">
                            <strong class="Glow">所学专业</strong></td>
                        <td width="11%" align='center'>
                          <strong class="Glow">服务时间</strong></td>
                        <td width="10%" align='center'>
                            <strong class="Glow">联系方式</strong></td>
                        <td width="9%" align='center'>
                            <strong class="Glow">QQ联系方式</strong></td>
                        <td width="8%" 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 align='center'><label>
                                  <input type="checkbox" name="checkbox" id="checkbox" value='<%#Eval("id") %>' />
                                </label></td>
                                <td align='center'><a href='../Person_LookAll.aspx?id=<%#Eval("id") %>' target="_blank"><%#Eval("pname") %></a><br />
                                    <a href="?pn=<%#Server.UrlEncode(Eval("pname").ToString()) %>&Action=dl">【代理登陆】</a></td>
                                <td align='center'>
                                    <a href='../Person_LookAll.aspx?id=<%#Eval("id") %>' target="_blank"><%#Eval("realname") %></a><br />
                                    <a href="#" onclick="window.open('?id=<%#Eval("id") %>&Action=mb','newwindow', 'height=540, width=500, toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=no, status=no')">【修改模板】</a>
                                </td>
                                <td align='center'>
                                    <%#Eval("sex") %>
                                </td>
                              <td align='center'>
                                    <%#Eval("studylevel") %>
                                </td>
                                <td>
                                    <%#Eval("study") %>
                                </td>
                                <td align='center'>
                                    <%#Eval("addtime")%>
                              </td>
                                <td align='center'>
                                    <%#Eval("mobile")%><br />[<a href="http://www.workyi.com/sms/SendMsg.aspx?mobile=<%#Eval("mobile")%>" target="_blank">发短信</a>]
                                </td>
                              <td align='center'>
                                    <%#RP1_qq() %></td>
                              <td align='center'>
							  <div id="sure<%#Eval("id")%>" class="YnEnter"><a href="?Action=status&pn=<%#Server.UrlEncode(Eval("pname").ToString()) %>&sure=0">普通用户</a> <a href="?Action=status&pn=<%#Server.UrlEncode(Eval("pname").ToString()) %>&sure=1">高级用户</a> </div>
                                    <a href="###" onclick="YnEnterDiv('sure<%#Eval("id") %>')"><%# Eval("status").ToString() == "【申请中】" ? "<b>【申请中】</b>" : Eval("status") + "用户"%></a><br /><%#PersonLogo() %>
                              </td>
                                <td align="center">
                                    <a href="?Action=EditMessage&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="smsSendAll" runat="server" Text="批量发送短信" onclick="smsSendAll_Click" />
                  <asp:Button ID="del_button" runat="server" Text="删 除" OnClick="del_button_Click" />                
              </div>
                <div id="paging" runat="server"></div>
                <br />
            </asp:Panel>
            <asp:Panel ID="EditPwd" runat="server" Visible="false">
                <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            注册ID：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            用户姓名：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            用户手机：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="15%" class="tdbg2" align="right">
                            身份证号码：</td>
                        <td width="85%" valign="top">
                            &nbsp;<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg2" align="right">
                            新密码：</td>
                        <td>
                            &nbsp;<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg2" align="right">
                            确认新密码：
                        </td>
                        <td>
                            &nbsp;<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次密码不符"
                                ControlToCompare="TextBox1" ControlToValidate="TextBox2"></asp:CompareValidator></td>
                    </tr>
                    <tr class='tdbg'>
                        <td colspan="2" align="right">
                            <div align="center">
                                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修改" />
                                <input type="reset" name="Submit" value="重置" />
                            </div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="EditMessage" runat="server" Visible="false">
                <table width='100%' border='0' align='center' cellpadding='2' cellspacing='1' class='border'>
                    <tr class='tdbg'>
                        <td colspan="3" class="topbg2">
                            <div align="center" class="Glow">
                                <strong>个人基本资料</strong></div>
                        </td>
                    </tr>
                    <tr class='tdbg'>
                        <td width="264" class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>真实姓名：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox3" runat="server" MaxLength="8" Width="200px"></asp:TextBox><input name="input_pname" value="<%=pname %>" type="hidden" /> </td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                性别：</div>
                        </td>
                        <td class="tdbg2">
                            <asp:RadioButtonList ID="RadioButtonList3" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                <asp:ListItem Selected="True">男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                            </asp:RadioButtonList></td>
                            <td>身高：
                                <input type="text" id="shengao_txt" runat="server" maxlength="4" style="width:50px;" />CM</td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>出生年月：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox4" runat="server" MaxLength="10" Width="146px"></asp:TextBox>
                            填写格式为：1900-1-1</td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                目前身份：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:RadioButtonList ID="RadioButtonList1" 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">
                                <span style="color: #ff0000">*</span>户籍：</div>
                        </td>
                        <td width="144" class="tdbg2">
                            <asp:TextBox ID="TextBox19" runat="server" MaxLength="16"></asp:TextBox>
                        </td>
                        <td width="615" class="tdbg2">
                            <span style="color: #ff0000">*</span>现居地：
                            <asp:TextBox ID="TextBox20" runat="server" MaxLength="16"></asp:TextBox>
                            <br />
                        </td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>身份证号码：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox5" runat="server" MaxLength="25"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox5"
                                ErrorMessage="身份证输入有问题，请确认后再输入" ValidationExpression="\d{17}[\d|X]|\d{15,18}"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                民族：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox6" runat="server" MaxLength="4"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                政治面貌：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox7" runat="server" MaxLength="4"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                所学专业：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox18" runat="server" MaxLength="10"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                最高学历：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <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>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:DropDownList ID="DropDownList2" runat="server">
                            </asp:DropDownList></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                语言等级：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:RadioButtonList ID="RadioButtonList2" 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>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox8_1" runat="server" MaxLength="30"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>教育经历：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox9" runat="server" Height="100px" Width="400px" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <span class="style4">如：2002年09月至2006年06月 &nbsp;怀化学院 &nbsp;自学考试本科经济法</span></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                能力与专长：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <span class="tdbg2"><span class="style4">
                                <asp:TextBox ID="TextBox8" runat="server" Height="90px" TextMode="MultiLine" Width="401px"></asp:TextBox>
                            </span></span>
                        </td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                工作经验：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox10" runat="server" MaxLength="2" Width="38px"></asp:TextBox>
                            年</td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>工作经历：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox11" runat="server" Height="100px" Width="400px" TextMode="MultiLine"></asp:TextBox>
                            <br />
                            <span class="style4">如：2004年05月至2005年01月 &nbsp; 湖南省怀化市铁一中</span></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                <span style="color: #ff0000">*</span>个人简介：</div>
                        </td>
                        <td colspan="2" class="tdbg2">
                            <asp:TextBox ID="TextBox9_1" runat="server" Height="100px" TextMode="MultiLine" Width="400px"></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="TextBox12" runat="server" MaxLength="20" Width="241px"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                邮编编码：</div>
                        </td>
                        <td class="tdbg2">
                            <asp:TextBox ID="TextBox13" runat="server" MaxLength="10"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                座机号码：</div>
                        </td>
                        <td class="tdbg2">
                            <asp:TextBox ID="TextBox14" 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="TextBox15" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                QQ号码：</div>
                        </td>
                        <td class="tdbg2">
                            <asp:TextBox ID="TextBox16" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr class='tdbg'>
                        <td class="tdbg1">
                            <div align="right">
                                电子邮箱：</div>
                        </td>
                        <td class="tdbg2">
                            <asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox17"
                                ErrorMessage="格式错误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                    </tr>
                </table>
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <div align="center">
                                &nbsp;<asp:Button ID="Button1" runat="server" Text="修 改" OnClick="Button1_Click" />&nbsp;
                                <label>
                                    <input type="reset" name="Submit2" value="重 置" />
                                </label>
                            </div>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            
            <asp:Panel ID="mb" runat="server" Visible="false">
            <div align="center" class="Glow topbg2"><strong>模板选择</strong></div>
                <asp:RadioButtonList ID="mbRBL" runat="server" RepeatColumns="2" AutoPostBack="true">
                <asp:ListItem Value="0">默认&lt;img src=&quot;../aspxTemplate/images/mb/person0.jpg&quot; align=&quot;absmiddle&quot; /&gt;</asp:ListItem>
                <asp:ListItem Value="1">皮肤1&lt;img src=&quot;../aspxTemplate/images/mb/person1.jpg&quot; align=&quot;absmiddle&quot; /&gt;</asp:ListItem>
                </asp:RadioButtonList>
            </asp:Panel>
        </div>
    </form>
    <table width="100%" border="0" cellspacing="1" cellpadding="3">
        <tr>
            <td class="topbg">
                <div align="center">
                    Copyright 2009-2019 
                    <%=Application["PageTitle"] %>
                    All Rights Reserved.</div>
            </td>
        </tr>
    </table>
</body>
</html>
