Ir ao conteúdo
  • Cadastre-se

pdrdrb

Membro Júnior
  • Posts

    2
  • Cadastrado em

  • Última visita

Reputação

0
  1. Galera, estou tendo problemas com meu pc. Eu me mudei recentemente e ele ficou desligado uns 20 dias. Eu mesmo transporte ele, com todo o cuidado. O PC chega a ligar, mas sem vídeo, e sem beep. Eu fiz um vídeo do que está acontecendo: Já liguei ele sem a memória, placa de vídeo e HDs, sem sinal da bios.
  2. Eu tenho um sistema de atendimento que esta rodando bem, só que tenho tido problema com isso: Por alguma razão, as vezes ao invés de dar o query no mysql para adiar o tempo, ele falha. (O adiar tempo é um button que usa POST, enviando os textos do formulário de data para o mysql. Função começa em: if( isset( $_POST[ 'adiar' ] ) && $_POST[ 'adiar' ] ) { ) ) Eu até coloquei uma função chamada Logger() para salvar o texto do query, porém ele falha também. O que me leva a concluir que é algo do código. Isso é um sistema de telemarketing. OBS: Optei em enviar o body inteiro para melhor visualização de vocês. Agradeço a ajuda! <body><table width="600" height="60" border="0" align="center"> <tr bgcolor="#999999"> <td width="97" bgcolor="#BAFFB3" class="main">CPF</td> <td width="182" bgcolor="#BAFFB3" class="main">Nome</td> <td width="95" bgcolor="#BAFFB3" class="main">(DDD)Telefone</td> <td width="110" bgcolor="#BAFFB3" class="main">(DDD)Telefone</td> </tr> <tr class="tabletext"> <td height="28" align="center" valign="top" class="main"> <input name="CPF" type="text" value="<?php echo $firstClient['CPF']; ?>" size="14" readonly="readonly"> </td> <td align="center" valign="top" class="main"> <input name="Name" type="text" value="<?php echo codificacao($firstClient['NAME']); ?>" size="46" maxlength="64" readonly="readonly" /> </td> <td align="center" valign="top" class="main"> <input name="Tel1" type="text" value="(<?php echo $firstClient['DDD1']; ?>) <?php echo $firstClient['TEL1']; ?>" size="13" maxlength="13" readonly="readonly"> </td> <td align="center" valign="top" class="main"> <input name="Tel2" type="text" value="<?php if( $firstClient['TEL2'] != "" ) { ?>(<?php echo $firstClient['DDD2']; ?>) <?php echo $firstClient['TEL2']; }?>" size="13" maxlength="13" readonly="readonly"> </td> </tr></table><form method="post"><table width="400" border="0" align="center"> <tr bgcolor="#999999"> <td colspan="8" align="center" bgcolor="#BAFFB3" class="main"><?php echo codificacao('Observação'); ?></td> </tr> <tr> <td colspan="8" class="main"> <textarea name="Obssave" class="textareasize" id="Obssave"><?php echo codificacao($firstClient['OBS']); ?></textarea> </td> </tr> <tr> <td colspan="8" class="main"><div align="right"> <input name="finalizar" type="submit" class="leftside" value="Finalizar" /> <?php if( time() <= $firstClient['TIMESTAMP'] ) { print( "Ligar em: " ); echo date('d/m/Y H:i', $firstClient['TIMESTAMP']);}else { print( "Ligue agora!" );}?> </div></td> </tr> <tr> <td colspan="8" class="main"> </td> </tr> <tr> <td width="64" class="main"> </td> <th width="39" bgcolor="#EAEAEA" class="main">Dia</th> <th width="37" bgcolor="#EAEAEA" class="main"><? echo codificacao('Mês') ?></th> <th width="34" bgcolor="#EAEAEA" class="main">Ano</th> <th width="45" bgcolor="#CCCCCC" class="main"><div align="center">Hora</div></th> <th width="42" bgcolor="#CCCCCC" class="main"><div align="center">Minuto</div></th> <td width="64" class="main"> </td> </tr> <tr> <td class="main"> </td> <td align="center" class="main"> <select name="DayTime"> <?php $i; $choosen = date( 'j',time() ); while( $i < 31 ) { $i++; ?> <option value="<? echo $i ?>" <? if( $choosen == $i ) echo 'selected="selected"' ?> ><? echo $i ?></option> <? } $i = 0; ?> </select></td> <td align="center" class="main"><select name="MonthTime"> <?php $i; $choosen = date( 'n',time() ); while( $i < 12 ) { $i++; ?> <option value="<? echo $i ?>"<? if( $choosen == $i ) echo 'selected="selected"' ?>><? echo $i ?></option> <? } $i = 0; ?> </select></td> <td align="center" class="main"><select name="YearTime"> <?php $i = 2013; $choosen = date( 'y',time() ); while( $i < 2024 ) { $i++; ?> <option value="<? echo $i ?>"<? if( $choosen == $i ) echo 'selected="selected"' ?>><? echo $i ?></option> <? } $i = 0; ?> </select></td> <th class="main"><div align="center"> <select name="HourTime"> <option value="0">00</option> <?php $i; while( $i < 23 ) { $i++; ?> <option value="<? echo $i ?>"><? if( $i < 10 ) echo '0'; echo $i ?></option> <? } $i = 0; ?> </select> </div></th> <th class="main"><div align="center"> <select name="MinuteTime"> <option value="0">00</option> <?php $i; while( $i < 59 ) { $i++; ?> <option value="<? echo $i ?>"><? if( $i < 10 ) echo '0'; echo $i ?></option> <? } $i = 0; ?> </select> </div></th> <td width="66" class="main"><input name="adiar" type="submit" class="leftside" value="Adiar" /></td> </tr></table></form><form method="post"> <?php if( isset( $_POST[ 'adiar' ] ) && $_POST[ 'adiar' ] ) { if( isset( $_POST[ 'DayTime' ] ) && $_POST[ 'DayTime' ] > 0 && isset( $_POST[ 'MonthTime' ] ) && $_POST[ 'MonthTime' ] > 0 && isset( $_POST[ 'YearTime' ] ) && $_POST[ 'YearTime' ] > 0 ) { static $mytimestamp; $mytimestamp = mktime( $_POST['HourTime'], $_POST['MinuteTime'], 0,$_POST['MonthTime'], $_POST['DayTime'], $_POST['YearTime'] ); if( $mytimestamp > time() + 7776000 ) { $mytimestamp = time() + 7776000; } if( $mytimestamp < time() ) { echo "<script type=\"text/javascript\"> alert(\"Complete a data corretamente.\"); </script>"; exit; } else { $textquery = "UPDATE BASE_CLIENTES SET `TIMESTAMP` = '".$mytimestamp."', `OBS` = '".decodificacao(mysql_real_escape_string( $_POST['Obssave'] ))."', `PRIORITY` = '1' WHERE `CPF` = '".$firstClient['CPF']."'"; Logger( $_SESSION['UsuarioNome'], "".$firstClient['CPF']." - ".$textquery."" ); $query = mysql_query( $textquery ); if( !$query ) { echo "<script type=\"text/javascript\"> alert(\"Houve um erro na tentativa de Adiar este cliente, Tente novamente.\"); window.location = \"workscreen.php\" </script>"; exit; } mysql_query( "INSERT INTO BASE_ESTATISTICASUSUARIOS ( `IDDATE`, `FINALIZADOS`, `ADIADOS`, `TIMESTAMP` ) VALUES( '".$_SESSION['UsuarioID']." ".date('d/m/Y',time())."', 0, 1, UNIX_TIMESTAMP( NOW() ) ) ON DUPLICATE KEY UPDATE `ADIADOS` = `ADIADOS` + 1" ); $firstClient[ 'OBS' ] = $_POST['Obssave']; echo "<script type=\"text/javascript\"> alert(\"Adiado para: ".date('d/m/Y H:i:s', $mytimestamp )."\"); window.location = \"workscreen.php\" </script>"; exit; } } } else if( isset( $_POST[ 'finalizar' ] ) && $_POST[ 'finalizar' ] ) { if( !( isset( $_POST[ 'Obssave' ] ) && $_POST[ 'Obssave' ] <> "" ) ) { echo "<script type=\"text/javascript\"> alert(\"Voce nao pode finalizar sem uma Observacao.\"); window.location = \"workscreen.php\" </script>"; return; } $textquery = "UPDATE BASE_CLIENTES SET `PENDINGAPV` = '1', `OBS` = '".decodificacao(mysql_real_escape_string( $_POST['Obssave'] ))."', `PRIORITY` = NULL WHERE `CPF` = '".$firstClient['CPF']."'"; Logger( $_SESSION['UsuarioNome'], "".$firstClient['CPF']." - ".$textquery."" ); $query = mysql_query( $textquery ); mysql_query( "INSERT INTO BASE_ESTATISTICASUSUARIOS ( `IDDATE`, `FINALIZADOS`, `ADIADOS`, `TIMESTAMP` ) VALUES( '".$_SESSION['UsuarioID']." ".date('d/m/Y',time())."', 1, 0, UNIX_TIMESTAMP( NOW() ) ) ON DUPLICATE KEY UPDATE `FINALIZADOS` = `FINALIZADOS` + 1" ); echo "<script type=\"text/javascript\"> alert(\"Cliente foi enviado para verificacao com sucesso.\"); window.location = \"workscreen.php\" </script>"; }}else { ?> <span class="numberp"> <p align="center"> <?php echo codificacao('Não'); ?> existe nenhum atendimento a ser feito agora(<? echo date('d/m/Y H:i',time())?>). </p></span><?php}?></form></body>

Sobre o Clube do Hardware

No ar desde 1996, o Clube do Hardware é uma das maiores, mais antigas e mais respeitadas comunidades sobre tecnologia do Brasil. Leia mais

Direitos autorais

Não permitimos a cópia ou reprodução do conteúdo do nosso site, fórum, newsletters e redes sociais, mesmo citando-se a fonte. Leia mais

×
×
  • Criar novo...