本文整理汇总了PHP中get_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP get_menu函数的具体用法?PHP get_menu怎么用?PHP get_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_menu函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$filter_not->persona = "0";
$filter->order_by = array("c.TIPP_Codigo" => "asc");
$registros = count($this->tipoestudio_model->listar($filter, $filter_not));
$tipoestudios = $this->tipoestudio_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($tipoestudios) > 0) {
foreach ($tipoestudios as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->TIPP_Codigo;
$lista[$indice]->nombre = $value->TIPC_Nombre;
$lista[$indice]->descripcion = $value->TIPC_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/persona/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("maestros/tipoestudio_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:35,代码来源:tipoestudio.php
示例2: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$registros = count($this->sector_model->listar($filter));
$sectores = $this->sector_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($sectores) > 0) {
foreach ($sectores as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->SECTORP_Codigo;
$lista[$indice]->descripcion = $value->SECTORC_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/sector/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['titulo'] = "Listado de Sectores";
$data['nuevo'] = "Crear una nueva Sector";
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("maestros/sector_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:33,代码来源:sector.php
示例3: principal
public function principal()
{
if (!isset($_SESSION['login'])) {
die("Sesion terminada. <a href='" . base_url() . "'>Registrarse e ingresar.</a> ");
}
$arrmes = array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$mes = date("m", time());
$ano = date("Y", time());
$dia = date("d", time());
$ver = "";
$fecha = $dia . " DE " . strtoupper($arrmes[$mes - 1]) . " DE " . $ano;
$fecha_std = $dia . "/" . $mes . "/" . $ano;
$fecha_red = $dia . $mes . $ano;
$nombreusuario = $this->session->userdata('nomper');
$codusu = $this->session->userdata('codusu');
$rolusu = $this->session->userdata('rolusu');
$filter = new stdClass();
$filter->rol = $rolusu;
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
/*Accesos*/
$data['fecha'] = $fecha;
$data['menu'] = $menu;
$filter = new stdClass();
$filter->order_by = array("ACCESOP_Codigo" => "desc");
$data['accesos'] = $this->acceso_model->listar($filter);
$data['header'] = get_header();
$data['oculto'] = form_hidden(array("serie" => "", "numero" => "", "codot" => ""));
$this->load->view("seguridad/principal", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:30,代码来源:inicio.php
示例4: show_page
function show_page($page)
{
$template = "view/templates/default_template.php";
if (file_exists($template) && is_file($template)) {
require_once $template;
} else {
require_once "view/templates/default_template.php";
}
echo get_document_head();
echo get_header_start();
if (is_logged_in()) {
echo get_logout();
} else {
}
echo get_header_end();
if (is_logged_in()) {
echo get_menu();
} else {
echo get_guest_menu();
}
if (is_logged_in()) {
if ($page == "startpage") {
echo "startpage";
} else {
if ($page == "fileupload") {
echo get_fileupload();
} else {
if ($page == "nyheter") {
echo get_news();
} else {
if ($page == "flowing") {
echo get_flowing();
} else {
if ($page == "event") {
echo get_event();
} else {
if ($page == "profile") {
$user_id = 1;
echo get_profile($user_id);
} else {
echo get_default("");
}
}
}
}
}
}
} else {
echo get_login();
}
echo get_footer();
echo get_document_end();
}
开发者ID:eva-chaunm,项目名称:paraflow,代码行数:53,代码来源:page.php
示例5: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter->order_by = array("p.TAREOC_Fecha" => "desc", "h.AULAC_Nombre" => "asc");
$registros = count($this->tardanza_model->listar($filter));
$tardanzas = $this->tardanza_model->listar($filter, "", $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($tardanzas) > 0) {
foreach ($tardanzas as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->TAREOP_Codigo;
$lista[$indice]->nombres = $value->PERSC_Nombre;
$lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
$lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
$lista[$indice]->fecha = $value->TAREOC_Fecha;
$lista[$indice]->aula = $value->AULAC_Nombre;
$lista[$indice]->hinicio = substr($value->TAREOC_Hinicio, 0, 5);
$lista[$indice]->hfin = substr($value->TAREOC_Hfin, 0, 5);
$lista[$indice]->tipo = $value->TIPOASISC_Nombre;
$lista[$indice]->curso = $value->PROD_Nombre;
$filter = new stdClass();
$filter->profesor = $value->TAREOC_ProfesorReemplazado;
$reemplazo = $this->profesor_model->obtener($filter);
$lista[$indice]->nombres_reemp = isset($reemplazo->PERSC_Nombre) ? $reemplazo->PERSC_Nombre : "";
$lista[$indice]->paterno_reemp = isset($reemplazo->PERSC_ApellidoPaterno) ? $reemplazo->PERSC_ApellidoPaterno : "";
$lista[$indice]->materno_reemp = isset($reemplazo->PERSC_ApellidoMaterno) ? $reemplazo->PERSC_ApellidoMaterno : "";
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/persona/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['titulo'] = "Tardanzas y Reemplazos";
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/tardanza_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:53,代码来源:tardanza.php
示例6: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter->order_by = array("p.ACTAP_Codigo" => "desc");
$filter_not = new stdClass();
$registros = count($this->acta_model->listar($filter, $filter_not));
$matricula = $this->acta_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($matricula) > 0) {
foreach ($matricula as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->ACTAP_Codigo;
$lista[$indice]->nombres = $value->PERSC_Nombre;
$lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
$lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
$lista[$indice]->fechareg = $value->fechareg;
$lista[$indice]->fecha = date_sql($value->ACTAC_Fecha);
$lista[$indice]->titulo = $value->ACTAC_Titulo;
$lista[$indice]->ciclo = $value->COMPC_Nombre;
$lista[$indice]->tipoestudio = $value->TIPC_Nombre;
$filter = new stdClass();
$filter->curso = $value->PROD_Codigo;
$curso = $this->curso_model->obtener($filter);
$lista[$indice]->curso = $curso->PROD_Nombre;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['titulo'] = "Reuniones de plana";
$data['btnNuevo'] = "Crear una nueva reunion";
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/acta_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:52,代码来源:acta.php
示例7: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter->order_by = array("h.CICLOP_Codigo" => "desc", "f.AULAC_Nombre" => "asc");
$filter_not = new stdClass();
$registros = count($this->apertura_model->listar($filter, $filter_not));
$matricula = $this->apertura_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($matricula) > 0) {
foreach ($matricula as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->APERTUP_Codigo;
$lista[$indice]->local = $value->LOCC_Nombre;
$lista[$indice]->aula = $value->AULAC_Nombre;
$lista[$indice]->turno = $value->TURNOP_Codigo;
$lista[$indice]->ciclo = $value->COMPC_Nombre;
$lista[$indice]->modulo = $value->MODULOC_Descripcion;
$lista[$indice]->tipoestudio = $value->TIPC_Nombre;
$lista[$indice]->estado = $value->APERTUC_FlagEstado;
$lista[$indice]->fecha = date_sql($value->APERTUC_Fecha);
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['arrturno'] = array("0" => "::Seleccione::", "1" => "Mañana", "2" => "Tarde", "3" => "Noche");
$data['titulo'] = "Apertura de aulas";
$data['nuevo'] = "Crear una nueva apertura de aulas";
$data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
$data['form_close'] = form_close();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/apertura_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:51,代码来源:apertura.php
示例8: top
public function top()
{
$list_top1 = get_menu($_SESSION[C('USER_AUTH_KEY')], $_SESSION['roles'], array('position' => 'top1'));
$db_group = M('group');
$list_fast_menu = $db_group->where("status=1 AND is_show=1")->select();
$db_menu = M('menu');
foreach ($list_fast_menu as $key => $val) {
$list_fast_menu[$key]['menu_id'] = $db_menu->where("group_id={$val['id']} AND parent_id='0'")->getField('id');
//echo $db_node->getLastSql().'<br>';
}
$this->assign('list_top1', $list_top1);
$this->assign('list_fast_menu', $list_fast_menu);
$this->display();
}
开发者ID:uwitec,项目名称:p-oa,代码行数:14,代码来源:IndexAction.class.php
示例9: get_menu
function get_menu($id, $level = 0)
{
global $DB, $Q, $module_name, $menu, $way_array;
$SQL = "SELECT * FROM " . $module_name . " WHERE rid = '" . $id . "' AND f1 = '' ORDER BY date DESC";
$result = $Q->query($DB, $SQL);
for ($data = array(); $row = mysql_fetch_assoc($result); $data[] = $row) {
}
for ($i = 0; $i < count($data); $i++) {
$menu .= "\n\t\t<tr><td class='katalog_item" . $level . "'><a class='katalog_item' href='/" . get_url("catalog.php?id=" . $data[$i][id]) . "'>" . $data[$i][name] . "</a></td></tr>\n\t\t";
if (in_array($data[$i][id], $way_array)) {
get_menu($data[$i][id], $level + 1);
}
}
}
开发者ID:pioytazsko,项目名称:drell,代码行数:14,代码来源:_left_catalog.php
示例10: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter_not = new stdClass();
$filter_not->profesor = "0";
$filter->order_by = array("d.PERSC_ApellidoPaterno" => "asc", "d.PERSC_ApellidoMaterno" => "asc", "d.PERSC_Nombre" => "asc");
$registros = count($this->profesor_model->listar($filter, $filter_not));
$profesores = $this->profesor_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($profesores) > 0) {
foreach ($profesores as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->numero = $value->PERSC_NumeroDocIdentidad;
$lista[$indice]->nombres = $value->PERSC_Nombre;
$lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
$lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
$lista[$indice]->telefono = $value->PERSC_Telefono;
$lista[$indice]->movil = $value->PERSC_Movil;
$lista[$indice]->codigo = $value->PROP_Codigo;
$lista[$indice]->estado = $value->PROC_FlagEstado;
$lista[$indice]->curso = $value->PROD_Nombre;
$lista[$indice]->fechareg = $value->fechareg;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/ventas/profesor/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/profesor_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:48,代码来源:profesor.php
示例11: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$filter->order_by = array("d.PERSC_ApellidoPaterno" => "asc", "d.PERSC_ApellidoMaterno" => "asc", "d.PERSC_Nombre" => "asc");
$registros = count($this->usuario_model->listar($filter));
$usuarios = $this->usuario_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($usuarios) > 0) {
foreach ($usuarios as $indice => $value) {
$filter = new stdClass();
$filter->persona = $value->PERSP_Codigo;
$profesor = $this->profesor_model->obtener($filter);
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->USUA_Codigo;
$lista[$indice]->login = $value->USUA_usuario;
$lista[$indice]->nombres = $value->PERSC_Nombre;
$lista[$indice]->rol = $value->ROL_Descripcion;
$lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
$lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
$lista[$indice]->estado = $value->USUA_FlagEstado;
$lista[$indice]->fechareg = $value->USUA_FechaRegistro;
$lista[$indice]->curso = isset($profesor->PROD_Nombre) ? $profesor->PROD_Nombre : "";
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/seguridad/usuario/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['titulo_tabla'] = "RELACIÓN DE USUARIOS";
$data['titulo_busqueda'] = "BUSCAR USUARIO";
$data['menu'] = $menu;
$data['header'] = get_header();
$data['registros'] = $registros;
$data['form_open'] = form_open('', array("name" => "form1", "id" => "form1", "onsubmit" => "return valida_guiain();"));
$data['form_close'] = form_close();
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("seguridad/usuario_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:46,代码来源:usuario.php
示例12: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter_not = new stdClass();
$filter->order_by = array("p.PROD_Nombre" => "asc");
$registros = count($this->curso_model->listar($filter, $filter_not));
$productos = $this->curso_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($productos) > 0) {
foreach ($productos as $indice => $valor) {
$filter = new stdClass();
$filter->tipo = $valor->TIPPROD_Codigo;
$tipo = $this->tipoproducto_model->obtener($filter);
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $valor->PROD_Codigo;
$lista[$indice]->nombre = $valor->PROD_Nombre;
$lista[$indice]->estado = $valor->PROD_FlagEstado;
$lista[$indice]->fechareg = $valor->fechareg;
$lista[$indice]->tipo = $tipo->TIPPROD_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/almacen/curso/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['registros'] = $registros;
$data['j'] = $j;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view('almacen/curso_index', $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:45,代码来源:curso.php
示例13: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter->order_by = array("p.VIGILAC_Fecha" => "desc", "p.VIGILAP_Codigo" => "desc");
$filter_not = new stdClass();
$registros = count($this->vigilancia_model->listar($filter, $filter_not));
$vigilancia = $this->vigilancia_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($vigilancia) > 0) {
foreach ($vigilancia as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->VIGILAP_Codigo;
$lista[$indice]->fecha = date_sql($value->VIGILAC_Fecha);
$lista[$indice]->nombre = $value->VIGILAC_Nombre;
$lista[$indice]->numero = $value->VIGILAC_Numero;
$lista[$indice]->curso = $value->PROD_Nombre;
$lista[$indice]->descripcion = $value->VIGILAC_Descripcion;
$lista[$indice]->coordinador = $value->PERSC_ApellidoPaterno . " " . $value->PERSC_ApellidoMaterno . " " . $value->PERSC_Nombre;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['titulo'] = "Vigilancia de Practicas";
$data['menu'] = $menu;
$data['header'] = get_header();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/vigilancia_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:45,代码来源:vigilancia.php
示例14: show_page
function show_page($page)
{
$template = '';
$posts_per_page = 5;
$page_nr = isset($_GET['page_nr']) ? $_GET['page_nr'] : '0';
$limit = $page_nr * $posts_per_page . ", {$posts_per_page}";
// $template_file = select_from_db(array('blogs.template'), array('blogs'), array("blogs.name='$page'"));
// $template = "view/templates/" . $template_file[0]['template'];
$template = "view/templates/default_template.php";
if (file_exists($template) && is_file($template)) {
require_once $template;
} else {
require_once "view/templates/default_template.php";
}
echo get_document_head();
echo get_header();
echo get_menu();
if ($page == "startpage") {
echo "startpage";
} else {
if ($page == "search") {
echo get_searchbar();
echo get_search_results();
echo get_thechosen();
} else {
if ($page == "fileupload") {
echo get_fileupload();
} else {
if ($page == "nyheter") {
echo get_news();
} else {
if ($page == "receipes") {
$recipe = "Hallonmums";
echo get_recipes($recipe);
} else {
echo get_default("Välkommen");
}
}
}
}
}
echo get_footer();
echo get_document_end();
}
开发者ID:eva-chaunm,项目名称:paraflow,代码行数:44,代码来源:page.php
示例15: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
if ($_SESSION["acceso"] == 2) {
$filter->curso = $_SESSION["codcurso"];
}
if ($_SESSION["acceso"] == 3) {
$filter->profesor = $_SESSION["codprofesor"];
}
$filter_not = new stdClass();
$filter->order_by = array("e.COMPC_Nombre" => "desc", "g.TIPC_Nombre" => "asc", "h.PROD_Nombre" => "asc");
$registros = count($this->tema_model->listar($filter, $filter_not));
$temas = $this->tema_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($temas) > 0) {
foreach ($temas as $indice => $valor) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $valor->PRODATRIBDET_Codigo;
$lista[$indice]->curso = $valor->PROD_Nombre;
//$lista[$indice]->semana = $valor->PRODATRIB_Nombre;
$lista[$indice]->descripcion = $valor->TEMAC_Descripcion;
$lista[$indice]->ciclo = $valor->COMPC_Nombre;
$lista[$indice]->tipoestudio = $valor->TIPC_Nombre;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/almacen/tema/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Datos para la vista*/
$data['titulo_tabla'] = "Listado de preguntas";
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['registros'] = $registros;
$data['j'] = $j;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view('almacen/tema_index', $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:44,代码来源:tema.php
示例16: get_menu
function get_menu($items, $class = 'dd-list')
{
$html = "<ol class=\"" . $class . "\" id=\"menu-id\">";
foreach ($items as $key => $value) {
$html .= '<li class="dd-item dd3-item" data-id="' . $value['id'] . '" >
<div class="dd-handle dd3-handle">Drag</div>
<div class="dd3-content"><span id="label_show' . $value['id'] . '">' . $value['label'] . '</span>
<span class="span-right">/<span id="link_show' . $value['id'] . '">' . $value['link'] . '</span>
<a class="edit-button" id="' . $value['id'] . '" label="' . $value['label'] . '" link="' . $value['link'] . '" ><i class="fa fa-pencil"></i></a>
<a class="del-button" id="' . $value['id'] . '"><i class="fa fa-trash"></i></a></span>
</div>';
if (array_key_exists('child', $value)) {
$html .= get_menu($value['child'], 'child');
}
$html .= "</li>";
}
$html .= "</ol>";
return $html;
}
开发者ID:eboominathan,项目名称:simple-management-menu-php-mysql-jquery,代码行数:19,代码来源:index.php
示例17: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
//$filter->order_by = array("c.CICLOP_Codigo"=>"desc","e.PERSC_ApellidoPaterno"=>"asc","e.PERSC_ApellidoMaterno"=>"asc");
$filter_not = new stdClass();
$registros = count($this->matricula_model->listar($filter, $filter_not));
$matricula = $this->matricula_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($matricula) > 0) {
foreach ($matricula as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->ORDENP_Codigo;
$lista[$indice]->nombres = $value->PERSC_Nombre;
$lista[$indice]->paterno = $value->PERSC_ApellidoPaterno;
$lista[$indice]->materno = $value->PERSC_ApellidoMaterno;
$lista[$indice]->tipoestudio = $value->TIPC_Nombre;
$lista[$indice]->ciclo = $value->COMPC_Nombre;
$lista[$indice]->aula = $value->AULAC_Nombre;
$lista[$indice]->estado = $value->ORDENC_FlagEstado;
$lista[$indice]->fechareg = $value->fechareg;
$lista[$indice]->fecha = date_sql($value->ORDENC_Fecot);
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/ventas/orden/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['form_open'] = form_open('', array("name" => "frmPersona", "id" => "frmPersona", "onsubmit" => "return valida_guiain();"));
$data['form_close'] = form_close();
$data['j'] = $j;
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("ventas/matricula_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:43,代码来源:matricula.php
示例18: show_menu
function show_menu()
{
// get menu items based on current state
$menu = get_menu();
//echo " <!-- menu array:";print_r($menu);echo "-->\n";
echo "\t<div name='menubar' id='menubar' class='mbardiv'>\n";
echo "\t\t<table border=0 cellpadding=0 cellspacing=0>\n";
echo "\t\t\t<tr>\n";
foreach ($menu as $keyname => $info) {
$name = $info["name"];
$item = $info["item"];
$title = $info["title"];
$bclass = $_SESSION["nextact"];
$iselected = $bclass == $item ? "selected" : "";
echo "\t\t\t\t<td><input type=button class=\"menuitem mbutton {$iselected}\" title=\"{$title}\" onclick=\"go('{$item}');\" value=\"{$name}\"></td>\n";
}
echo "\t\t\t</tr>\n";
echo "\t\t</table>\n";
echo "\t</div>\n";
}
开发者ID:williamoak,项目名称:roaming,代码行数:20,代码来源:view.php
示例19: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
$filter_not = new stdClass();
$registros = count($this->empresa_model->listar($filter));
$empresas = $this->empresa_model->listar($filter, $filter_not, $this->configuracion['per_page'], $j);
$item = 1;
$lista = array();
if (count($empresas) > 0) {
foreach ($empresas as $indice => $value) {
$lista[$indice] = new stdClass();
$lista[$indice]->codigo = $value->EMPRP_Codigo;
$lista[$indice]->ruc = $value->EMPRC_Ruc;
$lista[$indice]->rsocial = $value->EMPRC_RazonSocial;
$lista[$indice]->telefono = $value->EMPRC_Telefono;
$lista[$indice]->movil = $value->EMPRC_Movil;
$lista[$indice]->fax = $value->EMPRC_Fax;
$lista[$indice]->web = $value->EMPRC_Web;
$lista[$indice]->email = $value->EMPRC_Email;
$lista[$indice]->estado = $value->EMPRC_FlagEstado;
$lista[$indice]->sector = $value->SECTORC_Descripcion;
}
}
$configuracion = $this->configuracion;
$configuracion['base_url'] = base_url() . "index.php/maestros/empresa/listar";
$configuracion['total_rows'] = $registros;
$this->pagination->initialize($configuracion);
/*Enviamos los datos a la vista*/
$data['lista'] = $lista;
$data['menu'] = $menu;
$data['header'] = get_header();
$data['titulo'] = "Listado de Empresas";
$data['nuevo'] = "Crear una nueva Empresa";
$data['registros'] = $registros;
$data['paginacion'] = $this->pagination->create_links();
$this->load->view("maestros/empresa_index", $data);
}
开发者ID:ccjuantrujillo,项目名称:cepreadm,代码行数:41,代码来源:empresa.php
示例20: listar
public function listar($j = 0)
{
$filter = new stdClass();
$filter->rol = $this->session->userdata('rolusu');
$filter->order_by = array("m.MENU_Orden" => "asc");
$menu = get_menu($filter);
$filter = new stdClass();
|
请发表评论