<!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/Activity.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 ClickSubmit(){
  var Msg = "";
  if (document.myform.AreaID.value == ""){
    document.getElementById("AreaID1").innerHTML = "<font class=F03><strong>请选择所属地区</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("AreaID1").innerHTML = "";
  }
  if (document.myform.ClassID.value == ""){
    document.getElementById("ClassID1").innerHTML = "<font class=F03><strong>请选择所属分类</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("ClassID1").innerHTML = "";
  }
  if (document.myform.Title.value == ""){
    document.getElementById("Title1").innerHTML = "<font class=F03><strong>请填写团购标题</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Title1").innerHTML = "";
  }
  if (document.myform.Address.value == ""){
    document.getElementById("Address1").innerHTML = "<font class=F03><strong>请填写活动地点</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Address1").innerHTML = "";
  }
  var filter=/^([1-9]\d*|0)(\.\d{0,2})?$/;
  if (document.myform.Price.value == ""){
    document.getElementById("Price1").innerHTML = "<font class=F03><strong>请填写团购价格</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Price1").innerHTML = "";
  }
  if (document.myform.Price.value != ""){
    if (!filter.test(document.myform.Price.value)){
      document.getElementById("Price1").innerHTML = "<font class=F03><strong>价格只能输入数字或带两位小数的数字</strong></font>";
      Msg = "Err";
	}
  }else{
    document.getElementById("Price1").innerHTML = "";
  }
  if (document.myform.MarketPrice.value != ""){
    if (!filter.test(document.myform.MarketPrice.value)){
      document.getElementById("MarketPrice1").innerHTML = "<font class=F03><strong>价格只能输入数字或带两位小数的数字</strong></font>";
      Msg = "Err";
	}
  }else{
    document.getElementById("MarketPrice1").innerHTML = "";
  }
  if (document.myform.ActivityBegin.value == "" || document.myform.ActivityEnd.value == ""){
    document.getElementById("ActivityTime1").innerHTML = "<font class=F03><strong>请填写活动时间</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("ActivityTime1").innerHTML = "";
  }
  if (document.myform.ActivityBegin.value != "" && document.myform.ActivityEnd.value != "" && document.myform.ActivityBegin.value > document.myform.ActivityEnd.value){
    document.getElementById("ActivityTime1").innerHTML = "<font class=F03><strong>团购活动时间有误</strong></font>";
    Msg = "Err";
  }
  if (document.myform.LinkMan.value == ""){
    document.getElementById("LinkMan1").innerHTML = "<font class=F03><strong>请填写报名联系人</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("LinkMan1").innerHTML = "";
  }
  var Isphone=/(^(0\d{2,3})?(-|\s)?(\d{7,8})(-(\d{2,4}))?$)|(^(\+86)?(\s+)?((13)|(15)|(18))(\d{9})$)/;
  if (document.myform.Tel.value == ""|| !Isphone.test(document.myform.Tel.value)){
    document.getElementById("Tel1").innerHTML = "<font class=F03><strong>请填写正确的报名联系电话</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Tel1").innerHTML = "";
  }
  var IsQQ=/^([0-9]|[０-９])*$/;
  if (document.myform.QQ.value != ""&& !IsQQ.test(document.myform.QQ.value)){
    document.getElementById("QQ1").innerHTML = "<font class=F03><strong>请填写正确的报名联系QQ</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("QQ1").innerHTML = "";
  }
  if (document.myform.BeginTime.value != "" && document.myform.EndTime.value != "" && document.myform.BeginTime.value > document.myform.EndTime.value){
     document.getElementById("Time1").innerHTML = "<font class=F03><strong>团购报名时间有误</strong></font>";
     Msg = "Err";
  }else{
     document.getElementById("Time1").innerHTML = "";
  }
  if (document.myform.Intro.value == ""){
    document.getElementById("Intro1").innerHTML = "<font class=F03><strong>请填写团购详细说明</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Intro1").innerHTML = "";
  }
  if ("{$IsIDCode}" == "True" && document.myform.Code.value == ""){
    document.getElementById("Code1").innerHTML = "<font class=F03><strong>请输入验证码</strong></font>";
    Msg = "Err";
  }else{
    document.getElementById("Code1").innerHTML = "";
  }
  if (Msg == ""){
	document.myform.submit();
  }else{
	return false;
  }
}
function get_Code(){
document.getElementById("imgurl").src='{$InstallDir}inc/{$CodePlan}.asp?'+Math.random()
}
</script>
</head>
<body>

{$My_通用_Hand}
<script language='JavaScript' Src='{$InstallDir}Inc/GetDate.Js'></Script>
<table width="780px" border="0" cellspacing="0" cellpadding="0" align="center" class=Table>
  <tr><td>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
		<form name="myform" method="post" action="{url:post}">
          <input name="Action" type="hidden" value="Save">
          <tr><td colspan=2 height=20px></td></tr>

          <tr><td colspan=2 height=30px class=F14 style="border-bottom:1px #cccccc solid"><img src="{$InstallDir}Skins/{$SkinDir}/icon_04.gif" align=absmiddle> <a><strong>分类选项</strong></a> (打 <strong><font class=F03>*</font></strong> 为必填项)</td></tr>
          <tr>
            <td>
              <!--=======================-->
              <table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
                <tr>
                  <td width="17%" height=30px align=right><strong>选择地区 <font class=F03>*</font></strong></td>
                  <td class=Remark width="83%"><script language="JavaScript" src="{$InstallDir}Inc/Js/AreaPost.Js"></Script><br><span id=AreaID1></span></td>
                </tr>
                <tr id=AreaDBtr style='display:none'>
                  <td height=30px align=right><strong>相关区域　</strong></td>
                  <td class=Remark><span id=AreaDBShow></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>选择分类 <font class=F03>*</font></strong></td>
                  <td class=Remark><script language="JavaScript" src="{$InstallDir}Inc/Js/TuangouPost_{$ChannelID}.Js"></Script><br><span id=ClassID1></span></td>
                </tr>
             </table>
              <!--=======================-->
            </td>
          </tr>
          <script language="JavaScript">
          function DBOption(t,sid){
            if (t=="AreaID"){
              areadbajax(sid,"",0);
            }else{
              dbajax(5,sid,0);
            }
          }
          </script>
          <tr><td colspan=2 height=30px class=F14 style="border-bottom:1px #cccccc solid"><img src="{$InstallDir}Skins/{$SkinDir}/icon_04.gif" align=absmiddle> <a><strong>详细资料</strong></a> (打 <strong><font class=F03>*</font></strong> 为必填项)</td></tr>
          <tr>
            <td>
              <!--=======================-->
              <table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
                <tr>
                  <td width="17%" height=30px align=right><strong>团购标题 <font class=F03>*</font></strong></td>
                  <td class=Remark width="83%"><input name="Title" type="text" Style="width:300px" maxlength=50><br><span id=Title1></span></td>
                </tr>
                <tr id=DBtr style='display:none'>
                  <td height=30px align=right><strong>相关选项</strong>　</td>
                  <td class=Remark><span id=DBShow></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>活动地点 <font class=F03>*</font></strong></td>
                  <td class=Remark><input name="Address" type="text" Style="width:400px" maxlength=40><br><span id=Address1></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>
                  <td height=30px align=right><strong>团购价格 <font class=F03>*</font></strong></td>
                  <td class=Remark><input name="Price" type="text" Style="width:130px" maxlength=4>元<br><span id=Price1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>市场价格</strong>　</td>
                  <td class=Remark><input name="MarketPrice" type="text" Style="width:130px" maxlength=10>元<br><span id=MarketPrice1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>每人限购数量</strong>　</td>
                  <td class=Remark><input name='RestrictBuy' type='text' maxlength=20 value="不限"></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>优惠说明</strong>　</td>
                  <td class=Remark><input name='Explain' type='text' maxlength=100 Style='width:400px'></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>活动时间 <font class=F03>*</font></strong></td>
                  <td class=Remark><input name="ActivityBegin" type="text" Style="width:100px" maxlength=10 readonly onClick='PopCalendar.show(document.myform.ActivityBegin, "yyyy-mm-dd", null, null, null, "11");'><a style='cursor:pointer;' onClick='PopCalendar.show(document.myform.ActivityBegin, "yyyy-mm-dd", null, null, null, "11");'><img src='{$InstallDir}Images/other/Calendar.gif' border='0' align=absmiddle></a> - <input name="ActivityEnd" type="text" Style="width:100px" maxlength=10 readonly onClick='PopCalendar.show(document.myform.ActivityEnd, "yyyy-mm-dd", null, null, null, "11");'><a style='cursor:pointer;' onClick='PopCalendar.show(document.myform.ActivityEnd, "yyyy-mm-dd", null, null, null, "11");'><img src='{$InstallDir}Images/other/Calendar.gif' border='0' align=absmiddle></a><br><span id=ActivityTime1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>报名联系人 <font class=F03>*</font></strong></td>
                  <td class=Remark><input name='LinkMan' type='text' maxlength=50><br><span id=LinkMan1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>联系电话 <font class=F03>*</font></strong></td>
                  <td class=Remark><input name='Tel' type='text' maxlength=50><br><span id=Tel1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>联系QQ</strong>　</td>
                  <td class=Remark><input name='QQ' type='text' maxlength=30><br><span id=QQ1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>人数限制</strong>　</td>
                  <td class=Remark>最底人数：<input name='Leastlimit' type='text' maxlength=10 value=0 Style='width:80px' onKeyUp="value=value.replace(/\D+/g,'')">　最高人数：<input name='Maxlimit' type='text' maxlength=10 value=0 Style='width:80px' onKeyUp="value=value.replace(/\D+/g,'')"> 0为不限人数</td>
                </tr>
                <tr>
                  <td height=30px align=right><strong>报名时间</strong>　</td>
                  <td class=Remark><input name="BeginTime" type="text" Style="width:100px" maxlength=10 readonly onClick='PopCalendar.show(document.myform.BeginTime, "yyyy-mm-dd", null, null, null, "11");'><a style='cursor:pointer;' onClick='PopCalendar.show(document.myform.BeginTime, "yyyy-mm-dd", null, null, null, "11");'><img src='{$InstallDir}Images/other/Calendar.gif' border='0' align=absmiddle></a> - <input name="EndTime" type="text" Style="width:100px" maxlength=10 readonly onClick='PopCalendar.show(document.myform.EndTime, "yyyy-mm-dd", null, null, null, "11");'><a style='cursor:pointer;' onClick='PopCalendar.show(document.myform.EndTime, "yyyy-mm-dd", null, null, null, "11");'><img src='{$InstallDir}Images/other/Calendar.gif' border='0' align=absmiddle></a><br><span id=Time1></span></td>
                </tr>
                <tr>
                  <td height=30px align=right valign=top><strong>详细说明 <font Class=F03>*</font></strong></td>
                  <td class=Remark><textarea name="Intro" style='height:200px;width:80%' onKeyUp="textLimitCheck(this,1000);"></textarea><br><span id=Intro1></span></td>
                </tr>
				<tr>
                  <td height=30px align=right valign=top><strong>上传文件</strong>　</td>
                  <td><div class="UpInput Remark"><input type="hidden" name="PicList"><select name=Pic onChange=PicReset(this.value) size=5 style="width:330px"></select><br>以此下拉框中的图片做为默认图片<br><div id=PicUp style='display:none'><a name=Up></a><iframe id=up_iframe src="" width="320px"  height="100px" frameborder=0 scrolling=no></iframe></div><a href="#Up" onclick="document.getElementById('PicPreview').style.display='';document.getElementById('PicUp').style.display='';document.getElementById('up_iframe').src='../Plus/UpLoad/Index.asp?Type=10&User=3'"><img src={$InstallDir}Skins/{$SkinDir}/upfile.gif border=0></a></div>
				  <div class=Upfile><div style='width:120px; height:120px; z-index:1;overflow:auto;' class=updiv ID=PicPreview><Img src='{$InstallDir}Skins/{$SkinDir}/nopic.gif'></div></div>
				  </td>
				</tr>
				<tr {$IDCode}>
                  <td height=30px align=right><strong>验证码 <font class=F03>*</font></strong></td>
                  <td><input name=Code size=8 maxlength=6 onfocus="get_Code()"> <img src={$InstallDir}Skins/{$SkinDir}/code.gif id=imgurl align=absmiddle style='cursor:pointer' alt='验证码看不清楚?请点击刷新验证码' onclick="this.src='../inc/{$CodePlan}.asp?'+Math.random()"><br><span id=Code1></span></td>
                </tr>
              </table>
              <!--=======================-->
            </td>
          </tr>
          <tr>
            <td colspan=2 height=50px align=center><img src="{$InstallDir}Skins/{$SkinDir}/reg.gif" onClick="ClickSubmit();" style="cursor:pointer"></td>
          </tr>
        </form>
      </table>

  </td></tr>
</table>

{$ScriptCkeck}
{$My_Bottom}

</body>
</html>