<!--#include file="../include/Conn.asp"-->
<!--#include file="../Include/Char.asp" -->
<!--#include file="Admin_IsLogin.asp" -->
<html><head><title>添加文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META http-equiv=Content-type content="text/html; charset=gb2312">
<link href="Images/Style.css" rel="stylesheet" type="text/css">
</head>
<BODY>
 <%
      admin_flag="09"
      if instr(session("flag1"),admin_flag)=0 or isnull(session("flag1"))=true then
         Response.write "<br><br><br><br><b><font color=red>对不起，您没有管理本页面的权限!</font></B>"
		 Response.end
	  end if
      %>
<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="admin_adsave.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>
        例如：http://www.yjys.net</TD>
      </TR>
      <TR> 
        <TD height=20 width=73> 
          <div align="left">广告位</div>
        </TD>
        <TD height=20 width="371"> 
          <select name="content" id="content" style="height:18px;font-size:9pt">
            <option value="1" selected>首页通栏一</option>
			<option value="2">首页通栏二</option>
			<option value="3">首页通栏三</option>
			<option value="4">企业推荐一</option>
            <option value="5">企业推荐二</option>
            <option value="6">新闻页面AD</option>
            <option value="7">次页通栏AD</option>
            <option value="8">首页竖条一</option>
			<option value="9">首页竖条二</option>
          </select>
        </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="GIF" selected>图片</option>
            <option value="SWF">FLASH</option>
          </select>
          广告长宽： 
          <input type="text" name="width" size=4 value="762">
          × 
          <input type="text" name="height" size=4 value="100">
        </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>
    广告大小参考值：首页通栏广告762×100 企业推荐广告180×50<br>
    新闻页面告广500×80 次页通栏广告762×100 首页竖条广告177×260</div>
</form></body></html>
