<!--{assign var='menuid' value=''}-->
<!--{assign var='usercpmod' value='yes'}-->
<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_head.tpl"}-->
<body>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_menu.tpl"}-->
<div id="page-index" class="page">
  <div class="zx">
    <!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_search.tpl"}-->
	<!--{include file="<!--{$tplpath}-->cp/<!--{$tplpre}-->block_menu.tpl"}-->
	
	<div class="zright">

	  <!--{if $a eq 'run'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=dating" class='now'>同城约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=add">发布约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=my">赴约记录</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle">
		  您已经发布了<label class="f_red"><!--{$total}--></label>条约会信息
		</div>
		<!-- 列表开始 -->
		<table cellpadding='0' cellspacing='0' border='0' class='tb' width='100%'>
		  <tr>
			<th width='40%' align='center'>约会主题</th>
			<th width='13%' align='center'>约会日期</th>
			<th width='8%' align='center'>浏览</th>
			<th width='15%' align='center'>报名人数</th>
			<th width='10%' align='center'>审核状态</th>
			<th align='center'>操作</th>
		  </tr>

		  <!--{foreach $dating as $volist}-->
		  <tr onMouseOver='overColor(this)' onMouseOut='outColor(this)'>
			<!-- 主题 -->
			<td align='left' class='hback'>
			<a href="<!--{$volist.url}-->" target="_blank"><!--{$volist.catname}-->&nbsp;&nbsp;<!--{$volist.subject}--></a> 
			<br />
			(		
			<!--{area type='text' value=$volist.provinceid}-->&nbsp;
			<!--{area type='text' value=$volist.cityid}-->&nbsp;
			<!--{area type='text' value=$volist.distid}-->
			) 
			<!--{hook mod='var' type='text' item='fee' value=$volist.fee}-->&nbsp;
			<!--{hook mod='var' type='text' item='whopay' value=$volist.whopay}-->
			</td>
			<!-- 约会日期 -->
			<td align='center' class='hback'><!--{$volist.datingdate|date_format:"%Y-%m-%d"}--><br />
			<!--{if $volist.lastdays>0}-->
			<font color="blue">还有<!--{$volist.lastdays}-->天</font>
			<!--{else}-->
			<font color="#999999">已结束</font>
			<!--{/if}-->
			</td>
			<!-- 浏览次数 -->
			<td align='center' class='hback'><!--{$volist.hits}--></td>
			<!-- 报名情况 -->
			<td align='left' class='hback'>
			<a href="<!--{$ucfile}-->?c=dating&a=user&did=<!--{$volist.datingid}-->">
			应约&nbsp;<font color="blue"><!--{$volist.appcount}--></font> 人<br />
			选定&nbsp;<font color="green"><!--{$volist.adoptcount}--></font> 人
			</a>
			</td>
			<!-- 状态 -->
			<td align='center' class='hback'>
			<!--{if $volist.auditstatus==2}-->
			    <img src='<!--{$tplpath}-->cp/images/yes.gif' title="通过" />	
			<!--{else}-->
			    <img src='<!--{$tplpath}-->cp/images/no1.gif' title="待审核/锁定" />
			<!--{/if}-->
			</td>
			<td align='center' class='hback'>
			<!--{if $volist.lastdays>0}-->
			<a href="<!--{$ucfile}-->?c=dating&a=edit&id=<!--{$volist.datingid}-->&page=<!--{$page}-->">修改</a>
			<!--{else}-->
			<font color='#999999'>已结束</font>
			<!--{/if}-->
			</td>
		  </tr>
		  <!--{foreachelse}-->
		  <tr>
			<td colspan="6" align="center" class='hback'>对不起，暂时还没发布约会信息。</td>
		  </tr>
		  <!--{/foreach}-->
		</table>
		
		<!-- 分页 -->
		<!--{if $showpage!=""}-->
		<div class="page_digg" style="margin-top:15px"><!--{$showpage}--></div>
		<!--{/if}-->

	  </div>
	  <!--{/if}-->

	  <!--{if $a eq 'add'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=dating">同城约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=add" class='now'>发布约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=my">赴约记录</a>
	  </div>
      <div class="tb1 hy">

			<form name="myform" id="myform" action="<!--{$ucfile}-->?c=dating" method="post">
			<input type="hidden" name="a" value="saveadd" />
			<table cellpadding='3' cellspacing='3' border='0' class='tab'>
			  <tr>
				<td colspan='2' align="center" class='hback_yellow'><b>约会信息</b></td>
			  </tr>
			  <!-- 约会分类 -->
			  <tr>
				<td class='hback_b' width='15%'>约会主题 <span class='f_red'>*</span></td>
				<td class='hback' width='85%'>
				<!--{hook mod='datingcategory' type='select' name='catid' text='=请选择='}-->
				<span id='dcatid' class='f_red'></span>&nbsp;
				<input type='text' name='subject' id='subject' class="input-txt" /> <span id='dsubject' class='f_red'></span>
				</td>
			  </tr>
			  <!-- 约会城市 -->
			  <tr>
				<td class='hback_b'>约会城市 <span class='f_red'>*</span></td>
				<td class='hback'>
				<!--{area type='dist1' name='provinceid' ajax='1' cname='cityid' cajax='1' dname='distid' text='=请选择='}-->&nbsp;<span id='dprovinceid' class='f_red'></span>
				<span id="json_cityid"></span>&nbsp;
				<span id="json_distid"></span>
				</td>
			  </tr>
			  <tr>
				<td class='hback_b'>费用预算 <span class="f_red">*</span> </td>
				<td class='hback'><!--{hook mod='var' type='select' item='datingfee' name='fee' text='=请选择='}-->  <span id='dfee' class='f_red'></span></td>
			  </tr> 
			  <tr>
				<td class='hback_b'>谁来买单 <span class="f_red">*</span> </td>
				<td class='hback'><!--{hook mod='var' type='select' item='datingwhopay' name='whopay' text='=请选择='}-->  <span id='dwhopay' class='f_red'></span></td>
			  </tr>
			  <tr>
				<td class='hback_b'>约会日期 <span class="f_red">*</span> </td>
				<td class='hback'><input type="text" name="datingdate" id="datingdate" class="input-100" readonly onClick="WdatePicker();" />  <span id='ddatingdate' class='f_red'></span> <font color='#999999'>(格式如：2012-05-04)</font></td>
			  </tr>
			  <tr>
				<td class='hback_b'>联系方式 <span class="f_red"></span> </td>
				<td class='hback'><input type="text" name="contact" id="contact" class="input-txt" />  <span id='dcontact' class='f_red'></span> <font color="#999999">(应约人可以查看到该联系方式)</font></td>
			  </tr>
			  <tr>
				<td class='hback_b'>约会安排 <span class="f_red"></span> </td>
				<td class='hback'><textarea name="content" id="content" style="width:60%;height:100px;overflow:auto;"></textarea>  <br /><span id='dcontent' class='f_red'></span></td>
			  </tr>
			  <tr>
				<td colspan='2' align="center" class='hback_yellow'><b>应约对象要求</b></td>
			  </tr>
			  <tr>
				<td class='hback_1'>性 别 <span class="f_red"></span> </td>
				<td class='hback'>
				<select name="gender" id="gender">
				<option value="0">不限</option>
				<option value="1">男</option>
				<option value="2">女</option>
				</select> 
				<span id='dgender' class='f_red'></span> &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>年 龄 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='age' name='startage' text='不限'}--> ~ <!--{hook mod='age' name='endage' text='不限'}--> 岁 &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>身 高 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='height' name='startheight' text='不限'}--> ~ <!--{hook mod='height' name='endheight' text='不限'}--> CM &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>婚 史 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='var' name='marrystatus' item='marrystatus' type='select' text='不限'}-->  &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>学 历 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='var' name='education' item='education' type='select' text='不限'}-->  <input type="checkbox" name='edurange' id='edurange' value='1' />以上&nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>所在地区 <span class="f_red"></span> </td>
				<td class='hback'> 
				<!--{area type='dist1' name='daprovinceid' ajax='1' cname='dacityid' cajax='1' dname='dadistid' text='=不限='}-->&nbsp;
				<span id="json_dacityid"></span>&nbsp;
				<span id="json_dadistid"></span>
				</td>
			  </tr>

			  <!-- 提交保存 -->
			  <tr>
				<td class='hback'></td>
				<td class='hback'>
				<a href="###" class="btn_b2" onclick="return checkform();"><span>添加保存</span></a>
				&nbsp;&nbsp;
				<a href="<!--{$ucfile}-->?c=dating" class="btn_b3"><span>返回列表</span></a>
				</td>
			  </tr>
	      </table>
		  </form>

	  </div>
	  <!--{/if}-->


	  <!--{if $a eq 'edit'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=dating">同城约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=add">发布约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=my">赴约记录</a>
		<a href="javascript:void(0);" class='now'>编辑约会</a>
	  </div>
      <div class="tb1 hy">

			<form name="myform" id="myform" action="<!--{$ucfile}-->?c=dating" method="post">
			<input type="hidden" name="a" value="saveedit" />
			<input type="hidden" name="id" value="<!--{$id}-->" />
			<table cellpadding='3' cellspacing='3' border='0' class='tab'>
			  <tr>
				<td colspan='2' align="center" class='hback_yellow'><b>约会信息</b></td>
			  </tr>
			  <tr>
				<td class='hback_b' width='15%'>约会主题 <span class='f_red'>*</span></td>
				<td class='hback' width='85%'>
				<!--{hook mod='datingcategory' type='select' name='catid' text='=请选择=' value=$dating.catid}--> <span id='dcatid' class='f_red'></span> &nbsp;
				<input type='text' name='subject' id='subject' value="<!--{$dating.subject}-->" class="input-txt" /> <span id='dsubject' class='f_red'></span>
				</td>
			  </tr>
			  <tr>
				<td class='hback_b'>约会城市 <span class="f_red">*</span> </td>
				<td class='hback'>
				<!--{area type='dist1' name='provinceid' value=$dating.provinceid ajax='1' cname='cityid' cajax='1' dname='distid' text='=请选择='}-->&nbsp;<span id='provinceid' class='f_red'></span>
				<span id="json_cityid">
				<!--{area type='dist2' pvalue=$dating.provinceid cname='cityid' cvalue=$dating.cityid cajax='1' dname='distid' dvalue=$dating.distid text='=请选择='}-->
				</span>&nbsp;
				<span id="json_distid">
				<!--{area type='dist3' cvalue=$dating.cityid dname='distid' dvalue=$dating.distid text='=请选择='}-->
				</span>

				</td>
			  </tr>
			  <tr>
				<td class='hback_b'>费用预算 <span class="f_red">*</span> </td>
				<td class='hback'><!--{hook mod='var' type='select' item='datingfee' name='fee' value=$dating.fee text='=请选择='}-->  <span id='dfee' class='f_red'></span></td>
			  </tr> 
			  <tr>
				<td class='hback_b'>谁来买单 <span class="f_red">*</span> </td>
				<td class='hback'><!--{hook mod='var' type='select' item='datingwhopay' name='whopay' value=$dating.whopay  text='=请选择='}-->  <span id='dwhopay' class='f_red'></span></td>
			  </tr>
			  <tr>
				<td class='hback_b'>约会日期 <span class="f_red">*</span> </td>
				<td class='hback'><input type="text" name="datingdate" id="datingdate" value="<!--{$dating.datingdate|date_format:"%Y-%m-%d"}-->" class="input-100" readonly onClick="WdatePicker();" />  <span id='ddatingdate' class='f_red'></span> <font color='#999999'>(格式如：2012-05-04)</font></td>
			  </tr>
			  <tr>
				<td class='hback_b'>联系方式 <span class="f_red"></span> </td>
				<td class='hback'><input type="text" name="contact" id="contact" class="input-txt" value="<!--{$dating.contact}-->" />  <span id='dcontact' class='f_red'></span> <font color="#999999">(应约人可以查看到该联系方式)</font></td>
			  </tr>
			  <tr>
				<td class='hback_b'>约会安排 <span class="f_red"></span> </td>
				<td class='hback'><textarea name="content" id="content" style="width:60%;height:100px;overflow:auto;"><!--{$dating.content}--></textarea>  <br /><span id='dcontent' class='f_red'></span></td>
			  </tr>
			  <tr>
				<td colspan='2' align="center" class='hback_yellow'><b>应约对象要求</b></td>
			  </tr>
			  <tr>
				<td class='hback_1'>性别 <span class="f_red"></span> </td>
				<td class='hback'>
				<select name="gender" id="gender">
				<option value="0"<!--{if $dating.gender == '0'}--> selected<!--{/if}-->>不限</option>
				<option value="1"<!--{if $dating.gender == '1'}--> selected<!--{/if}-->>男</option>
				<option value="2"<!--{if $dating.gender == '2'}--> selected<!--{/if}-->>女</option>
				</select> 
				<span id='dgender' class='f_red'></span> &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>年龄 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='age' name='startage' text='不限' value=$dating.startage}--> ~ <!--{hook mod='age' name='endage' text='不限' value=$dating.endage}--> 岁 &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>身高 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='height' name='startheight' text='不限' value=$dating.startheight}--> ~ <!--{hook mod='height' name='endheight' text='不限' value=$dating.endheight}--> CM &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>婚史 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='var' name='marrystatus' item='marrystatus' type='select' text='不限' value=$dating.marrystatus}-->  &nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>学历 <span class="f_red"></span> </td>
				<td class='hback'><!--{hook mod='var' name='education' item='education' type='select' text='不限' value=$dating.education}-->  <input type="checkbox" name='edurange' id='edurange' value='1'<!--{if $dating.edurange=='1'}--> checked<!--{/if}--> />以上&nbsp;&nbsp;</td>
			  </tr>
			  <tr>
				<td class='hback_1'>所在地区 <span class="f_red"></span> </td>
				<td class='hback'>
				<!--{area type='dist1' name='daprovinceid' value=$dating.da_provinceid ajax='1' cname='dacityid' cajax='1' dname='dadistid' text='=不限='}-->&nbsp;<span id='ddaprovinceid' class='f_red'></span>
				<span id="json_dacityid">
				<!--{area type='dist2' pvalue=$dating.da_provinceid cname='dacityid' cvalue=$dating.da_cityid cajax='1' dname='dadistid' dvalue=$dating.da_distid text='=不限='}-->
				</span>&nbsp;
				<span id="json_dadistid">
				<!--{area type='dist3' cvalue=$dating.da_cityid dname='dadistid' dvalue=$dating.da_distid text='=不限='}-->
				</span>

				</td>
			  </tr>
			  <!-- 提交保存 -->
			  <tr>
				<td class="hback"></td>
				<td class="hback">
				<a href="###" class="btn_b2" onclick="return checkform();"><span>编辑保存</span></a>
				&nbsp;&nbsp;
				<a href="<!--{$ucfile}-->?c=dating&<!--{$comeurl}-->" class="btn_b3"><span>返回列表</span></a>
				</td>
			  </tr>
	      </table>
		  </form>
	  </div>
	  <!--{/if}-->

	  <!-- 报名情况 -->
	  <!--{if $a eq 'user'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=dating" class='now'>同城约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=add">发布约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=my">赴约记录</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle">
		  共有<label class="f_red"><!--{$total}--></label>人报名赴约
		</div>
		<!-- 列表开始 -->
		<table cellpadding='0' cellspacing='0' border='0' class='tb' width='100%'>
		  <tr>
			<th width='13%' align='center'>约会主题</th>
			<th width='12%' align='center'>约会日期</th>
			<th width='20%' align='center'>报名人</th>
			<th width='35%' align='center'>联系方式</th>
			<th width='7%' align='center'>状态</th>
			<th align='center'>操作</th>
		  </tr>

		  <!--{foreach $datinguser as $volist}-->
		  <tr onMouseOver='overColor(this)' onMouseOut='outColor(this)'>
		    <!-- 约会内容 -->
			<td align='left' class='hback'><a href="<!--{$volist.url}-->" target="_blank"><!--{$volist.catname}--> <!--{$volist.subject}--></a></td>
			<!-- 约会时间 -->
			<td align='center' class='hback'><!--{$volist.datingdate|date_format:"%Y-%m-%d"}--><br />
			<!--{if $volist.lastdays>0}-->
			<font color="blue">还剩 <!--{$volist.lastdays}--> 天</font>
			<!--{else}-->
			<font color="red">已结束</font>
			<!--{/if}-->
			</td>
			<!-- 报名人信息 -->
			<td align='left' class='hback'>
			<a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a>&nbsp;&nbsp;<!--{if $volist.gender==1}-->男<!--{else}-->女<!--{/if}-->&nbsp;&nbsp;<!--{$volist.age}-->岁
			<br />
			<!--{hook mod='var' type='text' item='marrystatus' value=$volist.marrystatus}-->&nbsp;&nbsp;
			<!--{area type='text' value=$volist.provinceid}--> 
			<!--{area type='text' value=$volist.cityid}-->
			</td>
			<!-- 联系信息 -->
			<td align='left' class='hback'><!--{$volist.contact}--><br /><!--{$volist.message|nl2br}--></td>
			<!-- 状态 -->
			<td align='center' class='hback'>
			<!--{if $volist.flag==2}-->
			    <img src='<!--{$tplpath}-->cp/images/ok.gif' title="赴约人选" />	
			<!--{else if $volist.flag==1}-->
			    <img src='<!--{$tplpath}-->cp/images/no1.gif' title="待确定" />
			<!--{else if $volist.flag==3}-->
			    <img src='<!--{$tplpath}-->cp/images/n.gif' title="拒绝赴约" />
			<!--{/if}-->
			</td>
			<!-- 操作 -->
			<td align='center' class='hback'>
			<!--{if $volist.lastdays>0}-->
				<!--{if $volist.flag==1 || $volist.flag==3}-->
				<a href="<!--{$ucfile}-->?c=dating&a=confirm&did=<!--{$volist.datingid}-->&id=<!--{$volist.id}-->">通过</a><br />
				<!--{/if}-->
				<!--{if $volist.flag==1 || $volist.flag==2}-->
				<a href="<!--{$ucfile}-->?c=dating&a=cancel&did=<!--{$volist.datingid}-->&id=<!--{$volist.id}-->">取消</a> 
				<!--{/if}-->
				<a href="<!--{$ucfile}-->?c=dating&a=del&did=<!--{$volist.datingid}-->&id=<!--{$volist.id}-->">删除</a>
			<!--{else}-->
			<font color="#999999">已结束</font>
			<!--{/if}-->
			</td>
		  </tr>
		  <!--{foreachelse}-->
		  <tr>
			<td colspan="6" align="center" class='hback'>对不起，暂无应约人。</td>
		  </tr>
		  <!--{/foreach}-->
		</table>
		<!-- 分页 -->
		<!--{if $showpage!=""}-->
		<div class="page_digg" style="margin-top:15px"><!--{$showpage}--></div>
		<!--{/if}-->

	  </div>
	  <!--{/if}-->

	  
	  <!-- 赴约记录 -->
	  <!--{if $a eq 'my'}--> 
      <div class="topmenu"> 
		<a href="<!--{$ucfile}-->?c=dating">同城约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=add">发布约会</a>
		<a href="<!--{$ucfile}-->?c=dating&a=my" class='now'>赴约记录</a>
	  </div>
      <div class="tb1 hy">
        <div class="htitle">
		  共报名了<label class="f_red"><!--{$total}--></label>个约会
		</div>

		<!-- 列表开始 -->
		<table cellpadding='0' cellspacing='0' border='0' class='tb' width='100%'>
		  <tr>
			<th width='33%' align='center'>约会安排</th>
			<th width='12%' align='center'>约会日期</th>
			<th width='45%' align='center'>发起人</th>
			<th align='center'>报名状态</th>
		  </tr>

		  <!--{foreach $dating as $volist}-->
		  <tr onMouseOver='overColor(this)' onMouseOut='outColor(this)'>
		    <!-- 约会内容 -->
			<td align='left' class='hback'>
			<a href="<!--{$volist.url}-->" target="_blank"><!--{$volist.catname}--> <!--{$volist.subject}--></a> <br />
			<!--{area type='text' value=$volist.provinceid}--> 
			<!--{area type='text' value=$volist.cityid}-->
			</td>
			<!-- 约会日期 -->
			<td align='center' class='hback'><!--{$volist.datingdate|date_format:"%Y-%m-%d"}--><br />
			<!--{if $volist.lastdays>0}-->
			<font color="blue">还剩 <!--{$volist.lastdays}--> 天</font>
			<!--{else}-->
			<font color="red">已结束</font>
			<!--{/if}-->
			</td>
			<!-- 发起人 -->
			<td align='left' class='hback'>
			<a href="<!--{$volist.homeurl}-->" target="_blank"><!--{$volist.username}--></a>&nbsp;&nbsp;<!--{if $volist.gender==1}-->男<!--{else}-->女<!--{/if}-->&nbsp;&nbsp;<!--{$volist.age}-->岁&nbsp;&nbsp;
			<!--{hook mod='var' type='text' item='marrystatus' value=$volist.marrystatus}-->&nbsp;&nbsp;
			<!--{hook mod='var' type='text' item='education' value=$volist.education}-->
			<br />
			联系方式&nbsp;&nbsp;<!--{if $volist.flag==2}--><!--{$volist.da_contact}--><!--{else}--><font color="#999999">只有选为赴约人才能看到联系方式</font><!--{/if}-->
			
			</td>
			<!-- 报名状态 -->
			<td align='center' class='hback'>
			<!--{if $volist.flag==2}-->
			    <img src='<!--{$tplpath}-->cp/images/ok.gif' title="赴约人选" />	
			<!--{else if $volist.flag==1}-->
			    <img src='<!--{$tplpath}-->cp/images/no1.gif' title="待选" />
			<!--{else if $volist.flag==3}-->
			    <img src='<!--{$tplpath}-->cp/images/n.gif' title="拒绝人选" />
			<!--{/if}-->
			</td>
		  </tr>

		  <!--{foreachelse}-->
		  <tr>
			<td colspan="4" align="center" class='hback'>对不起，您还没报名任何同城约会。</td>
		  </tr>
		  <!--{/foreach}-->
		</table>
		<!-- 分页 -->
		<!--{if $showpage!=""}-->
		<div class="page_digg" style="margin-top:15px"><!--{$showpage}--></div>
		<!--{/if}-->

		<!-- list end -->


	  </div>
	  <!--{/if}-->
	


    </div>
    <div style="clear:both;"></div>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{include file="<!--{$tplpath}--><!--{$tplpre}-->block_footer.tpl"}-->
</body>
</html>
<script type="text/javascript">
function checkform() {
	var t = '';
	var v = '';

	//主题
	t = "catid";
	v = $("#"+t).val();
	if(v == '') {
		dmsg('请选择约会主题', t);
		$('#'+t).focus();
		return false;
	}

	//约会城市
	t = "provinceid";
	v = $("#"+t).val();
	if(v == '') {
		dmsg('请选择一级地区', t);
		$('#'+t).focus();
		return false;
	}

	//费用预算
	t = "fee";
	v = $("#"+t).val();
	if(v == '') {
		dmsg("请选择费用预算", t);
		$('#'+t).focus();
		return false;
	}

	//谁来买单
	t = "whopay";
	v = $("#"+t).val();
	if(v == '') {
		dmsg("请选择谁来买单", t);
		$('#'+t).focus();
		return false;
	}

	//约会日期
	t = "datingdate";
	v = $("#"+t).val();
	if(v == '') {
		dmsg("请填写约会日期", t);
		$('#'+t).focus();
		return false;
	}
	
	$('#myform').submit();
	return true;
}
</script>