📄 wt1101.jsp
字号:
<%@ page language="java" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<html>
<head>
<title>导入委托书</title>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/main_content.css" rel="stylesheet" type="text/css">
<link href="css/button.css" rel="stylesheet" type="text/css">
</head>
<script language=javascript>
function checkAll(e, itemName)
{
var aa = document.getElementsByName(itemName);
for (var i=0; i<aa.length; i++)
aa[i].checked = e.checked;
}
function checkItem(e, allName)
{
var all = document.getElementsByName(allName)[0];
if(!e.checked) all.checked = false;
else
{
var aa = document.getElementsByName(e.name);
for (var i=0; i<aa.length; i++)
if(!aa[i].checked) return;
all.checked = true;
}
}
function check(){
var str = document.all.filesrc.value;
if(str==""){
alert('请选择你要导入的数据源');
return false;
}
var str2 = str.substring(str.length-3,str.length);
//alert(str2);
if(str2!="xls"){
alert('您输入的是'+str2+'格式的文件,数据源格式不正确,请选择Excel表!');
return false;
}
return true;
}
</script>
<body style="margin:0px;">
<form name="form1" method="post" action="<%=basePath%>wtgl/dao.jsp" ENCTYPE="multipart/form-data" onsubmit="return check()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="tr_title4"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2">
<input type="file" name="filesrc" value="浏览"/>
<input name="Submit" type="submit" class="BlueButton" title="Import" value="导 入">
</td>
<td width="49%" rowspan="3"><img src="images/WelcomePage.jpg" width="450" height="460"></td>
</tr>
<tr>
<td width="29%"> </td>
<td width="22%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td class="tr_title4"> </td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -