Commit 353d5045 by 冷斌

add

parent 65fc754d
......@@ -12,6 +12,12 @@
<li class="active"><a >列表</a></li>
</ul>
<form class="well form-search" name="form1" method="post" style="float:left" action="">
订单状态:
<select class="select_2" name="status">
<option value="">全部</option>
<option value="1" <if condition="$formget.status eq '1'">selected</if> >已确认</option>
<option value="0" <if condition="$formget.status eq '0'">selected</if> >未确认</option>
</select>
提交时间:
<input type="text" name="start_time" class="js-date date" id="start_time" value="{$formget.start_time}" style="width: 80px;" autocomplete="off">-
<input type="text" class="js-date date" name="end_time" id="end_time" value="{$formget.end_time}" style="width: 80px;" autocomplete="off"> &nbsp; &nbsp;
......@@ -31,6 +37,8 @@
<th>消息内容</th>
<th>支付凭证</th>
<th>提交时间</th>
<th>处理状态</th>
<th align="center">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
......@@ -44,6 +52,12 @@
<img src="{$vo['image']}" width="50" height="50">
</a></td>
<td>{$vo.addtime|date="Y-m-d H:i:s",###}</td>
<td>{$status[$vo['status']]}</td>
<td align="center">
<if condition="$vo['status'] eq 0">
<a href="{:U('Sendcode/change',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定确认收款吗?">确认收款</a>
</if>
</td>
</tr>
</foreach>
</tbody>
......
......@@ -108,6 +108,11 @@ class SendcodeController extends AdminbaseController {
{
$map=array('type' => 1);
if($_REQUEST['status']!=''){
$map['status']=$_REQUEST['status'];
$_GET['status']=$_REQUEST['status'];
}
if($_REQUEST['start_time']!=''){
$map['addtime']=array("gt",strtotime($_REQUEST['start_time']));
$_GET['start_time']=$_REQUEST['start_time'];
......@@ -145,6 +150,7 @@ class SendcodeController extends AdminbaseController {
$this->assign('lists', $lists);
$this->assign("page", $page->show('Admin'));
$this->assign('formget', $_GET);
$this->assign('status', array("0"=>"未确认","1"=>"已确认"));
$this->display();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment