public function index()
 {
     $user_id = $GLOBALS['user_info']['id'];
     $page = intval($_REQUEST['p']);
     if ($page == 0) {
         $page = 1;
     }
     $limit = ($page - 1) * app_conf("PAGE_SIZE") . "," . app_conf("PAGE_SIZE");
     $status = $_REQUEST['status'];
     if (!$status) {
         $condition = "";
     } elseif ($status == 3) {
         $condition = " and status = 0";
         //未审核
     } elseif ($status == 1) {
         $condition = " and status = 1";
         //已通过
     } elseif ($status == 2) {
         $condition = " and status = 2";
         //未通过
     }
     $GLOBALS['tmpl']->assign('status', $status);
     $result = get_deal_quota_list($limit, $user_id, $condition);
     $GLOBALS['tmpl']->assign("list", $result['list']);
     $page = new Page($result['count'], app_conf("PAGE_SIZE"));
     //初始化分页对象
     $p = $page->show();
     $GLOBALS['tmpl']->assign('pages', $p);
     $GLOBALS['tmpl']->assign("page_title", "授信额度申请");
     $GLOBALS['tmpl']->assign("inc_file", "inc/uc/uc_deal_quota.html");
     $GLOBALS['tmpl']->display("page/uc.html");
 }
Пример #2
0
 public function index()
 {
     $user_id = $GLOBALS['user_info']['id'];
     $page = intval($_REQUEST['p']);
     if ($page == 0) {
         $page = 1;
     }
     $limit = ($page - 1) * app_conf("PAGE_SIZE") . "," . app_conf("PAGE_SIZE");
     $status = $_REQUEST['status'];
     $kaiqi_if = $GLOBALS['db']->getOne("select value from " . DB_PREFIX . "conf where is_effect=1 AND name='OPEN_QUOTA' ");
     if (!$kaiqi_if) {
         showErr('未开启授信额度申请', 0, url("index", "uc_center"));
     }
     if (!$status) {
         $condition = "";
     } elseif ($status == 3) {
         $condition = " and status = 0";
         //未审核
     } elseif ($status == 1) {
         $condition = " and status = 1";
         //已通过
     } elseif ($status == 2) {
         $condition = " and status = 2";
         //未通过
     }
     $GLOBALS['tmpl']->assign('status', $status);
     $result = get_deal_quota_list($limit, $user_id, $condition);
     $GLOBALS['tmpl']->assign("list", $result['list']);
     $page = new Page($result['count'], app_conf("PAGE_SIZE"));
     //初始化分页对象
     $p = $page->show();
     $GLOBALS['tmpl']->assign('pages', $p);
     $GLOBALS['tmpl']->assign("page_title", "授信额度申请");
     $GLOBALS['tmpl']->assign("inc_file", "inc/uc/uc_deal_quota.html");
     $GLOBALS['tmpl']->display("page/uc.html");
 }