📄 edit.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ include file="/inc/pv/admin.jsp"%>
<%@ include file="/inc/public/msg.jsp"%>
<%
igec.site.extend.bean.UploadObj upload = (igec.site.extend.bean.UploadObj)request.getAttribute("upload");
if(upload==null){
showError("获取页面数据失败!",request,response);
return;
}
String strCurMenuName = igec.site.base.business.SysUtilBusiness.getMenuName(strMenuId);
String strCurMenuPic = igec.site.base.business.DataUtilBusiness.getFieldValue("SHOWIMG","TAB_IGECMENU","WHERE ID='" + strMenuId + "'");
String strCutMenuName = igec.util.Tool.replaceAll(strCurMenuName,"下载","");
String strType = igec.util.Tool.getStr(request.getParameter("type"));
if(igec.util.Tool.IsEmpty(strType)) strType = "0";
String strShowType = igec.util.Tool.getStr(request.getParameter("st"));//0:为软件 1:为文档类
if(igec.util.Tool.IsEmpty(strShowType)) strShowType = "0";
%>
<html>
<head>
<title>修改<%=strCutMenuName%>--<%=igec.site.base.bean.SitePara.strWebTitle%></title>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<link rel="stylesheet" type="text/css" href="<%=strCssPath%>">
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/public.js"></script>
<script language="javascript" src="<%=site.bean.SitePara.strVirtualName%>/js/check.js"></script>
<script language="javascript" src="<%=strSkinBase%>/js/forbid.js"></script>
<script language="javascript">
<!--
function addUploadFile_Show(strFilePath,strFileType){
try{
document.all("softPic").value = strFilePath;
document.all("specialShowPic").src = "<%=site.bean.SitePara.strVirtualName%>/"+strFilePath;
document.all("specialShowPic").style.display="";
}catch(e){
alert(e.description);
}
}
function addUploadFile(strFilePath,strFileType){
setObjValue("filePath",strFilePath);
getObject("showUploadFile").innerHTML = "<a href=\"<%=site.bean.SitePara.strVirtualName%>" + strFilePath + "\" target=\"_blank\" title=\"点击下载\">" + strFilePath + "</a><br><br>";
}
//-->
</script>
</head>
<body class="bodycolor" topmargin="5" onLoad="resizeWin('objBody');setFocus('fileName');">
<table border="0" name="objBody" id="objBody" width="600" cellpadding="2" cellspacing="1" align="center" bgcolor="#000000" class="small">
<form action="?action=update&type=<%=strType%>&st=<%=strShowType%>&iid=<%=strMenuId%>&id=<%=upload.getStrId()%>" method="post" name="form1" onSubmit="return Check(this);" target="_IGEC_YL_IFRAME">
<tr>
<td colspan=2 class="TableHeader">
<img src="<%=strSkinBase%>/images/menu/sys/<%=strCurMenuPic%>" align="absmiddle"> <%=strCutMenuName%>信息</td>
</td>
</tr>
<tr>
<td nowrap class="TableData"> 名称:</td>
<td class="TableData">
<input type="text" name="fileName" size="40" maxlength="100" class="BigInput" value="<%=upload.getStrFileName()%>" EmptyDisable label="名称"> <font color="#FF0000">必填</font> </td>
</tr>
<tr>
<td nowrap class="TableData">大小(K):</td>
<td class="TableData"><input type="text" name="fileSize" size="6" maxlength="8" class="BigInput" value="<%=upload.getStrFileSize()%>" ValueFormat="int" label="大小"> <font color=blue> 注:建议文件大小不要超过10M</font></td>
</tr>
<%if("0".equals(strShowType)){%>
<tr>
<td nowrap class="TableData">运行平台:</td>
<td class="TableData"><input type="text" name="runArea" size="40" maxlength="40" class="BigInput" value="<%=upload.getStrRunArea()%>" label="运行平台"></td>
</tr>
<%}%>
<tr>
<td nowrap class="TableData"> 下载次数:</td>
<td class="TableData"><input type="text" name="counter" size="6" maxlength="8" class="BigInput" value="<%=upload.getStrCounter()%>" ValueFormat="int" label="下载次数"></td>
</tr>
<%if("0".equals(strShowType)){%>
<tr class="tdbg">
<td class="TableData"><strong>说明(描述):</strong><br> </td>
<td class="TableData"><textarea name="setupShow" style="width:300" rows="4" id="setupShow" maxlength="125" onchange="return CheckLength(this,125);" label="说明(描述)"><%=upload.getStrSetupShow()%></textarea> <font color=blue>注:不超过125个汉字</font></td>
</tr>
<tr class="tdbg" style="display:none">
<td class="TableData"><strong>功能介绍:</strong><br> </td>
<td class="TableData"><textarea name="introShow" style="width:300" rows="4" id="introShow" maxlength="125" onchange="return CheckLength(this,125);" label="功能介绍"><%=upload.getStrIntroShow()%></textarea> <font color=blue>注:不超过125个汉字</font></td>
</tr>
<%if('1'==igec.util.Tool.getSafeChar(site.bean.SitePara.strSysFunctionOpenFlag,site.bean.SitePara.iOpenUploadPic)){%>
<tr>
<td nowrap class="TableData">文件图片:</td>
<td valign="middle" class="TableData" height="25">
<iframe class="TableData" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=pic&recf=addUploadFile_Show" frameborder=0 scrolling=no height="25"></iframe>
<input type="hidden" value="<%=upload.getStrFilePic()%>" name="filePic">
<font color="blue">图片格式:<%=igec.util.Tool.replaceAll(site.bean.SitePara.strUpload_Pic,"|",",")%>
<%
String styleStr="display:none";
if(!"".equals(upload.getStrFilePic())){
styleStr = "";
}
%>
<img src="<%=site.bean.SitePara.strVirtualName%>/<%=upload.getStrFilePic()%>" name="fileShowPic" style="<%=styleStr%>" onload="if(this.width>200) this.width=200;if(this.height>100) this.height=100;" style="cursor:hand" onclick="window.open(this.src);" alt="点击看原图"/>
</td>
</tr>
<%}%>
<%
}else{
%>
<tr class="tdbg">
<td class="TableData"><strong>说明(描述):</strong><br></td>
<td class="TableData"><textarea name="setupShow" style="width:300" rows="4" id="setupShow" maxlength="125" onchange="return CheckLength(this,125);" label="文件介绍"><%=upload.getStrSetupShow()%></textarea> <font color=blue>注:不超过125个汉字</font></td>
</tr>
<%}%>
<tr>
<td nowrap class="TableData">选择上传文件:</td>
<td class="TableData" height="25" valign="middle">
<iframe class="TableData" style="top:2px" ID="UploadFiles" src="<%=site.bean.SitePara.strVirtualName%>/inc/upload/?wt=<%=request.getParameter("wt")%>&ft=file&recf=addUploadFile" frameborder=0 scrolling=no height="25"></iframe>
<input type="hidden" value="<%=upload.getStrFilePath()%>" name="filePath" id="filePath">
<span name="showUploadFile" id="showUploadFile"><a href="<%=site.bean.SitePara.strVirtualName+upload.getStrFilePath()%>" target="_blank" title="点击下载"><%=upload.getStrFilePath()%></a><br><br></span>
<font color="blue">文件格式:<%=igec.util.Tool.replaceAll(site.bean.SitePara.strUpload_File,"|",",")%></font>
</td>
</tr>
<tr>
<td nowrap class="TableData">是否显示:</td>
<td class="TableData">
<input type="radio" name="showFlag" value="1" <%if(!"0".equals(upload.getStrShowFlag())) out.print("checked");%>> 是
<input type="radio" name="showFlag" value="0" <%if("0".equals(upload.getStrShowFlag())) out.print("checked");%>> 否
</td>
</tr>
<tr align="center" class="TableControl">
<td colspan="2" nowrap>
<input type="submit" value="更新" class="BigButton">
<input type="button" value="关闭" class="BigButton" onClick="javascript:window.close();"> </td>
</tr>
</form>
</table>
<iframe name="_IGEC_YL_IFRAME" id="_IGEC_YL_IFRAME" width="100" height="100" style="display:none"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -