<!--{include file="<!--{$oetplpath}-->widget_header.tpl"}-->
<div class="oe_content_layout">
  <!--{include file="<!--{$oetplpath}-->widget_menu.tpl"}-->

  <div class="oe_cont_rt">
    
	<div class="oe_content_widget">

	  <h3 class="oe_f_title">
	    <i></i>活动预约
		<span>（会员预约的活动信息）</span>
	  </h3>

	  <div class="oe_tab_list">
        <ul>
          <li><a href="<!--{$oefile}-->&c=shopbespoke">店铺预约</a></li>
          <li class="current"><a href="<!--{$oefile}-->&c=activitybespoke">活动预约</a></li>
		  <li><a href="<!--{$oefile}-->&c=goodsbespoke">商品预约</a></li>
        </ul>
      </div>
	  
	  <!--{if $a == "run"}-->
	  <form id="search_form" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
	  <div class="oe_mer_search">
	    预约时间：
		<input type="text" name="stime" id="stime" readonly="only" class="input-100" value="<!--{$stime}-->" />
		<script>
		laydate({
			elem: '#stime',
			format: 'YYYY-MM-DD',
			istime: false,
			choose: function(datas){}
		});
		</script>

		~ 
		<input type="text" name="etime" id="etime" readonly="only" class="input-100" value="<!--{$etime}-->" />
		<script>
		laydate({
			elem: '#etime',
			format: 'YYYY-MM-DD',
			istime: false,
			choose: function(datas){}
		});
		</script>

		&nbsp;&nbsp;&nbsp;
		预约状态：
		<select name="sflag" id="sflag">
		  <option value=""></option>
		  <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>待处理</option>
		  <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>预约成功</option>
		  <option value="3"<!--{if $sflag == '3'}--> selected<!--{/if}-->>预约失败</option>
		</select>
		&nbsp;&nbsp;&nbsp;
		<span class="_search_btn" id="_btn_ser">搜索</span>
	  </div>
	  </form>
	  <script type="text/javascript">
	  $(function(){
		$("#_btn_ser").bind("click", function(){
			$("#search_form").submit();
		});
	  });
	  </script>

	  <table class="oe_table_list_3 table_cs">
		<tr>
		  <th width="10%">预约会员</th>
		  <th width="15%">手机号码</th>
	      <th>预约留言</th>
		  <th width="18%">预约时间</th>
		  <th width="13%">状态</th>
		  <th width="10%">操作</th>
	    </tr>
		<!--{if empty($bespoke)}-->
		<tr>
		  <td class="text_center" colspan="6">没有找到符合条件的信息</td>
		</tr>
		<!--{else}-->
		<!--{foreach $bespoke as $volist}-->
		<tr>
		  <td class="text_center">
		    <!--{if $volist.userid == '0'}-->
			~~
			<!--{else}-->
		    <img src="<!--{$volist.headimgurl}-->" width="60px" height="60px" class="_img_radius" /><br />
			<!--{$volist.username}-->
			<!--{/if}-->
		  </td>
		  <td class="td_height">
		    <!--{$volist.contname}--><br />
		    <!--{$volist.mobile}-->
		  </td>
		  <td valign="top" class="td_height">
		    活动：<b style="color:#ff6600;"><!--{$volist.title}--></b><br />
		    <!--{$volist.words}-->
		  </td>
		  <td class="text_center">
		    <!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
		  </td>
		  <td class="text_center">
			<!--{if $volist.flag == '1'}-->
				<span class="span_btn3">预约成功</span>	
			<!--{elseif $volist.flag == '2'}-->
				<span class="span_btn1">预约失败</span>
			<!--{else}-->
				<span class="span_btn2">待处理</span>
			<!--{/if}-->
		  </td>
		  <td class="text_center">
		    <!--{if $volist.flag == '0'}-->
		    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.bskid}-->&<!--{$comeurl}-->">审批</a>
			<!--{else}-->
			~~
			<!--{/if}-->
		  </td>
		</tr>
		<!--{/foreach}-->
		<!--{/if}-->
	  </table>
	  <div class="oe_page_layout">
	    <!--{$showpage}-->
	  </div>

	  <!--{/if}-->


	  <!--{if $a == "edit"}-->

	  <form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post" />
	  <input type="hidden" name="a" id="a" value="saveedit" />
	  <input type="hidden" name="id" id="id" value="<!--{$id}-->" />
	  <table class="oe_table_info">
	   <tr>
		  <th align="left">活动标题：<font color="red"></font></th>
		  <td><b style="color:#ff6600;"><!--{$bespoke.title}--></b></td>
		</tr>
		<tr>
		  <th align="left" width="15%">预约会员：<font color="red"></font></th>
		  <td width="85%">
		    <!--{if $bespoke.userid == '0'}-->
			~~
			<!--{else}-->
			<img src="<!--{$bespoke.headimgurl}-->" width="60px" height="60px" /><br />
			<!--{$bespoke.username}-->
			<!--{/if }-->
		  </td>
		</tr>
	    <tr>
		  <th align="left">联系人：<font color="red"></font></th>
		  <td>
		    <!--{$bespoke.contname}-->
		  </td>
		</tr>
		<tr>
		  <th align="left">联系电话：<font color="red"></font></th>
		  <td><!--{$bespoke.mobile}--></td>
		</tr>
		<tr>
		  <th align="left">预约留言：<font color="red"></font></th>
		  <td><!--{$bespoke.words|nl2br}--></td>
		</tr>
		<tr>
		  <th align="left">预约时间：</th>
		  <td><!--{$bespoke.addtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
		</tr>
		<tr>
		  <th align="left">处理状态：<font color="red">*</font></th>
		  <td>
			<select name="flag" id="flag">
			  <option value="">=请选择=</option>
			  <option value="0"<!--{if $bespoke.flag == '0'}--> selected<!--{/if}-->>待处理</option>
			  <option value="1"<!--{if $bespoke.flag == '1'}--> selected<!--{/if}-->>预约成功</option>
			  <option value="2"<!--{if $bespoke.flag == '2'}--> selected<!--{/if}-->>预约失败</option>
			</select>
			（一旦预约成功或者失败，不可再修改）
		  </td>
		</tr>
		<tr>
		  <th align="left">备注说明：</th>
		  <td>
		    <textarea name="remark" id="remark" style="width:70%;height:100px;"><!--{$bespoke.remark}--></textarea>
		  </td>
		</tr>
		<tr>
		  <th></th>
		  <td>
			<input type="button" id="btn_post" class="submit_btn1" value="编辑保存" /> 
		  </td>
		</tr>
	  </table>
	  </form>
	  <script type="text/javascript">
	  $(function(){
		$("#btn_post").bind("click", function(){
			if ($("#flag").val().length == 0) {
				ToastShow("请选择状态");
				return false;
			}
			$("form").submit();
		});
	  });
	  </script>

	  <!--{/if}-->


	</div>
	<!--//oe_content_widget End-->

  </div>
  <div class="clear"></div>
  <!--//oe_cont_rt Enc-->
</div>
<!--{include file="<!--{$oetplpath}-->widget_footer.tpl"}-->
</body>
</html>