📄 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>
<%String contextPath = request.getContextPath();%>
<head>
<link rel="stylesheet"
href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
type="text/css">
<script src="<ww:url value='/script/util.js'/>"></script>
<script>
var mode = '<ww:property value="#parameters.mode" />';
function imagesimple(url){
var src = "<ww:url value="/" />"+url;
var img = document.all('imgid');
img.src = src;
img.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();
}
function attechmentupload(imagepath){
var rtn = uploadFile(imagepath,formItem.elements['content.content'].value)
var index = rtn.indexOf("_");
var rtr = rtn.substring(0, index);
if(rtr!=null&&rtr!='')
{
formItem.elements['content.content'].value = rtr;
document.all('displayImage').style.display ='';
document.all('imgid').style.display = '';
}
else{
formItem.elements['content.content'].value =rtr;
document.all('imgid').style.display = 'none';
document.all('displayImage').style.display ='none';
}
}
</script>
<title>Register result</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">{*[ImageLib]*}</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:bean name="cn.myapps.core.style.repository.action.StyleRepositoryHelper" id="sh">
<ww:param name="moduleid" value="#parameters.s_module" />
</ww:bean>
<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=85% border=0 align="center">
<ww:form action="save" method="post" name="formItem" theme="simple">
<%@include file="/common/page.jsp"%>
<ww:hidden name='s_module' value="%{#parameters._moduleid}" />
<ww:property value="#parameter['_moduleid']"/>
<ww:hidden name='mode' value="%{#parameters.mode}" />
<ww:hidden name="path"></ww:hidden>
<ww:hidden name='content.version'></ww:hidden>
<tr><td width="15%" class="commFont" >{*[Name]*}:</td>
<td width="85%"><ww:textfield cssClass="input-cmd" theme="simple" name="content.name" /></td></tr>
<ww:if test=" #parameters.mode[0] == 'module'">
<ww:hidden name='_moduleid' value="%{#parameters._moduleid}" />
</ww:if>
<ww:else>
<tr id='modid' style=''>
<td class="commFont" >{*[Module]*}:</td>
<td>
<ww:select label="{*[Module]*}" name="_moduleid" list="#moduleHelper.getModuleSel(#session.APPLICATION)" theme='simple'/>
</td>
</tr>
</ww:else>
<tr>
<td class="commFont" ><div>
{*[Attachment]*}:</div></td>
<td colspan="3">
<ww:textfield name="content.content" cssClass="bugLong-input" readonly="true" theme="simple"/>
<button name='btnSelectDept' class="button-image" onClick="attechmentupload('IMAGE_PATH');imagesimple(document.all('content.content').value)"><img src="<ww:url value="/resource/image/search.gif"/>"></button></td>
</tr>
<tr>
<td colspan=2>
<div id="displayImage" style="overflow:auto;width:500px;height:250px">
<img id="imgid" <ww:if test="content.content==null||content.content==''">style='display:none'</ww:if> src='<ww:url value='/' /><ww:property value="content.content" />'/> </div> </td>
</tr>
</ww:form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -