<%@ page language="C#" autoeventwireup="true" inherits="Plan_PlanInfoEFRM, App_Web_dy1ncacz" theme="Themes" stylesheettheme="Themes" %>

<!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">
    <title></title>
    <link rel="stylesheet" href="../css/form-field-tooltip.css" media="screen" type="text/css" />

    <script type="text/javascript" src="../js/rounded-corners.js"></script>

    <script type="text/javascript" src="../js/form-field-tooltip.js"></script>

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

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

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

    <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>
     <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="r_top_box margintop5">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="right">
                            <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" ValidationGroup="save" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <table border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            计划类型:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <asp:DropDownList ID="ddlPlanType" runat="server">
                            </asp:DropDownList>
                            <font color="red">*</font>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlPlanType"
                                ErrorMessage="请选择计划类型" ValidationGroup="save" InitialValue="0"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            计划名称:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <asp:TextBox ID="txtPlanName" runat="server" Width="345px" MaxLength="25"></asp:TextBox><font
                                color="red"> *</font><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                    ControlToValidate="txtPlanName" ErrorMessage="请填写计划名称" ValidationGroup="save"></asp:RequiredFieldValidator>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            计划描述:<br />
                            (培训目的限100字)
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <asp:TextBox ID="txtDescrip" runat="server" Width="349px" Height="64px" TextMode="MultiLine"
                                MaxLength="200"></asp:TextBox><font color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            开始时间:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <input id="txtBeginTime" name="txtBeginTime" class="Wdate" runat="server" type="text"
                                onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                            <asp:Image ID="Image3" runat="server" ImageUrl="../images/helpnew.gif" CssClass="img_style"
                                tooltipText="提示：如果您需要计划不受时间限制，请不设置开始和结束时间。" Height="16px" Width="16px" />
                            <%--<input onselectstart="return false;" onkeypress="return false" id="txtBeginTime" tooltipText="提示：如果您需要计划不受时间限制，请不设置开始和结束时间。"
                                    onfocus="setday(this)" readonly type="text" size="25" name="txtBeginTime" class="txt"
                                    runat="server" style="width: 75px">--%><font color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            结束时间:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <input id="txtEndTime" name="txtEndTime" class="Wdate" runat="server" type="text"
                                onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                            <asp:Image ID="Image1" runat="server" ImageUrl="../images/helpnew.gif" CssClass="img_style"
                                tooltipText="提示：如果您需要计划不受时间限制，请不设置开始和结束时间。" Height="16px" Width="16px" />
                            <%--<input onselectstart="return false;" onkeypress="return false" id="txtEndTime" onfocus="setday(this)" tooltipText="提示：如果您需要计划不受时间限制，请不设置开始和结束时间。"
                                    readonly type="text" size="25" name="txtEndTime" class="txt" runat="server"
                                    style="width: 75px">--%><font color="red">*</font>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            是否允许申请:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:RadioButtonList ID="rblIsCanApply" runat="server" RepeatDirection="Horizontal">
                                        </asp:RadioButtonList>
                                    </td>
                                    <td>
                                        <asp:Image ID="Image2" runat="server" ImageUrl="../images/helpnew.gif" CssClass="img_style"
                                            tooltipText="提示：该设置是指是否允许没有分配该计划的学员申请学习该计划（申请后需管理员审批）。" Height="16px" Width="16px" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                            申请人数上限:
                        </td>
                        <td bgcolor="#ffffff" height="25" width="*" align="left">
                            <asp:TextBox ID="txtApplyNum" runat="server" Width="345px" MaxLength="5" Text="0"></asp:TextBox><font
                                color="red"> *</font>
                            <asp:Image ID="Image4" runat="server" ImageUrl="../images/helpnew.gif" CssClass="img_style"
                                tooltipText="提示：如果需要不限制申请人数请填写0。" Height="16px" Width="16px" />
                        </td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtApplyNum"
                            ErrorMessage="请填写申请人数上限" ValidationGroup="save"></asp:RequiredFieldValidator>
                    </tr>
        </tr>
        <tr>
            <td bgcolor="#ffffff" height="25" align="right" class="td01" style="width: 15%">
                使用状态:
            </td>
            <td bgcolor="#ffffff" height="25" width="*" align="left">
                <asp:RadioButtonList ID="rblState" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
                    OnSelectedIndexChanged="rblState_SelectedIndexChanged">
                </asp:RadioButtonList>
            </td>
        </tr>
    </table>
    </td> </tr></table>
    </form>

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            ValidatorPlan();
        });
        function ValidatorPlan() {
            $('#<%= txtPlanName.ClientID %>').textlimit(50);
            $('#<%= txtDescrip.ClientID %>').textlimit(100);
            $('#<%= txtApplyNum.ClientID %>').onlypressInt();
        }
    </script>

    <script type="text/javascript">
	
　　        var tooltipObj = new DHTMLgoodies_formTooltip();
        tooltipObj.setTooltipWidth('240');
        tooltipObj.setTooltipPosition('right');
        tooltipObj.setPageBgColor('#EEE');
        tooltipObj.setCloseMessage('');
        tooltipObj.initFormFieldTooltip();

    </script>

</body>
</html>
