<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.Admin_Admin_adv_siteadd" %>
<%On Error Resume Next%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="inc/admin_style.css" rel="stylesheet" type="text/css" /><link href="inc/style.css" rel="stylesheet" type="text/css" />
<title><%=AppConst.SiteName%></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.lh15 {LINE-HEIGHT: 150%
}
-->
</style>
<script type="Text/JavaScript" language="javascript">
	function check(){
		if (document.form.typeid.value==""){
			alert("栏目类别不能为空!");
			document.form.typeid.focus();
			return false;
		}
		if (document.form.S_sortname.value==""){
			alert("广告名称不能为空!");
			document.form.S_sortname.focus();
			return false;
		}
		if (document.form.S_jifeng.value==""){
			alert("所需积分不能为空!");
			document.form.S_jifeng.focus();
			return false;
		}
		if (document.form.S_w.value==""){
			alert("广告宽度不能为空!");
			document.form.S_w.focus();
			return false;
		}
		if (document.form.S_H.value==""){
			alert("广告高度不能为空!");
			document.form.S_H.focus();
			return false;
		}
		if (document.form.S_num.value==""){
			alert("广告列表显示个数不能为空!");
			document.form.S_num.focus();
			return false;
		}

			}
</script>
</head>

<body><table style="width:100%" border="0" cellpadding="0" cellspacing="1">
      <tr>
        <td style="height:24" class="topbg"><div align="center"><strong>==添加广告位==</strong></div></td>
      </tr>
</table><table style="width:100%"  border="0" align="center" cellpadding="1" cellspacing="1" class="border">
          
        <tr class="Title">
          <td style="height:27; width:70" align="center"><strong>管理功能：</strong></td>
          <td> | <a href="Admin_Adv_site.aspx"><font color="#ffffff">广告位查看</font></a> |
            <a href="Admin_adv_siteadd.aspx"><font color="#ffffff">添加广告位</font> </a> | <a href="Admin_adv_config.aspx"><font color="#ffffff">行业关键词广告设置</font></a> | 
          <a href="Admin_adv_add.aspx"><font color="#ffffff">投放新广告</font></a> | 
          <a href="Member_jifeng.aspx"><font color="#ffffff">充积分点</font></a> | <a href="Member_sendadv.aspx"><font color="#ffffff">广告提交管理</font></a></td>
        </tr>
      </table>
    <br><table style="width:100%"  border="0" align="center" cellpadding="0" cellspacing="0">
          
        <tr>
          <td style="height:27; width:30" align="center"><img src="images/12.gif" width="6" height="10" /></td>
          <td>您现在的位置：<%=AppConst.SiteName%> > 广告服务 > 添加广告位</td>
        </tr>
      </table><br>
      <table style="width:100%"  border="0" cellpadding="1" cellspacing="1" class="border">
        <form name="form" method="post" action="?action=add" onsubmit="return check()">
          <tr style="background-color:#E6F4FF">
            <td style="height:22" colspan="2" class="Title"><div align="center"><strong>添加广告位</strong></div></td>
          </tr>
          <tr class="tdbg">
            <td style="height:24"><div align="right">栏目类别：</div></td>
            <td style="height:24"><span class="lh15">
              <select name="typeid">
                <option value="">--请选择栏目类别--</option>
                <%=GetAdTypeOptions()%>
              </select>
            </span></td>
          </tr>
          <tr class="tdbg">
            <td style="height:24; width:17%"><div align="right">广告名称：</div></td>
            <td><input name="S_sortname" type="text" id="S_sortname" size="40" maxlength="45" /></td>
          </tr>
          <tr class="tdbg">
            <td style="height:24"><div align="right">所需积分：</div></td>
            <td><input name="S_jifeng" type="text" id="S_jifeng" size="10" /></td>
          </tr>
          <tr class="tdbg">
            <td style="height:5"><div align="right">折扣：</div></td>
            <td><input name="S_rebate" type="text" id="S_rebate" size="10" />
              如：0.2(2折)</td>
          </tr>
          <tr class="tdbg">
            <td style="height:5"><div align="right">广告宽度：</div></td>
            <td><input name="S_w" type="text" id="S_w" size="10" />
              如：760(单位像素，px)</td>
          </tr>
          <tr class="tdbg">
            <td style="height:11"><div align="right">广告高度：</div></td>
            <td><input name="S_H" type="text" id="S_H" size="10" />
              如：80(单位像素，px)</td>
          </tr>
          <tr class="tdbg">
            <td style="height:11"><div align="right">显示个数：</div></td>
            <td><input name="S_num" type="text" id="S_num" size="10" />
              如：1(在这里填入表方式显示广告个数)</td>
          </tr>
          <tr class="tdbg">
            <td valign="top"><div align="right">广告位置及说明：</div></td>
            <td><input type="hidden" name="S_remark"  value='' />
		  <iframe id='Content' src='../editor/ewebeditor.htm?id=S_remark&style=light' frameborder="0" scrolling="no" width='550' height='350'></iframe></td>
          </tr>
          
          <tr class="tdbg">
            <td style="height:26">&nbsp;</td>
            <td><input type="hidden" name="S_remark" />
                <input type="submit" name="Submit1" value=" 添加 " onclick="document.form.S_remark.value = frames.message.document.body.innerHTML;" />
                <input type="reset" name="reset1" value=" 重填 " onclick="frames.message.document.body.innerHTML='';" />
                <input type="button" name="back1" value="返回一页" onclick="javascript:history.go(-1);" /></td>
          </tr>
          <tr class="tdbg">
            <td style="height:26" colspan="2">&nbsp;</td>
          </tr>
          <tr style="background-color:#F4FCFF">
            <td style="height:26" colspan="2">&nbsp;</td>
          </tr>
        </form>
      </table>
</body>
<%Page_Loaded()%>
</html>
