349 lines
13 KiB
Plaintext
349 lines
13 KiB
Plaintext
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
||
<%@ taglib uri="/jstl/c" prefix="c"%>
|
||
<%
|
||
String path = request.getContextPath();
|
||
String basePath = request.getScheme() + "://"
|
||
+ request.getServerName() + ":" + request.getServerPort()
|
||
+ path + "/";
|
||
%>
|
||
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<title>i18n_entip1.message.title_n81i</title>
|
||
<link href="<c:url value='/css/styles.css'/>" rel="stylesheet"
|
||
type="text/css" />
|
||
<link href="<c:url value='/desktop/css/index${userBgColor }.css'/>"
|
||
rel="stylesheet" type="text/css" />
|
||
<script src="<c:url value='/js/onmouse${userBgColor }.js'/>"
|
||
type="text/javascript"></script>
|
||
<link href="<c:url value='/css/k.css'/>" rel="stylesheet"
|
||
type="text/css" />
|
||
<script language="javascript" type="text/javascript"
|
||
src="<c:url value='/js/datepicker/WdatePicker.js'/>"></script>
|
||
<script type="text/javascript"
|
||
src="${pageContext.request.contextPath }/js/jquery.js"></script>
|
||
<script language="javascript" type="text/javascript"
|
||
src="<c:url value="/js/fileInput.js"/>"></script>
|
||
</head>
|
||
<script type="text/javascript">
|
||
function $(name){
|
||
return document.getElementById(name);
|
||
}
|
||
function toreset(){
|
||
jQuery("#nodegroupid").empty();
|
||
jQuery("#monfenfuenfefef").empty();
|
||
if(jQuery("#nodegroupid")!=null){
|
||
jQuery("#nodegroupid").append("<option value=''>i18n_entip1.message.nodegroupidDefault_n81i</option>");
|
||
}
|
||
|
||
if(jQuery("#monfenfuenfefef")!=null){
|
||
jQuery("#monfenfuenfefef").append("<option value=''>i18n_entip1.message.detectFileDefault_n81i</option>");
|
||
}
|
||
document.forms['yhForm'].reset();
|
||
}
|
||
|
||
function checkValue(){
|
||
var missionval = document.getElementById("missionstatetable.missionName").value;
|
||
var obtargetPath = jQuery("#missionstatetable.missionName").val();
|
||
if(missionval==null||missionval==""){
|
||
alert("i18n_entip1.message.missionName_n81i");
|
||
return ;
|
||
}
|
||
if(jQuery("[name=missionstatetable.systemId] >option:selected").val()=="") {
|
||
alert("i18n_entip1.message.operationType_n81i");
|
||
return false;
|
||
}
|
||
if(jQuery("#usergroupid >option:selected").val()==""){
|
||
alert("i18n_entip1.message.usergroupid_n81i");
|
||
return false;
|
||
}
|
||
if(jQuery("[name=missionstatetable.missionType]:checked").val()==1){
|
||
var obsourcePath = jQuery("#sourcePath").val();
|
||
if(obsourcePath==null||obsourcePath==""){
|
||
alert("i18n_entip1.message.sourcePath_n81i");
|
||
return ;
|
||
}
|
||
var obtargetPath = document.getElementById("missionparametertable1.targetPath").value;
|
||
if(obtargetPath==null||obtargetPath=="") {
|
||
alert("i18n_entip1.message.targetPath_n81i");
|
||
return;
|
||
}
|
||
}
|
||
if(jQuery("[name=missionstatetable.missionType]:checked").val()==2){
|
||
var obsourcePath = document.getElementById("monfenfuenfefef").value;
|
||
if(obsourcePath==null||obsourcePath==""){
|
||
alert("i18n_entip1.message.selectFile_n81i");
|
||
return ;
|
||
}
|
||
}
|
||
else{
|
||
return true;
|
||
}
|
||
}
|
||
|
||
|
||
function update(){
|
||
if(checkValue()){
|
||
document.yhForm.action="<%=basePath%>/nmstaskManager/nmsTaskManager!executeAction.do?action=update";
|
||
document.yhForm.submit();
|
||
}
|
||
}
|
||
|
||
|
||
//取的系统下面的节点组 ajaxtype为1是查询节点组,ajaxtype为2是查询用户组下面的用户
|
||
function getdownnodegroup(systemid,id,ajaxtype){
|
||
jQuery("#"+id+1).empty();
|
||
jQuery("#"+id+2).empty();
|
||
jQuery.ajax({
|
||
dataType:"xml",
|
||
type: "POST",
|
||
cache: false,
|
||
url: "<%=basePath%>/nmstaskManager/nmsTaskManager!executeAction.do?action=ajax",
|
||
data: "systemid="+systemid+"&ajaxtype="+ajaxtype,
|
||
success: function(msg){
|
||
jQuery(msg).find("filed").each(function(){
|
||
jQuery("#"+id).append("<option value="+jQuery(this).find("id").text()+">"+jQuery(this).find("name").text()+"</option>");
|
||
jQuery("#"+id+1).append("<option value="+jQuery(this).find("id").text()+">"+jQuery(this).find("name").text()+"</option>");
|
||
jQuery("#"+id+2).append("<option value="+jQuery(this).find("id").text()+">"+jQuery(this).find("name").text()+"</option>");
|
||
})
|
||
if(ajaxtype=='1'){
|
||
jQuery("#monfenfuenfefef").empty();
|
||
jQuery(msg).find("paramfiled").each(function(){
|
||
jQuery("#monfenfuenfefef").append("<option value="+jQuery(this).find("id").text()+">"+jQuery(this).find("name").text()+"</option>");
|
||
}
|
||
)
|
||
jQuery(msg).find("usergroupfiled").each(function(){
|
||
jQuery("#usergroupid").append("<option value="+jQuery(this).find("id").text()+">"+jQuery(this).find("name").text()+"</option>");
|
||
}
|
||
)
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
|
||
</script>
|
||
<body>
|
||
<form action="" name="yhForm" method="post"
|
||
enctype="multipart/form-data">
|
||
<input type="hidden" name="position" value="${position }">
|
||
<table width="80%" align="center" border="0" cellpadding="0"
|
||
cellspacing="1" class="ta_color">
|
||
<tr>
|
||
<td height="20" class="td_color">
|
||
<span class="STYLE1"> <strong>i18n_entip1.text.title_n81i</strong>
|
||
</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="18%" bgcolor="#ffffff">
|
||
<table width="100%" align="center" border="0" cellpadding="0"
|
||
cellspacing="1" style="padding-left: 5px; padding-right: 5px;">
|
||
<div
|
||
style="height: 20px; width: 100%; margin: 0px auto; padding: 0px;"></div>
|
||
<tr>
|
||
<td bgcolor="#FFFFFF" width="20%">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.missionName_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<input type="text" name="missionstatetable.missionName"
|
||
value="${missionstatetable.missionName}" id="missionName"
|
||
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000" />
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.missionType_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<span class="STYLE1"> i18n_entip1.text.filePush_n81i <input type="hidden"
|
||
name="missionstatetable.missionType" id="missionType"
|
||
value="${missionstatetable.missionType}" />
|
||
<input type="hidden"
|
||
name="missionstatetable.missionId" id="missionId"
|
||
value="${missionstatetable.missionId}" />
|
||
</span>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.selectSystem_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<select name="missionstatetable.systemId"
|
||
onchange="getdownnodegroup(this.value,'nodegroupid','1');"
|
||
style="width: 155px;">
|
||
<option value="">
|
||
<span class="STYLE1">i18n_entip1.message.selectSystem_n81i</span>
|
||
</option>
|
||
<c:forEach items="${systemtablelist}" var="systemtable">
|
||
<option value="${systemtable.systemId}"
|
||
<c:if test="${missionstatetable.systemId eq systemtable.systemId}"> selected="selected"</c:if>>
|
||
<span class="STYLE1">${systemtable.systemName}</span>
|
||
</option>
|
||
</c:forEach>
|
||
</select>
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 推送文件开始 -->
|
||
<tr id="tsfile3">
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.pushNodeGroup_n81i: </span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<select name="missionparametertable1.nodeListId"
|
||
id="nodegroupid1" style="width: 155px;">
|
||
<option selected="selected" value="${nodegrouptable.groupId}">
|
||
${nodegrouptable.groupName}
|
||
</option>
|
||
</select>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr id="tsfile4">
|
||
<td height="20" bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.pushMissionDesc_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="20" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<textarea
|
||
name="missionparametertable1.missionDesc"
|
||
id="missionparametertable1.missionDesc"
|
||
missionparametertable1.missionDesc" ows="20" cols="280"
|
||
style="width: 400px; height: 80px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000">${missionparametertable1.missionDesc}</textarea>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 推送文件 -->
|
||
<tr>
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.viewLevel_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<span class="STYLE1"> <input type="radio"
|
||
name="missionstatetable.viewLevel" id="" value="1"
|
||
<c:if test="${missionstatetable.viewLevel eq 1}">checked="checked"</c:if> />i18n_entip1.text.publisher_n81i
|
||
<input type="radio" name="missionstatetable.viewLevel" id=""
|
||
value="2"
|
||
<c:if test="${missionstatetable.viewLevel eq 2}">checked="checked"</c:if> />i18n_entip1.text.publisherGroup_n81i
|
||
<input type="radio" name="missionstatetable.viewLevel" id=""
|
||
<c:if test="${missionstatetable.viewLevel eq 3}">checked="checked"</c:if>
|
||
value="3" />i18n_entip1.text.allInSys_n81i </span>
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.userGroup_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<select name="missionstatetable.groupId" id="usergroupid"
|
||
style="width: 155px;">
|
||
<option selected="selected" value="${xtjsjbxx.jsbh}">
|
||
${xtjsjbxx.jsmc}
|
||
</option>
|
||
</select>
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<!-- 推送文件相关内容 -->
|
||
<tr id="tsfile1">
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.sourcePath_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<input type="button" value="i18n_entip1.text.sourcePath_n81i" title="i18n_entip1.text.sourcePath_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
||
<input type="file" name="sourcePath" id="sourcePath" onchange="javascript:setValue(this.value)"
|
||
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000">
|
||
<span class="STYLE1">i18n_entip1.text.sourcePath_n81i: ${missionparametertable1.sourcePath}</span>
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr id="tsfile2">
|
||
<td bgcolor="#FFFFFF">
|
||
<div align="right">
|
||
<span class="STYLE1">i18n_entip1.text.targetPath_n81i:</span>
|
||
</div>
|
||
</td>
|
||
<td height="28" bgcolor="#FFFFFF">
|
||
<div align="left">
|
||
<input name="missionparametertable1.targetPath"
|
||
value="${missionparametertable1.targetPath}"
|
||
id="missionparametertable1.targetPath" type="text"
|
||
style="width: 155px; background-color: #fff; border: solid 1px #77abc4; font-size: 12px; color: #000000">
|
||
<font color="red"><span class="STYLE1">*</span> </font>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="2" style="height: 20px;"></td>
|
||
</tr>
|
||
</table>
|
||
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td height="20" class="td_color">
|
||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="td_color">
|
||
<tr>
|
||
<td width="92%" align=right>
|
||
<img onclick="update()" src="<c:url value='/desktop/images/anniu/a_12${userBgColor }.gif'/>"
|
||
border="0" align="middle" />
|
||
</td>
|
||
<td align=left>
|
||
<img src="<c:url value='/desktop/images/anniu/a_39${userBgColor }.gif'/>"
|
||
border="0" align="middle"
|
||
onclick="javascript:toreset()" />
|
||
|
||
</td>
|
||
<td align=left>
|
||
<img src="<c:url value='/desktop/images/anniu/a_21${userBgColor }.gif'/>"
|
||
border="0" align="middle"
|
||
onclick="javascript:history.go(-1);" />
|
||
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
|
||
</table>
|
||
</form>
|
||
</body>
|
||
</html>
|
||
<script>
|
||
</script> |