<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_user_adv_sendphoto" %>
<%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 Working(URL,Msg){
	if(confirm(Msg)){
		window.location=URL;
	}
}
</script>
<script type="Text/JavaScript" language="javascript">
function check(){
	if(document.form.file.value==""){
		alert("选点击浏览选择您要上传的图片！");
	}else{
		document.form.Submit.disabled=true;
		form.submit();
	}
}
function del(strurl){
	if(confirm('确定要删除这条记录吗？')){
	window.location=URL;
	}
}
			//大类与小类相关联
function changeselect(locationid)
{
	document.form.J_sortid.length = 0;
	document.form.J_sortid.options[0] = new Option('--请选择行业子类--',"");
	for (i=0; i<selectclass.length; i++){
		if (selectclass[i][0] == locationid){
		document.form.J_sortid.options[document.form.J_sortid.length] = new Option(selectclass[i][1],selectclass[i][2]);
		//document.form.A_jifen.value=selectclass[i][3]
		}
	}
}
function changeselect1(){
	var jifen=document.form.J_sortid.value
	var jifenayy=jifen.split(",")
	document.form.sortid.value=jifenayy[0];
	document.form.A_jifen.value=jifenayy[1];
	document.form.A_rebate.value=0.0+jifenayy[2];
}
function tank(){
	if (document.form.typeid.value==""){
		alert("栏目名称不能为空");
		document.form.typeid.focus();
		return false;
	}
	if (document.form.sortid.value==""){
		alert("广告名称不能为空");
		document.form.sortid.focus();
		return false;
	}
	if (document.form.A_jifen.value==""){
		alert("所需积分不能为空");
		document.form.A_jifen.focus();
		return false;
	}
	
	if (document.form.A_userid.value==""){
		alert("会员名不能为空");
		document.form.A_userid.focus();
		return false;
	}
	if (document.form.A_endtime.value==""){
		alert("到期时间不能为空");
		document.form.A_endtime.focus();
		return false;
	}
}
</script>
<script type="Text/JavaScript" src="inc/getdate1.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="3" cellspacing="1">
          <form name="form" method="post" action="?action=add" onsubmit="return tank()">
            <tr style="background-color:#FFFFFF">
              <td style="height:26; width:21%"><div align="right">栏目名称：</div></td>
              <td style="height:26; width:79%"><span class="lh15">
                <select name="typeid" onchange="changeselect(this.value)">
                  <option value="">--请选择广告大类--</option>
                  <%=GetAdTypeOptions()%>
                </select>
                <script type="Text/JavaScript" lanuage="javascript">
                //大类JS
                var selectclass= new Array();
                <%=GetAdClassArray("selectclass")%>
                  </script>
                <select name="J_sortid"  maxlength="80" onchange="changeselect1()">
                  <option value="" selected="selected">--请选择广告子类--</option>
                </select>
              <a href="user_adv_site.aspx"><img src="images/show.gif" alt="查看详情" width="60" height="20" border="0" /></a></span></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26"><div align="right">所需积分：</div></td>
              <td style="height:26"><input name="A_jifen" type="text" id="A_jifen" size="10" readonly="readonly" />
                点/月
                <input name="sortid" type="hidden" id="sortid" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:26"><div align="right">折扣：</div></td>
              <td style="height:26"><input name="A_rebate" type="text" id="A_rebate" size="5" readonly="readonly" />
              </td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26"><div align="right">会员名：</div></td>
              <td style="height:26"><input name="A_userid" type="text" id="A_userid" value="<%=AppConst.CookieUserID%>" readonly="readonly" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:26"><div align="right">投放时间：</div></td>
              <td style="height:26"><input name="A_starttime" type="text" id="A_starttime" value="<%=Date.Today%>" /></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26"><div align="right">到期时间：</div></td>
              <td style="height:26"><input name="A_endtime" type="text" id="A_endtime" onfocus="setday(this)" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:26"><div align="right">网站名称：</div></td>
              <td style="height:26"><input name="A_webname" type="text" id="A_webname" maxlength="40" />
                如：思若科技</td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26"><div align="right">图片：</div></td>
              <td style="height:26"><input name="A_pic" type="text" id="A_pic" size="30" readonly="readonly" />
                  <input type="button" name="Submit2" value="上传广告图片" onclick="window.open('../Include/load.aspx?formname=form&editname=A_pic&uppath=/Ad/Systemad/&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" /></td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:26"><div align="right">网址：</div></td>
              <td style="height:26"><input name="A_website" type="text" id="A_website" value="Http://" size="30" />
                &nbsp;</td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26"><div align="right">说明：</div></td>
              <td style="height:26"><input name="A_explain" type="text" id="A_explain" value="" size="40" maxlength="40" />
                *40个字以内</td>
            </tr>
            <tr style="background-color:#FFFFFF">
              <td style="height:26">&nbsp;</td>
              <td style="height:26"><input type="submit" name="Submit" value="提交" />
                  <input type="reset" name="Submit" value="重置" /></td>
            </tr>
            <tr style="background-color:#FDF5F0">
              <td style="height:26" colspan="2">&nbsp;</td>
            </tr>
          </form>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>