<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" Inherits="b2bNet.user_User_classad_add" %>
<%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 check()
{   
    if (document.form.dtitle.value.length<1)
	{
        alert("请填写信息标题！");
        document.form.dtitle.focus();
        return false;
    }
    if (document.form.dlei.value=="选择信息类别")
	{
        alert("请选择信息类别！");
        document.form.dlei.focus();
        return false;
    }
    if (document.form.dtext.value.length<1)
	{
        alert("请您填写信息内容！");
        document.form.dtext.focus();
        return false;
    }
    if (document.form.dtext.value.length>1500)
	{
        alert("请把信息内容的字数控制在1500以内！");
        document.form.dtext.focus();
        return false;
    }
	if (document.form.dusername.value.length == 0) {
		alert("请您填写联系人姓名！");
		document.form.dusername.focus();
		return false;
	}
	var str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ,./'[]{}`1234567890-=\~!@#$%^ & *()_+|?><:";
	var errorChar
	errorChar = isCharsInBag(form.dusername.value,str)
	if (errorChar != "" )
	{
		alert('联系人姓名必须是中文！');
		form.dusername.focus();
		return false;
	} 
function isCharsInBag (s, bag)
{ 
var i,c;
for (i = 0; i < s.length; i++)
{ 
c = s.charAt(i);//字符串s中的字符
if (bag.indexOf(c) > -1) 
return c;
}
return "";
}
	
	    if(document.form.dusername.value.length<2||document.form.dusername.value.length>4){
		alert("联系人姓名不能少于2字多于4字！");
		document.form.dusername.focus();
		return false;
	}	

    if (document.form.dtel.value.length<1)
	{
        alert("请填写您的联系电话！");
        document.form.dtel.focus();
        return false;
    }

       var dtel=document.form.dtel.value;
       for (var i=0;i<dtel.length;i++){
              var c=dtel.charAt(i);
              if (c<"0" || c>"9") break;
       }
       if (i<7){
              alert("电话号码必须是7位以上的数字！");
			  document.form.dtel.focus();
              return false;
       }
	   
    if (document.form.dstop.value=="选择有效期")
	{
        alert("请选择有效期！");
        document.form.dstop.focus();
        return false;
    }
}
//-->
</script>
<script type="Text/JavaScript" LANGUAGE="JavaScript">      
<!-- Begin
maxLen = 1500;
function checkMaxInput(form) {
if (form.dtext.value.length > maxLen)
form.remLen.value = 0;
else form.remLen.value = maxLen - form.dtext.value.length;
}
//  End -->
</script>

<script language="javascript" type="text/javascript">
<!--
function changeColor(o) {
    document.getElementById("colorBox").style.color = o.value;
}
//-->
</script>
<script language="javascript" type="text/javascript">
<!--
function changeColor1(o) {
    document.getElementById("colorBox1").style.background = o.value;
}
//-->
</script>
</head>
<body>
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table style="width:600" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td style="width:100"><div align="center"><a href="User_classad_list.aspx"><img src="images/classad_02.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center"><a href="User_classad_add.aspx"><img src="images/classad_01.gif" width="50" height="48" border="0" /></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="user_info_list.aspx"><img height="48" src="images/j_resume_modify.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_info_add.aspx"><img height="48" src="images/j_position_supply.gif" width="50" border="0" /></a></div>
          <a href="User_work_favorite.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="User_products_list.aspx"><img height="48" src="images/photo_all.gif" width="50" border="0" /></a></div>
          <a href="User_work_person.aspx"></a></div></td>
        <td style="width:100"><div align="center">
          <div align="center"><a href="User_products_add.aspx"><img height="48" src="images/photo_add.gif" width="50" border="0" /></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"><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:100"><div align="center"><strong>我的产品</strong></div></td>
        <td style="width:100"><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><span #invalid_attr_id="none"><strong>添加分类信息</strong></span></strong></td>
    <td class="bottom"> <div align="right">发布分类信息： 带 <span class="00002">*</span> 号的为必填项！ </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><form method="POST" action="" onsubmit="return check();" name="form">
        <td style="height:50" valign="middle" bordercolor="#EDD6CA" class="0008"><table style="width:100%"  border="0" cellpadding="2" cellspacing="2">
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">信息标题：</div></td>
                                       <td><input type="text" name="dtitle" size="20" maxlength="10" />
               <font color="#FF0000">* 10字以内</font></td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"> <div align="center">更多选项：</div></td>
                                       <td><table style="background-color:#f4f4f4; width:100%"  border="0" cellpadding="0" cellspacing="1">
  <tr>
    <td colspan="2">是否加粗：
                     <input type="radio" value="no" name="dcu" />
  否&nbsp;
  <input type="radio" value="yes" name="dcu" checked="checked" />
  是</td>
  </tr>
  <tr>
    <td>标题颜色：
                     <input name="dcolor" type="text" id="dcolor2" onchange="changeColor(this);" size="8" maxlength="8" />
                     <input type="button" name="Submit2" value="选择颜色" onclick="window.open('../Include/colorpicker.aspx?txtColor=dcolor2&onchange=changeColor', 'colorPicker', 'width=200, height=160');" /></td>
    <td rowspan="2"><table style="background-color:#cae2f8; height:24; width:180" border="0" cellpadding="0" cellspacing="1">
                     <tr>
                       <td style="" align="center"bgcolor="#EFF7FE"><div id="colorBox1" style="width: 180px;height: 24px">
                           <table style="height:5; width:166" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                               <td></td>
                             </tr>
                           </table>
                           <div id="colorBox"><font style="font-size:14px"><b>标题和背景颜色演示</b></font></div>
                       </div></td>
                     </tr>
                   </table></td>
                  </tr>
                  <tr>
                    <td>标题背景：
                     <input name="dbgcolor1" type="text" id="dbgcolor1" onchange="changeColor1(this);" size="8" maxlength="8" />
                     <input type="button" name="Submit" value="选择颜色" onclick="window.open('../Include/colorpicker.aspx?txtColor=dbgcolor1&onchange=changeColor1', 'colorPicker', 'width=200, height=160');" /></td>
                  </tr>
                  <tr>
                    <td colspan="2">信息形式：<input type="radio" value="no" name="dispic" checked="checked" />
                      文字信息&nbsp;
                      <input type="radio" value="yes" name="dispic" />  图片信息</td>
                  </tr>
                  <tr>
                    <td colspan="2">图片路径：
                    <input name="dpic" type="text" value="" size="30" maxlength="30" />
                    <input type="button" name="Submit2" value="上传图片" onclick="window.open('../Include/load.aspx?formname=form&editname=dpic&uppath=../upload/classad/&imagename=&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')" />					 
                    <font color="#FF0000">支持gif、jpg</font></td>
                  </tr>
                </table>
                </td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">信息类别：</div></td>
                                       <td><select name="dlei" size="1">
                 <option selected value="选择信息类别">选择信息类别</option>
                 <%=GetAdClassTypeOptions() %>
               </select></td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">信息内容：</div></td>
                                       <td><textarea rows="6" name="dtext" cols="50" onkeydown="checkMaxInput(this.form)" onkeyup="checkMaxInput(this.form)"></textarea>
                 <font color="#FF0000">*&nbsp;<br>
                 </font> 目前还可写<font color="#FF0000">
                   <input readonly type="text" name="remLen" size="4" maxlength="4" value="1500" style="border: 1 solid #888888" />
                   </font>个字！</td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">联 系 人：</div></td>
                                       <td><input name="dusername" type="text" id="dusername" size="20" maxlength="20" />
        <font color="#FF0000">* 中文(2-4字)</td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">身份证号：</div></td>
                                       <td><input name="dcardid" type="text" id="dcardid" size="20" maxlength="18" />
        <font color="#FF0000">* 不可修改，本站保密</td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">联系电话：</div></td>
                                       <td><input name="dtel" type="text" id="dtel" size="20" maxlength="20" />
        <font color="#FF0000">* 数字(7位以上)</font></td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td style="width:100"><div align="center">有效期至：</div></td>
                                       <td><select size="1" name="dstop">
                 <option selected value="选择有效期">选择有效期</option>
                 <option value="7">一星期</option>
                 <option value="15">半个月</option>
                 <option value="31">一个月</option>
                 <option value="61">两个月</option>
                 <option value="92">三个月</option>
                 <option value="183">半年</option>
                 <option value="365">一年</option>
                 <option value="3650">长期</option>
             </select></td>
                                     </tr>
                                     <tr style="background-color:#FFFFFF">
                                       <td colspan="2">
                                         <div align="center">
       <input type="submit" name="Submit" value="确认发布" />
                  <input type="hidden" name="send" value="add" />
                                       </div></td>
                                     </tr>
                                   </table></td>
      </form></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><span #invalid_attr_id="none"><strong>注 意 事 项</strong></span></strong></td>
    <td style="width:448" class="bottom">&nbsp;</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" cellspacing="0" cellpadding="0">
          <tr>
            <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 请不要 重复发布 内容相同的信息，其他内容相同的信息将拒绝审核！ </td>
          </tr>
          <tr>
            <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 请确保您的信息的准确性，以便及时与您联系；[ <a href="user_company_modi.aspx"><u>修改联系方式</u> </a>] </td>
          </tr>
          <tr>
            <td style="height:21">&nbsp;<img src="images/JT_2.gif" width="8" height="8" /> 尽可能的完善您的信息。</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
<%Page_Loaded()%>
</html>
