📄 upload_ad_b.jsp
字号:
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../include.jsp"%>
<html>
<head>
<base target="top">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>上传广告</title>
<script>
document.write("<script src='<%=ConfigBean.getStringValue("systenFolder")%>alert_js.jsp?rnd="+Math.random()+"'></s"+"cript>")
</script>
<%
if ( request.getMethod().equalsIgnoreCase("post") )
{
String name = aderMgr.uploadAdv(request);
out.println("<script>");
if ( name.indexOf(".") > 0)
{
out.println("window.returnValue='" + name + "'");
out.println("window.close()");
}
else
{
out.println("alert('" + name + "')");
}
out.println("</script>");
}
%>
<link href="../comm.css" rel="stylesheet" type="text/css">
<script>
function checkF(theForm)
{
if (theForm.file.value=="")
{
alert("请选择文件");
return(false);
}
return(true);
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellpadding="0" cellspacing="5">
<form action="" method="post" enctype="multipart/form-data" name="form1" target="_self" onSubmit="return checkF(document.form1)">
<tr>
<td width="100%"> <input name="file" type="file" size="16">
<input name="Submit" type="submit" class="short-button" value=" 上 传 "> </td>
</tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -