Jump to content

Fabricio Dantas

Members
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Comum

About Fabricio Dantas

  • Birthday 02/20/1979

Informações Pessoais

  • Sexo
    Masculino
  • Localização
    fortaleza

Contato

  • Skype
    fabriciodantas
  • Site Pessoal
    www.fcseguranca.com.br

Recent Profile Visitors

165 profile views
  1. Fabricio Dantas

    Desenvolvimento de Site/Software para Gestão

    me chama zap 85 998558083
  2. Fabricio Dantas

    tirar sesson php

    boa noite, amigos eu tenho um codigo php, e ele nao seu acesso fica dando a mensagem "Sessão encerrada! Faça login." como eu faço para tirar esse controle de versão desse codigo, ja agradeço desde já <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Menu GPS</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="javasc/prototype.js"></script> <script type="text/javascript" src="javasc/effects.js"></script> <script type="text/javascript" src="javasc/accordion.js"></script> <script type="text/javascript" src="javasc/brwsniff.js"></script> <script type="text/javascript" src="javasc/checarAlertas.js"></script> <script type="text/javascript" src="javasc/cancelarComando.js"></script> <script type="text/javascript" src="javasc/alterarVeiculo.js"></script> <script type="text/javascript" src="javasc/enviarComando.js"></script> <script type="text/javascript" src="javasc/verificarStatusSinalGPS.js"></script> <link rel="stylesheet" type="text/css" href="css/menu.css" /> <script type="text/javascript"> // Detectando browser usado e alterando tamanho do frame main var br=new Array(4); br=getBrowser(); //alert(br[0]); var frameset = parent.document.getElementById("mainFrame"); if (br[0] == 'firefox') { frameset.rows = "89,*,153"; } else { if (br[0] == 'msie') { frameset.rows = "88,*,153"; } } // In my case I want to load them onload, this is how you do it! Event.observe(window, 'load', loadAccordions, false); // Set up all accordions function loadAccordions() { var bottomAccordion = new accordion('vertical_container'); // Open first one bottomAccordion.activate($$('#vertical_container .accordion_toggle')[0]); } function formataData(Campo, teclapres) { var tecla = teclapres.keyCode; var vr = new String(Campo.value); vr = vr.replace("/", ""); vr = vr.replace("/", ""); vr = vr.replace("/", ""); tam = vr.length + 1; if (tecla != 8 && tecla != 8) { if (tam > 0 && tam < 2) Campo.value = vr.substr(0, 2) ; if (tam > 2 && tam < 4) Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2); if (tam > 4 && tam < 7) Campo.value = vr.substr(0, 2) + '/' + vr.substr(2, 2) + '/' + vr.substr(4, 7); } } </script> <style type="text/css"> .accordion_toggle { border-left: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC; display: block; height: 30px; width: 260px; background: url('imagens/seta.gif') no-repeat 12px; padding: 0 0 0 20px; line-height: 30px; color: #ffffff; font-weight: bold; text-decoration: none; outline: none; font-size: 20px; color: #CCCCCC; cursor: pointer; margin: 0 0 0 0; font-family: Arial, Helvetica, sans-serif; } .accordion_toggle:hover { background-color: #F7F7F7; } .accordion_toggle_active { background: url('imagens/seta-on.gif') no-repeat 12px; color: #000000; border-bottom-style: none; border-bottom-width: 0px; } .accordion_toggle_red_active { border-color: #D8000C; border-style: solid; border-width: 1px; background: url('imagens/icon_alert.gif') no-repeat 12px; color: #D8000C; background-color: #FFBABA; } .accordion_toggle_active_yellow { background: url('imagens/seta-on.gif') no-repeat 12px; color: #000000; border-bottom-style: none; border-bottom-width: 0px; } .accordion_toggle_active:hover { background-color: #FFFFFF; } .accordion_content { background-color: #ffffff; color: #444444; overflow: hidden; margin-right: -2px; margin-left: 0px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-color: #CCCCCC; border-bottom-color: #CCCCCC; border-left-color: #CCCCCC; padding-left: 32px; } .accordion_content h2 { margin: 15px 0 5px 10px; color: #0099FF; } .accordion_content p { line-height: 150%; padding: 5px 10px 15px 10px; } .botaoBranco { background-color:#FFFFFF; border:1px solid #999999; color:#333333; font-family:Verdana; font-size:7pt; font-style:normal; font-weight:normal; text-decoration:none; } .spanComentarios { font-size: 9px; color: #6A6A6A; } </style> <base target="main" /> </head> <body onload="verificarAlertas(); verificarStatusSinalGPS();"> <div id="imagens_status_veiculos" style="display:none"> <?php $cnx = mysql_connect("localhost", "user1", "pass1") or die("Could not connect: " . mysql_error()); mysql_select_db('tracker', $cnx); $res = mysql_query("select imei, status_sinal from bem where cliente = $cliente"); for($i=0; $i < mysql_num_rows($res); $i++) { $row = mysql_fetch_assoc($res); echo "<img id='img_status_sinal". $row[imei] ."' src='imagens/". imagenStatusSinal($row[status_sinal]) ."' border='0' />"; } /** Retorna a imagem do status do sinal */ function imagenStatusSinal($sgSinal) { $imgSinal; switch($sgSinal) { case "R": $imgSinal = "status_rastreando.png"; break; case "S": $imgSinal = "status_sem_sinal.png"; break; case "D": $imgSinal = "status_desligado.png"; break; } return $imgSinal; } mysql_close($cnx); ?> </div> <div id="container"> <div id="vertical_container"> <h1 class="accordion_toggle">&nbsp; Veículos <span id="spanCarroSelecionado" class="spanComentarios" style="color:#CCCCCC;"></span> <img id="statusSinalGPS" name="statusSinalGPS" src="imagens/status_desligado.png" alt="Status do sinal" title="Status do sinal" border="0" style="display:none" /> </h1> <div class="accordion_content" id="veiculos"> <span id="spanBensDisponiveis" class="spanComentarios">Bens autorizados para monitoramento</span> <?php include('menu_veiculos.php'); ?> </div> <h1 class="accordion_toggle">&nbsp; Comandos</h1> <div class="accordion_content" id="comandos"> <!-- TODO: Alterar forma de enviar comando. Atualmente é um form comum. Precisa evitar refresh no main/mapa. --> <form id="enviarComando" action="menu_comandos.php" method="post"> <input type="hidden" id="nrimei" name="imei" value=""> <span id="spanComandos" class="spanComentarios" style="display:block;">Para habilitar comandos selecione um veículo</span> <table> <tr> <td> <select name="command" id="command" class="botaoBranco" disabled="true" onchange="if (this.value==',C,30s') { document.getElementById('commandTime').style.display='block'; } else { document.getElementById('commandTime').style.display='none'; } if (this.value==',H,060') { document.getElementById('spanSpeedLimit').style.display='block'; } else { document.getElementById('spanSpeedLimit').style.display='none'; } "> <option selected value=",B">Rastrear uma vez</option> <option value=",C,30s">Rastrear a cada</option> <option value=",H,060">Velocidade limite</option> <option value=",D">Desabilitar</option> <option value=",G">Alerta movimento</option> <option value=",E">Cancelar alerta</option> <option value=",N">Modo SMS</option> <option value=",J">Bloquear</option> <option value=",K">Desbloquear</option> </select> </td> <td> <select name="commandTime" id="commandTime" class="botaoBranco" style="display:none"> <option value=",C,30s">30s</option> <option value=",C,01m">1m</option> <option value=",C,05m">5m</option> <option value=",C,10m">10m</option> <option value=",C,30m">30m</option> <option value=",C,01h">1h</option> <option value=",C,05h">5h</option> <option value=",C,10h">10h</option> </select> </td> <td> <span id="spanSpeedLimit" style="font-size:xx-small;display:none"><input id="commandSpeedLimit" name="commandSpeedLimit" value="60" maxlength="3" size="3" type="text" class="botaoBranco">Km/h</span> </td> <td><input type="submit" value="Enviar" id="btnEnviarComando" class="botaoBranco" disabled="true" onclick="return enviarComando();"> </td> <td><a id="linkCancelarComando" href="javascript:void(0);" onclick="this.style.display='none'; cancelarComando(document.getElementById('nrimei').value); return false;" style="display:none;font-size:10px;" title="Cancelar um comando pendente"> cancelar</a> </td> </tr> </table> </form> <br /> </div> <!--h1 class="accordion_toggle">&nbsp; Cerca Virtual</h1> <div class="accordion_content" id="cerca"> <span id="spanCercaVirtual" class="spanComentarios">Delimita uma área autorizada</span> <p>Em desenvolvimento.</p> </div--> <h1 class="accordion_toggle">&nbsp; Histórico</h1> <div class="accordion_content" id="relatorios"> <span id="spanHistorico" style="display:block;" class="spanComentarios">Para consultar histórico selecione um veículo</span> <form id="consultarHistorico" name="consultarHistorico" action="listagem_historico.php" method="post" target="bottom"> <table width="266px" style="margin-left: -20px;"> <tr> <td> <input type="hidden" id="nrImeiConsulta" name="nrImeiConsulta" value=""> <span style="font-size:11px;">Início: </span> <input name="txtDataInicio" value="<?php echo date("d/m/Y") ?>" onkeyup="formataData(this,event)" type="text" class="botaoBranco" maxlength="10" size="12" style="height: 14px;" /> <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.consultarHistorico.txtDataInicio);return false;" hidefocus=""> <img name="popcal" src="javasc/calendario/calbtn.jpg" alt="Selecione uma data" title="Selecione uma data" align="absmiddle" border="0" > </a> <select name="hrDataInicio" id="commandHourTimeIni" class="botaoBranco"> <option value="0" selected>00h</option> <option value="1">01h</option> <option value="2">02h</option> <option value="3">03h</option> <option value="4">04h</option> <option value="5">05h</option> <option value="6">06h</option> <option value="7">07h</option> <option value="8">08h</option> <option value="9">09h</option> <option value="10">10h</option> <option value="11">11h</option> <option value="12">12h</option> <option value="13">13h</option> <option value="14">14h</option> <option value="15">15h</option> <option value="16">16h</option> <option value="17">17h</option> <option value="18">18h</option> <option value="19">19h</option> <option value="20">20h</option> <option value="21">21h</option> <option value="22">22h</option> <option value="23">23h</option> </select> <select name="mnDataInicio" id="commandMinuteTimeIni" class="botaoBranco"> <option value="00" selected>00m</option> <option value="10">10m</option> <option value="15">15m</option> <option value="20">20m</option> <option value="25">25m</option> <option value="30">30m</option> <option value="35">35m</option> <option value="40">40m</option> <option value="45">45m</option> <option value="50">50m</option> <option value="55">55m</option> <option value="59">59m</option> </select> <!--span style="font-size:xx-small">a</span--> <br /> <span style="font-size:11px;">&nbsp;Final:</span> <input name="txtDataFinal" value="<?php echo date("d/m/Y") ?>" onkeyup="formataData(this,event)" type="text" class="botaoBranco" maxlength="10" size="12" style="height: 14px"/> <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.consultarHistorico.txtDataFinal);return false;" hidefocus=""> <img name="popcal" src="javasc/calendario/calbtn.jpg" alt="Selecione uma data" title="Selecione uma data" align="absmiddle" border="0" style="margin-left:1px"> </a> <select name="hrDataFinal" id="commandHourTimeFim" class="botaoBranco"> <option value="0">00h</option> <option value="1">01h</option> <option value="2">02h</option> <option value="3">03h</option> <option value="4">04h</option> <option value="5">05h</option> <option value="6">06h</option> <option value="7">07h</option> <option value="8">08h</option> <option value="9">09h</option> <option value="10">10h</option> <option value="11">11h</option> <option value="12">12h</option> <option value="13">13h</option> <option value="14">14h</option> <option value="15">15h</option> <option value="16">16h</option> <option value="17">17h</option> <option value="18">18h</option> <option value="19">19h</option> <option value="20">20h</option> <option value="21">21h</option> <option value="22">22h</option> <option value="23" selected>23h</option> </select> <select name="mnDataFinal" id="commandMinuteTimeFim" class="botaoBranco"> <option value="00">00m</option> <option value="10">10m</option> <option value="15">15m</option> <option value="20">20m</option> <option value="25">25m</option> <option value="30">30m</option> <option value="35">35m</option> <option value="40">40m</option> <option value="45">45m</option> <option value="50">50m</option> <option value="55">55m</option> <option value="59" selected>59m</option> </select> </td> </tr> <tr> <td align="right"><input id="btnConsultar" name="btnConsultar" type="button" disabled="true" value="Consultar" class="botaoBranco" onclick="consultarHistoricoData();" /></td> <td></td> </tr> </table> </form> <br /> </div> <!--h1 class="accordion_toggle">&nbsp; Ajuda</h1> <div class="accordion_content" id="ajuda"> <span id="spanComandos" class="spanComentarios">Help do sistema</span> <p><a onclick="abrirHelp();" href="help/gerenciando_bens.html">Gerenciando bens</a><br /> <a onclick="abrirHelp();" href="help/enviando_comandos_gps.html">Enviando comandos ao gps</a><br /> <a onclick="abrirHelp();" href="help/cerca_virtual.html">Definindo uma cerca virtual</a><br /> <a onclick="abrirHelp();" href="help/exibindo_historico.html">Exibindo histórico</a><br /> <a onclick="abrirHelp();" href="help/verificando_alertas.html">Verificando alertas</a><br /> <a onclick="abrirHelp();" href="help/verificando_status_sinal_gps.html">Verificando sinal</a><br /> </p> </div--> <h1 class="accordion_toggle">&nbsp; Estatísticas</h1> <div class="accordion_content" id="estatisticas"> <span id="spanComandos" class="spanComentarios">Estatísticas do rastreamento</span> <p><a onclick="abrirHelp();" href="estatisticas/coordenadas_obtidas.php">Quantidade de coordenadas</a><br /> </p> </div> <h1 id="headerAlertas" class="accordion_toggle">&nbsp; Alertas</h1> <div class="accordion_content" id="alertas"> <span id="spanComandos" class="spanComentarios">Exibe alertas emitido pelo gps</span> <p>Nenhum alerta.</p> </div> </div> </div> <script type="text/javascript"> // You can hide the accordions on page load like this, it maintains accessibility // Special thanks go out to Will Shaver @ http://primedigit.com/ var verticalAccordions = $$('.accordion_toggle'); verticalAccordions.each(function(accordion) { $(accordion.next(0)).setStyle({ height: '0px' }); }); </script> <iframe name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="javasc/calendario/ipopeng.htm" style="visibility: visible; z-index: 999; position: absolute; left: -500px; top: 31px; width: 174px; height: 172px;" frameborder="0" height="189" scrolling="no" width="174"></iframe> </body> </html>
×

Important Information

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