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


PHP session::sessao_valida方法代碼示例

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


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

示例1: index_action

 public function index_action($pagina = 1)
 {
     $session = new session();
     $session->sessao_valida();
     $_SESSION['pagina'] = $pagina;
     $this->smarty->assign('paginador', $this->mostraGrid());
     $this->smarty->assign('title', 'Departamentos');
     $this->smarty->display('departamento/index.tpl');
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:9,代碼來源:departamentoController.php

示例2: index_action

 public function index_action()
 {
     $session = new session();
     $session->sessao_valida();
     $modelEvento = new eventoModel();
     $resEvento = $modelEvento->getEvento('stat<>0');
     //send the records to template sytem
     $this->smarty->assign('evento', $resEvento);
     $this->smarty->assign('title', 'Emissão de Crachá');
     $this->smarty->assign('listacliente', null);
     //call the smarty
     $this->smarty->display('cracha/index.tpl');
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:13,代碼來源:crachaController.php

示例3: index_action

 public function index_action($pagina = 1)
 {
     $session = new session();
     $session->sessao_valida();
     $_SESSION['pagina'] = $pagina;
     //list all records
     $cidade_model = new cidadeModel();
     //send the records to template sytem
     $this->smarty->assign('title', 'Cidades');
     $this->smarty->assign('paginador', $this->mostraGrid());
     //call the smarty
     $this->smarty->display('cidade/index.tpl');
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:13,代碼來源:cidadeController.php

示例4: relatorio

 public function relatorio()
 {
     $session = new session();
     $session->sessao_valida();
     $model = new model();
     $this->smarty->assign('listacliente', null);
     if (isset($_POST['nome_cliente']) && isset($_POST['des_evento'])) {
         $sql = "" . " SELECT " . " ec . *," . " c.nome_cliente," . " e.des_evento" . " FROM evento_cliente ec " . " LEFT JOIN cliente c ON (c.id_cliente = ec.id_cliente) " . " LEFT JOIN evento e ON (e.id_evento = ec.id_evento) " . " WHERE ec.stat <> 0 ";
         if ($_POST['nome_cliente'] != '') {
             $nome_cliente = $_POST['nome_cliente'];
             $sql .= " AND c.nome_cliente LIKE '%{$nome_cliente}%'";
         }
         if ($_POST['des_evento'] != '') {
             $des_evento = $_POST['des_evento'];
             $sql .= " AND e.des_evento LIKE '%{$des_evento}%'";
         }
         $resBusca = $model->readSQL($sql);
         $this->smarty->assign('listacliente', $resBusca);
     }
     $this->smarty->assign('title', 'Participantes');
     $this->smarty->display('participacao/relatorio.tpl');
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:22,代碼來源:participacaoController.php

示例5: relatorio

 public function relatorio()
 {
     $session = new session();
     $session->sessao_valida();
     $this->smarty->assign('title', 'Busca Clientes');
     $this->smarty->assign('listacliente', null);
     if (isset($_POST['nome_cliente']) && isset($_POST['cpf_cliente']) && isset($_POST['rg_cliente']) && isset($_POST['cracha_stat'])) {
         $modelCliente = new clienteModel();
         $nome_cliente = $_POST['nome_cliente'];
         $cpf_cliente = $_POST['cpf_cliente'];
         $rg_cliente = $_POST['rg_cliente'];
         $cracha_stat = $_POST['cracha_stat'];
         $where = "stat<>0";
         if ($nome_cliente != '') {
             $where .= " AND nome_cliente like '%{$nome_cliente}%' ";
         }
         if ($rg_cliente != '') {
             $where .= " AND rg_cliente like '%{$rg_cliente}%' ";
         }
         if ($cpf_cliente != '') {
             $where .= " AND cpf_cliente like '%{$cpf_cliente}%' ";
         }
         if ($cracha_stat != '') {
             $where .= " AND cracha_stat like '%{$cracha_stat}%' ";
         }
         $resCliente = $modelCliente->getCliente($where);
         $this->smarty->assign('listacliente', $resCliente);
     }
     $this->smarty->display('cliente/relatorio.tpl');
 }
開發者ID:ErickMaeda,項目名稱:controle-eventos-php-cow_tipping_dwarfs,代碼行數:30,代碼來源:clienteController.php


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