📄 index.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page language="java"%>
<%@ page import="java.util.*"%>
<%@ page import="com.gs.util.*"%>
<%@ page import="com.gs.control.event.PageBuilderEvent"%>
<%@ page import="com.gs.pageBuilder.model.*"%>
<%
session.setAttribute("frameworkStylePath","style01");
try{
String reportYWLX=(String)request.getAttribute("reportYWLX");
ArrayList pageDefineShowList = (ArrayList)request.getAttribute("pageDefineShowList");
PageDefineModel pageDefineModel=null;
%>
<html>
<head>
<title>页面生成工具</title>
<base target="_self">
<link href="<%=request.getContextPath()%>/include/style/style01/style.css" rel="stylesheet" type="text/css">
<SCRIPT language="javascript1.2" src="<%=request.getContextPath()%>/include/js/function.js"></SCRIPT></head>
<SCRIPT src="<%=request.getContextPath()%>/js/string.js"></SCRIPT>
<style>
td{
FONT-SIZE: 9pt;
}
</style>
<body class="businessBody01">
<form method="POST" name="report" action="" target=_blank onsubmit="return check();">
<center>
<table border="0" width="90%" >
<tr>
<td><img src="<%=request.getContextPath()%>/images/bg3.gif" border="0" > <font class="textBusinessTitle">页面定义</font></td>
</tr>
</table>
<table width="90%" border="1" class="businessTable00" height="80%">
<tr>
<td width="60%" class="businessTdTitle00" style="height:5%" >页面定义列表</td>
</tr>
<tr>
<td class="businessTd00Left" style="height:5%">
<fieldset style="padding: 2;" >
<legend><b>页面类型</b></legend>
<input type="radio" value="1" name="R1" checked onclick="changFrame()"> 报表
<input type="radio" value="2" name="R1" onclick="changFrame()"> 执照
<input type="radio" value="3" name="R1" onclick="changFrame()"> 通知
<input type="radio" value="4" name="R1" onclick="changFrame()"> 查询
<input type="radio" value="5" name="R1" onclick="changFrame()"> 修改
<input type="radio" value="6" name="R1" onclick="changFrame()"> 备案
</fieldset>
</td>
</tr>
<tr>
<td class="businessTd00" height="80%" colspan="2">
<iframe name="pageList" width="98%" height="100%" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=1 scrolling=yes bordercolor="#000000" src="<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.pageDefine_list%>&category1=1">
</iframe>
</td>
</tr>
</table>
<br>
<input type="button" value="添加页面" name="B1" onclick="actionPage(1)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" value="删除页面" name="B1" onclick="actionPage(2)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
<input type="button" value="修改页面" name="B1" onclick="actionPage(3)" class="button" onmouseover="this.className='mouseover'" onmouseout="this.className='button'">
</FORM>
<script>
var p_explain = "";
function changFrame(){
var category1="";
for(var i=0;i<document.all.R1.length;i++){
if(document.all.R1[i].checked){
category1=document.all.R1[i].value;
}
}
pageList.location="<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.pageDefine_list%>&category1="+category1;
}
function actionPage(xnum){
var category1="";
var class3="";
var explain="";
for(var i=0;i<document.all.R1.length;i++){
if(document.all.R1[i].checked){
category1=document.all.R1[i].value;
}
}
var w = 794;
var h = 550;
if(xnum==null||xnum=="")return false;
if (screen.width == 1024){
w = 1018;
h = 720;
}
if(xnum==1){
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.pageDefine_add%>&category1="+category1,"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
}else
if(xnum==2){
if(pageList.f1.selectItem){
if(pageList.f1.selectItem.value==""){
alert("请选择页面列表中的页面!");
return false;
}
}
if(confirm('你确定要删除该记录吗?')){
pageList.location="<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.pageDefine_deleted%>&code="+pageList.f1.selectItem.value+"&category1="+category1;
}
}else
if(xnum==3){
if(pageList.f1.selectItem){
if(pageList.f1.selectItem.value==""){
alert("请选择页面列表中的页面!");
return false;
}
explain=pageList.f1.selectItemExplain.value;
}
p_explain = explain
//explain = URLUTF8Encoder.encode(explain);
//alert(explain);
window.open("<%=request.getContextPath()%>/pageBuilderAction.do?action=<%=PageBuilderEvent.pageDefine_editFrame%>&code="+pageList.f1.selectItem.value+"&category1="+category1+"&explain="+explain,"","toolbar=no,resizable,scrollbars,dependent,width="+w+",height="+h+",top=0,left=0");
}else{
alert("error!");
}
}
</script>
</body>
</html>
<%}
catch(Exception ex){
Debug.println("reportEdite.jsp exception:"+ex.getMessage());
}%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -