<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_user_adv_sendkeyword" %>
<%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="<%=AppConst.SiteUrl%>/<%=AppConst.Skinpath%>/style.css" rel="stylesheet" type="text/css" />
<title>会员中心</title>
<script type="Text/JavaScript" language="javascript">
function TableMouseClick(Url){
	window.location=Url;
}
//提示信息
function setclass(Str){
	if (Str=="b"){
	document.form.I_SmallClassId.disabled=true;
	}else{
	document.form.I_SmallClassId.disabled=false;
	}
}
</script>
<script type="Text/JavaScript" language="javascript">
function del(strurl){
	if(confirm('确定要删除这条记录吗？')){
	window.location=URL;
	}
}
//大类与小类相关联
function changeselect(locationid)
{
	document.form.I_SmallClassId.length = 0;
	document.form.I_SmallClassId.options[0] = new Option('--请选择行业子类--',"");
	for (i=0; i<selectclass.length; i++)
	{
		if (selectclass[i][0] == locationid)
		{document.form.I_SmallClassId.options[document.form.I_SmallClassId.length] = new Option(selectclass[i][1], selectclass[i][2],selectclass[i][3],selectclass[i][4]);
		document.form.jifeng.value=selectclass[i][3];
		document.form.Smallname.value=selectclass[i][4];
		}
	}
}
function changeselect1(){
	var jifen=document.form.I_SmallClassId.value
	var jifenayy=jifen.split(",")
	document.form.Smallname.value=jifenayy[0];
	document.form.jifeng.value=jifenayy[1];
}
function tank(){
	if (document.form.classid.checked==false){
		alert("投放类型不能为空");
		return false;
	}
	if (document.form.I_BigClassId.value==""){
		alert("行业类别不能为空！");
		document.form.I_BigClassId.focus();
		return false;
	}
	if (document.form.menuid.value==""){
		alert("请选择广告的投放位置！");
		document.form.menuid.focus();
		return false;
	}
	
	if (document.form.datatimed.value==""){
		alert("请选择投放有效时间！");
		document.form.datatimed.focus();
		return false;
	}
		if (document.form.typeid.value==""){
		alert("请选择广告的类型！");
		document.form.typeid.focus();
		return false;
	}
	if (document.form.pic.value==""){
		alert("请上传广告图片!");
		document.form.pic.focus();
		return false;
	}
}
</script>
<script type="Text/JavaScript" src="inc/getdate.js"></script>
</head>
<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="width:100"><div align="center"><a href="user_adv_list.aspx"><img src="images/adv_01.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="user_adv_sendphoto.aspx"><img src="images/adv_02.gif" width="50" height="48" border="0" /></a><a href="user_Friend_add.aspx"></a><a href="User_guest_company.aspx"></a></div></td>
        <td style="width:100"><div align="center"><a href="user_adv_sendkeyword.aspx"><img src="images/adv_03.gif" width="50" height="48" border="0" /></a><a href="user_Friend_class.aspx"></a><a href="User_guest_Send.aspx"></a></div></td>
        <td style="width:100"><div align="center">
            <div align="center"><a href="user_adv_site.aspx"><img height="48" src="images/adv_04.gif" width="50" border="0" /></a></div>
          <a href="User_work_search.aspx"></a></div></td>
        <td style="width:100"><div align="center">
            <div align="center"><a href="user_adv_sendinfo.aspx"><img height="48" src="images/adv_05.gif" width="50" border="0" /></a></div>
          <a href="User_work_favorite.aspx"></a></div></td>
        <td style="width:90"><div align="center">
            <div align="center"><a href="user_adv_sendproduct.aspx"><img height="48" src="images/adv_06.gif" width="50" border="0" /></a></div>
          <a href="User_work_person.aspx"></a></div></td>
        <td style="width:110"><div align="center">
            <div align="center"><a href="user_adv_sendcompany.aspx"><img height="48" src="images/adv_07.gif" width="50" border="0" /></a><a href="User_system_main.aspx"></a><a href="User_products_add.aspx"></a></div>
          <a href="User_work_search.aspx"></a></div></td>
      </tr>
      <tr>
        <td style="width:100"><div align="center"><strong>我发布的广告</strong></div></td>
        <td style="width:100"><div align="center">
            <p><strong>发布图片广告</strong></p>
        </div></td>
        <td style="width:100"><div align="center"><strong>发布关键词广告</strong></div></td>
        <td style="width:100"><div align="center"><strong>查看图片广告位</strong><strong></strong></div></td>
        <td style="width:100"><div align="center"><strong>发布商机广告</strong></div></td>
        <td style="width:90"><div align="center"><strong>发布产品广告</strong></div></td>
        <td style="width:110"><div align="center"><strong>发布企业大全广告</strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table style="width:100%; height:24" cellspacing="0" cellpadding="0"  border="0">
  <tr>
    <td style="background-color:#FFF1EB; height:24; width:142" align="center" valign="bottom" class="TDBG1"><strong>发布行业关键词广告</strong></td>
    <td class="bottom"><div align="right">注意：请认真填写各项，以便顺利审核！</div></td>
  </tr>
</table>
<table style="width:100%"  border="0" cellpadding="0" cellspacing="0" class="topnone">
  <tr>
    <td style="background-color:#FFFFFF"><table style="width:100%; height:50" bordercolor="#FFF1EB" cellspacing="0" cellpadding="4" align="center" border="6">
      <tr>
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008"><table style="width:100%"  border="0" cellpadding="2" cellspacing="1">
          <form name="form"  action="?action=add" method="post" onsubmit="return tank()">
            <tr style="background-color:#FDF5F0">
              <td style="height:22"><div align="right">投放类型：</div></td>
              <td><input name="classid" type="radio" value="1" onclick="setclass('b')" />
                大类
                <input name="classid" type="radio" onclick="setclass('s')" value="2" />
                小类</td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:22"><div align="right">行业类别：</div></td>
              <td><span class="lh15">
                <select name="I_BigClassId" id="I_BigClassID" onchange="changeselect(this.value)">
                  <option value="">--请选择行业大类--</option>
                  <%=GetBigClassOptions()%>
                </select>
                <script type="Text/JavaScript">
                //大类JS
                var selectclass= new Array();
                  <%=GetSmallClassArray("selectclass", False, True)%>
                 </script>
                <select name="I_SmallClassId" id="I_SmallClassId" onchange="changeselect1()">
                  <option value="" selected="selected">--请选择行业子类--</option>
                </select>
              </span></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:22"><div align="right">投放位置：</div></td>
              <td><select name="menuid" id="menuid">
                  <option value="" selected="selected">请选择...</option>
                  <option value="1">商业机会</option>
                  <option value="2">产品展厅</option>
                  <option value="3">企业大全</option>
              </select></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:22"><div align="right">投放有效时间：</div></td>
              <td><select name="datatimed" id="datatimed">
                  <option value="" selected="selected">请选择...</option>
                  <option value="7">一周</option>
                  <option value="15">半个月</option>
                  <option value="30">一个月</option>
                  <option value="60">二个月</option>
                  <option value="90">三个月</option>
                  <option value="180">半年</option>
                  <option value="365">一年</option>
                  <option value="730">二年</option>
              </select></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:22"><div align="right">广告类型：</div></td>
              <td><select name="typeid" id="typeid">
                  <option value="" selected="selected">请选择...</option>
                  <option value="1">行业词banner广告（尺寸：756*70PX）</option>
                  <option value="2">行业词擎天柱广告（尺寸：215*246PX）</option>
              </select></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:22; width:27%"><div align="right">所需积分：</div></td>
              <td style="width:73%"><input name="jifeng" type="text" id="jifeng" size="5" maxlength="5" readonly="readonly" />
                点/月
                <input name="SmallClassId" type="hidden"  id="Smallname" /></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:22"><div align="right">上传图片：</div></td>
              <td><input name="pic" type="text" id="pic" size="25" READONLY="READONLY" />
                  <input type="button" name="Submit2" value="上传图片" onclick="window.open('../Include/load.aspx?formname=form&editname=pic&uppath=/Ad/Info/&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:22"><div align="right">图片链接地址：</div></td>
              <td><input name="weburl" type="text" id="weburl" value="http://" />
                *不要删除网址前的&quot;HTTP://&quot;</td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:22"><div align="right">用户名：</div></td>
              <td><input name="A_userid" type="text" id="A_userid" value="<%=AppConst.CookieUserID%>" readonly="readonly" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:22"><div align="right"></div></td>
              <td><input type="submit" name="Submit" value="提交" /></td>
            </tr>
          </form>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>