<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModPaper.aspx.cs" Inherits="Admin_Paper_ModPaper" ValidateRequest="false" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!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 href="../../StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
   <div class="listAddLink" style="width:800px;"><a href='javascript:history.back()'>返 回</a></div>
        <table cellpadding="0" cellspacing="0" class="form" width="800">
            <tr>
                <td class="formName" colspan="2">
                    <span style="margin-left: 10px">修改试卷</span>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    试卷名称：
                </td>
                <td class="inputArea">
                    <asp:TextBox ID="txtPaperName" runat="server" CssClass="txt" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtPaperName" ErrorMessage="试卷名称不能为空！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    试卷分类：</td>
                <td class="inputArea">
                    <asp:DropDownList ID="drlDeptList" runat="server" DataSourceID="objdsDeptList" DataTextField="DeptName"
                        DataValueField="DeptID" Width="121px" ondatabound="drlDeptList_DataBound">
                    </asp:DropDownList>
                    </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px; height: 316px;">
                    试卷内容：
                </td>
                <td class="inputArea" style="height: 316px">
                    <ftb:freetextbox id="ftbPaperContent" runat="server" buttonpath="../../images/ftb/office2003/"
                        width="700px" HelperFilesPath="" DesignModeCss="txt" HtmlModeCss="txt"></ftb:freetextbox>
                         <div class="listAddLink" style="width: 100%">
                      </div>
                       <div class="tip"  style="width:90%;"><span class="content">提示：如果试卷内容中含有图片的话，请通过文本框上面的<img src="../../images/ftb/insertimagefromgallery.gif" />按钮上传图片,上传之后通过双击图片即可插入。</span></div>
                   
                        </td>
            </tr>
            <tr>
                <td class="titleName" style="width: 200px">
                    参考答案：</td>
                <td class="inputArea">
                    <asp:TextBox ID="ftbPaperAnswer" runat="server" Width="700px" Height="200px" 
                        CssClass="txt" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="submitArea" colspan="2">
                    <span style="margin-right: 10px">
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                        <asp:Button ID="btnSave" runat="server" CssClass="btn" Text="保 存" Width="80px" OnClick="btnSave_Click" /></span></td>
            </tr>
        </table>
        <asp:HiddenField ID="hdfPaperID" runat="server" />
        <asp:ObjectDataSource ID="objdsDeptList" runat="server" SelectMethod="GetDeptListForDropList"
            TypeName="BLL.BLLDepartment"></asp:ObjectDataSource>
    
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
        ShowMessageBox="True" ShowSummary="False" />
    
    </form>
</body>
</html>
