当前位置: 首页>>代码示例>>PHP>>正文


PHP Sidebar::getSidebar方法代码示例

本文整理汇总了PHP中Sidebar::getSidebar方法的典型用法代码示例。如果您正苦于以下问题:PHP Sidebar::getSidebar方法的具体用法?PHP Sidebar::getSidebar怎么用?PHP Sidebar::getSidebar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sidebar的用法示例。


在下文中一共展示了Sidebar::getSidebar方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTitle('Aline Rosa | Alunos');
     $this->setSector('Alunos');
     $this->dados['sector'] = $this->getSector();
     $this->setModel('User', 'user_model');
     //$this->load->model('Model', '', TRUE);
     $this->dados['url'] = $this->url;
     $this->dados['current'] = 'Alunos';
     $sidebar = new Sidebar();
     $sidebar->setSidebar('Novo Aluno', base_url('alunos/cadastro'));
     if (!empty($this->id)) {
         $this->load->model('Contrato', 'contrato_model', TRUE);
         if ($contrato = $this->contrato_model->listaIdAluno($this->id)) {
             $sidebar->setSidebar('Contratos', base_url('contratos/editar/id/' . $contrato[0]['id_contrato']));
         } else {
             $sidebar->setSidebar('Contratos', base_url('contratos/listar'));
         }
     } else {
         $sidebar->setSidebar('Contratos', base_url('contratos/listar'));
     }
     $sidebar->setSidebar('Lixeira', base_url('lixeira/alunos'));
     $sidebar->setSidebar('Logs', base_url('logs/alunos'));
     $sidebar->setSubmenu('Financeiro', base_url('relatorios/financeiro'));
     $sidebar->setSubmenu('Horarios', base_url('relatorios/horarios'));
     $sidebar->setSidebar('Relatórios', '#', $sidebar->getSubmenu());
     $this->dados['sidebar'] = $sidebar->getSidebar();
 }
开发者ID:adrisonluz,项目名称:syschool,代码行数:29,代码来源:Alunos.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTitle('Aline Rosa | Cursos');
     $this->setSector('Cursos');
     $this->dados['sector'] = $this->getSector();
     $this->setModel('Curso', 'curso_model');
     //$this->load->model('Model', '', TRUE);
     $this->dados['url'] = $this->url;
     $this->dados['current'] = 'Cursos';
     $sidebar = new Sidebar();
     $sidebar->setSidebar('Nova Turma', base_url('turmas/cadastro'));
     $sidebar->setSidebar('Cursos', base_url('cursos/listar'));
     $sidebar->setSidebar('Lixeira', base_url('lixeira/cursos'));
     $sidebar->setSidebar('Logs', base_url('logs/cursos'));
     $this->dados['sidebar'] = $sidebar->getSidebar();
 }
开发者ID:adrisonluz,项目名称:syschool,代码行数:17,代码来源:Cursos.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTitle('Aline Rosa | Logs');
     $this->setSector('Logs');
     $this->dados['sector'] = $this->getSector();
     $this->setModel('Logs', 'logs_model');
     //$this->load->model('Model', '', TRUE);
     $this->dados['url'] = $this->url;
     $this->dados['current'] = 'Logs';
     $sidebar = new Sidebar();
     $sidebar->setSidebar('Novo Aluno', base_url('alunos/cadastro'));
     $sidebar->setSidebar('Contratos', base_url('contratos/listar'));
     $sidebar->setSidebar('Logs', base_url('logs/listar'));
     $sidebar->setSubmenu('Financeiro', base_url('relatorios/financeiro'));
     $sidebar->setSubmenu('Horarios', base_url('relatorios/horarios'));
     $sidebar->setSidebar('Relatórios', '#', $sidebar->getSubmenu());
     $this->dados['sidebar'] = $sidebar->getSidebar();
 }
开发者ID:adrisonluz,项目名称:syschool,代码行数:19,代码来源:Log.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setTitle('Aline Rosa | Caixa');
     $this->setSector('Caixa');
     $this->dados['sector'] = $this->getSector();
     $this->setModel('CaixaMov', 'caixa_model');
     //$this->load->model('Model', '', TRUE);
     $this->dados['url'] = $this->url;
     $this->dados['current'] = 'Caixa';
     $sidebar = new Sidebar();
     if ($this->caixa_model->listar()) {
         $sidebar->setSidebar('Fechar Caixa', base_url('caixa/fechar'));
     } else {
         $sidebar->setSidebar('Abrir Caixa', base_url('caixa/abrir'));
     }
     $sidebar->setSidebar('Nova Entrada', base_url('caixa/entrada'));
     $sidebar->setSidebar('Nova Saida', base_url('caixa/saida'));
     $this->dados['sidebar'] = $sidebar->getSidebar();
 }
开发者ID:adrisonluz,项目名称:syschool,代码行数:20,代码来源:Caixa.php


注:本文中的Sidebar::getSidebar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。