12345678910111213141516171819202122232425 |
- <?php
- global $_GPC, $_W;
- $GLOBALS['frames'] = $this->getMainMenu2();
- $seller_id=$_COOKIE["storeid"];
- $cur_store = $this->getStoreById($seller_id);
- $type=empty($_GPC['type']) ? 'now' :$_GPC['type'];
- $state=empty($_GPC['state']) ? '2' :$_GPC['state'];
- $where=' WHERE uniacid=:uniacid and seller_id=:seller_id and is_delete=1';
- $data[':uniacid']=$_W['uniacid'];
- $data[':seller_id']=$seller_id;
- $pageindex = max(1, intval($_GPC['page']));
- $pagesize=10;
- if($type !='all'){
- $where.=" and state=$state ";
- }
- $sql="SELECT * FROM ".tablename('zh_jdgjb_withdrawal') . $where." ORDER BY time DESC";
- $total=pdo_fetchcolumn("SELECT count(*) FROM ".tablename('zh_jdgjb_withdrawal') . $where." ORDER BY time DESC",$data);
- $list=pdo_fetchall( $sql,$data);
- $select_sql =$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize;
- $list=pdo_fetchall($select_sql,$data);
- $pager = pagination($total, $pageindex, $pagesize);
- include $this->template('web/txdetails');
|