<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="gb2312">
<meta name="keywords" content="{$Meta_Keywords}">
<meta name="description" content="{$Meta_Description}">
<link type="text/css" rel="stylesheet" href="{$InstallDir}Skins/{$SkinDir}/Style/Style.css" />
<link type="text/css" rel="stylesheet" href="{$InstallDir}Skins/{$SkinDir}/Style/Class.css" />
<Script language="JavaScript" Src="{$InstallDir}Inc/Site.Js"></Script>
<Script language="JavaScript" Src="{$InstallDir}Inc/Menu.Js"></Script>
<meta name="generator" content="WRMPS {$SystemVersion}" />
<meta name="copyright" content="2004-2010 Wangren Inc." />
<title>快速发布 - {$ChannelName} - {$SiteTitle}</title>
<script language="JavaScript">
function replaceInput(obj,event){
	if(event.keyCode!=37 && event.keyCode!=39){
      var IsTitle=/[^\u4E00-\u9FA50-9a-zA-Z\-_! (),.\%\#\$\&\*|:"'?]/g;
	  if(IsTitle.test(obj.value)){
	    obj.value=obj.value.replace(IsTitle,'');
	  }
	}
}

function ClassPost() {
  var Msg = "";
  //是否包含电话
  var IsTel=/(([0-9]|[０-９]|[零,一,二,三,四,五,六,七,八,九])\W*){7,}/;
  //检测电话
  var Isphone=/(^(0\d{2,3})?(-|\s)?(\d{7,8})(-(\d{2,4}))?$)|(^(\+86)?(\s+)?((13)|(15)|(18))(\d{9})$)/;
  //邮箱地址
  var IsEmail=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;

  DBC2SBC(document.myform.Tel,document.myform.Tel.value,0);
  DBC2SBC(document.myform.Email,document.myform.Email.value,0);

  if(document.myform.AreaID.value ==""){
    document.getElementById("AreaID1").innerHTML = "<font color=red><strong>请选择所属地区</strong></font>";
    Msg = "Err";}else{document.getElementById("AreaID1").innerHTML=""}
  if(document.myform.ClassID.value ==""){
    document.getElementById("ClassID1").innerHTML = "<font color=red><strong>请选择所属分类</strong></font>";
    Msg = "Err";}else{document.getElementById("ClassID1").innerHTML=""}
  if(document.myform.title.value ==""){
    document.getElementById("title1").innerHTML = "<br><font color=red><strong>请输入信息标题，且不能带有电话或邮箱等资料</strong></font>";
    Msg = "Err";}else{document.getElementById("title1").innerHTML=""}
  if(document.myform.Contact.value ==""){
    document.getElementById("Contact1").innerHTML = "<br><font color=red><strong>请输入信息联系人</strong></font>";
    Msg = "Err";}else{document.getElementById("Contact1").innerHTML=""}
  if(document.myform.Tel.value=="" && document.myform.Email.value==""){
    document.getElementById("Tel1").innerHTML = "<br><font color=red><strong>电话和邮箱请任填一样</strong></font>";
    document.getElementById("Email1").innerHTML = "<br><font color=red><strong>电话和邮箱请任填一样</strong></font>";
  }else{
  if(document.myform.Tel.value!=""){
    if(document.myform.Tel.value=="" || !Isphone.test(document.myform.Tel.value)){
      document.getElementById("Tel1").innerHTML = "<br><font color=red><strong>请填写正确的联系电话</strong></font>";
      Msg = "Err";}else{document.getElementById("Tel1").innerHTML=""}
	}else{
	  document.getElementById("Tel1").innerHTML = "";
	}
  if(document.myform.Email.value!=""){
    if (document.myform.Email.value =="" || !IsEmail.test(document.myform.Email.value)){
      document.getElementById("Email1").innerHTML = "<br><font color=red><strong>请输入正确的邮箱地址</strong></font>";
      Msg = "Err";}else{document.getElementById("Email1").innerHTML=""}
	}else{
	  document.getElementById("Email1").innerHTML = "";
	}
  }
  if ("{$IsIDQACode}" == "True" && document.myform.CodeAnswer.value == ""){
    document.getElementById("CodeAnswer1").innerHTML = "<br><font color=red><strong>请输入验证问题答案</strong></font>";
      Msg = "Err";}else{document.getElementById("CodeAnswer1").innerHTML=""}
  if ("{$IsIDCode}" == "True" && document.myform.Code.value == ""){
    document.getElementById("Code1").innerHTML = "<br><font color=red><strong>请输入验证码</strong></font>";
      Msg = "Err";}else{document.getElementById("Code1").innerHTML=""}
  if ( Msg != ""){
	return false;
  }else{
	document.getElementById("Loading").style.display="";
	document.getElementById("Loading").style.top=200;
	document.myform.submit();
  }
}

function get_Code(){
document.getElementById("imgurl").src='{$InstallDir}inc/{$CodePlan}.asp?'+Math.random()
}
</script>
</head>
<body>
{$My_通用_Hand}
  <div class=SitePath>{$SitePath}</div>
<br>
<form action="?Action=Save" name="myform" method="POST">
<input type="hidden" name="ComID" value="{$ComID}">
<input type="hidden" name="Days" value=30>
<table width="980px" border="0" cellspacing="0" cellpadding="0" align="center" class=Table>
  <tr>
  <td width="637px">
<table width="100%" border="0" cellpadding="0" cellspacing="10" class=RegTD>

<tr><td align="right" valign="top"><strong>选择地区：</strong></td><td><script language="JavaScript" src="{$InstallDir}Inc/Js/AreaPost.Js"></Script><br><span id=AreaID1></span></td></tr>
<tr id=AreaDBtr style='display:none'><td align="right" valign="top"><strong>相关区域：</strong></td><td><span id=AreaDBShow></span></td></tr>
<tr><td align="right" valign="top"><strong>选择分类：</strong></td><td><Script language="JavaScript" Src="{$InstallDir}Inc/Js/ClassPost.Js"></Script><br><span id=ClassID1></span></td></tr>
<tr><td width="22%" align="right" valign="top"><strong>信息标题：</strong></td><td width="78%"><input type="text" maxlength="100" name="title" size="50" onKeyUp="javascript:replaceInput(this,event)"><span id=title1><br><font color=red>信息标题请尽量清晰明了,以便客户搜索和查找。</font></span></td></tr>
<tr id=DBtr style='display:none'><td align="right" valign="top"><strong>相关选项：</strong></td><td><span id=DBShow></span></td></tr>
<script language="JavaScript">
function DBOption(t,sid){
  if (t=="AreaID"){
    areadbajax(sid,"",0);
  }else{
    dbajax(1,sid,0);
  }
}
</script>
<tr><td align="right" valign="top"><strong>信息内容：</strong></font></td><td><textarea name="Content" style='height:100px;width:90%' onKeyUp="textLimitCheck(this,1000);"></textarea><span id=Content1></span></td></tr>
<tr><td align="right" valign="top"><strong>联系人：</strong></td><td><input type="text" name="Contact" size="30" maxlength="20"><span id=Contact1></span></td></tr>
<tr><td align="right" valign="top"><strong>联系电话：</strong></td><td><input type=text name=Tel size=30 maxlength=50><span id=Tel1 class=Remark><br>座机或小灵通请加区号</span></td></tr>
<tr><td align="right" valign="top"><strong>联系邮箱：</strong></td><td><input type=text name=Email size=30 maxlength=50><span id=Email1 class=Remark><br>邮箱和电话至少填写一样</span></td></tr>
<tr>
<td height=30px align=right><strong>标注地图</strong>　</td>
<td class=Remark><input name=Coordinate type=hidden><a href=javascript:ShowDialog("{$Map}",600,400) class=red><img src="{$InstallDir}Skins/{$SkinDir}/icon_qi.gif" align="absmiddle" border="0"><span id=Add>标注地图位置</span></a> 标注后，店铺将定位到电子地图上。</td>
</tr>
<tr {$DelPass}><td align="right" valign="top"><strong>信息删除密码：</strong></td><td><input name=DelPass size=20><br><span class=Remark>信息过期则可以使用此密码删除信息</span></td></tr>
<tr {$IDQACode}><td align="right" valign="top"><strong>验证问题 </strong></td><td><strong>{$IDQuestion}</strong><br><input name="CodeAnswer" type="text" Style="width:100px" maxlength="50"><span id=CodeAnswer1></span></td></tr>
<tr {$IDCode}><td align="right" valign="top"><strong>验证码：</strong></td><td><input name=Code  style="width:64px;height:20px" maxlength=6 size="10" onfocus="get_Code()"> <img src={$InstallDir}Skins/{$SkinDir}/code.gif id=imgurl align=absmiddle style='cursor:pointer' alt='验证码看不清楚?请点击刷新验证码' onclick="this.src='../inc/{$CodePlan}.asp?t='+Math.random()">&nbsp;<font color="#FF0000">*</font><span id=Code1></span></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="10">
<tr><td align="center" colspan=2><input type="button" value="免费快速发布" onClick="ClassPost();" name="B1" style="font-size:16px;width:200px;height:40px"></td></tr>
</table>

  </td>
  <td width=20px style="border-left:1px #999999 solid">&nbsp;</td>
  <td width=283px valign=top>
    <table width="90%" border=0 cellspacing=0 cellpadding=0>
      <tr><td Class=F14><strong>小提示</strong><br><br>&nbsp;　 这里是快速发布信息区域，如果您想使用更多高级功能，请先<a href={$InstallDir}{url:login} class="red">登录</a>或<a href={$InstallDir}{url:reg} class="red">注册</a>进入<a href=../member/User_ClassAD.asp?Action=Add target=_blank class="red">个人中心</a>进行发布。</td></tr>
    </table>
  </td>
  </tr>
  </table>
</form>
{$ScriptCkeck}
{$My_Bottom}
</body>
</html>