<%if Session("weight")<>5 then 
Response.Redirect "error.asp?cause=4"
 end if
%><html><head><title>添加广告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../images/Css.css" rel=stylesheet>
<!--#include file="data.asp"-->
<script language="javascript" src="ShowProcessBar.js"></script>

<Script Language="javaScript">
    function  validate()
    {
       
        if  (document.myform.src.value=="")
        {
            alert("链接地址不能为空");
            document.myform.src.focus();
            return false ;
        }
        if  (document.myform.content.value=="")
        {
            alert("说明不能为空");
            document.myform.content.focus();
            return false ;
        }
        if  (document.myform.height.value=="")
        {
            alert("高度不能为空");
            document.myform.height.focus();
            return false ;
        }
        if  (document.myform.width.value=="")
        {
            alert("宽度不能为空");
            document.myform.width.focus();
            return false ;
        }
     
}
</Script>

<form method="post" action="adrot_save.asp" enctype="multipart/form-data" name=myform  onSubmit='return validate()'>
  <div align="center">
        
    <br>
    <TABLE border=1 bordercolorlight='000000' bordercolordark=#ffffff cellspacing=0 cellpadding=0 align=center width="450">
      <TR> 
        <TD height=20 width=73>&nbsp; 
          <div align="left">链接地址</div>
        </TD>
        <TD height=20 width="371"> 
          <INPUT name="url" 
            size=30>
        </TD>
      </TR>
      <TR> 
        <TD height=20 width=73> 
          <div align="left">广告说明</div>
        </TD>
        <TD height=20 width="371"> 
          <TEXTAREA cols=40 name="content" rows=6 class="txt" style="overflow:auto"></TEXTAREA>
        </TD>
      </TR>
      <tr> 
        <TD height=20 width=73>广告类型:</TD>
        <td height="16" width="371"> 
          <select name="type" style="height:18px;font-size:9pt">
            <option value="SWF">FLASH</option>
            <option value="GIF" selected>图片</option>
          </select>
          广告长宽： 
          <input type="text" name="width" size=2 value="468">
          &times; 
          <input type="text" name="height" size=1 value="60">
        </td>
      </tr>
      <tr> 
        <TD height=20 width=73>&nbsp;广告</TD>
        <td height="16" width="371"> 
          <input type="file" name="src" size="20" value="浏览">
          &nbsp;&nbsp; 
          <input type="submit" value="添加广告" name="B1" class="txt " IsShowProcessBar="True">
        </td>
      </tr>
    </table>
    
  </div></form></body></html>
  <% 
rs.Close
%>