<%@ Page Title="文档管理" Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="EditDocs.aspx.cs" Inherits="Portal.Admin.EditDocs" %>
<%@ Register src="~/UserControls/HtmlEdit.ascx" tagname="HtmlEdit" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:HiddenField ID="hf_length" runat="server" />
  <asp:HiddenField ID="hf_ext" runat="server" />







  
 
 <div class="result-wrap">

      <div class="result-title">
                <h1>添加/修改文档管理</h1>
            </div>

 
 <div>
   
 

 <table class="table">
   <tr>
   <th width=150px>文档名称：
   </th>
    <td>
       <asp:TextBox id="docname"  width="353" CssClass="form-control"  runat="server" /> 
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="docname" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>

      </td>
    </tr>


       <tr>
        <th width=150px>
           发布部门：
         </th>
       <td>
       <asp:DropDownList runat="server" ID="categoryname" width="390"></asp:DropDownList>
      
      </td>
    </tr>       
              
                                           
     
     
       <tr>
       <th >选择文件：
         </th>
       <td>
       <asp:FileUpload  id="f"     style=" width:300px" runat="server"  /> 
     (允许的类型：<asp:Label ID="lbl_allowext" runat="server" Text=""></asp:Label>)

     
      </td>
    </tr>       
                
                                  
            
       <tr>
       <th >附加时间：
         </th>
       <td>
 <asp:CheckBox ID="cb_name" runat="server" Text=""  Checked="true"   /> 
      (选中后，系统会在文件名前增加时间戳以防止文件名重复) 
      </td>
    </tr>                              
                                    
                                       
                    
       <tr>
       <th width=150px>站外地址：
         </th>
       <td>
<asp:TextBox id="txt_url"     width="353"  runat="server" /> 填入后，单击将下载此处地址，否则请保留为空 
      </td>
    </tr>                              
         
            <tr>
       <th width=150px>文档顺序：
         </th>
       <td>
    <asp:TextBox id="docorder" Text="0"   width="353"  runat="server" />（数字小在上面，支持负数）
      </td>
    </tr>       
    


        <tr>
       <th width=150px>文档简介：
         </th>
       <td>
  <uc1:HtmlEdit runat="server" ID="intro" />
      </td>
    </tr>       


                                     
  <tr>
  <td colspan="2">
  
  <div class="btnc">
       <asp:Button id="updateButton" Text="更新" runat="server" OnClick="UpdateBtn_Click"  class="btn btn-primary" />
                <asp:Button id="cancelButton" Text="取消" CausesValidation="False" OnClick="CancelBtn_Click"  runat="server" class="btn" />
                <asp:Button id="deleteButton" Text="删除" CausesValidation="False" OnClick="DeleteBtn_Click" runat="server" class="btn" />
           
  </div>
  </td>
  </tr>
  </table>
                             
                                        
                              


     </div>



















      
                                           
 
     
                        
             </div>
                     
</asp:Content>
