<!--#include file="conn.asp" -->
<% adm_power_page=1 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<html>
<head>
<title>文件上传</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
td {  font-size: 9pt}
a {  color: #000000; text-decoration: none}
a:hover {  text-decoration: underline}
.tx {  height: 16px; width: 30px; border-color: black black #000000; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 1px; border-left-width: 0px; font-size: 9pt; background-color: #E8F1FF; color: #0000FF}
.bt {  font-size: 9pt; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; height: 16px; width: 80px; background-color: #eeeeee; cursor: hand}
.tx1 { height: 20px; width: 30px; font-size: 9pt; border: 1px solid; border-color: black black #000000; color: #000000}
-->
</style>
</head>

<body bgcolor="#FFFFFF" text="#000000" topmargin="0">
<form name="form1" method="post" action="upfile.asp" enctype="multipart/form-data" onsubmit="checkImage('file1')">
  <input type="hidden" name="act" value="upload">
  <table width="560" border="1" cellspacing="0" cellpadding="5" align="center" bordercolordark="#6B8FC8" bordercolorlight="#ffffff">
    <tr bgcolor="#CCCCCC"> 
      <td height="22" align="left" valign="middle" bgcolor="#000066"><font color="#FFFFFF">&nbsp;图书图片上传</font> 
      </td>
    </tr>
   
    <tr align="center" valign="middle"> 
      <td height="60" align="left" bgcolor="#FBFBFF" id="upid"> 
        <input type="hidden" name="filepath" value="../upfile">
        文件： 
        <input type="file" name="file1" style="width:400" class="tx1" value="">
        <br>
        <font color="#FF0000">上传文件控制在500kb以内扩展名为．gif .jpg .doc .rar .zip .htm</font></td>
    </tr>
    <tr align="center" valign="middle" bgcolor="#eeeeee"> 
      <td bgcolor="#eeeeee" height="24"> 
        <input type="submit" name="Submit" value="提 交" class="bt">
        <input type="reset" name="Submit2" value="清 除" class="bt">
      </td>
    </tr>
  </table></form>
</body>
</html><script language=javascript>
function checkImage(sId)
{
  if(( document.all[sId].value.indexOf(".gif") == -1) && (document.all[sId].value.indexOf(".jpg") == -1)&& (document.all[sId].value.indexOf(".zip") == -1)&& (document.all[sId].value.indexOf(".rar") == -1)&& (document.all[sId].value.indexOf(".txt") == -1)&& (document.all[sId].value.indexOf(".doc") == -1)&& (document.all[sId].value.indexOf(".htm") == -1)) {
    alert("请选择文件的扩展名为．gif .jpg .doc .rar .zip .htm ");
    event.returnValue = false;
    }
}
</script>
