<%@ Import Namespace="MTCUN" %>
<%@ Register Src="../User_Col/col_Header.ascx" TagName="col_Header" TagPrefix="uc1" %>

<%@ Page Language="c#" CodeBehind="PostPotential.aspx.cs" AutoEventWireup="True"
    Inherits="MTCUN.Mobile.Consultant.PostPotential" Title="咨询信息-顾问管理" %>

<%@ Register Src="../../UserCol/Dictionary.ascx" TagName="Dictionary" TagPrefix="uc1" %>
<!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">
    <link id="mobileCss" runat="server" href="../themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <script type="text/javascript">
        function OldStudent() {
            var value = document.getElementById("ddlOldStudent").value;
            if (value == 0) {
                document.getElementById("spanStudentID").style.visibility = "hidden";
                document.getElementById("tbxStudentID").value = "";
            }
            else { document.getElementById("spanStudentID").style.visibility = "visible"; }
        }
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

        <uc1:col_Header ID="col_Header1" runat="server" />
        <div id="web_page_contents">
            <div class="biao_zhun_suo_jin">
                <div class="kuai_show">

                    <h1 style="text-align: center">学员咨询</h1>
                    <table class="table_simple_kuan" cellspacing="0">
                        <tr>
                            <th colspan="2"></th>
                        </tr>
                        <tr class="required">
                            <td style="width: 100px">姓名：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxPotentialName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>性别：
                            </td>
                            <td>
                                <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="0" Text="女"></asp:ListItem>
                                    <asp:ListItem Value="1" Text="男"></asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td>称呼：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxAppellation" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>空闲时间：</td>
                            <td>
                                <asp:TextBox ID="tbxFreeTimes" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>出生：
                            </td>
                            <td>
                                <div class="inline_block">
                                    <asp:TextBox ID="tbxBirthday" runat="server"></asp:TextBox></div>
                                <div class="inline_block">
                                    <script type="text/javascript">Calendar("tbxBirthday");</script>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>老学员：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlOldStudent" runat="server">
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                    <asp:ListItem Value="1">是</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td>隶属正式学员：</td>
                            <td>
                                <asp:TextBox ID="tbxStudentID" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>校区：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>咨询时间：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxDateAndTime" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>课程：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlCourse" DataTextField="CourseName" DataValueField="CourseID"
                                    runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>上课规律：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxTimeRule" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>电话：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxTel" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>手机：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxMobileTel" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>其它电话1：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxTel1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>其它电话2：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxTel2" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>其它电话3：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxTel3" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>QQ：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxQQ" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="display:none">
                            <td>微信号：</td>
                            <td>
                                <asp:TextBox ID="tbxWeiXin" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>电子邮箱：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxEmail" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>地址：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxHomeAddress" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>邮编：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxPostCode" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>原学校：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxSchool" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>年级：</td>
                            <td>
                                <asp:TextBox ID="tbxGrade" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>班级：</td>
                            <td>
                                <asp:TextBox ID="tbxClass" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>检测重复：
                            </td>
                            <td>
                                <div class="required">
                                
                                <asp:ListBox ID="lbxVMsg" runat="server"></asp:ListBox><br />
                                <label class="lab_button btn_width">
                                    <asp:Button ID="btnDetect" runat="server" OnClick="btnDetect_Click" Text="检测重复" />
                                </label>
                                <asp:Label ID="labDetectMsg" runat="server" ForeColor="Red"></asp:Label>(系统根据手机、电话、Email、QQ检查是否有重复信息)

                                </div>
                            </td>
                        </tr>
                        <tr runat="server" id="c1">
                            <td>
                                <asp:Label ID="labCustom1" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom1" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="c2">
                            <td>
                                <asp:Label ID="labCustom2" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom2" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="c3">
                            <td>
                                <asp:Label ID="labCustom3" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom3" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="c4">
                            <td>
                                <asp:Label ID="labCustom4" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom4" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr runat="server" id="c5">
                            <td>
                                <asp:Label ID="labCustom5" runat="server"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbxCustom5" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>获知广告方式：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlMedia" runat="server" DataTextField="MediaName" DataValueField="MediaID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>状态：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="StatusName" DataValueField="StatusID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>备注：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxRemark" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>下次回访日期：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxNextReplyDate" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>数据采集人：
                            </td>
                            <td>
                                <asp:TextBox ID="tbxGatherers" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr class="required">
                            <td>咨询顾问：
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                </div>

                <label class="lab_button_kuan" runat="server" id="labPost">
                    <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click"></asp:Button>
                </label>
                <label class="lab_button_kuan" id="__mt_labBack" runat="server">
                    <input causesvalidation="false" type="button" runat="server" onclick="back(this)" value="返回" />
                </label>
                <div class="divremark">
                (新增咨询时，点击“检测重复“后才能提交)
                </div>
            </div>
        </div>

        <!------usercol ajax-------->
        <asp:UpdatePanel ID="up" runat="server">
            <ContentTemplate>
                <uc1:Dictionary ID="Dictionary1" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <!-------usercol ajax------->
    </form>
</body>
</html>
