Jump to content

jose max

Members
  • Content count

    4
  • Joined

  • Last visited

Community Reputation

0 Comum

About jose max

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Olá galera tenho um projeto unde meu chefe quer que a janela do navegador abra com o fundo transparente alguém ja faz isso alguma vez?
  2. jose max

    WINDOWS.OPEN() INTERNET EXPLORE

    <?php //faz a inclusão de todas as classes que o programa requisitar; function my_autoload($pClassName) { include('Class' . "/" . $pClassName . ".class.php"); } spl_autoload_register("my_autoload"); //Inicia as variaveis de session; session_start(); $Log = $_SESSION['Log']; $tipo = $_SESSION['TIPO']; $EMP = $_SESSION['EMP']; $FIL = $_SESSION['FIL']; $NOME_USU = $_SESSION['usuario'].'-'. $_SESSION['NOME_USU']; $NOME_EMP = $_SESSION['NOME_EMP']; $_SESSION['usuario']; $data = $_SESSION['data']; $TROCA_EMPRESA = $_SESSION['TROCA_EMP']; if(isset($_POST['ENT'])){ list($C,$S) = explode("/", $_POST['ENT']); $_SESSION['COD_ENT'] = $C; $_SESSION['SEQ_ENT'] = $S; } //varifica se esta logado; if(isset($_POST['ID'])){ list($SIS,$SEQ) = explode("/", $_POST['ID']); $_SESSION['SIS'] = $SIS; $_SESSION['SEQ'] = $SEQ;} //varifica se esta logado; IF(isset($_POST['DESTRUC']) ){ if($_POST['DESTRUC'] == 2){ unset($_SESSION['SIS']); unset($_SESSION['SEQ']); unset($_SESSION['COD_ENT']); unset($_SESSION['SEQ_ENT']); }elseif ($_POST['DESTRUC'] == 3) { unset($_SESSION['COD_ENT']); unset($_SESSION['SEQ_ENT']); } } if (!$Log = NULL) { ?> <!DOCTYPE html> <!--Autor: José Max Eichenberger. Data: 11/01/2017 ********BKS Sistemas******** Arquivo: Home.php ********Este è o Menu Do Sistema*********--> <html > <head> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".btn-list").hide(); $("#programs").hide(); $(".btn-confg").click(function(){ $(".btn-list").slideToggle("show"); }); $(".btn-programs").click(function(){ $("#programs").slideToggle("show"); }); }); </script> <title>BKS Sistemas E Consultoria LTDA</title> <link rel="stylesheet" href="css/Home/Home.css"> <link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css"> <script type="text/javascript" src="js/MODAL.js"></script> <link rel="stylesheet" href="css/Home/modal.css"> <link rel=icon href=Imagens/bks.ico> <!--script para logout; --> <script type="text/javascript"> function logout() { var r = confirm("Deseja Sair Do BKS?"); var t = 2; if (r) { window.location.href = 'Wsenp/MAGOH.php'; } } </script> <meta charset="charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form class='text'> <?php /* mostra na barra do menu a empresa e a filial que esta sendo usada pelo usuário */ echo "<a class='text' id ='result'> <b>Sistema Bks</b> [" . $EMP . "-" . $FIL . " " . $NOME_EMP .'] '.$NOME_USU."</a><a class='text' id='datahora'> | ".$data."</a>"; ?> <nav class="menu"> <button type="button" title="Menu Rapido" class="btn-programs left"><i class="fa fa-2x fa-th" aria-hidden="true"></i> <i class="fa fa-caret-down" aria-hidden="true"></i></button> <div id="btn"> <button type="button" title="Troca de Empresa" id="TROCAREMPRESA" class="btn-blue"><i class="fa fa-2x fa-industry" aria-hidden="true"></i></button> <button type="button" title="Agenda Telefonica" id="agenda" class="btn-blue"><i class="fa fa-2x fa-address-book-o" aria-hidden="true"></i></button> <button type="button" title="Configurações"class="btn-confg"><i class="fa fa-2x fa-cogs" aria-hidden="true"></i> <i class="fa fa-caret-down" aria-hidden="true"></i></button> <ul class="btn-list"> <li class="list"><a class="iten" href="#">Usuário<i class="fa fa-user fa-ico" aria-hidden="true"></i></a></li> <li class="list"><a class="iten" href="#">Suporte<i class="fa fa-users fa-ico" aria-hidden="true"></i></a></li> <li class="list" onclick="logout();"><a class="iten" href="#">Sair<i class="fa fa-sign-out fa-ico" aria-hidden="true"></i></a></li> </ul> <div id="programs"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> <img class="img" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQwIkrfIrSHcYIqsXT6vZ9-aHr7Jo-5_m3IyTsp2OE1g_TXJn5puw" width="60"> </div> </div> </nav> </form> <?php //--********************* INICIO DA DIV SISTEMAS ******************************--// if (isset($_SESSION['usuario'])) { $cod_usu = $_SESSION['usuario']; $tipo = $_SESSION['TIPO']; $cod_usuario = $cod_usu; $cod_usuario = $_SESSION['usuario']; $sistemas = new Sistemas(); $sis = $sistemas->setCod_usuario($cod_usuario); $sis = $sistemas->GetSistemasUsuario(); ?> <!--********************* INICIO DA DIV SISTEMAS ******************************--> <div class="conteiner-SIS"> <div class="fix"> <img class='icone' src='Imagens/bks.ico'/><a class="font-25" target ondblclick="window.open('includes/popupS.php?Usu=<?php echo $cod_usuario . '&Sis=1&Seq=1' ?>', 'name=popup', 'width=150,height=250,left=300,top=260');">SISTEMAS</a><i id="close_sis" class="fa fa-window-close fa-2x rigth" aria-hidden="true"></i> </div> <div class='div_sistemas' > <ul id='Sistemas' class='ul_Sistema' > <?PHP foreach ($sis as $s) : $cod_sis = $s['SQL_COD_SIS_SIC']; $sequencia = $s['SQL_SEQ_SIS_SIC']; $TROCA_EMPRESA = $s['SQL_USA_EMP_SIS']; if ($tipo == 'ADMINISTRADOR'){ ?> <li class='li_Sistema'><i class="fa fa-windows" aria-hidden="true"></i> <a class='desSis' id='<?php echo $cod_sis . '/' . $sequencia; ?>' name="<?PHP if ($_SESSION['TROCA_EMP'] == 1 && $TROCA_EMPRESA == 1) {echo 'S';} else {echo 'N';} ?>" href="#"><?php echo $s['SQL_NOME_SIS']; ?></a><a target onclick="window.open('includes/popupS.php?Usu=<?php echo $cod_usuario . '&Sis=' . $cod_sis . '&Seq=' . $sequencia ?>', 'name=popup', 'width=150,height=250,left=300,top=260');"><span id='span' class='fa fa-circle'></span></a></li><br> <?php } elseif($tipo == 'USUARIO') {?> <li class='li_Sistema'><i class="fa fa-windows" aria-hidden="true"></i> <a class='desSis' id='<?php echo $cod_sis . '/' . $sequencia; ?>' name="<?PHP if ($_SESSION['TROCA_EMP'] == 1 && $TROCA_EMPRESA == 1) {echo 'S';} else {echo 'N';} ?>" href="#"><?php echo $s['SQL_NOME_SIS']; ?></a></li><br> <?PHP } endforeach; ?> </ul> </div> </div> <!--********************* FINAL DA DIV SISTEMAS ******************************--> <!--********************* INICIO DA DIV ENTIDADES ****************************--> <?php // varifica se o codigo do sistema existe para obter as entidades dependentes dele; if (isset($_SESSION['SIS'])&& isset($_SESSION['SEQ'])) { $tipo = $_SESSION['TIPO']; $cod_sis1 = $_SESSION['SIS']; //instancia da class entidades e a leitura das entidades do usuário logado; $entidades = new Entidades(); $entidades->setCod_usu($cod_usuario); $entidades->setCod_sis($cod_sis1); $ent = $entidades->GetEntidadesUsuario(); ?> <div class="conteiner-ENT"> <div class="fix"> <img class='icone' src='Imagens/bks.ico'/><a class="font-25" target onclick="window.open('includes/popupE.php?Usu=<?php echo $cod_usuario . '&Sis=' . $cod_sis1 . '&Ent=1&SeqEnt=1' ?>', 'name=popup', 'width=150,height=250,left=300,top=260');">ENTIDADES</a><i id="close_ent" class="fa fa-window-close fa-2x rigth" aria-hidden="true"></i> </div> <div class='div_entidades' > <ul id='Entidades' class='ul_entidades' > <?php foreach ($ent as $e) : $cod_ent = $e['SQL_COD_ENT_ENC']; $sequencia_ent = $e['SQL_SEQ_ENT_ENC']; if ($tipo == 'ADMINISTRADOR') { ?> <li class='li_entidades'><i class="fa fa-th-list" aria-hidden="true"></i> <a name='ent' id="<?PHP ECHO $cod_ent.'/'.$sequencia_ent;?>" class='desSis' href="#"><?php echo $e['SQL_NOME_ENT'] ?> </a><a target onclick="window.open('includes/popupE.php?Usu=<?php echo $cod_usuario . '&Sis=' . $cod_sis1 . '&Ent=' . $cod_ent . '&SeqEnt=' . $sequencia_ent; ?>', 'name=popup', 'width=150,height=250,left=300,top=260');"><span id='span' class='fa fa-circle'></span></a></li><br> <?php } else { ?> <li class='li_entidades'><i class="fa fa-th-list" aria-hidden="true"></i> <a name='ent' id="<?PHP ECHO $cod_ent.'/'.$sequencia_ent;?>" class='desSis' href="#"><?php echo $e['SQL_NOME_ENT'] ?> </a></li><br> <?PHP }endforeach; ?> </ul> </div> </div> <!--********************* FINAL DA DIV ENTIDADES ****************************--> <!--********************* INICIO DA DIV PROGRAMAS ****************************--> <?PHP } if (isset($_SESSION['COD_ENT'])) { $e = $_SESSION['COD_ENT']; $programas = new Programas(); $programas->setCod_sis($cod_sis1); $programas->setCod_ent($e); $programas->setCod_usu($cod_usuario); $pro = $programas->GetProgramasUsuario(); ?> <div class="conteiner-PRO"> <div class="fix-2"> <img class='icone' src='Imagens/bks.ico'/><a class="font-25" target ondblclick="window.open('includes/popupP.php?Usu=<?php echo $cod_usu . '&Sis=' . $cod_sis1 . '&Ent=' . $e . '&Pro=1&Seqpro=1' ?>', 'name=popup', 'width=150,height=250,left=300,top=260');">PROGRAMAS</a><i id="close_pro" class="fa fa-window-close fa-2x rigth-pro" aria-hidden="true"></i> </div> <div class='div_programas'> <ul id='Programas' class='ul_programas' > <?php foreach ($pro as $p) : $codsis = $p['SQL_COD_SIS_PRC']; $patch = $p['SQL_PATCH_WEB_DEP']; $sequencia_programa = $p['SQL_SEQ_PRO_PRC']; $entidade = $p['SQL_COD_ENT_PRC']; $codpro = $p['SQL_COD_PRO_PRC']; $tela = $p['SQL_TELA_PRO_DEP']; $telanome = $p['SQL_NAME_TELA_DEP']; if ($tipo == 'ADMINISTRADOR') { ?> <li class='li_programas'><i class="fa fa-cog" aria-hidden="true"> </i><a class='desSis' target="_top" onclick="window.open('<?php echo $patch ?>', 'nane=<?php echo $telanome; ?>', ' <?php echo $tela; ?>,scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');" href ><?php echo $codpro . ' ' . $p['SQL_DESC_PRC']; ?></a><a target onclick="window.open('includes/popupP.php?Usu=<?php echo $cod_usuario . '&Sis=' . $codsis . '&Ent=' . $entidade . '&Pro=' . $codpro . '&Seqpro=' . $sequencia_programa ?>', 'name=popup', 'width=150,height=250,left=300,top=260');"><span id='span' class='fa fa-circle'></span></a></li><br> <?php } else { ?> <li class='li_programas'><i class="fa fa-cog" aria-hidden="true"> </i><a class='desSis' target="_top" onclick="window.open('<?php echo $patch ?>', 'nane=<?php echo $telanome; ?>', ' <?php echo $tela; ?>,scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no,');" href ><?php echo $codpro . ' ' . $p['SQL_DESC_PRC']; ?></a></li><br> <?PHP } endforeach; ?> </ul> </div> </div> <?php //--********************* FIM DA DIV PROGRAMAS ******************************--// } } else { header('location:MAGOH.php'); } } ?> <!-- JANELA MODAL EMPRESA FILIAl--> <div id="boxes"> <form id="form" name="emp" method="POST" enctype="multipart/form-data"> <!-- Janela Modal com caixa de diálogo --> <div id="dialog" class="window"> <div class="d-header"><i id="CLOSE" class="fa fa-window-close fa-2x close" aria-hidden="true"></i> <centet> <h1 id="titulo">Empresa e Filial</h1><hr> </centet> <label>EMP/FIL:</label> <input id="emp" autofocus required value="" type="number" name="EMP" onclick="this.value = ''"/> <input id="fil" type="number" required value="" name="FIL" onclick="this.value = ''"/><br><span style="color:red;" id="span-msg" ></span><br> <label> SENHA:</label> <input id="pass" type="password" value="" name="SENHA" onclick="this.value = ''"/> <br> <br> <input type="button" value="Cancelar" class="close"> <input name="ok" value="ok" type="submit"> </div> <div class="d-blank"></div> </div> <!-- Máscara para cobrir a tela --> <div id="mask"></div> </form> </div> <script type="text/javascript" src="js/VARIFICA_EMPRESE_AJAX.js"></script> </body> </html>
  3. jose max

    iniciar pagina com função. jQuery mobile

    Acredito eu que deva funcionar. mas seria um construct em php ?
  4. Olá galera, tenho uma aplicação e usa o comando windows.open , ela até funciona o internet explore 11 mas redireciona a minha pagina principal para o caregamento anterior "Login" alguém sabe uma maneira de fazer com que esse erro pare; help
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.