<%@ page language="C#" autoeventwireup="true" inherits="Course_CourseAdjunctEFRM, App_Web_vzflj4p3" stylesheettheme="Themes" theme="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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

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

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

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

    <script type="text/javascript" src="../Js/InterfaceContrl.js"></script>
</head>
<body>
    <form id="form1" runat="server">
      <div class="box">
        <table width="100%" cellpadding="5" cellspacing="0" bgcolor="white">
            <tr>
                <td align="right">
                    <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                    <asp:Button ID="btnReturn" runat="server" Text="返回" OnClick="btnReturn_Click" 
                        Visible="False" />
                </td>
            </tr>
        </table>
    </div>
    <div class="box_nob">
        <table border="0" cellpadding="5" cellspacing="1" width="100%" class="table_notitle">
            <tr>
                <td bgcolor="#ffffff" height="30" align="right" class="td01">
                    所属课程：                 </td>
                <td bgcolor="#ffffff" height="30" align="left">
                    <asp:DropDownList ID="ddlCourseID" runat="server" CssClass="select" Width="155px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td bgcolor="#ffffff" height="30" align="right" class="td01">
                    附件名称：
                </td>
                <td bgcolor="#ffffff" height="30" align="left">
                    <asp:TextBox ID="txtName" runat="server" CssClass="input1" MaxLength="25" Width="150px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </div>
    </form>

    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            Validator();
        });
        function Validator() {
            $('#<%= btnSave.ClientID %>').bind('click', function() {
                ValidatorEmpty($("#<%=txtName.ClientID %>"), "附件名称");

                return GetValidatorMessage();
            });
            $("#<%=txtName.ClientID %>").textlimit(25);
        }
    </script>
</body>
</html>
