Пример #1
0
								<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') {
            $keys = array_keys($_POST);
            $sql = new sql();
Пример #2
0
						</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>
					<hr class="uk-article-divider">										
Пример #3
0
 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', '');
     }
 }