<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add.aspx.cs" Inherits="member_teacher_add" %>
<%@ Register TagPrefix="myCheckBoxList" Namespace="CheckBoxListValidator" Assembly="CheckBoxListValidator" %>
<%@ Register Src="../../include/head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="../../include/bottom.ascx" TagName="bottom" TagPrefix="uc2" %>
<%@ Register Src="../user/left.ascx" TagName="left" TagPrefix="uc3" %>
<!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></title>
    <link href="../../InClude/style.css" rel="stylesheet" type="text/css" />
    <link href="../user/member.css" rel="stylesheet" type="text/css" />
    <link rel="Shortcut Icon" href="/Images/favicon.ico" />
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/all.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <uc1:head ID="head2" runat="server" />
        <div class="divWidth">
            <div class="divLeft" style="height: 36px; line-height: 36px;">
                <img src="../../images/home.gif" style="vertical-align: middle;" />&nbsp;<a href="/" target="_top">网站首页</a>&nbsp;-&nbsp;<a href="/member/" target="_top">会员中心</a>&nbsp;-&nbsp;做家教
            </div>
        </div>
        <div class="divWidth">
            <div class="divLeft" style="width: 170px; text-align: left;">
                <uc3:left ID="left1" runat="server" />
                <asp:ScriptManager ID="ScriptManager2" runat="server" AsyncPostBackTimeout="3600"></asp:ScriptManager>
            </div>
            <div class="divRight">
                <div class="userNavTitle" style="width: 786px;">
                    &nbsp;&nbsp;&nbsp;发布家教信息
                </div>
                <div class="userNavLRB" style="width: 786px;">
                <div style="padding:15px 25px 15px 25px; text-align:left;">
                    <ul>
                        <li style="background:url('/member/images/title_tips_bg.gif'); background-repeat:no-repeat; height:43px; line-height:38px; text-align:center; background-position:center; color:#1d61b5;">您的基本信息</li>
                        <li style="height:20px; font-size:0px;"></li>                        
                    <li>
                    <table style="width:100%;">
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;目前学历：</td>
                        <td style="padding:2px; width:72%;text-align:left;"> 
                            <asp:RadioButtonList ID="eduType" runat="server"  
                                RepeatColumns="5" RepeatDirection="Horizontal" CellPadding="3" 
                                CellSpacing="3" class="inputBlueTxt"></asp:RadioButtonList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" 
                                ControlToValidate="eduType" ErrorMessage="请选择学历，以证书为准" ForeColor="#FF3300" 
                                SetFocusOnError="True" ToolTip="请选择学历，以证书为准"></asp:RequiredFieldValidator>
                            </td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;目前身份：</td>
                        <td style="padding:2px; width:72%;text-align:left;"><asp:RadioButtonList ID="teacherType" runat="server"  
                                RepeatColumns="5" RepeatDirection="Horizontal" CellPadding="3" CellSpacing="3" class="inputBlueTxt"></asp:RadioButtonList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" 
                                ControlToValidate="teacherType" ErrorMessage="请如实填写！以工作证或聘书为准" 
                                ForeColor="#FF3300" SetFocusOnError="True" ToolTip="请如实填写！以工作证或聘书为准"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>                    
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>任教区域：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True" RenderMode="Inline" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:DropDownList ID="ProvinceList" runat="server" CssClass="inputBlueTxt" 
                        onselectedindexchanged="ProvinceList_SelectedIndexChanged" AutoPostBack="true">
                                    </asp:DropDownList> 
                        <asp:DropDownList ID="CityList" 
                        runat="server" CssClass="inputBlueTxt" onselectedindexchanged="cityList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                        <asp:DropDownList ID="areaList" 
                        runat="server" CssClass="inputBlueTxt"></asp:DropDownList>
                    </ContentTemplate>
                    </asp:UpdatePanel>                    
                    <asp:RequiredFieldValidator  SetFocusOnError="True"  ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="areaList" ErrorMessage="请选择区域" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;就读于：</td>
                        <td style="padding:2px; width:72%;text-align:left;"> 
                            <asp:TextBox ID="school" runat="server" CssClass="inputBlueTxt" Width="200px" 
                        MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" 
                                ControlToValidate="school" ErrorMessage="请以全称填写学校名称，以证书为准" 
                                ForeColor="#FF3300" SetFocusOnError="True" ToolTip="请以全称填写学校名称，以证书为准"></asp:RequiredFieldValidator>
                        </td>
                    </tr>                  
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;所学专业：</td>
                        <td style="padding:2px; width:72%;text-align:left;"> 
                            <asp:TextBox ID="studyProfession" runat="server" CssClass="inputBlueTxt" Width="200px" 
                        MaxLength="50"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" 
                                ControlToValidate="school" ErrorMessage="请以全称填写专业名称，以证书为准" 
                                ForeColor="#FF3300" SetFocusOnError="True" ToolTip="请以全称填写专业名称，以证书为准"></asp:RequiredFieldValidator>
                        </td>
                    </tr>   
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;教龄：</td>
                        <td style="padding:2px; width:72%;text-align:left;"> 
                            <asp:DropDownList ID="teachAge" runat="server" CssClass="inputText">
                            </asp:DropDownList><asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator27" runat="server" 
                                ControlToValidate="teachAge" ErrorMessage="以学生证/教师证为准" 
                                ForeColor="#FF3300" SetFocusOnError="True" ToolTip="以学生证/教师证为准"></asp:RequiredFieldValidator>
                            </td>
                    </tr> 
                    </table>
                </li>
                <li style="background:url('/member/images/title_tips_bg.gif'); background-repeat:no-repeat; height:43px; line-height:38px; text-align:center; background-position:center; color:#1d61b5;">
                            您的家教信息
                        </li>
                <li>
                 <table style="width:100%;">                    
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;可授科目与目的：</td>
                        <td style="padding:2px; width:72%;text-align:left;"><asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers="True" RenderMode="Inline" UpdateMode="Conditional">
                    <ContentTemplate>
                            <asp:ListBox ID="gradeList" runat="server" CssClass="inputBlueTxt" AutoPostBack="True" 
                                 onselectedindexchanged="gradeList_SelectedIndexChanged" Rows="11" style="cursor:pointer;"></asp:ListBox>
                                <asp:ListBox ID="gradeCheck" runat="server" AutoPostBack="True" 
                                    CssClass="inputBlueTxt" onselectedindexchanged="gradeCheck_SelectedIndexChanged" 
                                    Rows="11" style="cursor:pointer;" ToolTip="请选择其中一项"></asp:ListBox>
                                <asp:ListBox ID="gradeCheckValue" runat="server"
                                    CssClass="inputRed" Rows="11" AutoPostBack="True" 
                                    onselectedindexchanged="gradeCheckValue_SelectedIndexChanged" 
                                    style="cursor:pointer;" ToolTip="点击一个即删除">
                                </asp:ListBox>
                            </ContentTemplate>
                    </asp:UpdatePanel></td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;">&nbsp;</td>
                        <td style="padding:2px; width:72%;text-align:left; color:Red;">
                            注：第三栏为最终选择，除非执行删除不需要的分类，否则请不要再次点击！</td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;您是否具备开小班的条件和能力：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:RadioButtonList ID="classBool" runat="server" CellPadding="2" 
                                CellSpacing="2" RepeatDirection="Horizontal" RepeatLayout="Flow">
                                <asp:ListItem>是</asp:ListItem>
                                <asp:ListItem>否</asp:ListItem>
                            </asp:RadioButtonList>                           
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator28" runat="server" 
                                ErrorMessage="请选择其中一项" ControlToValidate="classBool" ForeColor="#FF3300" 
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr id="classSelect" runat="server">
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;小班规模：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:CheckBoxList ID="classSize" runat="server" class="inputBlueTxt" CellPadding="3" 
                                CellSpacing="3" RepeatColumns="7" RepeatDirection="Horizontal">
                                <asp:ListItem Selected="True">1-5人</asp:ListItem>
                                <asp:ListItem>5-10人</asp:ListItem>
                                <asp:ListItem>10-15人</asp:ListItem>
                                <asp:ListItem>15-20人</asp:ListItem>
                                <asp:ListItem>20-30人</asp:ListItem>
                                <asp:ListItem>全托</asp:ListItem>
                            </asp:CheckBoxList>
                            <myCheckBoxList:CheckBoxListRequiredFieldValidator ID="CheckBoxListRequiredFieldValidator3" 
                                ControlToValidate="classSize" runat="server" EnableClientScript="true" 
                                ErrorMessage="至少选择一项小班规模" ForeColor="#ff3300" Display="Dynamic" 
                                SetFocusOnError="True"></myCheckBoxList:CheckBoxListRequiredFieldValidator>
                            </td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;自我描述及特长展示：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:TextBox ID="myStudy" 
                                runat="server" CssClass="inputBlueTxt" Width="400px" Height="120px" 
                                TextMode="MultiLine"></asp:TextBox>
                            <br />展示实力，增加你的魅力！比如你竞赛中获得过什么奖项，取得过什么出色的成绩，有哪些过硬的证书之类 
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator29" runat="server" 
                                ErrorMessage="请填写特长等信息" ControlToValidate="myStudy" ForeColor="#FF3300" 
                                SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;可授课区域及详细描述：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:TextBox ID="teachArea" 
                                runat="server" CssClass="inputBlueTxt" Width="400px" Height="120px" 
                                TextMode="MultiLine"></asp:TextBox><br />您可以参考以下写法：(1)区域，如： 浙江大学附近、朝阳区。(2)公交沿线，如：13、102、108、52路【请不要使用空格，尽量使用逗号来代替("，")】<asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator30" runat="server" 
                                ErrorMessage="请填写可授课区域等信息" ControlToValidate="teachArea" 
                                ForeColor="#FF3300" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </td>
                    </tr>                    
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;可辅导方式：</td>
                        <td style="padding:2px; width:72%;text-align:left;"><asp:CheckBoxList ID="teachStudy" runat="server" RepeatDirection="Horizontal" 
                                RepeatLayout="Flow">
                            </asp:CheckBoxList>
                            <myCheckBoxList:CheckBoxListRequiredFieldValidator ID="CheckBoxListRequiredFieldValidator2" 
                                ControlToValidate="teachStudy" runat="server" EnableClientScript="true" 
                                ErrorMessage="至少选择一项授课方式" ForeColor="#ff3300" Display="Dynamic" 
                                SetFocusOnError="True"></myCheckBoxList:CheckBoxListRequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;可授课时间：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:CheckBoxList ID="studyTime" runat="server" class="inputBlueTxt" CellPadding="3" 
                                CellSpacing="3" RepeatColumns="7" RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                            <myCheckBoxList:CheckBoxListRequiredFieldValidator ID="CheckBoxListRequiredFieldValidator1" 
                                ControlToValidate="studyTime" runat="server" EnableClientScript="true" 
                                ErrorMessage="至少选择一项学习时间" ForeColor="#ff3300" Display="Dynamic" 
                                SetFocusOnError="True"></myCheckBoxList:CheckBoxListRequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;">授课补充说明：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:TextBox ID="studyAbout" 
                                runat="server" CssClass="inputBlueTxt" Width="400px" Height="60px" 
                                TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                </table>
                </li>
                <li>
                 <table style="width:100%;">                    
                    <tr>
                        <td style="padding:2px; width:28%;text-align:right;"><span class="red">*</span>&nbsp;薪水要求：</td>
                        <td style="padding:2px; width:72%;text-align:left;">
                            <asp:TextBox ID="payMoney" 
                                runat="server" CssClass="inputText" Width="50px" 
                        MaxLength="20">0</asp:TextBox>
                        &nbsp;元人民币<asp:DropDownList ID="payBit" runat="server" 
                                CssClass="inputBlueTxt">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator  SetFocusOnError="True"  
                                ID="RequiredFieldValidator21" runat="server" 
                        ControlToValidate="payMoney" ErrorMessage="*" ForeColor="#FF3300"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="payRegularExpressionValidator" 
                                runat="server" ControlToValidate="payMoney" ForeColor="#FF3300" 
                                SetFocusOnError="True"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                                    <td style="padding: 2px; width: 28%; text-align: right;">
                                        &nbsp;</td>
                                    <td style="padding: 2px; width: 72%; text-align: left;">
                                        <asp:Button ID="postButton" runat="server" Text="确认提交" CssClass="bottonTxt" 
                                            OnClick="postButton_Click" />
                                    </td>
                                </tr>                   
                    </table>
                </li>                
                </ul>                  
                </div>
            </div>
        </div>
    </div>    

    <div class="height10px"></div>
    <uc2:bottom ID="bottom1" runat="server" />    
    </form>
</body>
</html>
