function calendario() { $dia = 1; $semana = array(); while ($dia <= 31) { array_push($semana, $dia); if (count($semana) == 7) { linha($semana); $semana = array(); } $dia++; } linha($semana); }
function getNavPrincipal() { $login = mysql_query("SELECT LOGIN FROM login WHERE CODLOGIN='******'CODLOGIN']}' AND LOGIN NOT IN('admin','internet')"); foreach ($_SESSION as $name => $value) { if ($name == 'USUARIODASESSAO' && trim($value) == 'ADMINISTRADOR') { //$menu .="<div class='Itemmenuheader'>".getLabel('LABEL_MENU_ADMINISTRATIVO', $_SESSION['LANGUAGE'])."</div>"; $menu .= "<div class='menu-ul-cntr'>"; $menu .= "<div class='menu-ul-header'><h4 class='menu-ul-title'>" . getLabel('LABEL_ADMINISTRACAO', $_SESSION['LANGUAGE']) . "</h4><span class='entypo-plus3 right menu-ul-toggle'></span><span class='entypo-minus3 right menu-ul-toggle'></span></div>"; $menu .= "<ul class='menu-ul'>"; $menu .= linha("index.php?actionType=gerenciar.quartos.tipos", getLabel('LABEL_QUARTOS_TYPE', $_SESSION['LANGUAGE']), "", "", "entypo-tag"); $menu .= linha("index.php?actionType=gerenciar.quartos", getLabel('LABEL_QUARTOS', $_SESSION['LANGUAGE']), "", "", "entypo-house"); $menu .= linha("index.php?actionType=gerenciar.a.pousada", getLabel('LABEL_APOUSADA', $_SESSION['LANGUAGE']), "", "", "entypo-earth"); $menu .= linha("index.php?actionType=gerenciar.text.tarifas", getLabel('LABEL_TEXT_RATES', $_SESSION['LANGUAGE']), "", "", "entypo-text"); $menu .= linha("index.php?actionType=gerenciar.emails", getLabel('LABEL_CENTRAL_EMAILS', $_SESSION['LANGUAGE']), "", "", "entypo-mail"); $menu .= linha("index.php?actionType=gerenciar.cielo", getLabel('Cielo', $_SESSION['LANGUAGE']), "", "", "entypo-credit-card"); $menu .= linha("index.php?actionType=gerenciar.faleconosco", getLabel('LABEL_FALE_CONOSCO', $_SESSION['LANGUAGE']), "", "", "entypo-chat"); //$menu .= linha("index.php?actionType=gerenciar.cadastros", getLabel('LABEL_CADASTROS', $_SESSION['LANGUAGE']), "", ""); /* $menu .= linha("index.php?actionType=gerenciar.extras", getLabel('LABEL_EXTRAS', $_SESSION['LANGUAGE']), "", "");*/ $menu .= linha("index.php?actionType=gerenciar.reservas", getLabel('LABEL_RESERVAS', $_SESSION['LANGUAGE']), "", "", "entypo-book2"); //$menu .= linha("index.php?actionType=gerenciar.reservas.externas", getLabel('LABEL_RESERVAS_EXTERNAS', $_SESSION['LANGUAGE']), "", "","entypo-newspaper"); // $menu .= linha("index.php?actionType=gerenciar.usuarios", getLabel('LABEL_USUARIOS', $_SESSION['LANGUAGE']), "", "","entypo-users"); $menu .= "</ul>"; $menu .= "</div>"; // FECHA MENU-UL-CONTAINER $menu .= "<hr>"; $menu .= "<div class='menu-ul-cntr'>"; $menu .= "<div class='menu-ul-header'><h4 class='menu-ul-title'>" . getLabel('LABEL_CONTEUDO', $_SESSION['LANGUAGE']) . "</h4><span class='entypo-plus3 right menu-ul-toggle'></span><span class='entypo-minus3 right menu-ul-toggle'></span></div>"; $menu .= "<ul class='menu-ul'>"; $menu .= linha("index.php?actionType=gerenciar.carrossel", getLabel('LABEL_CARROSSEL', $_SESSION['LANGUAGE']), "", "", "entypo-pictures"); $menu .= linha("index.php?actionType=gerenciar.eventos", getLabel('LABEL_EVENTOS', $_SESSION['LANGUAGE']), "", "", "entypo-star2"); $menu .= linha("index.php?actionType=gerenciar.dicas", getLabel('LABEL_FACILIDADESESERVICOES', $_SESSION['LANGUAGE']), "", "", "entypo-directions"); $menu .= linha("index.php?actionType=gerenciar.galeria", getLabel('LABEL_GALERIA', $_SESSION['LANGUAGE']), "", "", "entypo-camera"); $menu .= linha("index.php?actionType=gerenciar.idiomas", getLabel('LABEL_IDIOMAS', $_SESSION['LANGUAGE']), "", "", "entypo-language"); $menu .= linha("index.php?actionType=gerenciar.localizacao", getLabel('LABEL_LOCALIZACAO', $_SESSION['LANGUAGE']), "", "", "entypo-map"); $menu .= linha("index.php?actionType=gerenciar.pacotes", getLabel('LABEL_PACOTES', $_SESSION['LANGUAGE']), "", "", "entypo-bookmark"); $menu .= linha("index.php?actionType=gerenciar.sobre.nos", getLabel('LABEL_QUEMSOMOS', $_SESSION['LANGUAGE']), "", "", "entypo-info"); //$menu .= linha("index.php?actionType=gerenciar.rodape", getLabel('LABEL_RODAPE', $_SESSION['LANGUAGE']), "", "","entypo-box"); $menu .= linha("index.php?actionType=gerenciar.termos.servico", getLabel('LABEL_TERMOS', $_SESSION['LANGUAGE']), "", "", "entypo-text"); $menu .= "</ul>"; $menu .= "</div>"; // FECHA MENU-UL-CONTAINER //$menu .= linha("index.php?actionType=gerenciar.facilidades.servicos", getLabel('LABEL_FACILIDADESESERVICOES', $_SESSION['LANGUAGE']), "", ""); } } /* $menu .= "<li><br/></li>"; $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.dados.pessoais&codpessoa=$_SESSION[CODPESSOA]", "Dados Pessoais", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.telefones&codpessoa=$_SESSION[CODPESSOA]", "Telefones", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.emails&codpessoa=$_SESSION[CODPESSOA]", "E-mails", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.endereco&codpessoa=$_SESSION[CODPESSOA]", "EndereÁos", "", ""); */ //$menu .= linha("index.php?actionType=alterar.senha", getLabel('LABEL_ALTERAR_SENHA', $_SESSION['LANGUAGE']), "", "","entypo-clock"); //$menu .= linha("index.php?actionType=logout", getLabel('LABEL_SAIR', $_SESSION['LANGUAGE']), "", "","entypo-clock"); return $menu; }
function getNavPrincipal() { $menu = "<div class='SbNav'>"; $login = mysql_query("SELECT LOGIN FROM login WHERE CODLOGIN='******'CODLOGIN']}' AND LOGIN NOT IN('admin','internet')"); foreach ($_SESSION as $name => $value) { if ($name == 'USUARIODASESSAO' && trim($value) == 'ADMINISTRADOR') { $menu .= "<div class='Itemmenuheader'>" . getLabel('LABEL_MENU_ADMINISTRATIVO', $_SESSION['LANGUAGE']) . "</div>"; $menu .= linha("index.php?actionType=gerenciar.quartos.tipos", getLabel('LABEL_QUARTOS_TYPE', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.quartos", getLabel('LABEL_QUARTOS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.a.pousada", getLabel('LABEL_APOUSADA', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.cielo", getLabel('Cielo', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.rodape", getLabel('LABEL_RODAPE', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.localizacao", getLabel('LABEL_LOCALIZACAO', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.usuarios", getLabel('LABEL_USUARIOS', $_SESSION['LANGUAGE']), "", ""); //$menu .= linha("index.php?actionType=gerenciar.cadastros", getLabel('LABEL_CADASTROS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.carrossel", getLabel('LABEL_CARROSSEL', $_SESSION['LANGUAGE']), "", ""); /* $menu .= linha("index.php?actionType=gerenciar.extras", getLabel('LABEL_EXTRAS', $_SESSION['LANGUAGE']), "", "");*/ $menu .= linha("index.php?actionType=gerenciar.pacotes", getLabel('LABEL_PACOTES', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.dicas", getLabel('LABEL_FACILIDADESESERVICOES', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.eventos", getLabel('LABEL_EVENTOS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.reservas", getLabel('LABEL_RESERVAS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.reservas.externas", getLabel('LABEL_RESERVAS_EXTERNAS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.idiomas", getLabel('LABEL_IDIOMAS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.emails", getLabel('LABEL_CENTRAL_EMAILS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.faleconosco", getLabel('LABEL_FALE_CONOSCO', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.galeria", getLabel('LABEL_GALERIA', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.termos.servico", getLabel('LABEL_TERMOS', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=gerenciar.sobre.nos", getLabel('LABEL_QUEMSOMOS', $_SESSION['LANGUAGE']), "", ""); //$menu .= linha("index.php?actionType=gerenciar.facilidades.servicos", getLabel('LABEL_FACILIDADESESERVICOES', $_SESSION['LANGUAGE']), "", ""); } } /* $menu .= "<li><br/></li>"; $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.dados.pessoais&codpessoa=$_SESSION[CODPESSOA]", "Dados Pessoais", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.telefones&codpessoa=$_SESSION[CODPESSOA]", "Telefones", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.emails&codpessoa=$_SESSION[CODPESSOA]", "E-mails", "", ""); $menu .= linha("index.php?actionType=gerenciar.cadastros.edit.endereco&codpessoa=$_SESSION[CODPESSOA]", "EndereÁos", "", ""); */ $menu .= linha("index.php?actionType=alterar.senha", getLabel('LABEL_ALTERAR_SENHA', $_SESSION['LANGUAGE']), "", ""); $menu .= linha("index.php?actionType=logout", getLabel('LABEL_SAIR', $_SESSION['LANGUAGE']), "", ""); $menu .= "</div>"; return $menu; }