📄 config_index.jsp
字号:
var start2 = document.upload.FILE2.value;
checkChar(start2.substring(start.lastIndexOf("\\")+1,start2.length));
var start3 = document.upload.FILE3.value;
checkChar(start3.substring(start.lastIndexOf("\\")+1,start3.length));
var start4 = document.upload.FILE4.value;
checkChar(start4.substring(start.lastIndexOf("\\")+1,start4.length));
var start5 = document.upload.FILE5.value;
checkChar(start5.substring(start.lastIndexOf("\\")+1,start5.length));
var start6 = document.upload.FILE6.value;
checkChar(start6.substring(start.lastIndexOf("\\")+1,start6.length));
}
function checkChar(end){
for(i=0;i<end.length;i++){
//转化成ACSII
var charNum=0;
charNum=end.charCodeAt(i)&0xffff;
//如果是255内
if(charNum>0xff){
alert("你上传的文件名有带中文字符,请修改为英文单字节字符!!!");
return;
}
}
}
function check(formObj){
if(formObj.desc.value==null || formObj.desc.value==""){
alert("请您输入标题.");
formObj.desc.value.focus();
return false;
}
return true;
}
</script>
<SCRIPT >
<!--
var lastTypeName2;
var lastTypeID2;
lastTypeName2 = "";
lastTypeID2 = "";
//根据传入的组名(type_id)与组说明(type_id2)值,动态将文字改为输入框,并加上两个按钮
function ren_type(type_id2) {
//取到组说明.....................
var TypeName2;
var TypeID2;
if ( lastTypeID2 != "") document.all.item(lastTypeID2).innerText = lastTypeName2;
TypeName2 = document.all.item(type_id2).innerText;
document.all.item(type_id2).innerHTML = "<input type=text size=30 maxLength=55 value=" + TypeName2 + " id=desc name=desc style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'> <input type=button value=Yes onclick=confirm_rename('"+type_id2+"'); style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'> <input type=button value=No onclick=cancel_rename2(); style='font-size: 12px;color: #333333;BORDER: #cccccc 1px solid;'><input type=\"hidden\" id=\"name\" name=\"name\" value="+type_id2+" /><input type=hidden name=oldTypeName value='" + TypeName2 + "'>";
lastTypeName2 = TypeName2;
lastTypeID2 = type_id2;
}
//用于响应取消改名操作的按钮
function cancel_rename2() {
document.all.item(lastTypeID2).innerText = lastTypeName2;
}
function confirm_rename(type_id2){
//var nv = document.all.desc.value;
//set_data.src = "updatepage.jsp?name="+type_id2+"&code=&desc="+nv;
//document.all.item(type_id2).innerText = nv;
//lastTypeName2 = nv;
updateForm.submit();
}
function deltreepage(code,name){
//删除
//action=del&code="+code+"&name="+pc.getName()
document.delpage.code.value = code;
document.delpage.name.value = name;
delpage.submit();
}
//-->
</SCRIPT>
<style>
.botton {
font-size: 12px;
color: #804000;
BORDER-RIGHT: #666666 1px solid;
BORDER-TOP: #666666 1px solid;
BORDER-LEFT: #666666 1px solid;
BORDER-BOTTOM: #666666 1px solid;
BACKGROUND-COLOR: #ffffff;
}
.add_zl {
font-size: 12px;
line-height: 18px;
color: #333333;
text-decoration: none;
}
body {
margin-top: 0px;
}
.biaoti {
font-size: 12px;
color: #FFFFFF;
text-decoration: none;
}
.style2 {font-weight: bold}
.style3 {font-size: 12px; color: #FFFFFF; text-decoration: none; font-weight: bold; }
</style>
<link href="../../common/style/main.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE4 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
</head>
<body>
<table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
cellpadding="0" width="100%" border="0">
<tr bgcolor="#efefef" height="33">
<td align="left" valign="middle" id="ibtnaddResearch" title="" DefaultClass="btnDefault" OverClass="btnOver" DownClass="btnDown"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="add_zl">
<tr>
<td height="27" bgcolor="#f5f5f5"> <a href="edit_web_index.jsp">返回修改首页导航</a></td>
</tr>
</table></td>
</tr>
</table>
<form action="delpage.jsp" method="post" name="delpage">
<input type="hidden" id="code" name="code" />
<input type="hidden" id="name" name="name" />
<input type="hidden" id="action" name="action" value="del" />
</form>
<form action="config_index.jsp" method="post" name="faqForm">
<%
String uri = request.getContextPath();
%>
<input type="hidden" id="city" name="city" value="" />
<input type="hidden" id="a_currpage" name="a_currpage" value="<%= a_currPage %>" />
<input type="hidden" id="c_currpage" name="c_currpage" value="<%= c_currPage %>" />
<input type="hidden" id="to_page" name="to_page" value="" />
</form>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="52%" valign="top" background="../../images/t_l_bg.gif" class="add_zl">
<br>
<table width="100%" class="add_zl">
<form action="delpage.jsp" method="post" name="updateForm">
<input type="hidden" id="code" name="code" value="<%= code %>" />
<input type="hidden" id="action" name="action" value="update" />
<%=sPromotionList.toString()%>
</form>
</table>
<br>
</td>
<td width="48%" valign="top" background="../../images/t_l_bg.gif">
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/sc_sheet.gif">
<FORM NAME="upload" METHOD="POST" ACTION="do_upload.jsp" ENCTYPE="multipart/form-data">
<tr>
<td align="left" valign="top">
<div align="center">
<br>
<input type="hidden" name="TEST" value="good">
<span class="add_zl">请上传文件......<br>
(<span class="STYLE4">单个文件最大10M,<br>
为了正常显示,所有的文件名请用英文单字节字符,不要用中文名</span>) </span> </div>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="add_zl">
<tr bgcolor="#FFFFFF">
<td height="35"> 标 题:
<input name="desc" type="text" class="botton" id="desc" size="41">
<input name="code" type="hidden" value="<%=code%>"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="70"> 主文件:
<input name="FILE1" type="FILE" class="botton" size="30" >
<input name="name" type="hidden" id="name">
<input name="type" type="hidden" id="type">
<br>
<span class="STYLE4">说明:在该主文件里上传网页文件,如:html,htm等,在这里上传的文件会在左边生成标题。<br>
其网页所带的附件(如页面的图片等)从下面上传,格式为:jpg,gif,swf在左边不会生成标题。</span></td>
</tr>
</table>
<br>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td height="35" bgcolor="#FFFFFF"><div align="center"><span class="add_zl">附件1:</span>
<input name="FILE2" type="FILE" class="botton" size="30">
</div></td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF"><div align="center"><span class="add_zl">附件2:</span>
<input name="FILE3" type="FILE" class="botton" size="30">
</div></td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF"><div align="center"><span class="add_zl">附件3:</span>
<input name="FILE4" type="FILE" class="botton" size="30">
</div></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFFFFF"><span class="add_zl">附件4:</span>
<input name="FILE5" type="FILE" class="botton" id="FILE5" size="30"></td>
</tr>
<tr>
<td height="35" align="center" bgcolor="#FFFFFF"><span class="add_zl">附件5:</span>
<input name="FILE6" type="FILE" class="botton" id="FILE6" size="30"></td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF"><div align="center">
<input name="Submit" type="submit" class="botton" value="上传它们!" onMouseDown="aa()">
<br>
</div></td>
</tr>
</table>
<br>
</td>
</tr></FORM>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -