PageBrowser.jsp 6.86 KB

<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<%@ taglib uri="/browserTag" prefix="brow"%>
<%@ page import="org.apache.commons.lang.StringEscapeUtils" %>

<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page" />

<jsp:useBean id="esc" class="weaver.page.style.ElementStyleCominfo"	scope="page" />
<jsp:useBean id="mhsc" class="weaver.page.style.MenuHStyleCominfo"	scope="page" />
<jsp:useBean id="mvsc" class="weaver.page.style.MenuVStyleCominfo"	scope="page" />
	

<jsp:useBean id="su" class="weaver.page.style.StyleUtil" scope="page" />


<%
		String type = Util.null2String(request.getParameter("type"));//pre-登录前 aft-登录后
		String t_name = Util.null2String(request.getParameter("t_name"));
		String t_desc = Util.null2String(request.getParameter("t_desc"));
		String ids = Util.null2String(request.getParameter("ids"));
		
	%>
<html>
	<head>
		<link href="/css/Weaver_wev8.css" type=text/css rel=stylesheet>
		<script language=javascript src="/workplan/calendar/src/Plugins/jquery.form_wev8.js"></script>
		<script type="text/javascript" src="/js/ecology8/base/jquery-ui_wev8.js"></script>
		<script type="text/javascript" src="/js/dragBox/ajaxmanager_wev8.js"></script>
		<script type="text/javascript" src="/js/dragBox/rightspluingForBrowser_wev8.js"></script>
		<link type="text/css" href="/js/dragBox/e8browser_wev8.css" rel=stylesheet>
		<style>
			body,html{
				width:100%;
				height:100%;
			}
			
			table{
				width:100%;
			}
			.e8_box_middle{
				height:415px;
			}  
		
		</style>
		
	
	
	<script>
		$(function(){
			resizeDialog(document);
	
			var dialog = parent.parent.getDialog(parent);
			var ids ="";
			<%if("pre".equals(type)){%>
				//ids =dialog.document.getElementById("preLoginPage"); 
			<%}else{%>
				//ids =dialog.document.getElementById("afterLoginPage"); 
			<%}%>
			
			showMultiDocDialog("<%=ids%>");
			
			var btnok_onclick = function(){
				jQuery("#btnok").click();
			}

			var btnclear_onclick = function(){
				jQuery("#btnclear").click();
			}
			
			function onClose(){
				 if(dialog){
			    	dialog.close()
			    }else{
				    window.parent.close();
				}
			}
			
			
			function showMultiDocDialog(selectids){
				 var config = null;
				 config= rightsplugingForBrowser.createConfig();
				    config.srchead=["标题","主目录","文档所有者"];
				    config.container =$("#colShow");
				    config.searchLabel="";
				    config.hiddenfield="id";
				    config.saveLazy = true;
				    var transName = encodeURI("<%=t_name%>");
				    config.srcurl = "/page/exportImport/pageMultiAjax.jsp?src=src&type=<%=type%>&desc=<%=t_desc%>&name="+transName;
				    config.desturl = "/page/exportImport/pageMultiAjax.jsp?src=dest&type=<%=type%>&ids=<%=ids%>&desc=<%=t_desc%>&name="+transName;
				    config.pagesize = 10;
				    config.formId = "weaver";
				    config.target = "queryIframe";
				    try{
						config.dialog = dialog;
					}catch(e){
					
					}
				    config.selectids = selectids;
				    config.searchAreaId = "e8QuerySearchArea";
				    jQuery("#colShow").html("");
				    
				    rightsplugingForBrowser.createRightsPluing(config);
				    jQuery("#btnok").bind("click",function(){
				     rightsplugingForBrowser.system_btnok_onclick(config);
				    });
				    jQuery("#btnclear").bind("click",function(){
				     rightsplugingForBrowser.system_btnclear_onclick(config);
				    });
				    jQuery("#btncancel").bind("click",function(){
				     rightsplugingForBrowser.system_btncancel_onclick(config);
				    });
				    jQuery("#btnsearch").bind("click",function(){
				     rightsplugingForBrowser.system_btnsearch_onclick(config);
				    });
				}

				function btnOnSearch(){
				 jQuery("#btnsearch").trigger("click");
				}
				
				
		});

		function onsearch(){
			SearchForm.submit();
		}
		function onClose(){
			 jQuery("#btncancel").trigger("click");
		}
		function btnclear_onclick(){
			jQuery("#btnclear").trigger("click");
		}
			

		
	</script>
		


	<%@ include file="/systeminfo/RightClickMenuConent_wev8.jsp" %>
	<%
		RCMenu += "{" + SystemEnv.getHtmlLabelName(197, user.getLanguage()) + ",javascript:onsearch(),_self} ";
		RCMenuHeight += RCMenuHeightStep;
		RCMenu += "{" + SystemEnv.getHtmlLabelName(201, user.getLanguage()) + ",javascript:onClose(),_self} ";
		RCMenuHeight += RCMenuHeightStep;
		RCMenu += "{" + SystemEnv.getHtmlLabelName(311, user.getLanguage()) + ",javascript:btnclear_onclick(),_self} ";
		RCMenuHeight += RCMenuHeightStep;
	%>
	<%@ include file="/systeminfo/RightClickMenu_wev8.jsp" %>
	
	</head>
	

	
<BODY style="height:100%;">
	<wea:layout attributes="{layoutTableId:topTitle}">
		<wea:group context="" attributes="{groupDisplay:none}">
			<wea:item attributes="{'customAttrs':'class=rightSearchSpan'}">
				<span title="<%=SystemEnv.getHtmlLabelName(86,user.getLanguage()) %>" style="font-size: 12px;cursor: pointer;">
					<input class="e8_btn_top middle" onclick="onsearch();" type="button" jQuery1392950000546="32" value="<%=SystemEnv.getHtmlLabelName(197,user.getLanguage()) %>"/>
				</span>
				<span title="<%=SystemEnv.getHtmlLabelName(83721,user.getLanguage()) %>" class="cornerMenu"></span>
			</wea:item>
		</wea:group>
	</wea:layout>
	<FORM NAME="SearchForm" action="PageBrowser.jsp" method="post"  id="weaver" >
		<input type="hidden" name="pagenum" value=''>
		<input type="hidden" name="type" value='<%=type%>'>
		<input type="hidden" name="ids" value='<%=ids%>'>
		<wea:layout type="4col">
			<wea:group context='<%=SystemEnv.getHtmlLabelName(15774,user.getLanguage())%>'>
				<wea:item><%=SystemEnv.getHtmlLabelName(195,user.getLanguage())%></wea:item>
				<wea:item> <input name='t_name' class='inputstyle' value='<%=t_name%>'></wea:item>
				<wea:item><%=SystemEnv.getHtmlLabelName(433,user.getLanguage())%></wea:item>
				<wea:item> <input name='t_desc' class='inputstyle' value='<%=t_desc%>'></wea:item>
			</wea:group>	    
	   </wea:layout>	   
		<TABLE ID=BrowseTable class=BroswerStyle cellspacing="1" style="width:100%;margin-bottom: 50px" cellpadding="0">
			<tr>
				<td>
					<div id="dialog">
						<div id='colShow'></div>
					</div>
				</td>
			</tr>
		</TABLE>
	</FORM>
	
	<div id="zDialog_div_bottom" class="zDialog_div_bottom">
	   	<wea:layout needImportDefaultJsAndCss="false">
			<wea:group context=""  attributes="{\"groupDisplay\":\"none\"}">
				<wea:item type="toolbar">
					<input type="button" class=zd_btn_submit accessKey=O  id=btnok value="O-<%=SystemEnv.getHtmlLabelName(826,user.getLanguage())%>"></input>
					<input type="button" class=zd_btn_submit accessKey=2  id=btnclear value="2-<%=SystemEnv.getHtmlLabelName(311,user.getLanguage())%>"></input>
	        		<input type="button" class=zd_btn_cancle accessKey=T  id=btncancel value="T-<%=SystemEnv.getHtmlLabelName(201,user.getLanguage())%>"></input>
				</wea:item>
			</wea:group>
		</wea:layout>
	</div> 
	
</BODY>
</HTML>