<%@ Import Namespace="SWTraining" %>

<%@ Page Language="c#" CodeBehind="PostPotential.aspx.cs" AutoEventWireup="True"
    Inherits="SWTraining.ConsultManage.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="linkStyle" runat="server" href="../Themes/Blue/css.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 onload="OldStudent();">
    <form id="Form1" method="post" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="divpanel">
        <table class="table" cellspacing="0">
            <tr>
                <th colspan="2" height="25">
                    学员咨询
                </th>
            </tr>
            <tr>
                <td width="112">
                    姓名：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxPotentialName" runat="server" Width="149px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    性别：
                </td>
                <td style="height: 11px" width="813">
                    <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 width="112">
                    称呼：
                </td>
                <td>
                    <asp:TextBox ID="tbxAppellation" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    出生：
                </td>
                <td style="height: 15px" width="67%">
                    <asp:TextBox ID="tbxBirthday" runat="server"></asp:TextBox>
                    <script type="text/javascript">                        Calendar("tbxBirthday");</script>
                </td>
            </tr>
            <tr>
                <td width="112">
                    老学员：
                </td>
                <td>
                    <asp:DropDownList ID="ddlOldStudent" runat="server">
                        <asp:ListItem Value="0">否</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                    </asp:DropDownList>
                    <span id="spanStudentID">学号：<asp:TextBox ID="tbxStudentID" runat="server" Width="95px"></asp:TextBox>
                    </span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    校区：
                </td>
                <td>
                    <asp:DropDownList ID="ddlSchool" runat="server" DataTextField="SchoolName" DataValueField="SchoolID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    咨询时间：
                </td>
                <td>
                    <asp:TextBox ID="tbxDateAndTime" runat="server" Width="144px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="125">
                    课程：
                </td>
                <td width="702">
                    <asp:DropDownList ID="ddlCourse" DataTextField="CourseName" DataValueField="CourseID"
                        runat="server">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="125">
                    上课规律：
                </td>
                <td width="702">
                    <div style="float: left">
                    </div>
                    <div style="float: left">
                        <asp:TextBox ID="tbxTimeRule" runat="server" Width="274px"></asp:TextBox></div>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    电话：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxTel" runat="server" Width="141px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 27px">
                    手机：
                </td>
                <td width="823" style="height: 27px">
                    <asp:TextBox ID="tbxMobileTel" runat="server" Width="141px"></asp:TextBox>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话1：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel1" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话2：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel2" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    其它电话3：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxTel3" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    QQ：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxQQ" runat="server" Width="141px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%" style="height: 26px">
                    电子邮箱：
                </td>
                <td width="823" style="height: 26px">
                    <asp:TextBox ID="tbxEmail" runat="server" Width="274px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    地址：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxHomeAddress" runat="server" Width="285px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    邮编：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxPostCode" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="13%">
                    原学校：
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxSchool" runat="server" Width="185px"></asp:TextBox>
                    年级：<asp:TextBox ID="tbxGrade" runat="server" Width="84px"></asp:TextBox>
                    班级：<asp:TextBox ID="tbxClass" runat="server" Width="79px"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c1">
                <td width="13%">
                    <asp:Label ID="labCustom1" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c2">
                <td width="13%">
                    <asp:Label ID="labCustom2" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom2" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c3">
                <td width="13%">
                    <asp:Label ID="labCustom3" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom3" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c4">
                <td width="13%">
                    <asp:Label ID="labCustom4" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom4" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr runat="server" id="c5">
                <td width="13%">
                    <asp:Label ID="labCustom5" runat="server"></asp:Label>
                </td>
                <td width="823">
                    <asp:TextBox ID="tbxCustom5" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    获知广告方式：
                </td>
                <td width="813">
                    <asp:DropDownList ID="ddlMedia" runat="server" DataTextField="MediaName" DataValueField="MediaID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td style="height: 16px" width="112">
                    状态：
                </td>
                <td style="height: 16px" width="813">
                    <asp:DropDownList ID="ddlStatus" runat="server" DataTextField="StatusName" DataValueField="StatusID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                    备注：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxRemark" runat="server" Width="321px" Height="72px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    下次回访日期：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxNextReplyDate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    数据采集人：
                </td>
                <td width="813">
                    <asp:TextBox ID="tbxGatherers" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="112">
                    咨询顾问：
                </td>
                <td width="813">
                    <asp:DropDownList ID="ddlUser" runat="server" DataTextField="TrueName" DataValueField="UserID">
                    </asp:DropDownList>
                    <span style="color: Red">*</span>
                </td>
            </tr>
            <tr>
                <td width="112">
                </td>
                <td width="813">
                    <label class="lab_buttom">
                        <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click"></asp:Button>
                    </label>
                    <label class="lab_buttom">
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
    <!------usercol ajax-------->
    <asp:UpdatePanel ID="up" runat="server">
        <ContentTemplate>
            <uc1:Dictionary ID="Dictionary1" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <!-------usercol ajax------->
    </form>
</body>
</html>
