<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<!--{$page_charset}-->" />

<title>购物车</title>
<!--{include file="<!--{$cptplpath}-->headerjs.tpl"}-->
<!--{assign var='pluginevent' value=XHook::doAction('adm_head')}-->
</head>
<body>
<!--{assign var='pluginevent' value=XHook::doAction('adm_main_top')}-->
<!--{include file="<!--{$cptplpath}-->lang_all.tpl"}-->
<!--{if $a eq "show"}-->
<div class="main-wrap">
  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>购物车管理<span>&gt;&gt;</span><a href="<!--{$cpfile}-->?c=buylist&a=show">订单列表</a></p></div>
  <div class="main-cont">
    <h3 class="title"><a href="<!--{$cpfile}-->?c=buylist&a=show" class="btn-general"><span>预留</span></a>帐号列表</h3>
	<form action="<!--{$cpfile}-->?c=buylist" method="post" name="myform" id="myform" style="margin:0">
	<input type="hidden" name="a" id="a" value="del" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="table" align="center">
	  <thead class="tb-tit-bg">
	  <tr>
	    <th width="13%"><div class="th-gap">订单时间</div></th>
		<th width="10%"><div class="th-gap">客户姓名</div></th>
		<th width="15%"><div class="th-gap">联系方式</div></th>
		<th width="25%"><div class="th-gap">客户地址</div></th>
		<th width="18%"><div class="th-gap">备注信息</div></th>
        <th width="10%"><div class="th-gap">状态</div></th>
		<th width="10%"><div class="th-gap">操作</div></th>
	  </tr>
	  </thead>
	  <tfoot class="tb-foot-bg"></tfoot>
	  <!--{foreach $out as $volist}-->
	  <tr onMouseOver="overColor(this)" onMouseOut="outColor(this)">
	    <td align="center"><!--{$volist.time|date_format:"%Y/%m/%d %H:%M:%S"}--></td>
		<td><!--{$volist.name}--></td>
		<td align="center"><!--{$volist.phone}--></td>
		<td><!--{$volist.address}--></td>
		<td><!--{$volist.mark}--></td>
		<td style="color:red"><!--{$volist.status}--></td>
		<td align="center"><a href="<!--{$cpfile}-->?c=buylist&a=info&id=<!--{$volist.uid}-->&page=<!--{$page}-->" class="icon-edit">查看详情</a>&nbsp;&nbsp;<a href="<!--{$cpfile}-->?c=buylist&a=del&id=<!--{$volist.uid}-->" onClick="{if(confirm('确定要删除吗?')){return true;} return false;}" class="icon-del">删除</a></td>
	  </tr>
	  <!--{foreachelse}-->
      <tr>
	    <td colspan="8" align="center">暂无信息</td>
	  </tr>
	  <!--{/foreach}-->
	  <!--{if $total>0}-->
	  <tr>
		<td align="center"><input name="chkAll" type="checkbox" id="chkAll" onClick="checkAll(this, 'id[]')" value="checkbox"></td>
		<td class="hback" colspan="7"><input class="button" name="btn_del" type="button" value="删 除" onClick="{if(confirm('确定删除选定吗!?')){$('#action').val('del');$('#myform').submit();return true;}return false;}" class="button">&nbsp;&nbsp;共[ <b><!--{$total}--></b> ]条记录</td>
	  </tr>
	  <!--{/if}-->
	</table>
	</form>
	<!--{if $pagecount>1}-->
	<table width='95%' border='0' cellspacing='0' cellpadding='0' align='center' style="margin-top:10px;">
	  <tr>
		<td align='center'><!--{$showpage}--></td>
	  </tr>
	</table>
	<!--{/if}-->
  </div>
</div>
<!--{/if}-->

<!--{if $a eq "info"}-->
<div class="main-wrap">

  <div class="path"><p>当前位置：系统设置<span>&gt;&gt;</span>购物车管理<span>&gt;&gt;</span><a href="<!--{$cpfile}-->?c=buylist&a=info&a=show&id=<!--{$out[0].uid}-->">订单详情</a></p></div>
  <div class="main-cont">
	<h3 class="title"><a href="<!--{$cpfile}-->?c=buylist&a=show" class="btn-general"><span>返回列表</span></a>订单详情</h3>
    <form name="myform" id="myform" method="post" action="<!--{$cpfile}-->?c=buylist&a=edit" onsubmit='return checkform();' />
  <input type="hidden" value="<!--{$out[0].uid}-->" name="uid"/>
    	 <table cellpadding='3' cellspacing='3' class='tab'>
          <ol onMouseOver="overColor(this)" onMouseOut="outColor(this)">
	   
		<tr><td class="hback_1">客户姓名：</td><td class="hback"><!--{$out[0].name}--></td>
        
        <td class="hback_1">订单状态：</td><td class="hback"><select size="1" name="status">
        <option value="<!--{$out[0].status}-->" selected="ture"><!--{$out[0].status}--></option>
	<option value="未处理">未处理</option>
	<option value="处理中">处理中</option>
	<option value="处理完">处理完</option>
</select></td>
        
        
        </tr>
	<tr>	<td  class="hback_1">联系方式：</td><td class="hback"><!--{$out[0].phone}--></td>
    
    <td class="hback_1">管理员备注：</td><td class="hback"><textarea wrap="OFF" name="admmark"><!--{$out[0].admmark}--></textarea></tr>
	<tr>	<td class="hback_1">联系地址：</td><td class="hback"><!--{$out[0].address}--></td>
    
    
    </tr>
	<tr>	<td class="hback_1">客户备注信息：</td><td class="hback"><!--{$out[0].mark}--></td></tr>
     <tr>   <td  class="hback_1">总价：</td><td class="hback"><!--{$suboprice}--></td></tr>
	<tr>	 <td class="hback_1">时间：</td><td class="hback"><!--{$out[0].time|date_format:"%Y/%m/%d %H:%M:%S"}--></td></tr>
	<tr>	<td align="center"></td><td class="hback"></td></tr>
	  </ol>
	
	  <tr class="tb-tit-bg">
	    <th width="20%"><div class="th-gap">产品编号</div></th>
		<th width="20%"><div class="th-gap">产品名称</div></th>
		<th width="20%"><div class="th-gap">产品单价</div></th>
		<th width="20%"><div class="th-gap">购买数量</div></th>
		<th width="20%"><div class="th-gap">合计</div></th>

	  </tr>
      
      	  <!--{foreach $out as $volist}-->
	  <tr onMouseOver="overColor(this)" onMouseOut="outColor(this)">
	    <td align="center"><!--{$volist.productsn}--></td>
		<td><!--{$volist.productname}--></td>
		<td align="center">￥<!--{$volist.oprice}--></td>
		<td><!--{$volist.num}--></td>
		<td>￥<!--{$volist.sub}--></td>
		
	
	  </tr>
     
	  <!--{foreachelse}-->
      <tr>
	    <td colspan="8" align="center">暂无信息</td>
	  </tr>
      
	  <!--{/foreach}-->
       <tr>
	    <td colspan="8" align="center"><input type="submit" value="更新"/></td>
	  </tr>
	</table>
	</form>
  </div>
  <div style="clear:both;"></div>
</div>
<!--{/if}-->


<!--{assign var='pluginevent' value=XHook::doAction('adm_footer')}-->
</body>
</html>
<script type="text/javascript">
function checkform() {
	var t = "";
	var v = "";

	t = "adminname";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("登录帐号必须为4-16个字符！", t);
		return false;
	}

	t = "password";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("登录密码必须为4-16个字符", t);
		return false;
	}
	return true;
}

function checkpassword() {
	var t = "";
	var v = "";

	t = "oldpassword";
	v = $("#"+t).val();
	if(v=="") {
		dmsg("原密码不能为空", t);
		return false;
	}

	t = "password";
	v = $("#"+t).val().length;
	if(v<4 || v>16) {
		dmsg("新密码必须为4-16个字符！", t);
		return false;
	}
    
	t = "confirmpassword";
	if($("#confirmpassword").val()!=$("#password").val()) {
		dmsg("确认密码不正确！", t);
		return false;
	}
	return true;
}
</script>
