📄 content.jsp
字号:
function ev_switchsheet(id) {
document.all('appletcontent').style.display="none";
document.all('xmlcontent').style.display="none";
//alert(id);
if (id == 'appletcontent') {
var xml = document.all('content.flow').value;
document.BFApplet.loadXML(xml);
document.all('modify').checked = false;
} else {
document.all('content.flow').value = document.BFApplet.saveToXML();
}
document.all(id).style.display = "";
}
function ev_init() {
var xml = document.all('content.flow').value;
document.BFApplet.loadXML(xml);
}
</script>
<title>{*[Workflow]*}</title>
<link rel="stylesheet"
href="<c:out value='${pageContext.request.contextPath}'/>/resource/css/main.css"
type="text/css">
</head>
<body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 onload="ev_init()">
<table width="98%" class="list-table">
<tr class="list-toolbar">
<td width="10" class="image-label"><img
src="<ww:url value="/resource/image/email2.jpg"/>" /></td>
<td width="3"></td>
<td width="70" class="text-label">{*[Workflow]*}</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="back-class"
onClick="ev_onsubmit();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="back-class"
onClick="forms[0].action='<ww:url action="list"/>';forms[0].submit();"><img
src="<ww:url value="/resource/image/back.gif"/>">{*[Exit]*}</button>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
UserVO user=null;
user =(UserVO)session.getAttribute(Web.SESSION_ATTRIBUTE_USER);
String username = user.getName();
%>
<table width="98%" name="test">
<ww:form action="save" method="post" id="formItem"
onsubmit="ev_onsubmit();" theme="simple">
<%@include file="/common/page.jsp"%>
<input type="hidden" name="s_module"
value="<ww:property value='#parameters.s_module'/>">
<input type="hidden" name="_moduleid"
value="<ww:property value='#parameters.s_module'/>">
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<td>
<button class="turn-button" onClick="ev_switchsheet('appletcontent')">{*[Diagram]*}</button>
</td>
<td>
<button class="turn-button" onClick="ev_switchsheet('xmlcontent')">{*[Code]*}</button>
</td>
<td>
<table>
<tr align="left">
<td class="content-label" ><div id="subject">{*[Subject]*}:</div></td>
<td><ww:textfield cssClass="input-cmd" label="{*[Subject]*}" name="content.subject" theme="simple" /></td>
<td class="content-label">{*[Author]*}:</td>
<td><ww:textfield cssClass="input-cmd" label="{*[Workflow author]*}" name="content.authorname" value="<%=username%>" disabled="true" theme="simple" /></td>
<ww:if test="content.id">
<td class="content-label">{*[LastModify]*}:</td>
<td><ww:date name="content.lastmodify" format="yyyy/MM/dd" /></td>
</ww:if>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr><ww:if test="hasFieldErrors()">
<script>
document.getElementById('subject').style.color ='red';
</script>
<span class="errorMessage"> <b>{*[Errors]*}:</b><br>
<ww:iterator value="fieldErrors">
*<ww:property value="value[0]" />;
</ww:iterator> </span>
</ww:if>
<tr id="xmlcontent" style="display:none" height="350">
<td colspan="2">
<table>
<tr><td>{*[Modify]*}:
<ww:checkbox name="modify" theme="simple"
onclick="document.all('content.flow').readOnly = !this.checked;document.all('content.flow').style.color = this.checked ? 'black' : 'gray'" /></td>
</tr>
<tr><td>
<ww:textarea name="content.flow" readonly="true" cssStyle="width:700px;height:350px;color:gray">
</ww:textarea>
</td></tr>
</table>
</td>
</tr>
<tr id="appletcontent">
<td>
<table>
<tr>
<td valign="top">
<table border=0>
<tr>
<td>
<button class="button-add" onClick="editElement();"><img
src="<ww:url value="/resource/image/edit.gif"/>" alt="{*[Edit]*}"></button>
</td>
<td>
<button class="button-add" onClick="removeElement();"><img
src="<ww:url value="/resource/image/remove.gif"/>" alt="{*[Remove]*}"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="addStartNode();"><img
src="<ww:url value="/resource/image/start.gif"/>" alt="{*[StartNode]*}"></button>
</td>
<td>
<button class="button-add" onClick="addManualNode();"><img
src="<ww:url value="/resource/image/actor.gif"/>" alt="{*[ManualNode]*}"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="addSubflow();"><img
src="<ww:url value="/resource/image/subflow.gif"/>" alt="{*[SubNode]*}"></button>
</td>
<td>
<button class="button-add" onClick="addAutoNode();"><img
src="<ww:url value="/resource/image/timer.gif"/>" alt="{*[AutoNode]*}"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="addCompleteNode();"><img
src="<ww:url value="/resource/image/complete.gif"/>" alt="{*[Complete]*}"></button>
</td>
<td>
<button class="button-add" onClick="addRelation();"><img
src="<ww:url value="/resource/image/relation2.gif"/>" alt="{*[Relation]*}"
height="20" width="20"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="addSuspendNode();"><img
src="<ww:url value="/resource/image/suspend.gif"/>" alt="{*[Suspend]*}"></button>
</td>
<td>
<button class="button-add" onClick="addAbortNode();"><img
src="<ww:url value="/resource/image/cancle.gif"/>" alt="{*[Cancel]*}"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="addTerminateNode();"><img
src="<ww:url value="/resource/image/terminate.gif"/>" alt="{*[Terminate]*}"></button>
</td>
<td>
<button class="button-add" onClick="addTerminateNode();"><img
src="<ww:url value="/resource/image/deselect.gif"/>" alt="{*[Deselect]*}"></button>
</td>
</tr>
<tr>
<td>
<button class="button-add" onClick="zoomIn();"><img
src="<ww:url value="/resource/image/zoom_in.gif"/>" alt="{*[Zoom In]*}" height="20" width="20"></button>
</td>
<td>
<button class="button-add" onClick="zoomOut();"><img
src="<ww:url value="/resource/image/zoom_out.gif"/>" alt="{*[Zoom Out]*}" height="20" width="20"></button>
</td>
</tr>
</table>
</td>
<td><Script language="JavaScript">
document.write('<applet');
document.write(' codebase ="."');
document.write(' code = "cn.myapps.core.workflow.applet.BFApplet.class"');
document.write(' archive = "WorkFlow.jar,MinML.jar"');
document.write(' name = "BFApplet"');
document.write(' width = "650"');
document.write(' height = "350"');
document.write(' hspace = "0"');
document.write(' vspace = "0"');
document.write(' align = "top"');
document.write(' MAYSCRIPT');
document.write('>');
document.write('</applet>');
</Script></td>
</tr>
</table>
</td>
</tr>
</ww:form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -