Пример #1
0
 public function account()
 {
     $account = new AccountModel();
     $type = trim($_GET['type']);
     $account_type = getAccountType();
     $sql = "select * from account where 1=1";
     if (strlen($type) != 0) {
         $sql .= " and  type='{$type}'";
     }
     $account_res = $account->query($sql);
     $this->assign('type_sel', $type);
     $this->assign('account_res', $account_res);
     $this->assign('account_type', $account_type);
     $this->display();
 }