2018-09-29 09:52:11 +08:00
|
|
|
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
|
|
|
<%@ taglib uri="/jstl/c" prefix="c"%>
|
|
|
|
|
<%@ taglib uri="/jstl/fn" prefix="fn"%>
|
|
|
|
|
<%
|
|
|
|
|
String path = request.getContextPath();
|
|
|
|
|
String basePath = request.getScheme() + "://"
|
|
|
|
|
+ request.getServerName() + ":" + request.getServerPort()
|
|
|
|
|
+ path + "/";
|
|
|
|
|
%>
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
|
<title>i18n_api.message.title_n81i</title>
|
|
|
|
|
<link href="<c:url value='/css/nms.css'/>" rel="stylesheet"
|
|
|
|
|
type="text/css" />
|
|
|
|
|
<link href="<c:url value='/js//dtree/css/dtree.css'/>"
|
|
|
|
|
rel="stylesheet" type="text/css" />
|
|
|
|
|
<script language="javascript" type="text/javascript"
|
|
|
|
|
src="<c:url value='/js/jquery-1.4.2.min.js'/>"></script>
|
|
|
|
|
<script language="javascript" type="text/javascript"
|
|
|
|
|
src="<c:url value='/js/onmouse.js'/>"></script>
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="<c:url value='/js/jquery.form.js'/>"></script>
|
|
|
|
|
<script language="javascript" type="text/javascript"
|
|
|
|
|
src="<c:url value="/js/fileInput.js"/>"></script>
|
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
|
function add(){
|
|
|
|
|
if($("#name").val()==''){
|
|
|
|
|
$("#name").next().html("i18n_api.message.name_n81i。");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if($("#myFile").val()==''){
|
|
|
|
|
$("#myFile").next().html("i18n_api.message.myFile_n81i");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$.ajax({
|
|
|
|
|
url : "<%=path%>/pluginManage/pluginManage.do?action=checkName",
|
|
|
|
|
type : "POST",
|
|
|
|
|
dataType : "text",
|
|
|
|
|
data:{'name':$("#name").val()},
|
|
|
|
|
async:true,
|
|
|
|
|
success : function(data,textStatus) {
|
|
|
|
|
if(data != "" && data != null)
|
|
|
|
|
{
|
|
|
|
|
alert(data);
|
|
|
|
|
return false;
|
|
|
|
|
}else{
|
|
|
|
|
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=doAdd";
|
|
|
|
|
document.Mkform.submit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function goBack(){
|
|
|
|
|
document.Mkform.action="<%=path%>/pluginManage/pluginManage.do?action=queryInfo";
|
|
|
|
|
document.Mkform.submit();
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="middle_list">
|
|
|
|
|
<div class="box_2">
|
|
|
|
|
<input type="button" class="btn3_mouseout"
|
|
|
|
|
onmouseover="this.className='btn3_mouseover'"
|
|
|
|
|
onmouseout="this.className='btn3_mouseout'"
|
|
|
|
|
onmousedown="this.className='btn3_mousedown'"
|
|
|
|
|
onmouseup="this.className='btn3_mouseup'" onclick="goBack()"
|
|
|
|
|
value="i18n_api.button.back_n81i" />
|
|
|
|
|
</div>
|
|
|
|
|
<form action="" name="Mkform" method="post"
|
|
|
|
|
enctype="multipart/form-data">
|
|
|
|
|
<input type="hidden" name="pageNo" value="${pageNo }" />
|
|
|
|
|
<input type="hidden" name="pageSize" value="${pageSize }" />
|
|
|
|
|
<div style="clear: both"></div>
|
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" class="table">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="4" class="color_8">
|
|
|
|
|
<strong>i18n_api.text.title_n81i</strong>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="color_1" width="15%" align="right" nowrap="nowrap">
|
|
|
|
|
i18n_api.text.name_n81i
|
|
|
|
|
</td>
|
|
|
|
|
<td class="color_3" width="30%" align="left">
|
|
|
|
|
<input type="text" name="pluginInfo.name" id="name"
|
|
|
|
|
value="${pluginInfo.name }" />
|
|
|
|
|
<font color="red">*</font>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td class="color_1" width="20%" align="right" nowrap="nowrap">
|
|
|
|
|
i18n_api.text.myFile_n81i
|
|
|
|
|
</td>
|
|
|
|
|
<td class="color_3" width="30%" align="left">
|
|
|
|
|
<input type="button" value="i18n_api.text.myFile_n81i" title="i18n_api.text.myFile_n81i" class="btn3_mouseout" onclick="javascript:uploadFile(this)"/>
|
|
|
|
|
<input type="file" name="myFile" id="myFile" value="" onchange="javascript:setValue(this.value)"
|
|
|
|
|
class="filebtn" style="width: 220px;" />
|
|
|
|
|
<font color="red">*</font>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="color_1" width="10%" align="right" nowrap="nowrap">
|
|
|
|
|
i18n_api.text.des_n81i
|
|
|
|
|
</td>
|
|
|
|
|
<td class="color_3" width="35%" align="left" colspan="3">
|
|
|
|
|
<textarea name="pluginInfo.des" id="des" rows="3" cols="40">${pluginInfo.des }</textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="color_7" colspan="4" align="right">
|
|
|
|
|
<input type="button" class=btn3_mouseout
|
|
|
|
|
onmouseover="this.className='btn3_mouseover'"
|
|
|
|
|
onmouseout="this.className='btn3_mouseout'"
|
|
|
|
|
onmousedown="this.className='btn3_mousedown'"
|
|
|
|
|
onmouseup="this.className='btn3_mouseup'" onclick="add()"
|
|
|
|
|
value="i18n_api.button.submit_n81i" />
|
|
|
|
|
|
|
|
|
|
<input type="button" class=btn3_mouseout
|
|
|
|
|
onmouseover="this.className='btn3_mouseover'"
|
|
|
|
|
onmouseout="this.className='btn3_mouseout'"
|
|
|
|
|
onmousedown="this.className='btn3_mousedown'"
|
|
|
|
|
onmouseup="this.className='btn3_mouseup'"
|
|
|
|
|
onclick="javascript:document.forms['Mkform'].reset()" value="i18n_api.button.reset_n81i" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|