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


PHP menus::submenu_cad_itens方法代码示例

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


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

示例1: 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', '');
     }
 }
开发者ID:sergioflorencio,项目名称:toucan,代码行数:54,代码来源:php.php


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