晋江文学城
下一章   目录  设置

1、提交文档 提交文档( ...

  •   
      <%@ page contentType="text/html; charset=gb2312" %>
      
      
      提交文档(上载文档)
      
      
      
      <%@include file="../../inc/login.jspf"%>
      
      <script language="JavaScript">
      var fileBoxindex=1;
      function addnew(){
      var fileobj;
      fileobj=eval("document.Form1.filename" + fileBoxindex);
      if (fileobj.value!=""){
      if (!checkFile(true)){
      document.Form1.fileList.style.display="";
      document.Form1.fileList.options.add(new Option(fileobj.value,fileBoxindex));
      eval("fileDIV" + fileBoxindex).style.display="none";
      fileBoxindex=fileBoxindex+1;
      if (fileframe1.innerHTML=="") {
      fileframe1.innerHTML= "
    ";
      } else {
      fileframe1.insertAdjacentHTML("BeforeEnd","
    ");
      }
      }
      }
      }
      
      function remove(){
      if (document.Form1.fileList.selectedIndex!=-1) {
      eval("fileDIV" + document.Form1.fileList.options.item(document.Form1.fileList.selectedIndex).value).innerHTML="";
      document.Form1.fileList.options.remove(document.Form1.fileList.selectedIndex);
      }
      if (document.Form1.fileList.options.length==0){
      document.Form1.fileList.style.display="none";
      } else {
      document.Form1.fileList.style.display="";
      }
      }
      
      function checkFile(setToNull){
      var strfilename;
      var returnValue=false;
      strfilename=eval("document.Form1.filename" + fileBoxindex).value;
      if (strfilename!="") {
      for (var i=0;i  if (document.Form1.fileList.options.item(i).text==strfilename) {
      returnValue=true;
      break;
      }
      }
      }
      if (setToNull & returnValue) {
      alert("文件[" + strfilename + "已经被加入到了附件中,请不要重复加入!");
      eval("fileDIV" + fileBoxindex).innerHTML="";
      }
      return returnValue;
      }
      
      function saveattach(){
      if (!checkFile(true)) {
      document.Form1.submit();
      }
      }
      
      function OpenType(){
      var sOpenURL="";
      sOpenURL="type/DirListPop.jsp";
      var reval=showModalDialog(sOpenURL, "", "dialogWidth:35.5em; dialogHeight:25.5em; center:yes; status: No; help: No;");
      if ( reval[2]=="1" ) {
      document.Form1.blankname.value=reval[0];
      document.Form1.DADT_DATACATSN.value=reval[1];
      }
      
      }
      
      
      <%
      String UserSN=session.getAttribute("UserSN").toString();
      if (UserSN==null) UserSN="";
      String UserName=session.getAttribute("UserCNName").toString();
      if (UserName==null) UserName="";
      String CurUnitSN="";
      
      personal.UserInfo UserObject =(personal.UserInfo)session.getAttribute("UserObject");
      if (UserObject!=null){
      CurUnitSN=UserObject.getLocationSpaceObject().getUnitSN();
      }
      %>
      
      
      
      
      
      
      

      上载资料
      
      

      
      
      
    文档作者
      

      
      
      
      
      
      
      
      
      
      
    文档类别
      

      
      
      
      
      
      
    开放范围
      

      
      
      
      对所有人员开放
      
      
      
      
      
    文件标题
      

      
      
      
      
      
    内容摘要
      

      
      
      
      
      
    文档评论
      

      
      
      
      
      
    上载文件
      

      
      
      

      

      
      
      
      
      
      
      
      


      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    • 昵称:
    • 评分: 2分|鲜花一捧 1分|一朵小花 0分|交流灌水 0分|别字捉虫 -1分|一块小砖 -2分|砖头一堆
    • 内容:
    •             注:1.评论时输入br/即可换行分段。
    •                 2.发布负分评论消耗的月石并不会给作者。
    •             查看评论规则>>