<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="webXabara_study_Default" %>

<!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>管理教员信息<</title>
    <link href="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        body
        {
            margin: 8px 8px 0px 0px;
        }
    </style>
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    
    <script src="/js/all.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAll(e, itemname) {
            var aa = document.getElementsByName(itemname);
            if (aa == undefined) return;
            for (var i = 0; i < aa.length; i++) aa[i].checked = e.checked;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divWidth">
        <div class="titleBg">
            管理教员信息 
                            </div>
        <div class="height5px">
        </div>
        <div runat="server" id="listNews">
            <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="3600">
            </asp:ScriptManager>
            <div class="tableAdminLine" style="padding: 5px;">
                <div style="background-color: White; text-align: center;">
                    <div style="text-align: left; padding: 5px 0px 2px 5px;">
                        <ul style="line-height: 30px;">
                            <li>区域：<asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True"
                                RenderMode="Inline" UpdateMode="Conditional">
                                <ContentTemplate>
                                    <asp:DropDownList ID="ProvinceList" runat="server" CssClass="inputText" OnSelectedIndexChanged="ProvinceList_SelectedIndexChanged"
                                        AutoPostBack="true">
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="CityList" runat="server" CssClass="inputText" OnSelectedIndexChanged="cityList_SelectedIndexChanged"
                                        AutoPostBack="true">
                                        <asp:ListItem Selected="True" Value="">== 地级市==</asp:ListItem>
                                    </asp:DropDownList>
                                    <asp:DropDownList ID="areaList" runat="server" CssClass="inputText">
                                        <asp:ListItem Selected="True" Value="">== 县级市 ==</asp:ListItem>
                                    </asp:DropDownList>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                                科目：<asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers="True" RenderMode="Inline"
                                    UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:DropDownList ID="subject01" runat="server" CssClass="inputText" OnSelectedIndexChanged="subject01_SelectedIndexChanged"
                                            AutoPostBack="true">
                                        </asp:DropDownList>
                                        <asp:DropDownList ID="subject02" runat="server" CssClass="inputText">
                                            <asp:ListItem Selected="True" Value="">== 辅导课程 ==</asp:ListItem>
                                        </asp:DropDownList>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </li>
                            <li>性别：<asp:RadioButtonList ID="sexList" runat="server" RepeatDirection="Horizontal"
                                RepeatLayout="Flow">
                                <asp:ListItem>男</asp:ListItem>
                                <asp:ListItem>女</asp:ListItem>
                            </asp:RadioButtonList>
                                身份要求：<asp:DropDownList ID="teacherType" runat="server" CssClass="inputText">
                                    <asp:ListItem Selected="True" Value="">== 请选择 ==</asp:ListItem>
                                </asp:DropDownList>
                                希望授课方式：<asp:DropDownList ID="teachStudy" runat="server" CssClass="inputText">
                                    <asp:ListItem Selected="True" Value="">== 请选择 ==</asp:ListItem>
                                </asp:DropDownList>
                                关键词：<asp:TextBox ID="searchStr" runat="server" CssClass="inputText" 
                                    Width="120px"></asp:TextBox>
                                <asp:Button ID="searchButton" runat="server" Text="搜索过滤" CssClass="inputBottom" OnClick="searchButton_Click" />
                            &nbsp;<asp:Button ID="excel" 
                runat="server" Text="导出会员资料" CssClass="inputBottom" 
                onclick="excel_Click" />
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="height5px">
            </div>
            <asp:Repeater ID="sList" runat="server">
                <HeaderTemplate>
                <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableLine">
                <tr><td colspan="11" style="background-color:#b3e2ef;"></td></tr>
                </HeaderTemplate>
                <ItemTemplate>
                        <tr>
                            <td style="text-align: center;">
                                <%# Convert.ToInt16(Eval("workFlag").ToString().Trim())<3?Eval("tID","<input name=\"batDel\" type=\"checkbox\" value='{0}' />"):"" %>
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                编号 <%# Convert.ToDateTime(Eval("adBeginDate").ToString().Trim())>Convert.ToDateTime(Eval("postDate").ToString().Trim())? "<span style=\"color:red;\">推荐</span>":"" %>
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                姓名
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                性别
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                状态
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                目前身份
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                就读于
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                所学专业
                            </td>
                            <td class="tdTitle" style="text-align: center; width:20%;">
                                辅导科目
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                发布时间
                            </td>
                            <td class="tdTitle" style="text-align: center;"  title='<%# Eval("aboutME").ToString().Trim() + Eval("teachRoad").ToString().Trim() + Eval("studyTimeInfo").ToString().Trim() %>'>
                                操作
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align:center;">
                                <asp:Image ID="Image1" runat="server" ImageUrl='<%# faceImg(Eval("userImg").ToString().Trim()) %>' Height="30px" Width="30px" />
                            </td>
                            <td style="text-align:center;">
                                <%# cNums("t", Eval("id").ToString().Trim())%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("userName").ToString().Trim()%>
                            </td>
                            <td style="text-align:center;">
                                <%# Eval("userSex").ToString().Trim()%>
                            </td>
                            <td style="text-align:center;">
                                <%# getStudentInfo(Eval("workFlag").ToString().Trim())%>
                            </td>
                            <td style="text-align:center;">
                                <%# getTreeName(Eval("nowWork").ToString().Trim())%>
                            </td>
                            <td>
                                <%# Eval("studySchool").ToString().Trim()%>
                            </td>
                            <td>
                                <%# Eval("studyProfession").ToString().Trim()%>
                            </td>
                            <td>
                                <%# idsName(Eval("teachTypeID").ToString().Trim())%>
                            </td>
                            <td style="text-align:center;">
                                <%# Convert.ToDateTime(Eval("p").ToString().Trim()).ToString("yyyy-MM-dd")%>
                            </td>
                            <td style="text-align:center;">
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("tid","/teacher/view/{0}.htm").ToString().Trim() %>' Target="_blank" Font-Bold="true">查看</asp:HyperLink> <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("tid","edit.aspx?id={0}").ToString().Trim() %>' Font-Bold="true">修改</asp:HyperLink></td>
                        </tr>
                        <tr>
                            <td class="tdTitle" style="text-align: center;">
                                教/年龄
                            </td>
                            <td class="tdTitle" style="text-align: center;" colspan="3">
                                地址
                            </td>
                            <td class="tdTitle" style="text-align: center;" colspan="2">
                                工作区域
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                小班
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                可辅导方式
                            </td>
                            <td class="tdTitle" style="text-align: center;">
                                联系方式
                            </td>
                            <td colspan="2" class="tdTitle" style="text-align: center;">
                                薪水要求
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center; color: Blue;">
                                <%# Eval("teachAge").ToString().Trim()%> / <%# age(Eval("userBirthday").ToString().Trim()) %>
                            </td>
                            <td colspan="3">
                                <%# getPCA(Eval("userProvince").ToString().Trim(), Eval("userCity").ToString().Trim(), Eval("userArea").ToString().Trim())%><br /><%# Eval("userAdd").ToString().Trim()%>
                            </td>
                            <td colspan="2">
                                <%# getPCA(Eval("provinceID").ToString().Trim(), Eval("cityID").ToString().Trim(), Eval("areaID").ToString().Trim())%>
                            </td>
                            <td>
                                <%# "<span style='color:red;'>"+Eval("openClass").ToString().Trim()+"</span> "+ Eval("classNums").ToString().Trim().Substring(1, Eval("classNums").ToString().Trim().Length-2)%>
                            </td>
                            <td>
                                <%# idsName(Eval("teachStudyIDs").ToString().Trim())%>
                            </td>
                            <td style="text-align: center;">
                                <%# Eval("userMobile").ToString().Trim()+" "+ Eval("userTel").ToString().Trim()%>
                            </td>
                            <td colspan="2" style="text-align:center;">
                                <%# pay(Eval("payMoney").ToString().Trim(), Eval("payBit").ToString().Trim())%>
                            </td>
                        </tr>
                        <tr><td colspan="11" style="background-color:#b3e2ef;"></td></tr>
                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater>
        </div>
        <div class="height5px"></div>
        <div class="tableAdminLine" style="padding: 5px;" id="checkDiv" runat="server">
            <div style="background-color: White; text-align:center;">审核原因：<asp:TextBox ID="txtInfo" runat="server" CssClass="inputText" 
                    TextMode="MultiLine" Width="350px"></asp:TextBox></div>
            <div style="text-align: center; height: 36px; line-height: 36px; background-color: White;">
                全选<input name="chkall" value="1" type="checkbox" onclick="CheckAll(this,'batDel')" />
                &nbsp;<asp:Button 
                    ID="setTop" runat="server" Text="推荐教员" CssClass="inputBottom" OnClientClick="return confirm('确定推荐教员吗？');"
                    CausesValidation="False" onclick="setTop_Click" />&nbsp;<asp:Button 
                    ID="cancelTop" runat="server" Text="取消推荐" CssClass="inputBottom" OnClientClick="return confirm('确定取消推荐教员吗？');"
                    CausesValidation="False" onclick="cancelTop_Click"/>&nbsp;<asp:Button ID="batOK" runat="server" Text="通过" CssClass="inputBottom" OnClientClick="return confirm('确定通过吗？');"
                    OnClick="batOK_Click" CausesValidation="False" />&nbsp;<asp:Button ID="batDelete" runat="server" Text="不通过" CssClass="inputBottom" OnClientClick="return confirm('确定不通过吗？');"
                    OnClick="batDelete_Click" CausesValidation="False" />&nbsp;<asp:Button 
                    ID="batOrder" runat="server" Text="正在试讲" CssClass="inputBottom" 
                    OnClientClick="return confirm('确定教员为试教期吗？');" CausesValidation="False" 
                    onclick="batOrder_Click" />&nbsp;<asp:Button 
                    ID="okOrder" runat="server" Text="已预约" CssClass="inputBottom" 
                    OnClientClick="return confirm('确定教员为已被预约吗？');" CausesValidation="False" 
                    onclick="okOrder_Click" /></div>
        </div>
        <div id="errDiv" runat="server">
            <div style="height: 150px;">
            </div>
            <div style="text-align:center;">
                <asp:Label ID="errInfo" runat="server" ForeColor="#FF3300"></asp:Label></div>
            <div style="height: 150px;">
            </div>
        </div>
        <div class="height5px">
        </div>
        <div>
            <asp:Label ID="lblCurrentPage" runat="server"></asp:Label>
        </div>
    </div>
    </form>
</body>
</html>