<%@ Import Namespace="SWTraining" %>

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

<!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/Orange/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">
    <div id="sw_content">
        <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="112">
                        老学员：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOldStudent" runat="server" Enabled="False">
                            <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">
                        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="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: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">
                        <asp:Button ID="btnPost" runat="server" Text="提交" OnClick="btnPost_Click"></asp:Button>
                        <input causesvalidation="false" type="button" runat="server" onclick="back()" value="返回" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
