public function formulario($id = FALSE) { $grupo = ORM::Factory('grupo_procedimento', $id); $view = View::Factory('grupo_procedimentos/formulario'); $view->set('grupo', $grupo); $this->template->content = $view; }
public function index() { $procedimentos = ORM::Factory('procedimento')->lista_semana(); $view = View::Factory('home/index'); $view->set('procedimentos', $procedimentos); $this->template->content = $view; }
public function formulario($id = FALSE) { $advogado = ORM::Factory('advogado', $id); $view = View::Factory('advogados/formulario'); $view->set('advogado', $advogado); $this->template->content = $view; }
public function formulario($id = FALSE) { $pessoa = ORM::Factory('pessoa', $id); $view = View::Factory('pessoas/formulario'); $view->set('pessoa', $pessoa); $this->template->content = $view; }
public function formulario($id = 0) { $esfera = ORM::Factory('esfera', $id); $view = View::Factory('esferas/formulario'); $view->set('esfera', $esfera); $this->template->content = $view; }
public function __toString() { // form::input($this->field_name,$this->field_value); if ($this->field_value == "") { $this->field_value = array(); } $view = View::Factory("multiple")->set("values", $this->field_value)->set("name", $this->field_name)->render(); return $view; }
public function formulario($id = FALSE, $form_action = FALSE) { $usuario = ORM::Factory('usuario', $id); $grupos = ORM::Factory('grupo_acesso')->select_list('id', 'nome'); $view = View::Factory('usuarios/formulario'); $view->set('usuario', $usuario); $view->set('grupos', $grupos); $view->set('form_action', $form_action); $this->template->content = $view; }
public function formulario($id = 0, $armario_id = 0) { $gaveta = ORM::Factory('gaveta', $id); if (!$gaveta->armario_id) { $gaveta->armario_id = $armario_id; } $armario = ORM::Factory('armario'); $view = View::Factory('gavetas/formulario'); $view->set('gaveta', $gaveta); $view->set('armario', $armario); $this->template->content = $view; }
public function formulario($id = 0, $esfera_id = 0) { $orgao = ORM::Factory('orgao', $id); if (!$orgao->esfera_id) { $orgao->esfera_id = $esfera_id; } $esfera = ORM::Factory('esfera'); $view = View::Factory('orgaos/formulario'); $view->set('orgao', $orgao); $view->set('esfera', $esfera); $this->template->content = $view; }
function index() { $this->_NoTemplate(); $lib = new Category(); $lib->index(); $content = $lib->GetContent(); $title = Kohana::config("core.title_page") . $lib->GetTitle(); // egg $widget = $this->GetWidgets(); $html = View::Factory('intro')->set("widget", $widget)->set("title", $title)->set("content", $content); echo $html; }
public function formulario($id = 0, $grupo_procedimento_id = 0) { $tipo = ORM::Factory('tipo_procedimento', $id); if (!$tipo->grupo_procedimento_id) { $tipo->grupo_procedimento_id = $grupo_procedimento_id; } $grupo = ORM::Factory('grupo_procedimento'); $view = View::Factory('tipo_procedimentos/formulario'); $view->set('tipo', $tipo); $view->set('grupo', $grupo); $this->template->content = $view; }
public function formulario($id = FALSE) { $processo = ORM::Factory('processo', $id); $pessoas = ORM::Factory('pessoa')->select_list('id', 'nome'); $orgaos = ORM::Factory('esfera')->select_list_with_childrens(); $gavetas = ORM::Factory('armario')->select_list_with_childrens(); $view = View::Factory('processos/formulario'); $view->set('processo', $processo); $view->set('pessoas', $pessoas); $view->set('orgaos', $orgaos); $view->set('gavetas', $gavetas); $this->template->content = $view; }
public function formulario($id = FALSE) { $grupo = ORM::Factory('grupo_acesso', $id); $metodos = objects::get_controllers_with_methods(); //remove os metodos desportegidos //Kohana::config('vigilant.controllers_exception') foreach (Kohana::config('vigilant.controllers_exception') as $metodo_livre) { unset($metodos[ucfirst($metodo_livre)]); } $view = View::Factory('grupo_acessos/formulario'); $view->set('grupo', $grupo); $view->set('metodos', $metodos); $this->template->content = $view; }
public function formulario($id = FALSE, $processo_id = FALSE) { $procedimento = ORM::Factory('procedimento', $id); $advogados = ORM::Factory('advogado')->select_list('id', 'nome'); $advogados[0] = 'Não Definido'; //$advogados = array_merge(array(0 => 'Não definido'), $advogados); $tipo_procedimentos = ORM::Factory('grupo_procedimento')->select_list_with_childrens(); $processo = ORM::Factory('processo', $processo_id); $view = View::Factory('procedimentos/formulario'); $view->set('procedimento', $procedimento); $view->set('advogados', $advogados); $view->set('tipo_procedimentos', $tipo_procedimentos); $view->set('processo', $processo); $this->template->content = $view; }
<body> <!-- Content container beings here --> <div id="container"> <!-- Header --> <?php if ($isLoggedIn) { // || $menu ?> <div id="menu"> <ul> <li class='header'>Menu: </li> <?php if ($menu) { echo View::Factory('global/menu', array('menu' => $menu)); } ?> </ul> </div> <?php } ?> <div id="header"> <h1>IRL Events Registration</h1> </div> <!-- Content Pane (Right side) --> <div id="content"> <?php foreach ($messages as $msg) {
function testFactory() { file_put_contents($this->TestTemplateFileName, 'Hello <?php echo $bear; ?>'); $this->assertTrue(View::Factory($this->TestTemplateFileName, $this->TestData) == 'Hello teddy'); $this->assertTrue(View::Factory()->Set('bear', 'vinnie')->SetFileName($this->TestTemplateFileName) == 'Hello vinnie'); }
public function processos_esfera() { $esferas = ORM::Factory('esfera')->find_all(); $processos = array(); $total_processos = 0; foreach ($esferas as $esfera) { $total = $esfera->total_processos(); $total_processos += $total; $processos[$esfera->nome] = $total; } $view = View::Factory('relatorios/processos_esfera'); $view->set('processos', $processos); $view->set('total_processos', $total_processos); $this->template->content = $view; }
})( jQuery ); $(document).ready(function() { $("#combobox" ).combobox({ selected: function(event, ui) { document.location.href= "/submissions/index/"+$("#combobox").val(); } }); }); </script> <div align="right" style="margin-bottom:10px;font-size:80%;padding-right:50px"> <label>Filter By Contest </label> <select id="combobox"> <option value="all">...</option> <?php foreach ($stimulus_list as $item) { $selected = ''; if (strcmp($selected_stimulus, $item->id) == 0) { $selected = 'selected'; } echo "<option {$selected} value=\"stimulus_{$item->id}\" > {$item->title} </option>\n"; } ?> </select> </div> <?php echo View::Factory('submissions/list', array("submission_list" => $submission_list)); ?>
public function index() { $view = View::Factory('autenticacoes/formulario'); $view->render(TRUE); }