📄 content.jsp
字号:
<%@ page contentType="text/html;charset=GBK" language="java"%>
<%@ taglib prefix="ww" uri="webwork"%>
<%@include file="/common/taglibs.jsp"%>
<ww:bean name="cn.myapps.core.deploy.module.action.ModuleHelper" id="moduleHelper" />
<html>
<head>
<link rel="stylesheet"
href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
type="text/css">
<script>
function ev_switchpage(sId){
document.all('basic').style.display = 'none';
document.all('sqlsentencepage').style.display ='none';
document.all(sId).style.display = '';
}
function returncheck()
{
var mode = document.all('mode').value;
if(mode==''){document.all('s_module').value='';}
document.forms[0].action="<ww:url action='list.action'/>";
document.forms[0].submit();
}
</script>
<title>{*[DataPrepare]*}</title>
</head>
<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0>
<table width="98%" class="list-table">
<%
String backclass="button-image";
if(request.getParameter("mode")!=null)
{
String mode2 = (String)request.getParameter("mode");
if(mode2.equals(""))
{%>
<tr>
<%}else{ backclass="back-class";%>
<tr class="list-toolbar">
<%}
}else{ %>
<tr>
<%} %>
<td width="10" class="image-label"><img
src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
<td width="3"></td>
<td width="90" class="text-label">{*[DataPrepare]*}</td>
<td>
<table width="100%" border=1 cellpadding="0" cellspacing="0"
class="line-position">
<tr>
<td></td>
<td class="line-position2" width="60" valign="top">
<button class="<%=backclass%>"
onClick="forms[0].action='<ww:url action="save"></ww:url>';forms[0].submit();"><img
src="<ww:url value="/resource/image/save.gif"/>">{*[Save]*}</button>
</td>
<td class="line-position2" width="70" valign="top">
<button class="<%=backclass%>"
onClick="returncheck();"><img
src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
</td>
</tr>
</table>
</td>
</tr>
</table>
<ww:if test="hasFieldErrors()">
<span class="errorMessage"> <b>Errors:</b><br>
<ww:iterator value="fieldErrors">
*<ww:property value="value[0]" />;
</ww:iterator> </span>
</ww:if>
<table width=80% border=0 align="center">
<ww:form action="save" method="post" theme="simple">
<%@include file="/common/page.jsp"%>
<ww:hidden name='s_module' value="%{#parameters._moduleid}" />
<ww:hidden name='mode' value="%{#parameters.mode}" />
<ww:bean name="cn.myapps.core.dynaform.dts.datasource.action.DatasourceHelper" id="dh"/>
<table width='100%' >
<tr valign='top' height='20'>
<td><input class="button-cmd" type="button"
onclick="ev_switchpage('basic')" value="{*[Basic]*}" />
<input class="button-cmd" type="button"
onclick="ev_switchpage('sqlsentencepage')" value="{*[SqlSentence]*}" /></td>
</tr>
</table>
<table id='basic' width='100%'>
<tr><td width="10%" class="commFont">{*[Name]*}:</td>
<td align="left"><ww:textfield cssClass="input-cmd" label="{*[Name]*}" theme="simple" name="content.name" /></td></tr>
<tr><td width="10%" class="commFont">{*[DataSource]*}: </td><td align="left"><ww:select label="{*[DataSource]*}" name="_dts" list="#dh.getAllDatasource(#session.APPLICATION)" emptyOption="true" theme="simple"/> </td></tr>
<tr><td width="10%" class="commFont">{*[ClearDataSql]*}:</td><td align="left"><ww:textarea cssClass="input-cmd" theme="simple" rows="10" cols="60" name="content.clearDataSql"/></td></tr>
</table>
<table id='sqlsentencepage' width="100%" style='display:none' >
<tr>
<ww:if test="content.id!=null">
<td width="100%">
<div id="div_cloumn"><iframe name="cloumnFrame" scrolling="no"
src='<ww:url value="/core/report/dataprepare/sqlsentence/list.action" />?s_module=<ww:property value="#parameters._moduleid"/>&_moduleid=<ww:property value="#parameters._moduleid"/>&_dataprepare=<ww:property value="content.id"/>'
width="100%" height="330" frameborder="0" /></iframe></div>
</td>
</ww:if>
</tr>
</table>
</ww:form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -