| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <%@ page language="java" contentType="text/html;charset=GBK"
- pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>编辑文档信息</title>
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <link href="/shares/js/yw/master1/liger/skins/ynet/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="/shares/css/yw/master1/reset.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="/shares/js/file.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerCheckBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerComboBox.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerResizable.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- loadTypeTree("share_user_selectbutton",{type:"detpuser",tab:"1,2",backId:"share_user_id",backName:"share_user_name",isMultiDept:"1"});
- });
- function checkForm(){
- var rs = $.validate({
- name : "doc_name",
- model : [ {
- type : "require",
- msg : "文档名称不能为空!"
- }, {
- type : "len",
- min : 1,
- max : 100,
- msg : "文档名称长度不能超过100个字!"
- } ]
- });
- rs = $.validate({
- name : "file_documentId",
- model : [ {
- type : "require",
- msg : "请上传附件!"
- } ]
- }) && rs;
-
- if (rs) {
- var e = document.getElementsByName("documentId");
- var evalue = "";
- for(var i=0;i<e.length;i++){
- if(""!=e[i].value){
- evalue=evalue + e[i].value +",";
- }
- }
- $("#doc_file").val(evalue);
- return true;
- }
- return false;
- }
-
- function refresh(obj){
- if(obj == "1"){
- parent.location.reload();
- }
- }
-
- function emptyShareUser(){
- $("#share_user_id").val("");
- $("#share_user_name").val("");
- }
- //返回
- function back_(){
- window.location.href="${pageContext.request.contextPath}/MTDocAction.do?task=${actionType}&selectFolder=${selectFolder}";
- }
- </script>
- <style type="text/css">
- .file-style {
- width: 550px;
- }
- .file-style input[type='file'] {
- width: 385px;
- height: 24px;
- line-height: 22px;
- vertical-align: bottom;
- background-color: #fff;
- border: 1px solid #cccccc;
- margin-top: 2px;
- margin-bottom: 2px;
- }
- </style>
- </head>
- <style type="text/css">
- body {
-
- background:#fff;
- }
- </style>
- <body onload="refresh('${type}');">
- <form action="MTDocAction.do" method="post" onsubmit="return checkForm();">
- <input type="hidden" id="doc_folder_id" name="doc_folder_id" value="${requestScope.doc_folder_id }">
- <input type="hidden" id="doc_id" name="doc_id" value="${requestScope.doc.doc_id }">
- <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
- <input type="hidden" id="task" name="task" value="create">
- <input type="text" id="selectFolder" name="selectFolder" value="${selectFolder}">
- <input type="hidden" id="t" name="t" value="${t }">
- <div class="s_title b10 f6">
- <img src="/shares/images/master1/gg_ico.png" width="27" height="26" /> 上传文档
- <div class="article_title">
- <input class="art_back" name="" title="返回" onclick="back_();" type="button" />
- <input class="art_sub" title="提交" name="" type="submit" value=""/>
- </div>
- </div>
- <div class="liuyan">
- <ul>
- <li>
- <span class="span_l f7">文档名称<FONT COLOR="red">*</FONT>:</span>
- <input class="text_input1" type="text" id="doc_name" name="doc_name" value="${requestScope.doc.doc_name }" style="width: 500px;">
- </li>
- <li>
- <span class="span_t f7">文档附件<FONT COLOR="red">*</FONT>:</span>
- <input type="hidden" name="doc_file" id="doc_file" value="${requestScope.doc.doc_file }">
- <span>
- <jsp:include page="/include/file.jsp">
- <jsp:param name="fieldName" value="documentId"/>
- <jsp:param name="folder" value="office"/>
- <jsp:param name="isDelFile" value="1" />
- <jsp:param name="documentId" value="${requestScope.doc.doc_file }"/>
- <jsp:param name="showSrcFileId" value="doc_name"/>
- <jsp:param name="size" value="5" />
- <jsp:param name="definedCss" value="file-style" />
- </jsp:include>
- </span>
- </li>
-
- <c:if test="${requestScope.folderType == 3 }">
- <li>
- <span class="span_l f7">分享给他人:</span>
- <textarea name="share_user_name" id="share_user_name" cols="53" rows="6" readonly="readonly" >${requestScope.share_othersStr }</textarea>
- <input type="button" class="button_fj" id="share_user_selectbutton" value="选择人员" class="button_fj">
- <input type="button" class="button_fj" id="empty_share_user" value="清空" class="button_fj" onclick="emptyShareUser();">
- <input type="hidden" name="share_user_id" id="share_user_id" readonly="readonly" value="${requestScope.share_othersId }"/>
- </li>
- </c:if>
- </ul>
- </div>
- </form>
- </body>
- </html>
|