當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SiteHelpers::viewColSpan方法代碼示例

本文整理匯總了PHP中SiteHelpers::viewColSpan方法的典型用法代碼示例。如果您正苦於以下問題:PHP SiteHelpers::viewColSpan方法的具體用法?PHP SiteHelpers::viewColSpan怎麽用?PHP SiteHelpers::viewColSpan使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SiteHelpers的用法示例。


在下文中一共展示了SiteHelpers::viewColSpan方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getIndex

 public function getIndex()
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('')->with('message', SiteHelpers::alert('error', ' Your are not allowed to access the page '));
     }
     // Filter sort and order for query
     $sort = !is_null(Input::get('sort')) ? Input::get('sort') : '';
     $order = !is_null(Input::get('order')) ? Input::get('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null(Input::get('search')) ? $this->buildSearch() : '';
     // End Filter Search for query
     $page = Input::get('page', 1);
     $params = array('page' => $page, 'limit' => !is_null(Input::get('rows')) ? filter_var(Input::get('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = Paginator::make($results['rows'], $results['total'], $params['limit']);
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Render into template
     $this->layout->nest('content', 'rinvoices.index', $this->data)->with('menus', SiteHelpers::menus());
 }
開發者ID:blackorwhite1233,項目名稱:fakekinhdoanh,代碼行數:35,代碼來源:RinvoicesController.php

示例2: getIndex

 public function getIndex()
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('')->with('message', SiteHelpers::alert('error', ' Your are not allowed to access the page '));
     }
     // Filter sort and order for query
     $sort = !is_null(Input::get('sort')) ? Input::get('sort') : 'id';
     $order = !is_null(Input::get('order')) ? Input::get('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null(Input::get('search')) ? $this->buildSearch() : '';
     // End Filter Search for query
     $filter .= " AND id !='1' AND tb_groups.level >= " . Session::get('gid') . "";
     $page = Input::get('page', 1);
     $params = array('page' => $page, 'limit' => !is_null(Input::get('rows')) ? filter_var(Input::get('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter);
     // Get Query
     $results = $this->model->getRows($params);
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = Paginator::make($results['rows'], $results['total'], $params['limit']);
     $this->data['rowData'] = $results['rows'];
     $this->data['pagination'] = $pagination;
     $this->data['pager'] = $this->injectPaginate();
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = SiteHelpers::viewColSpan($this->info['config']['grid']);
     $this->data['access'] = $this->access;
     $this->layout->nest('content', 'users.index', $this->data)->with('menus', SiteHelpers::menus());
 }
開發者ID:buguelos,項目名稱:make,代碼行數:29,代碼來源:UsersController.php

示例3: getIndex

 public function getIndex(Request $request)
 {
     $sort = !is_null($request->input('sort')) ? $request->input('sort') : '';
     $order = !is_null($request->input('order')) ? $request->input('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null($request->input('search')) ? '' : '';
     $page = $request->input('page', 1);
     $params = array('page' => $page, 'limit' => !is_null($request->input('rows')) ? filter_var($request->input('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = new Paginator($results['rows'], $results['total'], $params['limit']);
     $pagination->setPath('esireport');
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = \SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Detail from master if any
     // Master detail link if any
     $this->data['subgrid'] = isset($this->info['config']['subgrid']) ? $this->info['config']['subgrid'] : array();
     // Render into template
     return view('esireport.index', $this->data);
 }
開發者ID:vtvmd2015,項目名稱:Base-App,代碼行數:34,代碼來源:EsireportController.php

示例4: getIndex

 public function getIndex()
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('')->with('message', SiteHelpers::alert('error', Lang::get('core.note_restric')));
     }
     // Filter sort and order for query
     $sort = !is_null(Input::get('sort')) ? Input::get('sort') : 'slideshow_id';
     $order = !is_null(Input::get('order')) ? Input::get('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null(Input::get('search')) ? $this->buildSearch() : '';
     $filter .= " AND lang = '{$this->lang}'";
     // End Filter Search for query
     // Take param master detail if any
     $master = $this->buildMasterDetail();
     // append to current $filter
     $filter .= $master['masterFilter'];
     $page = Input::get('page', 1);
     $params = array('page' => $page, 'limit' => !is_null(Input::get('rows')) ? filter_var(Input::get('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = Paginator::make($results['rows'], $results['total'], $params['limit']);
     $test = $this->model->columnTable();
     $arr_search = SiteHelpers::arraySearch(Input::get('search'));
     foreach ($arr_search as $key => $val) {
         if ($key != "sort" && $key != "order" && $key != "rows") {
             $test[$key]['value'] = $val;
         }
     }
     $this->data['test'] = $test;
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Detail from master if any
     $this->data['masterdetail'] = $this->masterDetailParam();
     $this->data['details'] = $master['masterView'];
     // Master detail link if any
     $this->data['subgrid'] = isset($this->info['config']['subgrid']) ? $this->info['config']['subgrid'] : array();
     // Render into template
     $this->layout->nest('content', 'Slideshow.index', $this->data)->with('menus', SiteHelpers::menus());
 }
開發者ID:blackorwhite1233,項目名稱:fakekinhdoanh,代碼行數:53,代碼來源:SlideshowController.php

示例5: getIndex

 public function getIndex(Request $request)
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     $sort = !is_null($request->input('sort')) ? $request->input('sort') : 'news_id';
     $order = !is_null($request->input('order')) ? $request->input('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null($request->input('search')) ? $this->buildSearch() : '';
     $filter .= " AND lang = '{$this->lang}'";
     $page = $request->input('page', 1);
     $params = array('page' => $page, 'limit' => !is_null($request->input('rows')) ? filter_var($request->input('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = new Paginator($results['rows'], $results['total'], $params['limit']);
     $pagination->setPath('news');
     $test = $this->model->columnTable();
     $arr_search = \SiteHelpers::arraySearch(Input::get('search'));
     foreach ($arr_search as $key => $val) {
         if ($key != "sort" && $key != "order" && $key != "rows") {
             $test[$key]['value'] = $val;
         }
     }
     $this->data['test'] = $test;
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = \SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Detail from master if any
     // Master detail link if any
     $this->data['subgrid'] = isset($this->info['config']['subgrid']) ? $this->info['config']['subgrid'] : array();
     // Render into template
     return view('news.index', $this->data);
 }
開發者ID:blackorwhite123,項目名稱:cms_laravel5,代碼行數:46,代碼來源:NewsController.php

示例6: getIndex

 public function getIndex(Request $request)
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     $sort = !is_null($request->input('sort')) ? $request->input('sort') : 'fecfac';
     $order = !is_null($request->input('order')) ? $request->input('order') : 'desc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null($request->input('search')) ? $this->buildSearch() : '';
     $this->createCharts($filter);
     $page = $request->input('page', 1);
     $params = array('page' => $page, 'limit' => !is_null($request->input('rows')) ? filter_var($request->input('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = new Paginator($results['rows'], $results['total'], $params['limit']);
     $pagination->setPath('factura');
     $this->data['rowData'] = $results['rows'];
     foreach ($this->data['rowData'] as &$row) {
         if (!$row->reducida) {
             $row->reducida = "Detallada";
         } else {
             $row->reducida = "Reducida";
         }
     }
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = \SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Detail from master if any
     // Master detail link if any
     $this->data['subgrid'] = isset($this->info['config']['subgrid']) ? $this->info['config']['subgrid'] : array();
     // Render into template
     return view('factura.index', $this->data);
 }
開發者ID:alvarobfdev,項目名稱:applog,代碼行數:45,代碼來源:FacturaController.php

示例7: getIndex

 public function getIndex(Request $request)
 {
     $sort = !is_null($request->input('sort')) ? $request->input('sort') : 'created';
     $order = !is_null($request->input('order')) ? $request->input('order') : 'desc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null($request->input('search')) ? $this->buildSearch() : '';
     if (!is_null($request->input('category'))) {
         $filter .= " AND tb_blogcategories.alias ='" . $request->input('category') . "' ";
     }
     $page = $request->input('page', 1);
     $params = array('page' => $page, 'limit' => !is_null($request->input('rows')) ? filter_var($request->input('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     $total = $this->model->totalBlog($filter);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = new Paginator($results['rows'], $total, $params['limit']);
     $pagination->setPath('blog');
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $this->data['pagination'] = $pagination;
     // Build pager number and append current param GET
     $this->data['pager'] = $this->injectPaginate();
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = \SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Detail from master if any
     // Master detail link if any
     $this->data['subgrid'] = isset($this->info['config']['subgrid']) ? $this->info['config']['subgrid'] : array();
     $this->data['blogcategories'] = Blog::summaryCategory();
     $this->data['clouds'] = Blog::clouds();
     $this->data['recent'] = Blog::recentPosts();
     $this->data['pageMetakey'] = CNF_METAKEY;
     $this->data['pageMetadesc'] = CNF_METADESC;
     $this->data['pages'] = 'blog.index';
     $page = 'layouts.' . CNF_THEME . '.index';
     return view($page, $this->data);
 }
開發者ID:Gadurp1,項目名稱:420windycity,代碼行數:44,代碼來源:BlogController.php

示例8: getIndex

 public function getIndex()
 {
     if ($this->access['is_view'] == 0) {
         return Redirect::to('')->with('message', SiteHelpers::alert('error', Lang::get('core.note_restric')));
     }
     // Filter sort and order for query
     $sort = !is_null(Input::get('sort')) ? Input::get('sort') : 'id';
     $order = !is_null(Input::get('order')) ? Input::get('order') : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null(Input::get('search')) ? $this->buildSearch() : '';
     // End Filter Search for query
     $filter .= " AND id !='1' ";
     $page = Input::get('page', 1);
     $params = array('page' => $page, 'limit' => !is_null(Input::get('rows')) ? filter_var(Input::get('rows'), FILTER_VALIDATE_INT) : static::$per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter);
     // Get Query
     $results = $this->model->getRows($params);
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     $pagination = Paginator::make($results['rows'], $results['total'], $params['limit']);
     $test = $this->model->columnTable();
     $arr_search = SiteHelpers::arraySearch(Input::get('search'));
     foreach ($arr_search as $key => $val) {
         if ($key != "sort" && $key != "order" && $key != "rows") {
             $test[$key]['value'] = $val;
         }
     }
     $this->data['test'] = $test;
     $this->data['rowData'] = $results['rows'];
     $this->data['pagination'] = $pagination;
     $this->data['pager'] = $this->injectPaginate();
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = SiteHelpers::viewColSpan($this->info['config']['grid']);
     $this->data['access'] = $this->access;
     $this->layout->nest('content', 'users.index', $this->data)->with('menus', SiteHelpers::menus());
 }
開發者ID:blackorwhite1233,項目名稱:fakekinhdoanh,代碼行數:37,代碼來源:UsersController.php

示例9: index

 function index()
 {
     if ($this->access['is_view'] == 0) {
         $this->session->set_flashdata('error', SiteHelpers::alert('error', 'Your are not allowed to access the page'));
         redirect('dashboard', 301);
     }
     // Filter sort and order for query
     $sort = !is_null($this->input->get('sort', true)) ? $this->input->get('sort', true) : 'id';
     $order = !is_null($this->input->get('order', true)) ? $this->input->get('order', true) : 'asc';
     // End Filter sort and order for query
     // Filter Search for query
     $filter = !is_null($this->input->get('search', true)) ? $this->buildSearch() : '';
     $filter .= " AND tb_groups.level >= " . $this->session->userdata('gid') . "";
     // End Filter Search for query
     $page = max(1, (int) $this->input->get('page', 1));
     $params = array('page' => $page, 'limit' => $this->input->get('rows', true) != '' ? filter_var($this->input->get('rows', true), FILTER_VALIDATE_INT) : $this->per_page, 'sort' => $sort, 'order' => $order, 'params' => $filter, 'global' => isset($this->access['is_global']) ? $this->access['is_global'] : 0);
     // Get Query
     $results = $this->model->getRows($params);
     // Build pagination setting
     $page = $page >= 1 && filter_var($page, FILTER_VALIDATE_INT) !== false ? $page : 1;
     #$pagination = Paginator::make($results['rows'], $results['total'],$params['limit']);
     $this->data['rowData'] = $results['rows'];
     // Build Pagination
     $pagination = $this->paginator(array('total_rows' => $results['total'], 'per_page' => $params['limit']));
     $this->data['pagination'] = $pagination;
     // Row grid Number
     $this->data['i'] = $page * $params['limit'] - $params['limit'];
     // Grid Configuration
     $this->data['tableGrid'] = $this->info['config']['grid'];
     $this->data['tableForm'] = $this->info['config']['forms'];
     $this->data['colspan'] = SiteHelpers::viewColSpan($this->info['config']['grid']);
     // Group users permission
     $this->data['access'] = $this->access;
     // Render into template
     $this->data['content'] = $this->load->view('users/index', $this->data, true);
     $this->load->view('layouts/main', $this->data);
 }
開發者ID:HRVConsultores,項目名稱:elearning,代碼行數:37,代碼來源:users.php


注:本文中的SiteHelpers::viewColSpan方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。