本文整理汇总了PHP中menus类的典型用法代码示例。如果您正苦于以下问题:PHP menus类的具体用法?PHP menus怎么用?PHP menus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了menus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
<?php
@session_start();
require_once "class/Smarty.class.php";
require_once "class/uti.inc.php";
require_once "class/encryptor.inc.php";
require_once "class/libuatf/interfaz_nueva2.inc.php";
require_once "class/libuatf/menus.inc.php";
$_id_docente = intval($_SESSION["__doc_id_docente"]);
$id_gestion = intval($_SESSION["__doc_id_gestion"]);
$id_periodo = intval($_SESSION["__doc_id_periodo"]);
$gestion = $id_gestion . "/" . $id_periodo;
$p = new TemplateInterfaz();
$menu = new menus();
$smarty = new Smarty();
$f = new uti();
$f2 = new uti();
$sql = "SELECT id_docente,ci,titulo,abre_titulo,trim(nombres)as nombres,trim(paterno)as paterno,\r\n\t trim(materno) as materno,trim(clave) as clave,trim(usuario) as usuario,trim(foto)as foto, primer_logueo, email\r\n FROM docentes WHERE id_docente = '{$_id_docente}'AND estado = 'A'";
/*
echo $sql;
exit;
*/
$f->Ejecutar($sql);
if ($f->filas == 0) {
$id = encode_this("id_gestion={$id_gestion}&id_periodo={$id_periodo}&negado=0");
header("location: index.php?" . $id);
exit;
}
$f->Leer(0);
$nombrec = ucwords(strtolower($f->datos->abre_titulo . " " . $f->datos->paterno . " " . $f->datos->materno . ", " . $f->datos->nombres));
$nro_dip = trim($f->datos->ci);
示例2: menus
}
?>
<?php
if ($f > 0) {
?>
<br></br>
<br></br>
<div align="center">
<input name="add" type="submit" src="../imagenes/btns/searchbutton.png" id="buscar" value="Grabar" />
</div>
</table>
<?php
}
?>
</form>
<br>
<br>
</div>
<?php
$mostrarFooter = new menus();
$mostrarFooter->footerTemplate($usuario, $entidad, $basedatos);
?>
</body>
</html>
示例3: session_start
<?php
session_start();
require "../class/Smarty.class.php";
include "../class/libuatf/interfaz_nueva2.inc.php";
include "../class/libuatf/menus.inc.php";
$usuario = $_SESSION["__doc_usuario"];
$id_docente = $_SESSION["__doc_id_docente"];
$nombrec = $_SESSION["__doc_nombrec"];
$id_gestion = $_SESSION["__doc_id_gestion"];
$id_periodo = $_SESSION["__doc_id_periodo"];
$gestion = $id_gestion . "/" . $id_periodo;
if (!isset($_SESSION["__doc_usuario"]) || !isset($_SESSION["__doc_cambio_clave"])) {
header("location: ../index.php?id_gestion={$id_gestion}&id_periodo={$id_periodo}");
}
$p = new TemplateInterfaz();
$menu = new menus();
$smarty = new Smarty();
$p->CabeceraGeneralInt('U.A.T.F.>DOCENTE', $menu->menu_docentes_internas(), $nombrec, $gestion);
$smarty->display('ayuda1.tpl');
$p->PiedePagina();
示例4: menus
</div>
</div>
</div>
</div>
</form>
<?php
if ($cod_item != null) {
?>
<div class="">
<h3 class="tm-article-subtitle">Movimento</h3>
<ul class="uk-subnav ">
<?php
$menus = new menus();
$menus->menu_exportar("grid_movimento", "");
?>
</ul>
<div id="grid_movimento">
</div>
<?php
$pesquisa->cad_movimento($cod_item);
?>
</div>
<div class="">
<h3 class="tm-article-subtitle">Imagens</h3>
<div class="uk-grid" id="">
<div class='uk-width-1-1'>
<input type='file' id='imagem'></input>
<a class='uk-button' onclick="upload_fotos();">Salvar</a>
示例5: session_start
<?php
session_start();
include "menu.php";
$menu = new menus();
$menu->menu_alertas();
if (isset($_GET['status_alerta']) and $_GET['status_alerta'] != '') {
$html = new html();
echo "<div class='uk-panel uk-width-1-2 uk-container-center uk-text-center'>";
echo $html->cad_alertas($_GET['status_alerta']);
echo "</div>";
}
示例6: menu
protected function menu($nivel)
{
$mMenu = new menus();
$menus = $mMenu->listaNivel($nivel);
$this->view->setVar('menus', $menus);
}
示例7: sql
<div class="uk-grid uk-panel uk-panel-box " style="margin-left: 0px; margin-top: 30px; margin-bottom: 15px; padding-left: 0px; padding-right: 0px;">
<div class="uk-width-1-1 uk-panel uk-navbar" style="border-radius: 0px;margin-top: -15px; margin-left: 0px; margin-right: 0px; border-width: 0px; border-style: none none none solid; border-color: -moz-use-text-color; -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; padding-left: 5px;" >
<ul class="uk-subnav uk-subnav-line" style=" ">
<li class="uk-active"><a href=""><i class="uk-icon-flag"></i> <?php
if (isset($_GET['mod'])) {
echo $_GET['mod'];
}
?>
</a></li>
<?php
if (isset($_GET['mod']) and strpos($_GET['mod'], 'cad_') === false) {
} else {
if (isset($_GET) and isset($_GET['mod'])) {
$sql = new sql();
$valores = $sql->min_max($_GET['mod'], str_replace("cad_", "cod_", $_GET['mod']));
$menus = new menus();
$menus->submenu($valores, $_GET['id']);
$menus->menu_exportar('grid');
}
}
?>
</ul>
</div>
<div class="uk-width-1-1" >
<div class="uk-grid" style="padding:15px" >
<div class="uk-width-1-1" id='arquivo_gerado' style="margin-top: 20px;text-align: center; padding: 0px;"></div>
<div class="uk-width-1-1" style="padding-left: 10px;" >
<?php
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id'])) {
if (isset($_POST) and $_POST != null and isset($_GET['act']) and $_GET['act'] == 'cadastros') {
示例8: rgb
<div class="uk-grid ">
<?php
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id'])) {
if (isset($_GET['act']) and $_GET['act'] != 'imprimir') {
?>
<div class="uk-width-1-1 " style="">
<div id='principal' class='' style="margin: -10px 0px 0px; text-align: left; border-bottom: 1px solid rgb(204, 204, 204); padding-bottom: 10px;">
<div class='' style='style="text-align: left; margin: 5px 10px;"'>
<ul class='uk-subnav uk-subnav-line' style='margin-bottom: 0px;'>
<?php
$menus = new menus();
$menus->menu();
?>
</ul>
</div>
</div>
</div>
<?php
}
}
?>
示例9: menu
function menu()
{
$menus = new menus();
$sql = new sql();
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['act'] == "cadastros") {
//elementos de pesquisa
//var_dump($_GET);
$tabela = $_GET['mod'];
//include esqueleto cadastro
if ($tabela == 'cad_itens') {
$id = "cod_item";
$valores = $sql->min_max($tabela, $id);
$menus->submenu_cad_itens($valores, $id);
} else {
$id = str_replace("cad_", "cod_", $_GET['mod']);
$valores = $sql->min_max($tabela, $id);
$menus->submenu($valores, $id);
}
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "pesquisa") {
echo "<li data-uk-tooltip={pos:'right'} title='Novo'><a href='?act=cadastros&mod=" . $_GET['mod'] . "&id=' class='uk-button-link ' style=''><i class='uk-icon-file-o'></i> Incluir novo cadastro</a> </li>";
$menus->menu_exportar('grid', 0);
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "lancamento" and $_GET['mod'] == "gerar_depreciacao") {
$menus->menu_gerar_depreciacao(4);
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "lancamento" and $_GET['mod'] == "baixar") {
$menus->menu_baixa(4);
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "lancamento" and $_GET['mod'] == "reavaliar") {
$menus->menu_reavaliar(4);
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "relatorios" and $_GET['mod'] == "mapa_ativo") {
$filtro = 1;
$menus = new menus();
$relatorios = new relatorios();
$relatorios->filtros($filtro);
$menus->menu_exportar('grid_relatorio', '');
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "relatorios" and $_GET['mod'] == "aquisicoes_baixas") {
$filtro = 2;
$menus = new menus();
$relatorios = new relatorios();
$relatorios->filtros($filtro);
$menus->menu_exportar('grid_relatorio', '');
}
if (isset($_GET['act']) and isset($_GET['mod']) and isset($_GET['id']) and $_GET['id'] == "" and $_GET['act'] == "relatorios" and $_GET['mod'] == "depreciacao") {
$filtro = 3;
$menus = new menus();
$relatorios = new relatorios();
$relatorios->filtros($filtro);
$menus->menu_exportar('grid_relatorio', '');
}
}
示例10: require
<?php
require("/Constantes.php");
require(CONSTANT_PATH_CONFIGURACION."/ventanasEmergentes.php");
require(CONSTANT_PATH_CONFIGURACION.'/funciones.php');
$mostrarmenu=new menus();
$mostrarmenu->menuOperaciones($_GET['main'],$reservado2,$rutasalir,$rutapasswd,$usuario,$entidad,$rutamenuprincipal,'principal',$rutaimagen,$basedatos);
?>
示例11: DAMAGES
| PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| |
+-------------------------------------------------------------------------+
*/
include "../../include/session.php";
include "include/tables.php";
include "include/fields.php";
include "include/menu.php";
$thetable = new menus($db, "tbld:83187e3d-101e-a8a5-037f-31e9800fed2d");
$therecord = $thetable->processAddEditPage();
if (isset($therecord["phpbmsStatus"])) {
$statusmessage = $therecord["phpbmsStatus"];
}
$pageTitle = "Menu Item";
$phpbms->cssIncludes[] = "pages/menus.css";
$phpbms->jsIncludes[] = "modules/base/javascript/menu.js";
//Form Elements
//==============================================================
$theform = new phpbmsForm();
$theinput = new inputField("name", $therecord["name"], NULL, true, NULL, 32, 64);
$theinput->setAttribute("class", "important");
$theform->addField($theinput);
$theinput = new inputField("displayorder", $therecord["displayorder"], "display order", true, NULL, 10, 10);
$theform->addField($theinput);
示例12: menus
<?php
$numero = $_POST['numero'];
$poscion = $_POST['posicion'];
$menu1 = new menus($numero, $poscion);
if ($poscion == "vertical") {
$menu1->mostar_vertical($numero);
} else {
$menu1->mostar_horizontal($numero);
}
class menus
{
private $numero;
private $poscion;
public function __construct($num, $pos)
{
$this->numero = $num;
$this->poscion = $pos;
}
function mostar_vertical($num)
{
for ($index = 0; $index < $num; $index++) {
echo '<a href="#">';
echo "menu{$index} ";
echo '<br>';
echo '</a>';
}
}
function mostar_horizontal($num)
{
for ($index = 0; $index < $num; $index++) {
示例13:
?>
</div>
</div>
<div id="navigation">
<ul>
<!--li><?php
echo html::anchor('admin/dashboard', 'Dashboard');
?>
</li-->
<li><?php
echo html::anchor('admin/page', 'Pages');
?>
</li>
<?php
echo menus::modules();
?>
<li><?php
echo html::anchor('admin/modules', 'Modules');
?>
</li>
<li><?php
echo html::anchor('admin/user', 'Users');
?>
</li>
<li><?php
echo html::anchor('admin/settings', 'Settings');
?>
</li>
</ul>
</div>
示例14: require
<?php
require("/Constantes.php");
require(CONSTANT_PATH_CONFIGURACION."/ventanasEmergentes.php");
require(CONSTANT_PATH_CONFIGURACION.'/funciones.php');
$mostrarmenu=new menus();
$mostrarmenu->menuOperacionesF($_GET['warehouse'],$_GET['datawarehouse'],$rutasalir,$rutapasswd,$usuario,$entidad,$rutamenuprincipal,'principal',$rutaimagen,$basedatos);
?>
示例15: menus
<?php
require '/Constantes.php';
require CONSTANT_PATH_CONFIGURACION . '/funciones.php';
$mostrarmenu = new menus();
$mostrarmenu->mainmenu($reservado1, $reservado2, $rutasalir, $rutapasswd, $usuario, $entidad, $rutamenuprincipal, 'principal', $rutaimagen, $basedatos);