日期:2014-05-17 浏览次数:20468 次
模板文件:
<!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>资讯管理-{$site.SITE_INFO.name}</title>
<php>
$addCss="";
$addJs="";
$currentNav ='资讯管理 > 资讯列表';
</php>
<include file="Common:intoHead" />
<script type="text/javascript" src="__PUBLIC__/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<script>
function import_check(){
var f_content = form1.file.value;
var fileext=f_content.substring(f_content.lastIndexOf("."),f_content.length)
fileext=fileext.toLowerCase()
if (fileext!='.xlsx')
{
alert("对不起,导入数据格式必须是xlsx格式文件哦,请您调整格式后重新上传,谢谢 !");
return false;
}
else{ document.getElementById("form1").submit();}
}
</script>
<div class="wrap">
<include file="Common:head" />
<div class="mainBody">
<include file="Common:left" />
<div id="Right">
<div class="Item hr">
<div class="current">资讯列表</div>
</div>
<div align="right" id="excels">
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="__APP__/Lawerinfo/sqlinsert">
<table><tr> <td width="400px;" height="50"> 选择你要导入的数据表:</td>
<td width="82%"><label>
<input name="file" type="file" id="file" size="50" />
</label>