<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.TelphoneRecord_TelRecord_Operate, V5Shop.Shop.Others" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!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>V5Shop</title>
    <link href="css/css.css" rel="stylesheet" type="text/css">
    <link href="css/control.css" rel="stylesheet" type="text/css">
    <link href="js/calendar-system.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>

    <script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div style="float: left; padding: 10px 20px; color: #000000; font-weight: bolder">
                <asp:Label ID="lblAdd" runat="server" Text="【来电记录添加】"></asp:Label>
                <asp:Label ID="lblEdit" runat="server" Text="【来电记录编辑】" Visible="False"></asp:Label>
                <a href="TelphoneRecord_TelRecord_Manage.aspx" title="返回来电速记列表">返回列表</a>
            </div>
        </div>
        <div>
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
                <tr class="FFtr">
                    <td align="right" style="width: 20%;">
                        <asp:Label ID="lblTitle" runat="server" Text="问题标题："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtTitle" runat="server" Width="300px" MaxLength="250"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle"
                            runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr class="F7tr">
                    <td align="right">
                        <asp:Label ID="lblAuthor" runat="server" Text="来电人姓名："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtUser" runat="server" MaxLength="50"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtUser"
                            runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr class="FFtr">
                    <td align="right">
                        <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="来电号码" ImageURL="images/help.gif"
                            Text="来电人的电话号码。可以是坐机或手机号码，方便您与客及时联系" />
                        <asp:Label ID="lblTelphone" runat="server" Text="来电号码："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtTelphone" runat="server" MaxLength="150" Width="300px"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtTelphone"
                            ErrorMessage="不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr class="F7tr">
                    <td align="right">
                        <asp:Label ID="lblDate" runat="server" Text="来电时间："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtDate" runat="server" Enabled="False" Width="200px"></asp:TextBox>
                        <asp:Button ID="btnGetTime" runat="server" CausesValidation="False" OnClick="btnGetTime_Click"
                            Text="..." CssClass="button" /><span class="NeedMsg"></span></td>
                </tr>
                <tr class="FFtr">
                    <td align="right" style="height: 40px">
                        <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="问题内容" ImageURL="images/help.gif"
                            Text="来电人的问题描述。如咨询产品、建议、问题问题反馈等。" />
                        <asp:Label ID="lblContent" runat="server" Text="问题内容："></asp:Label>
                    </td>
                    <td align="left" style="height: 40px">
                        <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Height="80px" Width="300px"
                            MaxLength="250"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtContent"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtContent"
                            Display="Dynamic" ErrorMessage="长度必须在250字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr class="F7tr">
                    <td align="right" style="height: 24px">
                        <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="接待人姓名" ImageURL="images/help.gif"
                            Text="第一次接来电人电话的姓名。默认为管理员登录帐号" />
                        <asp:Label ID="lblAdminUser" runat="server" Text="接待人姓名："></asp:Label>
                    </td>
                    <td align="left" style="height: 24px">
                        <asp:TextBox ID="txtListenUser" runat="server" Enabled="false" MaxLength="50"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtListenUser"
                            runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr class="FFtr">
                    <td align="right">
                        <asp:Label ID="lblRemark" runat="server" Text="说明："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtRemark" runat="server" Columns="20" Height="80px" TextMode="MultiLine"
                            Width="300px" MaxLength="250"></asp:TextBox>
                        <span class="NeedMsg">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtRemark"
                            runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtRemark"
                            Display="Dynamic" ErrorMessage="长度必须在250字以内" ValidationExpression="^[\s\S]{0,250}$"></asp:RegularExpressionValidator></td>
                </tr>
                <tr class="F7tr">
                    <td align="right">
                        <asp:Label ID="lblDealStatus" runat="server" Text="处理状态："></asp:Label>
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlDealStatus" runat="server">
                        </asp:DropDownList><span class="NeedMsg"></span>
                    </td>
                </tr>
                <tr>
                    <td height="30" align="right">
                    </td>
                    <td align="left">
                        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" class="button" />
                        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False"
                            class="button" />
                        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                        <input id="Button1" runat="server" type="button" value="返回列表" onclick="window.location.href='TelphoneRecord_TelRecord_Manage.aspx'"
                            class="button" />
                    </td>
                </tr>
            </table>
        </div>

        <script type="text/javascript">
       //加TABLE样式
       InitTrClass();
       //加载日期控件
        Calendar.setup({
	        inputField     :    "txtDate",
	        ifFormat       :    "%Y-%m-%d", 
	        button         :    "sltdate",
	        align          :    "Br",
	        singleClick    :    true
        });
        </script>

        <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>
