getStoreById($storeid); $GLOBALS['frames'] = $this->getMainMenu2(); if(checksubmit('submit')){ $op=$_GPC['keywords']; $where="%$op%"; }else{ $where='%%'; } if(!$_GPC['page']){ $_GPC['page']=1; } $user=pdo_getall('wpdc_user',array('uniacid'=>$_W['uniacid'])); for($i=0;$i$total),array('id'=>$user[$i]['id'])); pdo_update('wpdc_user',array('order_number'=>$number),array('id'=>$user[$i]['id'])); } $pageindex = max(1, intval($_GPC['page'])); $pagesize=10; $sql="select * from " . tablename("wpdc_user") ." WHERE name LIKE :name and uniacid=:uniacid order by order_money DESC"; $select_sql =$sql." LIMIT " .($pageindex - 1) * $pagesize.",".$pagesize; $list = pdo_fetchall($select_sql,array(':uniacid'=>$_W['uniacid'],':name'=>$where)); $total=pdo_fetchcolumn("select count(*) from " . tablename("wpdc_user") ." WHERE name LIKE :name and uniacid=:uniacid",array(':uniacid'=>$_W['uniacid'],':name'=>$where)); $pager = pagination($total, $pageindex, $pagesize); include $this->template('web/ygranking');