sábado, 21 de fevereiro de 2026

Prece


   
- #   - A     - B     - C     - D    - E     - F    - G    - H    - I    - J    - K    - L    - M    - N    - O    - P    - Q    - R    - S    - T    - U    - V    - W    - X    - Y    - Z   

-   Espeda erguida da legiao Arcanojo miguel   Eu Sou ATIVAR tds salmos divinos luz, eu sou ativar pulsar  
Salmo 62 Somente em DEUS Minha ALMA Descansa..    MINHA MENTE PERTECE A CRISTO ,,,,EU SOU DE MODO MARAVILHOSO FEITO.

O Sr.teu Deus, o poderoso, esta no meio de ti, ele salvara; ele se deleitara em ti com alegria; calar-se-á por seu amor, regozijar-se-a em ti com júbilo. Sofonias 3:17
Joao 11-25 "Disse Jesus: Eu sou a ressurreição e a vida; quem crê em mim, ainda que esteja morto, viverá; E td aquele que vive, e crê em mim, nunca morrera   A Palavra de DEUS Nao volta vazia na minha vida.

Delete FROM os1 WHERE id<3742

#


João 316 Porque Deus amou o mundo de tal maneira, que deu o seu Filho Unigênito, para que todo aquele que nele crê não pereça, mas tenha a vida eterna
Salmos 62:1,2- A minha alma espera somente em Deus; dele vem a minha salvação. ² Só ele é a minha rocha e a minha salvação; é a minha defesa; não serei grandemente abalado.
Salmos 121:1-8 - 1- Levantarei os meus olhos para os montes, de onde vem o meu socorro. 2- O meu socorro vem do Senhor que fez o céu e a terra. 3 Não deixará vacilar o teu pé; aquele que te guarda não tosquenejará. 4 Eis que não tosquenejará nem dormirá o guarda de Israel. 5- O Senhor é quem te guarda; o Senhor é a tua sombra à tua direita. 6 O sol não te molestará de dia nem a lua de noite. 7 O Senhor te guardará de todo o mal; guardará a tua alma. ⁸ O Senhor guardará a tua entrada e a tua saída, desde agora e para sempre.

Pesquisa ?






Gospel Mp3 :-Liturgia   bom dia

1-Deus Trino mp3

-01- Deus Trino-MP3



02-Anjo-Guarda.mp3


  •   
  • 03- Oracao-Angelus



    04-Pai-Nosso Espirita




     EDITOR   Age Google  SisMoto   BOX  Suporte  Pdf 
    modificar iso window MegaSync  baixar o megasypc
    Ave Maria   Salve Rainha  Caritas1  Prece Caritas  Pai Nosso  Ora Sao Francisco  Vc Aprende
    Amazon  Ensina  El Condor  Condor  Ave Maria
    prefetch    %temp%    %appdata%       C:\Users\t450\AppData\Local\Temp AcessarFtp s/prg 

    Assinar dcto Pdf    Video1 Vid SignEasy  Agenda php VideoAge   localPhpMyadmin

    ISO W10  Video bx Isos  VFP WEB  Meu IP Aumente Internet
    Sucesso  Oração de Cura  Messagem de Paz  Sermao da Montanha  Segura na Mao de DEUS
     Sermao da Montanha   Salmo 23  Salmo 46    Encontros e despedidas Salmo66 Estado yahoo
    video gera php
    heidsql dowload  Video bco dados Heidsql  CRIANDO  JANELA HMG forum Video Hmg td
    videos da ide designer miniguh  Clipper 64btis hmg Web Link
    Assina docto pdf  Windos defender tirar consumo memoria AS MELHORES HOSP
    softaox inserte update delete
    link para baixar o codigo fonte CERT SSL Ttocar ssd t450

    acesso remoto site vfp cadastro do ip remto

    Comunida vfp gerador em vfp

    Projeto deVendas hmg Mysql



    Comandos SqLite  Forum Sqlite Ftp sem Prg

    Report xls e pdf Php  Video  Onde baixei
    conectar mysql  Exportar Mysql  criando tab mysql  index myql

    TXT em HMG   regsvr32 C:\WINDOWS\system32\mySQL351_odbc.dll

    Laravel comercie Bagisto ecomerce
    Voce precisa contratar 1 profissional que crie uma rede e passe os cabos de rede  .
    **Como compartilha uma pasta no Windows
    No computaodor que sera o servidor, voce entrar com a senha de administrador do computador

    01- Crie o Ggrupo e usuarios no Servidor rede.

    02-) Copie a pasta c:\motos para o Servidor de rede

    03- Compartilha esta pasta com todos os usuarios com todos privelegios

     4- Em cadaa terminais va e rede, e encontrei a pasta \motos compartilhada na rede

    5- No executavel motos.exe botao direito 
    criar atalhos enviar para area de trbalho.

    o atalho sera criado, so  clicar no icone moto
    e utilizar o sistems

    https://www.youtube.com/watch?v=h7Kkw3ZYhvc
    *******************
    Atencao nao instalado o sistema em dois computador vc instala somente em 1 unico computador, e compartilha pela rede, desde que a rede esteja instalada as informacoes. 

    Para instalar a Rede, vc precisa contratar 1 profissional que crie a rede e passe os cabos de rede , Eu nao faco este trabalho.

    **Como compartilha uma pasta Rede,  no Windows, do sistema c:\Motos

    Este procedimento e feito pelo tecnico em informatica que vc ira contratar.
    No computaodor que sera o servidor, voce entrar com a senha de administrador do computador

    ****No computador 1 que e sera o servidor onde esta instalado o sistema \Motos
    como esta no video https://www.youtube.com/watch?v=h7Kkw3ZYhvc

    01- Crie o Ggrupo e usuarios no Servidor rede.

    02-)  A pasta c:\motos  no computaor 1, e a pasta que será compartilhada no Servidor de rede

    03- Compartilha esta pasta com todos os usuarios, e  com todos privelegios apos ter feito o compartilhamento 
    conforme esta no video.

     4- No computador 2, que usara a rede, Va pelo explorer do windows , Clck no icone rede  em \motos  que e pasta compartilhada  na rede do computador 1 servidor aparecera para voce, se nao aparecer e que vc fez alguma coisa errada, volte e revise o video.

    5- No executavel motos.exe botao direito 
    criar atalhos enviar para area de trabalho no computador 2.

    este procedimento faz com que vc acessar o sistema que esta na rede no computador 1 servidor

    o atalho sera criado, so  clicar no icone moto  utilizar o sistemas

    Editor Notepad2 Peq. Notepad++ Exemplo mascara campos 

    Mapos ultima versao Crud php  baixar codigo

    Calendario agenda de php  Codigo fonte

    10 dicas p/deixar  Windows 10 mais rápido taskschd.msc

    Se você instalou o Windows 10 em seu computador, mas acha que ele está muito lento, existem algumas configurações que você pode fazer no Windows 10 para otimizar o seu desempenho e deixá-lo mais rápido.

    Nesse artigo, vamos mostrar 10 dicas para melhorar o desempenho do Windows 10 e deixá-lo mais rápido do que nunca. Após seguir o tutorial você deve notar uma grande melhoria no desempenho do Windows 10.

    compactar Entrar na tat

    *Comandos* Para compactar: COMPACT.EXE /CompactOS:always Para descompactar: COMPACT.EXE /CompactOS:never


    desistalar como admi

    Get-AppxPackage | where-object {$_.name –notlike "*store*"} | Remove-AppxPackage

    Como deixar o Windows 10 mais rápido:

     

    para quem usa ssd,  cmd com adm

    Comanda para desativar: powercfg.exe /hibernate off Comando para ativar: powercfg.exe /hibernate on


    ***l impa;bat
    ECHO OFF ECHO ON color 02 cls @echo Os Arquivos Temporarios Que Seram Limpados :D @echo off del /s /f /q c:\windows\temp\*.* rd /s /q c:\windows\temp md c:\windows\temp del /q "C:\Windows\prefetch\*" del /s /f /q C:\WINDOWS\Prefetch del /s /f /q %temp%\*.* rd /s /q %temp% md %temp% deltree /y c:\windows\tempor~1 deltree /y c:\windows\temp deltree /y c:\windows\tmp deltree /y c:\windows\ff*.tmp deltree /y c:\windows\history deltree /y c:\windows\cookies deltree /y c:\windows\recent deltree /y c:\windows\spool\printers del c:\WIN386.SWP cls
    ****

    1. Desative os efeitos desnecessários

    O Windows 10 usa diversas animações e outros efeitos para fornecer uma interface mais atraente. Porém, essas animações e efeitos consomem recursos do sistema e podem afetar o desempenho do computador.

    1.1. Pressione Win+R para abrir a caixa Executar, digite sysdm.cpl e pressione Enter.

    1.2. Abra a guia "Avançado" e clique no botão "Configurações..." na seção "Desempenho".

    1.3. Na janela aberta, desmarque as seguintes opções:

    • Animações na barra de tarefas
    • Animar controles e elementos do Windows
    • Animar janelas ao minimizar e maximizar
    • Esmaecer itens de menu após clicados
    • Esmaecer ou deslizar dicas de ferramenta
    • Esmaecer ou deslizar menus para exibição
    • Mostrar retângulo de seleção translúcido
    • Mostrar sombras sob janelas
    • Mostrar sombras sob o ponteiro do mouse
    • Rolar caixas de listagem suavemente

    1.4. Clique em "Aplicar" e depois em "OK".

    2. Desative as animações do Windows 10

    2.1. Pressione a tecla de atalho Win+I para abrir a janela Configurações.>

    2.2 Clique em "Facilidade de Acesso > Outras opções".>

    2.3 Desative a opção "Reproduzir animações no Windows".>

    Ao fazer isso, todas as animações do Windows 10 serão desativadas e consequentemente, o desempenho do sistema melhorará, uma vez que não serão consumidos recursos do sistema para executar animações.

    3. Desative o efeito de transparência

    Desativar as transparências também pode ajudar a melhorar o desempenho do sistema. No Windows 10, é possível desativar os efeitos de transparência do Menu Iniciar, Barra de Tarefas e da nova Central de Ações.

    3.1. Pressione novamente a tecla de atalho Win+I para abrir a janela Configurações.

    3.2. Clique em "Personalização > Cores" e role a janela para baixo.

    3.3 Desative a opção "Deixar o menu Iniciar, Barra de Tarefas e Central de Ações transparentes".

    4. Desative os serviços desnecessários do Windows 10

    Vários serviços desnecessários são executados em segundo plano no Windows 10, consumindo recursos. Você pode configurá-los para serem iniciados manualmente para melhorar o desempenho do Windows 10.

    Lista de serviços que podem ser colocados em modo manual com segurança:

    • Auxiliar de IP (Se você não usa conexões IPV6)
    • Auxiliar NetBIOS TCP/IP (Se você não está conectado a uma rede local)
    • Cliente de rastreamento de link distribuído
    • Central de Segurança
    • Serviço Auxiliar de Compatibilidade de Programas
    • Serviço de Política de diagnóstico
    • Serviço de Rastreamento de diagnóstico
    • Spooler de Impressão (Se você não usa impressora)
    • Serviço Windows Defender (Se você tem um antivírus instalado)
    • Serviço de Relatório de Erro do Windows
    • Windows Search (Se você não usa a pesquisa do Windows com frequência)

    Como colocar o serviços em modo manual:

    4.1 Pressione Win+R para abrir a caixa Executar, digite services.msc e pressione Enter.

    4.2. Clique com o botão direito em um serviço e selecione a opção Propriedades.

    4.3 Em "Tipo de inicialização", selecione Manual, clique em Aplicar e OK.

    5. Remova programas da inicialização do Windows

    Existem também vários programas desnecessários que são carregados automaticamente com o Windows e você pode desativar esses programas da inicialização para melhorar o desempenho do seu computador.

    5.1. Pressione a tecla de atalho Ctrl + Shift + Esc para abrir o Gerenciador de Tarefas.

    5.2. Abra a guia Inicializar, selecione o programa que deseja remover e clique em Desabilitar.

    Isso irá ajudar principalmente na inicialização do Windows. Porém, note que alguns programas não devem ser desabilitados da inicialização, como por exemplo, o antivírus, uma vez que ele protege seu computador.

    6. Desative os sons de notificações

    No Windows sempre que um evento ocorre um som é reproduzido para notificar o usuário. Porém, se você não precisa dessas notificações sonoras, você pode desativá-las para otimizar o desempenho do sistema.

    6.1 Pressione Win+R para abrir a caixa Executar, digite mmsys.cpl e pressione Enter.

    6.2 Abra a guia "Sons" e, em "Esquema de Som" selecione a opção "Nenhum Som".

    6.3. Clique em Aplicar e depois em OK.

    7. Desinstale programas e aplicativos desnecessários

    O Windows 10 vem com vários aplicativos modernos pré-instalados e alguns são executados em segundo plano e, você pode desinstalar os aplicativos que não utiliza para melhorar o desempenho do Windows 10.

    7.1 No menu Iniciar e digite Painel de Controle na caixa de pesquisa. Então, selecione Painel de Controle nos resultados.

    7.2 Selecione Programas > Programas e Recursos e, em seguida, selecione o programa que não está utilizando.

    ATENÇÃO! muito cuidado para não desinstalar programas que você desconhece porém são utilizados pelo Windows. Desinstale apenas se você conhece e realmente não usa.

    7.3 Clique Desinstalar.

    7.4 Siga as intruções da tela (cada programa pode ter configurações diferentes).

    8. Desabilite os recursos que coletam dados para a Microsoft

    Existem muitos recursos no Windows 10 que recolhem informações sobre o usuário e desabilitando esses recursos, você pode proteger sua privacidade e ao mesmo tempo melhorar o desempenho do Windows 10.

    Uma das formas mais fáceis de desativar esses recursos e proteger sua privacidade é usando o ShutUp10, um programa gratuito que reúne todas as configurações de privacidade do Windows 10 em um único local.

    9. Atualize os drivers de hardware regularmente

    Atualizações de drivers trazem correções e podem resolver problemas de desempenho e compatibilidade. Por isso é importante manter o drivers de dispositivos de hardware do seu computador sempre atualizados.

    Embora seja possível fazer isso manualmente, você pode utilizar um programa como o Driver Booster, que verifica automaticamente os drivers de hardware do computador e lhe notifica quando existem atualizações.

    10. Faça um upgrade em seu computador

    Se mesmo após executar as dicas acima, você ainda acredita que o seu computador está lento, você pode fazer um upgrade. Por exemplo, trocando o seu HD antigo por um disco SSD, você irá melhorar em muito o desempenho do computador, uma vez que os discos SSD são muito mais velozes que os HDs tradicionais.




    CREATE TABLE IF NOT EXISTS `despesa` (
      `id` int(11) NOT NULL,
      `descricao` char(35) CHARACTER SET utf8 NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    
        <html lang="pt=BR"> 
        <head> 
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       <meta http-equiv="Content-Language" content="pt-br"> 
       <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
       <meta name="viewport" content="width=device-width, initial-scale=1.0">  
        <title> Despesa </title> 
        <link rel="stylesheet" href="bootstrap_336/css/bootstrap.min.css"> 
           
         <link rel="stylesheet" href="css/bootstrap.min.css">
       <link rel="stylesheet" href="css/bootstrap-theme.min.css"> 
        <link rel="stylesheet" href="css/loader.css">  
        <script src="js/jquery-1.12.4.js"></script> 
        <link rel="stylesheet" type="text/css" href="dashboard/vendor/font-awesome/css/font-awesome.min.css">   
         <link rel="stylesheet" href="css/jquery.dataTables.min.css">  
        <link rel="stylesheet" href="css/dataTables.bootstrap.min.css">   
        <link rel="stylesheet" href="css/responsive.bootstrap.min.css">   
        <script src="js/bootstrap.min.js"></script>   
         <script src="js/jquery.dataTables.min.js"></script>   
           
        </head>  
        <body> 
          <?Php 
      @$registros = 7; 
          include("dbcon.php"); 
        if(isset($_POST["cmdaddnew"])){  
      $w1  = $_POST["descricao"];
     $sql="INSERT INTO despesa set descricao='$w1'" or die(mysqli_error($this->dblink));
      if ($conn->query($sql) === TRUE) {
       echo "<script type='text/javascript'>alert('Incluso c/Exito ');</script>";
        } else { 
       echo "<script type='text/javascript'>alert('Error:ao Incluir " . $sql . "<br>" . $conn->error."');</script>";
      } 
     } 
     $editemployee = (isset($_GET['editemployee']))?$_GET['editemployee']:'';
      if (isset($_GET["acao"]) && $_GET["acao"]== "cmdelete") { 
      $id = $_GET["id"];
      $sql = "DELETE FROM despesa WHERE id='$id'";
       
      if ($conn->query($sql) === TRUE) { 
     echo "<script type= 'text/javascript'>alert('Excluiu c/Exito!'); 
      window.location.replace('despesa2.php');</script>"; 
     } else {  
       echo "<script type='text/javascript'>alert('Error:ao Excluir " . $sql . "<br>" . $conn->error."');</script>";
       }  
     exit(); 
      } 
     if ($editemployee==''){ 
     }else{ 
     echo "<script type= 'text/javascript'>$(document).ready(function(){ $('#editEmployeeModal').modal() });</script>";
     $results = mysqli_query($conn,"SELECT * FROM despesa  Where id='$editemployee'"); 
     while($row = mysqli_fetch_array($results)) 
      {  
       $id     = $row["id"];
      $eddescricao  = $row["descricao"];
       }  
      } 
      if(isset($_POST["cmdedit"])){
      $eddescricao  = $_POST["descricao"];
      $sql = "UPDATE despesa  SET descricao='$eddescricao' WHERE id='$editemployee' " ;
      if (mysqli_query($conn, $sql)) { 
     echo "<script type= 'text/javascript'>alert('EDITOU c/Exito !'); 
      window.location.replace('despesa2.php');</script>"; 
      } else {	 
       echo "<script type='text/javascript'>alert('Error:a Gravar " . $sql . "<br>" . $conn->error."');</script>";
      } 
      } 
      ?> 
      <div class="container"><div class = "result"></div>
       <p><h5 align="center">Cadastro  despesa </h5></p> 
      <div class="table-wrapper">  
       <div class="table-title"> 
       <div class="row"> 
      <div class="col-sm-6">  
       </div> 
       <div class='container'> 
       <form name="pesquisa" action="despesa2.php" method="get" id='form-contato' class= "form-horizontal col-md-10"> 
       <div class="panel panel-default"> 
       <div class="panel-body"> 
      <input type="text" size="40" name="pesq" placeholder="Bote o Nome ou ID"> 
      <button type="submit" name="buscar" id="buscar"  class="btn btn-info"> <span class="glyphicon glyphicon-search" ></span> </button>   
       <label>Por:</label> 
       <select name = "ordem"> 
       <option selected>name</option> 
       <option>ID</option> 
       </div> 
      </SELECT>
       <a  type="button"  href="index2.php" class="btn btn-danger" ><span class="glyphicon glyphicon-home"></span></a> 
     <a  Title="Novo" href="#addEmployeeModal" class="btn btn-info" data-toggle="modal"> <span>Novo</span></a>  
     <a type="button"  href='rdespe1.php' class="btn btn-warning " title="Printer" ><span class="glyphicon glyphicon-print"></span> </a>	
      </div> 
       </div> 
       </form> 
      </div>  
       </div> 
       </div> 
       <? 
      @$pesq = $_GET["pesq"]; 
      ?> 
      <div class="container">	
      <div class="row">  
     <table class="table table-striped table-bordered table-responsive table-hover" style="font-size: 14px;" >  
     <thead class="success">     
      <tr class="info"> 
     <th width="7%" >Actions</th>  
      <th   width="9%"> DESCRICAO</th>
     <th   width="2%"> ID</th> 
      </tr> 
      </thead> 
      <tbody> 
      </div> 
          <?Php 
        $pagina = (isset($_GET["pagina"]))? $_GET["pagina"] : 1; 
        $cmd = "Select * From despesa order by descricao asc";  
        $produtos = mysqli_query($conn, $cmd);  
        $total = mysqli_num_rows($produtos); 
        $numPaginas = ceil($total/$registros); 
        $inicio = ($registros*$pagina)-$registros; 
        $w_filtro = ''; 
        $w_ordem  = ''; 
        if( !empty($_GET["pesq"]) ){ 
        $pesq = $_GET["pesq"];  
        switch ( $_GET["ordem"] ) { 
        case 'name':	 
       	$w_filtro = $w_filtro . " and ( descricao LIKE '%".$pesq."%' or id='".$pesq."') ";	 
        break; 
        case 'ID': 
       	$w_filtro = $w_filtro . " and ( descricao LIKE '%".$pesq."%' or id='".$pesq."') ";	 
       break;  
       }  
        } 
         
       if( !empty($w_filtro)) {  
       $w_len = strlen ( $w_filtro ) - 4;  
        $w_filtro = " where ".substr($w_filtro, -$w_len);	 
        } 
       switch ( @$_GET["ordem"] ) {  
         case 'name': 
        $w_ordem  = " order by descricao,id  asc "; 
        break; 
         case 'ID': 
        $w_ordem  = "  ORDER BY ID asc "; 
        break;	 
        } 
        if( empty($w_ordem) ){ 
       $w_ordem  = "  ORDER BY descricao asc ";  
        } 
         $query_pag_data = "SELECT * From despesa  ". $w_filtro.$w_ordem." limit $inicio,$registros ";
        $result_pag_data = mysqli_query($conn, $query_pag_data);  
        if (!$result_pag_data) { 
        die("Falha na Busca (".mysqli_error($GLOBALS["___mysqli_ston"]).")");
        } 
         
      while($row = mysqli_fetch_assoc($result_pag_data)) { 
     ?> 
     <tr> 
     <td>  
     <a href="?editemployee=<?php echo $row['id']; ?>" class="edit" class="btn btn-info" data-toggle="modal"><i class="glyphicon glyphicon-edit" ></i></a>  
     <a  href="despesa2.php?&acao=cmdelete&id=<?php echo $row['id']; ?>" onclick="return confirm('Exclui ?');" ><i class="glyphicon glyphicon-trash" ></i></a> 
     </td>  
        <td><?php echo  $row["descricao"]; ?></td>
        <td><?php echo  $row["id"]; ?></td>  
       </tr> 
      <?php } ?>   
     </tbody>  
     </table>  
        <nav style="text-align:center;   font-size:16px;"> 
       <ul class="pagination" >	
        <li class="page-item" style="background-color:#c00; color:#ff7;" >  
       <a class="page-link" class="info" href="despesa2.php?pagina=1" >Inicio</a>  
        </li> 
        <?php  
       for($i = 1; $i < $numPaginas + 1; $i++) { 
        @$estilo = ""; 
         if($pagina == $i) 
         $estilo = "class=\"active\""; 
        	?> 
         <li  <?php echo $estilo; ?>  class="page-item"><a class="page-link" style="font-size: 14px;"  href="despesa2.php?pagina= <?php echo ($i );  ?>"><?php echo ($i); ?> </a> </li> 
       <?php  
        }  
        ?>  
        <li class="page-item"><a  class="page-link" href="despesa2.php?pagina=<?php echo ($numPaginas  );  ?>  ">Fim </a></li> 
        </ul>  
       </nav>  
       <br>   
         
         
        <!-- add Modal HTML --> 
      <div class="container-fluid">  
     <div id="addEmployeeModal" class="modal fade">  
      <div class="modal-dialog"> 
      <div class="modal-content"> 
     <form action="" method="post">  
      <fieldset style="background-color: #C4C4FF ; color:#FFFFF; font-size: 12px;"   > 
      <div class="modal-header bg-info">   
     <h4 class="modal-title">Adiciona </h4>  
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> 
     </div>  
     <div class="modal-body">    
     <div class="form-group">  
     <label>DESCRICAO </label> 
     	<input type="text" name="descricao" size="35" class="pfinput"  /> 
     </div>  
     </div>  
     <div class="modal-footer">  
      <input type="button" class="btn btn-default" data-dismiss="modal" value="Cancel"> 
     <input type="submit" class="btn btn-success" name="cmdaddnew" value="Add">  
     </div> 
     </fieldset>
     </form>  
     </div>  
     </div>  
     </div>  
     <div id="editEmployeeModal" class="modal fade-lg">  
      <div class="modal-dialog"> 
     <div class="modal-content">  
     <form name="frmedit" action="" method="post">  
      <fieldset style="background-color: #C4C4FF ; color:#FFFFF; font-size: 12px;"   > 
      <div class="modal-header bg-success">   
      <h4 class="modal-title">Edit </h4> 
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>  
      </div> 
     <div class="modal-body">  
     <div class="form-group">  
     <label>DESCRICAO</label> 
      <input type="text" name="descricao" size="35" value="<?php echo $eddescricao ; ?> " class="pfinput" />
     </div>  
     </div>  
     <div class="modal-footer">  
     <input type="button" class="btn btn-default" data-dismiss="modal" value="Cancel">  
     <input type="submit" name="cmdedit" class="btn btn-info" value="Gravar">  
     </div>  
     </fieldset>
      </form> 
     </div>  
     </div>  
     </div>  
     </div>  
      </body> 
      </html> 
    <?php
    $conn = new mysqli('localhost','root','','mlcexpre_san');
    if ($conn->connect_error) {
        die('Error : ('. $conn->connect_errno .') '. $conn->connect_error);
    }
    ?>
    **relatorio rdesp1.php
      <?php
      include("dbcon.php"); 	 	 
      ?> 
     <html xmlns="http://www.w3.org/1999/xhtml">  
      <head> 
     <meta charset="utf-8">  
      <title>Relatorio</title> 
     	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">  
      	<link rel="stylesheet" type="text/css" href="css/custom.css"> 
     </head>  
      <body> 
      <div> 
      <a  title="Sair " href="javascript:history.go(-1);">  <div align="center" class="col-md-10 titulo"><strong>Relacao  </strong></div></a> 
      <p align="center">  
      <button  type="button" title="ctrl+p Imprime" onclick="javascript:window.print();"><span class="glyphicon glyphicon-print" ></span> Print</button>
      <button  type="button" title="Voltar" onclick="history.go(-1);"><span class="glyphicon glyphicon-repeat" ></span><strong> </strong></button>
    <font    face="Arial" size="2"> &nbsp; <input value="&lt;&lt;" 
      onclick="history.go(-1)" title="voltar" type="button"> </font></p>  
      </div> 
     
       <div class='container'>
      <div class="panel panel-danger"> 
       <table class="table table-striped table-bordered  table-hover table-condensed" style="font-size: 14px;"  > 
       	<tr class="primary"> 
        <td class="primary"    width="9%"> ID</td>
        <td class="b"    width="9%"> NOME</td>
      </tr> 
       </div> 
      <?php 
      include("config.php");
      	$qry =mysqli_query($conn, "SELECT * FROM despesa order by descricao")  or die(mysqli_error($GLOBALS["___mysqli_ston"])); 
    	   while ($resultado = mysqli_fetch_array( $qry)) { 
      ?> 
      
      <tr > 
        <td><?php echo   $resultado["id"]; ?></td>
        <td><?php echo   $resultado["descricao"]; ?></td>
      <?php  
      } 
      echo '</table>'; 
      ?> 
       </p> 
       </div>
       </div>
      </body> 
     </html> 
    p/cvc https://www.webslesson.info/2016/10/export-mysql-table-data-to-csv-file-in-php.html
    <?php  
     //index.php
     $connect = mysqli_connect("localhost", "root", "", "testing");  
     $query ="SELECT * FROM tbl_employee ORDER BY id desc";  
     $result = mysqli_query($connect, $query);  
     ?>  
     <!DOCTYPE html>  
     <html>  
          <head>  
               <title>Webslesson Tutorial | Export Mysql Table Data to CSV file in PHP</title>  
               <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>  
               <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />  
               <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>  
          </head>  
          <body>  
               <br /><br />  
               <div class="container" style="width:900px;">  
                    <h2 align="center">Export Mysql Table Data to CSV file in PHP</h2>  
                    <h3 align="center">Employee Data</h3>                 
                    <br />  
                    <form method="post" action="export.php" align="center">  
                         <input type="submit" name="export" value="CSV Export" class="btn btn-success" />  
                    </form>  
                    <br />  
                    <div class="table-responsive" id="employee_table">  
                         <table class="table table-bordered">  
                              <tr>  
                                   <th width="5%">ID</th>  
                                   <th width="25%">Name</th>  
                                   <th width="35%">Address</th>  
                                   <th width="10%">Gender</th>  
                                   <th width="20%">Designation</th>  
                                   <th width="5%">Age</th>  
                              </tr>  
                         <?php  
                         while($row = mysqli_fetch_array($result))  
                         {  
                         ?>  
                              <tr>  
                                   <td><?php echo $row["id"]; ?></td>  
                                   <td><?php echo $row["name"]; ?></td>  
                                   <td><?php echo $row["address"]; ?></td>  
                                   <td><?php echo $row["gender"]; ?></td>  
                                   <td><?php echo $row["designation"]; ?></td>  
                                   <td><?php echo $row["age"]; ?></td>  
                              </tr>  
                         <?php       
                         }  
                         ?>  
                         </table>  
                    </div>  
               </div>  
          </body>  
     </html>  
    <?php  
          //export.php  
     if(isset($_POST["export"]))  
     {  
          $connect = mysqli_connect("localhost", "root", "", "testing");  
          header('Content-Type: text/csv; charset=utf-8');  
          header('Content-Disposition: attachment; filename=data.csv');  
          $output = fopen("php://output", "w");  
          fputcsv($output, array('ID', 'Name', 'Address', 'Gender', 'Designation', 'Age'));  
          $query = "SELECT * from tbl_employee ORDER BY id DESC";  
          $result = mysqli_query($connect, $query);  
          while($row = mysqli_fetch_assoc($result))  
          {  
               fputcsv($output, $row);  
          }  
          fclose($output);  
     }  
     ?>  

    BANCO TESTINGn
    INSERT INTO `country` (`id`, `country`) VALUES (7, 'PARANA');
    CREATE TABLE IF NOT EXISTS `tbl_sample` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
     `first_name` varchar(50) default NULL, 
     `last_name` varchar(50) default NULL, 
      `created_at` datetime not null,
      PRIMARY KEY (`id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    
    CREATE TABLE `country` (
      `id` int(6) NOT NULL,
      `country` varchar(250) NOT NULL DEFAULT ''
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    
    CREATE TABLE `tbl_user` (
      `userid` int(11) NOT NULL,
      `fullname` varchar(50) NOT NULL,
      `country` varchar(100) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    //dbcon.php
    <?php
    $conn = new mysqli('localhost','root','','testingdb');
    if ($conn->connect_error) {
        die('Error : ('. $conn->connect_errno .') '. $conn->connect_error);
    }
    ?>
    //insert.php
    <?php
    include('dbcon.php');
    $name = $_POST["name"];
    $country = $_POST["country"];
    $sql = "INSERT INTO tbl_user(fullname, country) VALUES ('$name', '$country')"; 
    $conn->query($sql);
    echo "Record Successfully added";
    ?>
    //index.php
    <!DOCTYPE html>
    <html>
    <head>
    <title>Editable Select Box using PHP Mysql database and jQuery Ajax</title>
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
     
    <script src="http://rawgithub.com/indrimuska/jquery-editable-select/master/dist/jquery-editable-select.min.js"></script>
    <link href="http://rawgithub.com/indrimuska/jquery-editable-select/master/dist/jquery-editable-select.min.css" rel="stylesheet">
    </head>  
    <body>  
    <?php
    include('dbcon.php');
    $result = $conn->query("SELECT * FROM country ORDER BY country ASC");
    ?>
    <div class="container">  
       <br />
       <h2 align="center">Editable Select Box using PHP Mysql database and jQuery Ajax</h2><br />
       <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
         <form method="post" id="sample_form">
          <div class="form-group">
           <label>Enter Name</label>
           <input type="text" name="name" id="name" class="form-control">
          </div>
          <div class="form-group">
           <label>Select Country</label>
           <select name="country" id="country" class="form-control">
           <?php
           foreach($result as $row)
           {
            echo '<option value="'.$row["country"].'">'.$row["country"].'</option>';
           }
           ?>
           </select>
          </div>
          <div class="form-group">
           <input type="submit" name="Save" id="save" class="btn btn-success" value="Save" />
          </div>
         </form>
        </div>
       </div>
      </div>
      <script>  
    $(document).ready(function(){
        $('#country').editableSelect();
      
        $('#sample_form').on('submit', function(event){
            event.preventDefault();
            if($('#name').val() == '') {
               alert("Enter Name");
               return false;
            }else if($('#country').val() == ''){
               alert("Select Country");
               return false;
            }else{
               $.ajax({
                    url:"insert.php",
                    method:"POST",
                    data:$(this).serialize(),
                    success:function(data)
                    {
                     alert(data);
                     $('#sample_form')[0].reset();
                    }
               });
            }
        });
    });  
    </script>
    </body>  
    </html> 
    VIDEO DO CODIGO PHP Ajax mysql
    link codigo

    index.php

    
    <html>  
        <head>  
            <title>PHP Ajax Crud using JQuery UI Dialog</title>  
      <link rel="stylesheet" href="jquery-ui.css">
            <link rel="stylesheet" href="bootstrap.min.css" />
      <script src="jquery.min.js"></script>  
      <script src="jquery-ui.js"></script>
        </head>  
        <body>  
            <div class="container">
       <br />
       
       <h3 align="center">PHP Ajax Crud using JQuery UI Dialog</a></h3><br />
       <br />
       <div align="right" style="margin-bottom:5px;">
       <button type="button" name="add" id="add" class="btn btn-success btn-xs">Add</button>
       </div>
       <div class="table-responsive" id="user_data">
        
       </div>
       <br />
      </div>
      
      <div id="user_dialog" title="Add Data">
       <form method="post" id="user_form">
        <div class="form-group">
         <label>Enter First Name</label>
         <input type="text" name="first_name" id="first_name" class="form-control" />
         <span id="error_first_name" class="text-danger"></span>
        </div>
        <div class="form-group">
         <label>Enter Last Name</label>
         <input type="text" name="last_name" id="last_name" class="form-control" />
         <span id="error_last_name" class="text-danger"></span>
        </div>
        <div class="form-group">
         <input type="hidden" name="action" id="action" value="insert" />
         <input type="hidden" name="hidden_id" id="hidden_id" />
         <input type="submit" name="form_action" id="form_action" class="btn btn-info" value="Insert" />
        </div>
       </form>
      </div>
      
      <div id="action_alert" title="Action">
       
      </div>
      
      <div id="delete_confirmation" title="Confirmation">
      <p>Are you sure you want to Delete this data?</p>
      </div>
      
        </body>  
    </html>  
    
    
    
    
    <script>  
    $(document).ready(function(){  
    
     load_data();
        
     function load_data()
     {
      $.ajax({
       url:"fetch.php",
       method:"POST",
       success:function(data)
       {
        $('#user_data').html(data);
       }
      });
     }
     
     $("#user_dialog").dialog({
      autoOpen:false,
      width:400
     });
     
     $('#add').click(function(){
      $('#user_dialog').attr('title', 'Add Data');
      $('#action').val('insert');
      $('#form_action').val('Insert');
      $('#user_form')[0].reset();
      $('#form_action').attr('disabled', false);
      $("#user_dialog").dialog('open');
     });
     
     $('#user_form').on('submit', function(event){
      event.preventDefault();
      var error_first_name = '';
      var error_last_name = '';
      if($('#first_name').val() == '')
      {
       error_first_name = 'First Name is required';
       $('#error_first_name').text(error_first_name);
       $('#first_name').css('border-color', '#cc0000');
      }
      else
      {
       error_first_name = '';
       $('#error_first_name').text(error_first_name);
       $('#first_name').css('border-color', '');
      }
      if($('#last_name').val() == '')
      {
       error_last_name = 'Last Name is required';
       $('#error_last_name').text(error_last_name);
       $('#last_name').css('border-color', '#cc0000');
      }
      else
      {
       error_last_name = '';
       $('#error_last_name').text(error_last_name);
       $('#last_name').css('border-color', '');
      }
      
      if(error_first_name != '' || error_last_name != '')
      {
       return false;
      }
      else
      {
       $('#form_action').attr('disabled', 'disabled');
       var form_data = $(this).serialize();
       $.ajax({
        url:"action.php",
        method:"POST",
        data:form_data,
        success:function(data)
        {
         $('#user_dialog').dialog('close');
         $('#action_alert').html(data);
         $('#action_alert').dialog('open');
         load_data();
         $('#form_action').attr('disabled', false);
        }
       });
      }
      
     });
     
     $('#action_alert').dialog({
      autoOpen:false
     });
     
     $(document).on('click', '.edit', function(){
      var id = $(this).attr('id');
      var action = 'fetch_single';
      $.ajax({
       url:"action.php",
       method:"POST",
       data:{id:id, action:action},
       dataType:"json",
       success:function(data)
       {
        $('#first_name').val(data.first_name);
        $('#last_name').val(data.last_name);
        $('#user_dialog').attr('title', 'Edit Data');
        $('#action').val('update');
        $('#hidden_id').val(id);
        $('#form_action').val('Update');
        $('#user_dialog').dialog('open');
       }
      });
     });
     
     $('#delete_confirmation').dialog({
      autoOpen:false,
      modal: true,
      buttons:{
       Ok : function(){
        var id = $(this).data('id');
        var action = 'delete';
        $.ajax({
         url:"action.php",
         method:"POST",
         data:{id:id, action:action},
         success:function(data)
         {
          $('#delete_confirmation').dialog('close');
          $('#action_alert').html(data);
          $('#action_alert').dialog('open');
          load_data();
         }
        });
       },
       Cancel : function(){
        $(this).dialog('close');
       }
      } 
     });
     
     $(document).on('click', '.delete', function(){
      var id = $(this).attr("id");
      $('#delete_confirmation').data('id', id).dialog('open');
     });
     
    });  
    </script>
    
    

    database_connection.php

    
    <?php
    
    //database_connection.php
    
    $connect = new PDO("mysql:host=localhost;dbname=testing", "root", "");
    
    ?>
    
    

    fetch.php

    
    <?php
    
    //fetch.php
    
    include("database_connection.php");
    
    $query = "SELECT * FROM tbl_sample";
    $statement = $connect->prepare($query);
    $statement->execute();
    $result = $statement->fetchAll();
    $total_row = $statement->rowCount();
    $output = '
    <table class="table table-striped table-bordered">
     <tr>
      <th>First Name</th>
      <th>Last Name</th>
      <th>Edit</th>
      <th>Delete</th>
     </tr>
    ';
    if($total_row > 0)
    {
     foreach($result as $row)
     {
      $output .= '
      <tr>
       <td width="40%">'.$row["first_name"].'</td>
       <td width="40%">'.$row["last_name"].'</td>
       <td width="10%">
        <button type="button" name="edit" class="btn btn-primary btn-xs edit" id="'.$row["id"].'">Edit</button>
       </td>
       <td width="10%">
        <button type="button" name="delete" class="btn btn-danger btn-xs delete" id="'.$row["id"].'">Delete</button>
       </td>
      </tr>
      ';
     }
    }
    else
    {
     $output .= '
     <tr>
      <td colspan="4" align="center">Data not found</td>
     </tr>
     ';
    }
    $output .= '</table>';
    echo $output;
    ?>
    
    

    action.php

    
    <?php
    
    //action.php
    
    include('database_connection.php');
    
    if(isset($_POST["action"]))
    {
     if($_POST["action"] == "insert")
     {
      $query = "
      INSERT INTO tbl_sample (first_name, last_name) VALUES ('".$_POST["first_name"]."', '".$_POST["last_name"]."')
      ";
      $statement = $connect->prepare($query);
      $statement->execute();
      echo '<p>Data Inserted...</p>';
     }
     if($_POST["action"] == "fetch_single")
     {
      $query = "
      SELECT * FROM tbl_sample WHERE id = '".$_POST["id"]."'
      ";
      $statement = $connect->prepare($query);
      $statement->execute();
      $result = $statement->fetchAll();
      foreach($result as $row)
      {
       $output['first_name'] = $row['first_name'];
       $output['last_name'] = $row['last_name'];
      }
      echo json_encode($output);
     }
     if($_POST["action"] == "update")
     {
      $query = "
      UPDATE tbl_sample 
      SET first_name = '".$_POST["first_name"]."', 
      last_name = '".$_POST["last_name"]."' 
      WHERE id = '".$_POST["hidden_id"]."'
      ";
      $statement = $connect->prepare($query);
      $statement->execute();
      echo '<p>Data Updated</p>';
     }
     if($_POST["action"] == "delete")
     {
      $query = "DELETE FROM tbl_sample WHERE id = '".$_POST["id"]."'";
      $statement = $connect->prepare($query);
      $statement->execute();
      echo '<p>Data Deleted</p>';
     }
    }
    
    ?>
    
    
    
    

    Source Code

    index.php  video com busca ajax e phpo

    <html>
     <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <title>Webslesson Tutorial</title>
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
      <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
     </head>
     <body>
      <div class="container">
       <br />
       <h2 align="center">Ajax Live Data Search using Jquery PHP MySql</h2><br />
       <div class="form-group">
        <div class="input-group">
         <span class="input-group-addon">Search</span>
         <input type="text" name="search_text" id="search_text" placeholder="Search by Customer Details" class="form-control" />
        </div>
       </div>
       <br />
       <div id="result"></div>
      </div>
     </body>
    </html>
    
    
    <script>
    $(document).ready(function(){
    
     load_data();
    
     function load_data(query)
     {
      $.ajax({
       url:"fetch.php",
       method:"POST",
       data:{query:query},
       success:function(data)
       {
        $('#result').html(data);
       }
      });
     }
     $('#search_text').keyup(function(){
      var search = $(this).val();
      if(search != '')
      {
       load_data(search);
      }
      else
      {
       load_data();
      }
     });
    });
    </script>
    

    fetch.php

    <?php
    //fetch.php
    $connect = mysqli_connect("localhost", "root", "", "testing");
    $output = '';
    if(isset($_POST["query"]))
    {
     $search = mysqli_real_escape_string($connect, $_POST["query"]);
     $query = "
      SELECT * FROM tbl_customer 
      WHERE CustomerName LIKE '%".$search."%'
      OR Address LIKE '%".$search."%' 
      OR City LIKE '%".$search."%' 
      OR PostalCode LIKE '%".$search."%' 
      OR Country LIKE '%".$search."%'
     ";
    }
    else
    {
     $query = "
      SELECT * FROM tbl_customer ORDER BY CustomerID
     ";
    }
    $result = mysqli_query($connect, $query);
    if(mysqli_num_rows($result) > 0)
    {
     $output .= '
      <div class="table-responsive">
       <table class="table table bordered">
        <tr>
         <th>Customer Name</th>
         <th>Address</th>
         <th>City</th>
         <th>Postal Code</th>
         <th>Country</th>
        </tr>
     ';
     while($row = mysqli_fetch_array($result))
     {
      $output .= '
       <tr>
        <td>'.$row["CustomerName"].'</td>
        <td>'.$row["Address"].'</td>
        <td>'.$row["City"].'</td>
        <td>'.$row["PostalCode"].'</td>
        <td>'.$row["Country"].'</td>
       </tr>
      ';
     }
     echo $output;
    }
    else
    {
     echo 'Data Not Found';
    }
    
    ?>
    
    --
    -- Database: `testing`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `tbl_customer`
    --
    
    CREATE TABLE IF NOT EXISTS `tbl_customer` (
      `CustomerID` int(11) NOT NULL AUTO_INCREMENT,
      `CustomerName` varchar(250) NOT NULL,
      `Address` text NOT NULL,
      `City` varchar(250) NOT NULL,
      `PostalCode` varchar(30) NOT NULL,
      `Country` varchar(100) NOT NULL,
      PRIMARY KEY (`CustomerID`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
    
    --
    -- Dumping data for table `tbl_customer`
    --
    
    INSERT INTO `tbl_customer` (`CustomerID`, `CustomerName`, `Address`, `City`, `PostalCode`, `Country`) VALUES
    (1, 'Maria Anders', 'Obere Str. 57', 'Berlin', '12209', 'Germany'),
    (2, 'Ana Trujillo', 'Avda. de la Construction 2222', 'Mexico D.F.', '5021', 'Mexico'),
    (3, 'Antonio Moreno', 'Mataderos 2312', 'Mexico D.F.', '5023', 'Mexico'),
    (4, 'Thomas Hardy', '120 Hanover Sq.', 'London', 'WA1 1DP', 'UK'),
    (5, 'Paula Parente', 'Rua do Mercado, 12', 'Resende', '08737-363', 'Brazil'),
    (6, 'Wolski Zbyszek', 'ul. Filtrowa 68', 'Walla', '01-012', 'Poland'),
    (7, 'Matti Karttunen', 'Keskuskatu 45', 'Helsinki', '21240', 'Finland'),
    (8, 'Karl Jablonski', '305 - 14th Ave. S. Suite 3B', 'Seattle', '98128', 'USA'),
    (9, 'Paula Parente', 'Rua do Mercado, 12', 'Resende', '08737-363', 'Brazil'),
    (10, 'Pirkko Koskitalo', 'Torikatu 38', 'Oulu', '90110', 'Finland'),
    (11, 'Paul Henriot', '2, rue du Commerce', 'Reims', '51100', 'France'),
    (12, 'Helvetius Nagy', '722 DaVinci Blvd.', 'Kirkland', '98034', 'USA'),
    (13, 'Karin Josephs', 'Luisenstr. 48', 'Butte', '59801', 'USA');
    
    
    
    Imprimir direto na impressora php
     <input type="button"   onclick="window.location.href='lista7.php';" value="Printer" >  
     <input  type="button" name="Print" onclick="javascript:window.print();" title="Printe" value="Gera" > 
    
    
    CREATE TABLE IF NOT EXISTS `item` (
      `id` int(11) NOT NULL AUTO_INCREMENT,
     `name` varchar(150) default NULL, 
     `url` varchar(150) default NULL, 
     `code` varchar(150) default NULL, 
      `user_id` int(11) NOT NULL,
     `created_at` datetime not null,
     foreign key (user_id) references user(id),
     PRIMARY KEY (`id`)
    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
    

    
    
    https://anotepad.com
    
    
       If ! File('cidades.Dbf')
          Create Table cidades ( codigo N(11), nome C(25))
          Index On Codigo Tag Codigo Unique to cidades
          Index On nome Tag nome to cidades
       Endif
       Dbsetindex('cidades')
        Ordsetfocus('nome')
    
    

    enviando cliente para o bco mysql
    CLOSE ALL
     PUBLIC privStrConexao
    
    MeuBancoDeDados = "mlcexpre_agendar"
    MeuLogin = "root"
    MeuIpConexao ="127.0.0.1" 
    MinhaSenha = ""
    
    privStrConexao  = "Driver={MySQL ODBC 3.51 Driver};Server=" + MeuIpConexao + ";Database=" + MeuBancoDeDados + "; User=" + MeuLogin + ";Password=" + MinhaSenha + ";Option=3;"
    
    CLOSE TABLES all
    If !Used('clientes')
    
     Use clientes IN 0 Alias clientes shared
     WAIT WINDOW 'abrir o clientes' TIMEOUT  1 
    ENDIF  
    SET DELETED ON 
     Select clientes
        SET ORDER TO RAZAO   && CL_RAZAO 
     SELECT clientes
     Go Top
    
     Do While !Eof('clientes')
     
      xNome_clie =  ALLTRIM(CLIENTES.CL_RAZAO  ) 
     xEnde_clie =  CLIENTES.CL_ENDEREC    
     xBair_clie =  ALLTRIM(CLIENTES.CL_bairro  )
     xtel_clie  =  CLIENTES.CL_fone   
     xema_clie  =  CLIENTES.CL_email   
     xcida_clie =  CLIENTES.CL_cidade   
     xesta_clie =  CLIENTES.CL_UF   
     xid_clie   =  clientes.cl_codigo 
     xcnpj_clie =   clientes.cl_cnpj
     xcontato   =  clientes.cl_contato
     xpreco     =  clientes.preco
     xddd        = '11' 
     xcontrato   =  clientes.contrato
     xnextel     =  clientes.cl_observa 
     xcelular    =  clientes.cl_celular
     xcep_clie  =  CLIENTES.CL_cep   
     
    
    xCmdSQL_Incluir =    "insert into agenda ("
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Nome,"
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Endereco,"
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Bairro, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Telefone, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Email, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "id, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "cnpj, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "contato, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "cidade, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "estado, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "nr, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "ddd, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "contrato, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "nextel, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "celular, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "Cep "
    xCmdSQL_Incluir = xCmdSQL_Incluir + ") values ("
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xnome_clie,"
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xende_clie,"
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xbair_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xtel_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xema_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xid_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcnpj_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcontato, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcida_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xesta_clie, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xpreco, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xddd, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcontrato, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xnextel, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcelular, "
    xCmdSQL_Incluir = xCmdSQL_Incluir + "?xcep_clie "
    
    xCmdSQL_Incluir = xCmdSQL_Incluir + ");"
    privConexao = SQLSTRINGCONNECT(privStrConexao)
    If privConexao < 0
       Messagebox( 'Nao foi possivel conectar-se ao Banco de Dados, Verifique com TI !',48,'Atencao' )
       WAIT CLEAR 
       RETURN 
    ENDIF 
    
    IF SQLEXEC(privConexao,xCmdSQL_Incluir) = 1
       =SQLDISCONNECT(privConexao)
       
    *   WAIT WINDOW  "Registro GRAVADo  " TIMEOUT 1
        
     WAIT CLEAR  
    ELSE
       AERROR(oMeuerro)
       =SQLDISCONNECT(privConexao)
       =messagebox(oMeuerro[2],64,"Informativo")
     WAIT CLEAR
    ENDIF
       
    
      SKIP
      xCmdSQL_Incluir =''
      
      Select clientes
      If Eof()
       EXIT
       WAIT WINDOW 'abate' TIMEOUT 1
      Endif
     Enddo
    

    class heading
     <div class="container-fluid">
       <div class="row-fluid">
      <div class="col-md-7">
      <div class="panel panel-primary">
      <div class="panel-heading">Cadastro da Empresa</div>  
      <div class="panel-body">
    <form action=""  enctype="multipart/form-data" name="Gravar" method="post" >
    <fieldset style="background-color: #E9ECF5 ; color:#FFFFF; font-size: 13px;"   >  
    <label> Nome   : </label> <input type="text" name="nome" SIZE = "100" maxlength="100" value="' .$res['nome']. ' "/> <br>
    <label> Cep    ? </label> <input type="text" name="cep" SIZE = "9" maxlength="9" value="' .$res['cep']. ' "/> <br>
    <label> Endereco: </label> <input type="text" name="endereco" SIZE = "100"  maxlength="100" value="' .$res['endereco']. ' "   /> <br>
    <label> Bairro  : </label> <input type="text" name="bairro" SIZE = "100"  maxlength="100" value="' .$res['bairro']. ' "   /> <br>
    <label> Email   : </label> <input type="text" name="email" size="90" maxlength="90" value="' .$res['email']. ' "/><br>
    <label>   DDD       Telefone </label> <input type="text" name="ddd" SIZE="2" value="' .$res['ddd']. ' "/>-
      <input type="text" name="telefone" value="' .$res['telefone']. ' "/> <br>
    <label> Cidade: </label> <input type="text" name="cidade" SIZE = "25" maxlength="25"  value="' .$res['cidade']. ' "  />  UF
     <input type="text" name="estado" SIZE = "2"  maxlength="2"  value="' .$res['estado']. ' "  /> Contato-
     <input type="text" name="contato" SIZE = "29"  maxlength="29"  value="' .$res['contato']. ' "  /> <br>
    <label> Site: </label>  <input type="text" name="site" SIZE = "65"  maxlength="65"  value="' .$res['site']. ' "  /> <br>
    <label> Nextel  : </label>  <input type="text" name="nextel" SIZE = "15"  maxlength="15"  value="' .$res['nextel']. ' "  /> <br>
     
          <a style="background-color:#53CEDF; color:#fff; font-size: 16px;" href="empresa.php">Cancel</a>
         <input type="submit" name="enviar" value="Gravar" />
    </fieldset>
    </form>
     </div>
     </div>
     </div>
     </div>
     </div>
    <p style="margin-bottom: 1800px;">Coloque a Alteracao !</p>
    
    
    -- Banco de dados: `sysshortener`
    
    --
    
    CREATE TABLE `configuration` (
      `id` int(11) NOT NULL,
      `short` varchar(255) NOT NULL,
      `name` varchar(255) NOT NULL,
      `kind` int(11) DEFAULT NULL,
      `val` varchar(255) NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Extraindo dados da tabela `configuration`
    --
    
    INSERT INTO `configuration` (`id`, `short`, `name`, `kind`, `val`) VALUES
    (7, 'title', 'Cadastro de sites', 2, 'sites'),
    (8, 'base_url', 'URL Base', 2, 'http://localhost/sites/');
    
    -- --------------------------------------------------------
    
    --
    -- Estrutura da tabela `item`
    --
    
    CREATE TABLE IF NOT EXISTS `item` (
      `id` int(11) NOT NULL,
      `name` varchar(150) DEFAULT NULL,
      `url` varchar(150) DEFAULT NULL,
      `code` varchar(150) DEFAULT NULL,
      `user_id` int(11) NOT NULL,
      `created_at` datetime NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Extraindo dados da tabela `item`
    --
    
    INSERT INTO `item` (`id`, `name`, `url`, `code`, `user_id`, `created_at`) VALUES
    (7, 'cadastro de sites links', 'http://evilnapsis.com/2020/02/27/sysshortener-sistema-acortador-de-enlaces-con-php-y-mysql/', 'https://github.com/evilnapsis/sysshortener/archive/master.zip', 17, '2020-04-29 23:26:52');
    
    -- --------------------------------------------------------
    
    --
    -- Estrutura da tabela `kind`
    --
    
    CREATE TABLE `kind` (
      `id` int(11) NOT NULL,
      `name` varchar(50) DEFAULT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Extraindo dados da tabela `kind`
    --
    
    INSERT INTO `kind` (`id`, `name`) VALUES
    (1, 'Administrador'),
    (2, 'Usuario');
    
    -- --------------------------------------------------------
    
    --
    -- Estrutura da tabela `user`
    --
    
    CREATE TABLE `user` (
      `id` int(11) NOT NULL,
      `bio` varchar(255) DEFAULT NULL,
      `image` varchar(255) DEFAULT NULL,
      `name` varchar(50) DEFAULT NULL,
      `lastname` varchar(50) NOT NULL,
      `username` varchar(50) DEFAULT NULL,
      `email` varchar(255) DEFAULT NULL,
      `password` varchar(60) DEFAULT NULL,
      `phone` varchar(255) DEFAULT NULL,
      `address` varchar(255) DEFAULT NULL,
      `code` varchar(20) DEFAULT NULL,
      `status` tinyint(1) NOT NULL DEFAULT 1,
      `kind` tinyint(1) NOT NULL DEFAULT 0,
      `created_at` datetime NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Extraindo dados da tabela `user`
    --
    
    INSERT INTO `user` (`id`, `bio`, `image`, `name`, `lastname`, `username`, `email`, `password`, `phone`, `address`, `code`, `status`, `kind`, `created_at`) VALUES
    (17, NULL, NULL, 'admin', 'admin', 'admin', 'admin', '90b9aa7e25f80cf4f64e990b78a9fc5ebd6cecad', NULL, NULL, NULL, 1, 1, '2020-04-29 22:48:47'),
    (18, NULL, '', 'alceu', '', 'alceu', 'alceu11@yahoo.com.br', 'adcd7048512e64b48da55b027577886ee5a36350', NULL, NULL, NULL, 1, 1, '2020-04-29 23:24:04');
    
    -- --------------------------------------------------------
    
    --
    -- Estrutura da tabela `visit`
    --
    
    CREATE TABLE `visit` (
      `id` int(11) NOT NULL,
      `item_id` int(11) DEFAULT NULL,
      `created_at` datetime NOT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    --
    -- Índices para tabelas despejadas
    --
    
    --
    -- Índices para tabela `configuration`
    --
    ALTER TABLE `configuration`
      ADD PRIMARY KEY (`id`),
      ADD UNIQUE KEY `short` (`short`),
      ADD UNIQUE KEY `name` (`name`);
    
    --
    -- Índices para tabela `item`
    --
    ALTER TABLE `item`
      ADD PRIMARY KEY (`id`),
      ADD KEY `user_id` (`user_id`);
    
    --
    -- Índices para tabela `kind`
    --
    ALTER TABLE `kind`
      ADD PRIMARY KEY (`id`);
    
    --
    -- Índices para tabela `user`
    --
    ALTER TABLE `user`
      ADD PRIMARY KEY (`id`);
    
    --
    -- Índices para tabela `visit`
    --
    ALTER TABLE `visit`
      ADD PRIMARY KEY (`id`),
      ADD KEY `item_id` (`item_id`);
    
    --
    -- AUTO_INCREMENT de tabelas despejadas
    --
    
    --
    -- AUTO_INCREMENT de tabela `configuration`
    --
    ALTER TABLE `configuration`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
    
    --
    -- AUTO_INCREMENT de tabela `item`
    --
    ALTER TABLE `item`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
    
    --
    -- AUTO_INCREMENT de tabela `kind`
    --
    ALTER TABLE `kind`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
    
    --
    -- AUTO_INCREMENT de tabela `user`
    --
    ALTER TABLE `user`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
    
    --
    -- AUTO_INCREMENT de tabela `visit`
    --
    ALTER TABLE `visit`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
    
    --
    -- Restrições para despejos de tabelas
    --
    
    --
    -- Limitadores para a tabela `item`
    --
    ALTER TABLE `item`
      ADD CONSTRAINT `item_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`);
    
    --
    -- Limitadores para a tabela `visit`
    --
    ALTER TABLE `visit`
      ADD CONSTRAINT `visit_ibfk_1` FOREIGN KEY (`item_id`) REFERENCES `item` (`id`);
    COMMIT;
    

    
    
    
    
    
    
    
    
    update membership_users set passMD5=md5("admin") where groupid=2
    
    
    
    Faz  IF após a inserção dos dados no database, e no echo você coloca o aviso, qdo clicar em OK a página  fecha:
    
    echo "<script>alert('Gravei c/om Exit ')</script> \n <script>setTimeout('window.close()', 3000);</script>";
     
    
    Voltando a página: no else
    
    <a href="java script:history.back();">Voltar</a>entende ? ?
    

    function pergunta(){ 
       // retorna true se confirmado, ou false se cancelado
       return confirm('Tem certeza que quer enviar este pedido?');
    }
    <form name='apagar' id='apagar' action='formulario.php' method='post'>
       <input type=submit value=enviar name=enviarform onclick='return pergunta();'>
    </form>
    
    
    https://www.homehost.com.br/blog/tutoriais/formulario-html/
    
    
    <form>
      Data ke nascceu: <input type="date" name="nascimento">
    </form>
    

    
    
     Atenção, para usar o 7z tem k ter o 7z.exe e o 7-zip.dll numa pasta.
    --- Podem usar um ficheiro BAT para testarem
    Compactar
    7z a -t7z back.7z C:\*
    Descompactar
    7z e back.7z -oC:\pasta
    para seleccionar todos os ficheiros de uma pasta, usa-se apena * e não *.*
    Vou explorar mais, se ouver alguem interessado é só dizer
    Exemplo 1:
      7z.exe a c:\a.7z "C:\Program Files"
    compacta o diretório "C:\Program Files" completamente, incluindo todos os subdiretórios.
    Exemplo 2:
      7z.exe a -r c:\a.7z "C:\Program Files"
    procura e compracta o "Program Files" em todos os subdiretórios de C:\ (por exemplo, em "C:\WINDOWS").
    Se você precisa de compactar somente arquivos com alguma extensão específica, você pode usar o -r:
      7z a -r c:\a.zip c:\dir\*.txt 
    compactar todos os arquivos *.txt da pasta c:\dir\ e de todos seus subdiretórios.

    Como posso armazenar o caminho completo de um arquivo dentro do arquivo compactado?

    
    
    
    

    Ajatar largura do blog   blogspot
    
    
    Icones dos botoes BootStrap
    
    
     <meta charset="UTF-8"/>
    agenda83
    <html lang="pt=BR">
    
    <head>
        <title>Sismoto</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="css/bootstrap.min.css">
        <!-- Optional theme  right-->
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <!-- Loader  <table class="table table-striped table-bordered  table-hover table-condensed"  style="font-size: 14px;" > -->
        <link rel="stylesheet" href="css/loader.css">
        <script src="js/jquery-1.12.4.js"></script>
        <link rel="stylesheet" type="text/css" href="dashboard/vendor/font-awesome/css/font-awesome.min.css">
        <script>
            $(document).ready(function() {
                    $('#example').DataTable({});
                });
    
            </script>
        <link rel="stylesheet" href="css/jquery.dataTables.min.css">
        <link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
        <link rel="stylesheet" href="css/responsive.bootstrap.min.css">
        <script src="js/bootstrap.min.js"></script>
        <script src="js/jquery.dataTables.min.js"></script>
    </head>
    
    <body  style="margin:0;">
    
    
    <?php
    
    require'config.php';
    
    
    ?>
    
        <?php
     
         @$cep1       = $_POST['cep1']; 
          
      
            class Agenda {
            
            private $id;
            private $nome;
            private $email;
            private $ddd;
            private $telefone;
            private $endereco;
            private $cidade;
            private $estado;
            Private $cep;
            Private $contato;
            Private $bairro ;
            
       public function cadastro($nome, $email, $ddd, $telefone, $endereco, $cidade, $estado, $cep, $contato, $bairro ) {
          
    
     $sql_cadastro= mysqli_query($GLOBALS["___mysqli_ston"], "INSERT INTO  Agenda2 set  nome='$nome',email='$email',ddd='$ddd',telefone='$telefone',endereco='$endereco',cidade='$cidade', estado='$estado', cep='$cep', contato='$contato', bairro ='$bairro ' ")  or die("Falha adiconar l 65"); 
     
    echo '<meta http-equiv="refresh" content="0; url=agenda83.php">';
            
            }
            
          public function edita($id, $nome, $endereco, $cidade, $estado, $ddd, $telefone, $email, $cep,$contato,$bairro)  {
    
            $this->id       = $id;
            $this->nome     = $nome;
            $this->endereco = $endereco;
            $this->cidade   = $cidade;
            $this->estado   = $estado;
            $this->ddd      = $ddd;
            $this->telefone = $telefone;        
            $this->email    = $email;
            $this->cep      = $cep;
            $this->contato  = $contato;
            $this->bairro   = $bairro ; 
            
    
            
    $sql_editar = mysqli_query($GLOBALS["___mysqli_ston"], "UPDATE Agenda2 SET  nome ='$this->nome', email='$this->email', ddd='$this->ddd', telefone='$this->telefone', endereco='$this->endereco', cidade='$this->cidade',estado='$this->estado', cep='$this->cep',contato='$this->contato',bairro='$this->bairro'   WHERE id = $this->id")   ;
    echo '<meta http-equiv="refresh" content="0; url=agenda83.php">';
            
            }
            
            public function deleta ($id) {
            
            $this->id = $id;
            
    $qry_del = mysqli_query($GLOBALS["___mysqli_ston"], "DELETE FROM Agenda2  WHERE id = $this->id");
    
    echo '<meta http-equiv="refresh" content="0; url=agenda83.php">';
    
    
        }
            }
    
            $agenda = new Agenda;
                    
            if(@$_GET['pg'] == 'altera') {
          
               if(!empty($_GET['cod'])) {
               $id        = $_GET['cod'];    
      
      $sql_edita = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM Agenda2 WHERE id = $id")  or die ("não Consegui editar tabela agenda!")  ;
      $res = mysqli_fetch_array($sql_edita);
      ?>
        
        <h3><center>Alterar</center> </h3>
    
    <?php  if(@$_POST['enviar'] == 'Gravar'){
            
      $nome      =  $_POST['nome'];
      $endereco  =  $_POST ["endereco"];
      $cidade    =  $_POST ["cidade"];
      $estado    =  $_POST ["estado"];
      $ddd       =  $_POST ['ddd'];
      $telefone  =  $_POST['telefone'];
      $email     =  $_POST['email'];
      $cep       =  $_POST['cep'];  
      $contato   =  $_POST['contato'];
      $bairro    =  $_POST['bairro'];
      
      $agenda->edita($id, $nome,$endereco, $cidade, $estado, $ddd, $telefone, $email, $cep, $contato, $bairro );
      
    
    }
    
    echo '
      <div class="modal-content">
      <div class="modal-header">
      <form action=""  enctype="multipart/form-data" name="Gravar" method="post" >
    <fieldset style="background-color: #E9ECF5 ; color:#FFFFF; font-size: 18px;"   >  
    <label> Cep: Somente numeros  </label> <input type="text" name="cep"  SIZE = "9"   maxlength="9"  value="' .$res['cep']. ' "  /> <br>
    <label> Nome: </label> <input type="text" name="nome" SIZE = "100" maxlength="100" value="' .$res['nome']. ' "/> <br>
    <label> Endereco: </label> <input type="text" name="endereco" SIZE = "100"  maxlength="100" value="' .$res['endereco']. ' "   /> <br>
    <label> Bairro  : </label> <input type="text" name="bairro" SIZE = "100"  maxlength="100" value="' .$res['bairro']. ' "   /> <br>
    <label> Email   : </label> <input type="text" name="email" size="90" maxlength="90" value="' .$res['email']. ' "/><br>
    <label>   DDD       Telefone </label> <input type="text" name="ddd" SIZE="2" value="' .$res['ddd']. ' "/>-
      <input type="text" name="telefone" value="' .$res['telefone']. ' "/> <br>
    <label> Cidade: </label> <input type="text" name="cidade" SIZE = "25" maxlength="25"  value="' .$res['cidade']. ' "  />  UF
     <input type="text" name="estado" SIZE = "2"  maxlength="2"  value="' .$res['estado']. ' "  /> Contato-
     <input type="text" name="contato" SIZE = "29"  maxlength="29"  value="' .$res['contato']. ' "  /> <br>
     <a class="btn btn-success pull-LEFT" font-size: 18px;" href="agenda83.php">  Cancelar  </a>
     <input type="submit" name="enviar" value="Gravar" />
      <a type="button" value="Deleta" class="btn btn-danger pull-right"  href="agenda83.php?pg=deleta&cod='.$res["id"].'"> Deleta </a>
    </fieldset>
    </form>
    </div>
         </div>
    <p style="margin-bottom: 2800px;">Coloque a Alteracao !</p>
    ';
        
           }
            }
         ?>  
        
         <?php
            if(@$_GET['pg'] == 'novo') {
            
            
        
        
      echo '  <h2> Adicionar </h2> ';
    
      if(@$_POST['enviar'] == 'Cadastrar'){
            
      $nome      = $_POST['nome'];
      $email     = $_POST['email'];
      $endereco  = $_POST ["endereco"];
      $cidade    = $_POST ["cidade"];
      $estado    = $_POST ["estado"];
      $ddd       = $_POST['ddd'];
      $telefone  = $_POST['telefone'];
      $cep       = $_POST['cep']; 
      $contato   = $_POST['contato'];
      $bairro    = $_POST['bairro']; 
      
      
      $agenda->cadastro($nome, $email, $ddd, $telefone, $endereco, $cidade,$estado,$cep, $contato, $bairro  );
        
    
                                                }
    echo '
      <div class="modal-content">
      <div class="modal-header">
       <form action=""   name="Gravar"  method="post" >
    <fieldset style="background-color: #E9ECF5 ; color:#FFFFF; font-size: 14px;"   >  
      <br>
      <div class="form-group">
    Nome    :  <input type="text"  name="nome"  placeholder="Digite NOME " autofocus required size="100 maxlength="100" /> <br>
        </div>
     Endereco : <input type="text" name="endereco" value="R."   SIZE = "100" maxlength="100" /><br> 
    Bairro   : <input type="text" name="bairro"   value=" " /><br>
    Cidade   : <input type="text" name="cidade"   value="S.PAULO" size="50" maxlength="50" /><br>
    <div class="form-group">
    <label>Estado : </label>
    <select name = "estado">
     <option selected>SP</option>
     <option>MG</option>
     <option>RJ</option>
        </div>
        </SELECT>
        </div>
    Email   :  <input type="text" name="email"    size="90"  /> <br>
    <label> Ddd     : </label> <input type="text" name="ddd" value="11"      size="2" maxlength="2" />Telefone : - 
     <input type="text" name="telefone" size="18"  /> <br>
    
    Contato  : <input type="text" name="contato"   size="20" maxlength="20" /> <br>
     Cep    :  <input type="text" name="cep"  id="cep"   SIZE = "9" maxlength="9" value="01000-000" /> <br>
    <a  class="btn btn-success pull-LEFT"    href="agenda83.php">  Cancelar  </a>
           <input type="submit" name="enviar" value="Cadastrar" />
    </fieldset>
    
    </form>
    </div>
    </div>
    <br /><br />
    <a TITLE="BUSCA O CEP" href="http://www.buscacep.correios.com.br/" target="_blank">NAo sei o meu CEP</a>
    
    
    <p style="margin-bottom: 2800px;">Bote a inclusao !</p>
        
        ';
        
              }
        
        if(@$_GET['pg'] == 'altera1') { 
              require_once("amudage.php");
              }
           if(@$_GET['pg'] == 'deleta') {
                
                if(!empty($_GET['cod'])) {
                $id = $_GET['cod'];
                
               $agenda->deleta($id);  
               }
            }
          
         ?>
        <div class='container'>
    <form name="pesquisa" action="agenda83.php" method="get" id='form-contato' class="form-horizontal col-md-10">
    <label class="col-md-2 control-label" >Cliente Pesquisa</label>
    <div class='col-md-7'>
    <input type="text" class="form-control" name="pesq" placeholder="Infome o Nome ">
    <a href="agenda83.php?pesq"> Busca Cliente</a> </br>
        </div>
    
        
      
    
    </form>
    </div>
    
     <?php
    @$pesq = $_GET["pesq"];
    ?>
      
    
      <div class='container'>
    <h6>Clientes  </h6> 
    <p>
    <a  type="button" title ="Cadastra" class="btn btn-info pull-left" data-toggle="modal" data-target="#addUsuaModal">Cadastrar</a>
      
            <a href="agenda83.php?pg=novo" class="btn btn-success pull-left btn-xs ">+ Adiciona</a>
               <a title="Relacao" href='lista2.php' class="btn btn-info"><span class="glyphicon glyphicon-print" ></span>-ImP</a>
    <a title="Gera Xls" href='lista3.php' class="btn btn-primary "><span class="glyphicon glyphicon-print" ></span>-Xls</a>      
    <a type="button" title ="Sai" class="btn btn-danger pull-left" href="ajuda.php" ><span  class='glyphicon glyphicon-home' ></span>  Sair</a>     
       </p>
       <table class="table table-striped table-bordered table-responsive table-hover" >
        
            <thead>
               <tr class="success"> 
                 <th><center>ACAO</center></th>  
       <th class="b" bgcolor="#E0F8F7"> <a title="Sai" href="index2.php?sair"> <span  class='glyphicon glyphicon-home' ></span> </a>  </th>
           <th><center>Nome</th>
          <th class="b" bgcolor= "#E0F8F7"  align="left" width="25%">Endereco</th>
          <th class="b" bgcolor= "#E0F8F7"  align="left" width="4%">Bairro</th>
          <th class="b" bgcolor= "#E0F8F7"  align="left" width="5%">Cidade</th>
          <th class="b" bgcolor= "#E0F8F7" align="left" width="5%">UF</th>
          <th  class="b" bgcolor= "#E0F8F7" align="left" width="2%">Ddd</th>
          <th  class="b" bgcolor= "#E0F8F7"align="left" width="10">Telefone</th>
          <th  class="b" bgcolor= "#E0F8F7" align="left" width="25%">Email</th>
          <th  class="b" bgcolor= "#E0F8F7" align="left" width="25%">Cep</th>
          <th  class="b" bgcolor="#E0F8F7" align="left" width="9%">Contato</th>
          <th class="b" bgcolor="#53CEDF"><strong> <a Title="Adiciona"href="agenda83.php?pg=novo"> Novo </a> </strong>     </th>
          <th class="b" bgcolor="#BBFFFF"><strong> <a href="index2.php?sair"> Sair </a> </strong>  </th>
       </tr>
            </thead>
    
      
    
    <?php
    
    if ( !empty($pesq)) {
      $qry =mysqli_query( $conecta  , "SELECT * FROM  Agenda2 WHERE nome LIKE  '%".$pesq."%'  OR telefone LIKE  '%".$pesq."%'  order by nome " )  or die(mysqli_error($GLOBALS["___mysqli_ston"]));
    
    }
    else {
     $qry =mysqli_query( $conecta , "SELECT * FROM  Agenda2 order by nome " )  or die(mysqli_error($GLOBALS["___mysqli_ston"]));
    
    }
    
    
    while($resultado=mysqli_fetch_array($qry)) {
    
    
    
    
     ?>
    
        <tr   >
      
     <td><a title="Altera" href="agenda83.php?pg=altera&cod=<?php echo $resultado["id"]; ?>" class="btn btn-warning btn-sm"><span class="glyphicon glyphicon-edit"></span>Edi</a></td>
     <td><a title="Del" href="agenda83.php?pg=deleta&cod=<?php echo $resultado["id"];?>" class="btn btn-info " onclick="return confirm('Confirmar Exclusao?');"> <span class="glyphicon glyphicon-trash"></span></a></td>
          <td>  <?php echo $resultado["nome"];  ?></td>
          <td><?php echo $resultado["endereco"];  ?></td>
          <td><?php echo $resultado["bairro"];  ?></td>
          <td><?php echo $resultado["cidade"];  ?></td>
          <td><?php echo $resultado["estado"];  ?></td>
          <td><?php echo $resultado["ddd"]; ?></td>
          <td><?php echo $resultado["telefone"];  ?></td>
          <td><?php echo $resultado["email"]; ?></td>
          <td><?php echo $resultado["cep"]; ?></td>
          <td><?php echo $resultado["contato"]; ?></td>
    
          
        </tr>
    
            
      <?php
        }
      
    
      echo '</table>';
      echo '</div>';
       ?>
    
    
      <div id="addUsuaModal" class="modal fade" role="dialog"  style="font-size: 12px;" >
             <div class="modal-dialog" role="document">
        <div class="modal-content">
              <div class="modal-header ">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
                        <h6 class="modal-title" id="addUsuaModalLabel" >Cadastrar</h6>
                </div>
    <div class="modal-body">
      <fieldset style="background-color: #E9ECF5; font-size: 12px;" >
       <form action="cadastro1.php"   name="Gravar"  method="post" >
       <div class="form-group row">
     <label  class="col-sm-2 col-form-label" >Cep </label>
     <div class="col-sm-10">
       <input type="text" class='form-control'  name="cep"  id="cep" placeholder="Bote o Cep s,tracos"   SIZE = "8" maxlength="8" value="" autofocus required /> <br>
             </div>
            </div>
        
      <div class="form-group row">
      <label  class="col-sm-2 col-form-label" >Cliente </label>
      <div class="col-sm-10">
     <input type="text"  class='form-control'  name="nome" id="nome" placeholder="Bote o Nome do cliente " required  size="100 maxlength="100" /> 
        </div>
     </div>
     
       <div class="form-group row">
       <label  class="col-sm-2 col-form-label" >Endereco</label>
       <div class="col-sm-10">
      <input type="text" class='form-control'  name="endereco"  id="endereco" value="R."   SIZE = "100" maxlength="100" /><br> 
     </div>
     </div>
       <div class="form-group row">
       <label class="col-sm-2 col-form-label">Bairro</label>
       <div class="col-sm-10">
        <input type="text"  class='form-control'  name="bairro"  id="bairro"  value=" " /><br>
     </div>
     </div>
     <div class="form-group row">
      <label class="col-sm-2 col-form-label">Cidade</label>
      <div class="col-sm-10">
          <input type="text"  class='form-control'  name="cidade"  id="cidade" value="S.PAULO" size="35" maxlength="35" />UF:- 
       <input type="text"  class='form-control'  name="estado"  id="estado" value="SP" size="2" maxlength="2" /><br>
        <b>Estado:</b>
    <select name="estado">
    <?php
    $qr2=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM estados order by descricao asc ");
    while ($row2=mysqli_fetch_array($qr2)){
    ?>
        <option <?php  echo   "selected"?> value="<?php echo $row2['sigla']?>"><?php echo $row2['descricao']?></option>
    <?php }?>
    </select>
    </div>
    </div>
     
        <div class="form-group row">
        <label class="col-sm-2 col-form-label">Email</label>
        <div class="col-sm-10">
               <input type="text" class='form-control'  name="email"    size="90"  /> <br>
        </div>
        </div>
    <div class="form-group row">
    <label class="col-sm-2 col-form-label" > Ddd  : </label>
    <div class="col-sm-10">
     <input type="text" class='form-control'  name="ddd" value="11"      size="2" maxlength="2" />Telefone : - 
     <input type="text" class='form-control'  name="telefone" size="18"  /> Contato  :
      <input type="text" class='form-control'  name="contato"   id="contato" size="20" maxlength="20" /> 
     </div>
     </div>
    
    
    <div class="modal-footer">
    <button type="button" class="btn btn-success pull-left"  class="close" data-dismiss="modal"   href="agenda83.php">  Cancelar  </button>
           <input class="btn btn-info pull-left" type="submit" name="enviar" value="Cadastrar" />
    <button type="button" class="close" data-dismiss="modal">&times;Sair</button>
    
    </div>
    </form>
    </fieldset>
    
    </div>
    </div>
    <br /><br />
    
    </div>
    <script type="text/javascript">
     //Foca no Cep
     document.getElementById('cep').focus();
     var lastCepCheck = '';
     document.getElementById('cep').addEventListener('keyup', function() {   
      //Impede inserir algo alem de Números
      this.value = this.value.replace(/[^0-9]/, "");
      
      //Pega apenas os números
      var cep = this.value.replace(/[^0-9]/, "");
      
      //Só pesquisa se tiver 8 caracteres e o ultimo cep pesquisado seja diferente do atual.
      if(cep.length != 8 || lastCepCheck == cep){
       return false;
      }
      lastCepCheck = cep;
      
      ajax = new XMLHttpRequest();
      
      var url = "http://viacep.com.br/ws/"+cep+"/json/";  
      ajax.open('GET', url, true);
      ajax.send();
      
      ajax.onreadystatechange = function() {
       if(ajax.readyState == 4 && ajax.status == 200) {
        
        var json = JSON.parse(ajax.responseText);       
        document.getElementById('endereco').value = json.logradouro;
        document.getElementById('bairro').value = json.bairro;
        document.getElementById('cidade').value = json.localidade;
        document.getElementById('estado').value = json.uf;
        document.getElementById('nome').focus();
       }
      }
     });  
    </script>
    </div>
    
    </body>
    </html>
    
    
    
    cadastro1.php
    <?php
    
    
    Include ("config.php");
      $nome      = $_POST['nome'];
      $email     = $_POST['email'];
      $endereco  = $_POST ["endereco"];
      $cidade    = $_POST ["cidade"];
      $estado    = $_POST ["estado"];
      $ddd       = $_POST['ddd'];
      $telefone  = $_POST['telefone'];
      $cep       = $_POST['cep']; 
      $contato   = $_POST['contato'];
      $bairro    = $_POST['bairro']; 
    
    $sql_cadastro= mysqli_query($GLOBALS["___mysqli_ston"], "INSERT INTO  Agenda2 set  nome='$nome',email='$email',ddd='$ddd',telefone='$telefone',endereco='$endereco',cidade='$cidade', estado='$estado', cep='$cep', contato='$contato', bairro ='$bairro ' ")  or die("Falha adiconar l 65"); 
    // echo "<script>alert('Cadastrei e gravei 51');</script>";
    echo '<meta http-equiv="refresh" content="0; url=agenda83.php">';
    ?>
    
    
    
    
    Lista3   xls
    <?php
      include('config.php')
    ?>
    <!DOCTYPE html>
    <html lang="pt-br">
     <head>
      <meta charset="utf-8">
      <title>Contato</title>
     <head>
     <body>
      <?php
      // Definimos o nome do arquivo que será exportado
      $arquivo = 'clientes.xls';
      
      // Criamos uma tabela HTML com o formato da planilha
      $html = '';
      $html .= '<table border="1">';
      $html .= '<tr>';
      $html .= '<td colspan="5">Planilha Mensagem de Contatos</tr>';
      $html .= '</tr>';
      
      
      $html .= '<tr>';
      $html .= '<td><b>ID</b></td>';
      $html .= '<td><b>Nome</b></td>';
      $html .= '<td><b>E-mail</b></td>';
      $html .= '<td><b>telefone</b></td>';
      $html .= '<td><b>endereco</b></td>';
      $html .= '<td><b>bairro</b></td>';
      $html .= '<td><b>estado</b></td>';
      $html .= '<td><b>celular</b></td>';
      $html .= '<td><b>cep</b></td>';
      $html .= '<td><b>contato</b></td>';
      $html .= '</tr>';
      
      //Selecionar todos os itens da tabela 
      $qry =mysqli_query($conecta, "SELECT * FROM Agenda2  order by nome")  or die(mysqli_error($GLOBALS["___mysqli_ston"])); 
        while ($row_msg_contatos  = mysqli_fetch_array( $qry)) {
    
     
       $html .= '<tr>';
       $html .= '<td>'.$row_msg_contatos["id"].'</td>';
       $html .= '<td>'.$row_msg_contatos["nome"].'</td>';
       $html .= '<td>'.$row_msg_contatos["email"].'</td>';
       $html .= '<td>'.$row_msg_contatos["telefone"].'</td>';
       $html .= '<td>'.$row_msg_contatos["endereco"].'</td>';
        $html .= '<td>'.$row_msg_contatos["bairro"].'</td>';
     $html .= '<td>'.$row_msg_contatos["estado"].'</td>';
     $html .= '<td>'.$row_msg_contatos["celular"].'</td>';
     $html .= '<td>'.$row_msg_contatos["cep"].'</td>';
     $html .= '<td>'.$row_msg_contatos["contato"].'</td>';
       $html .= '</tr>';
       ;
      }
      // Configurações header para forçar o download
      header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
      header ("Last-Modified: " . gmdate("D,d M YH:i:s") . " GMT");
      header ("Cache-Control: no-cache, must-revalidate");
      header ("Pragma: no-cache");
      header ("Content-type: application/x-msexcel");
      header ("Content-Disposition: attachment; filename=\"{$arquivo}\"" );
      header ("Content-Description: PHP Generated Data" );
      // Envia o conteúdo do arquivo
      echo $html;
      exit; ?>
     </body>
    </html>
    
    
    
     
    
    
    
    
    usuario1
        <html xmlns="http://www.w3.org/1999/xhtml"> 
        <head> 
     
     <meta http-equiv="Content-Language" content="pt-br">  
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0">   
       <title> usual2 </title>
    
             <link rel="stylesheet" href="css/bootstrap.min.css">
        <!-- Optional theme -->
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <!-- Loader -->
        <link rel="stylesheet" href="css/loader.css">
        <script src="js/jquery-1.12.4.js"></script>
        <link rel="stylesheet" type="text/css" href="dashboard/vendor/font-awesome/css/font-awesome.min.css">
        <script>
            $(document).ready(function() {
                    $('#example').DataTable({});
                });
    
            </script>
        <link rel="stylesheet" href="css/jquery.dataTables.min.css">
        <link rel="stylesheet" href="css/dataTables.bootstrap.min.css">
        <link rel="stylesheet" href="css/responsive.bootstrap.min.css">
        <script src="js/bootstrap.min.js"></script>
        <script src="js/jquery.dataTables.min.js"></script>
     
        
       <script>
      $(function() {
        $(".datepicker" ).datepicker({ 
     dateFormat: 'dd/mm/yy' ,
     language:"pt-BR",
     });
       
    });
    </script>      
         
        </head>  
      <?php
              include("config.php");     
      ?> 
         
        <body> 
          <?php 
                class  usuarios {
         
          
          private $nome;
          private $email;
       
     public function cadastro( $nome, $email )  {
       
     $sql_cadastro=mysqli_query($GLOBALS["___mysqli_ston"],"INSERT INTO  usuarios  (nome,email )  Values('$nome','$email' )  ")  or die("Falha ao Incluir ");
       echo "<script>alert('dados gravados com exito');</script>";
     echo '<meta http-equiv="refresh" content="0; url=usuarios1.php">';  
             }  
       
     public function edita($id,  $nome, $email )  {
       
       $this->id           = $id;  
      $this->w1=$nome;                                                                                   
      $this->w2=$email;                                                                                  
       
     $sql_editar=mysqli_query($GLOBALS["___mysqli_ston"],"UPDATE usuarios SET 
      nome='$this->w1',email='$this->w2' WHERE id=$this->id ") ;
       
     echo '<meta http-equiv="refresh" content="0; url=usuarios1.php">';  
       
         } 
       
       public function deleta ($id) { 
       
     $this->id = $id;  
       
     $qry_del = mysqli_query($GLOBALS["___mysqli_ston"],"DELETE FROM usuarios WHERE id = $this->id");
     echo" <script type='text/javascript'>   window.location='usuarios1.php';' </script> \n "; 
       } 
       } 
     $usuarios = new  usuarios ; 
        if(@$_GET['pg'] == 'altera') { 
       
                 if(!empty($_GET['cod'])) { 
                  $id        = $_GET['cod'];
      $sql_edita=mysqli_query($GLOBALS["___mysqli_ston"],"SELECT * FROM  usuarios WHERE id=$id") or die(mysqli_error($GLOBALS["___mysqli_ston"]));  
      $res = mysqli_fetch_array($sql_edita); 
       ?>  
         <h3 ALIGN="center" >Cadastro usuarios Alterar </h3>  
       
      <?php  if(@$_POST['enviar'] == 'Gravar'){ 
      $nome  = $_POST['nome'];                            
      $email  = $_POST['email'];                          
       
     $usuarios->edita($id, $nome, $email ) ;
      } 
      echo ' 
      <div class="modal-content">
      <div class="modal-header">
      <div class="modal-content">
              <h5 ALIGN="center" >bote as ALTERAcoes </h5> 
          <form action=""  enctype="multipart/form-data" name="Gravar" method="post" > 
       <fieldset style="background-color: #E9ECF5">
     <label>NOME       <input type="text" name="nome" size="40" value="' .$res['nome'].  ' "  /> <br>
     <label>EMAIL      <input type="text" name="email" size="40" value="' .$res['email'].  ' "  /> <br>
     <a type="button" value="Sai" class="btn btn-info"  href="usuarios1.php">Cancelar</a>
     <a type="button" value="Dele" class="btn btn-danger pull-left" onclick="return confirm();"  href="usuarios1.php?pg=deleta&cod='.$res["id"].'"> Deleta </a>
     <input type="submit" name="enviar" value="Gravar" />  
     </fieldset>  
     </form>  
     </div> 
     </div> 
     </div> 
     <p style="margin-bottom: 2800px;">Preencha a Alteracao !</p>  
         '; 
            }  
             } 
           ?>  
           <?php 
              if(@$_GET['pg'] == 'novo') {
       echo '  <h4 ALIGN="center" >     Cadastro Inclusao</h4> ';  
       if(@$_POST['enviar'] == 'Cadastrar'){  
       
      $nome  = $_POST['nome'];                            
      $email  = $_POST['email'];                          
       
      $usuarios->cadastro(  $nome, $email ) ;
        }  
      echo ' 
      <div class="modal-content">
      <div class="modal-header">
      <div class="modal-content">       
      <form action=""  enctype="multipart/form-data" name="Gravar" method="post" > 
      <fieldset style="background-color: #E9ECF5">
     <label>NOME      </label> <input type="text" name="nome" size="40"  /> <br>
     <label>EMAIL     </label> <input type="text" name="email" size="40"  /> <br>
     <a type="button" value="Sai" class="btn btn-default" href="usuarios1.php">Cancela</a>
     <input type="submit" name="enviar" value="Cadastrar" />  
     </fieldset>  
     </form>  
          </div> 
            </div> 
              </div> 
     <p style="margin-bottom: 2800px;">Preencha a Inclusao !</p>  
      '; 
            }  
       
             if(@$_GET['pg'] == 'deleta') { 
                 if(!empty($_GET['cod'])) {  
       
                  $id = $_GET['cod'];
       $usuarios->deleta($id);  
                }  
                }  
           ?> 
       
      
       <div class="container"> 
       <div align="left" style="padding-right:20px;">  
      <form name="pesquisa" action="usuarios1.php" method="get">  
      Cadastro Pesquisar <input type="text" placeholder="Bote a busca" name="pesq" /> 
      </form> 
      </div> 
      <a type ="button" class="btn btn-danger pull-left" href="ajuda.php">Sair</a> 
     <a  type="button" title ="Cadastra" class="btn btn-info pull-left" data-toggle="modal" data-target="#addUsuarioModal">Cadastrar </a>  
      <a type ="button" class="btn btn-info pull-left" title="Cadastrar"  href="usuarios1.php?pg=novo">Adiciona</a>  
      </div> 
       
       <? 
     @$pesq = @$_GET["pesq"];  
       
      ?> 
      
       
      <div class="container">  
      <div class="row">   
     <div class="col-md-10 titulo">Cadastro de Usua </div>
     
      <table class="table table-striped table-bordered table-responsive table-hover" style="font-size: 14px;" >
      
       <tr class="success">    
       <td class="b"    width="1%">id</td>
        <td class="b"    width="9%"> NOME</td>
        <td  class="b"    width="9%"> EMAIL</td>
      <th class="b" width="9%" > <a title="Cadastrar"  href="usuarios1.php?pg=novo">Novo</a> </th> 
      <th class="b" width="9%" ><strong> <a href="index2.php?sair">Sair</a> </strong>  </th> 
      <th  class="b"   align="center" width="9%"> acao</th>
      
      </tr>
        
      </div>  
      <?php 
      if ( !empty($pesq)) { 
       $qry =mysqli_query($conecta, "SELECT * FROM usuarios WHERE nome LIKE '%".$pesq."%' order by nome" )  or die("Falha na consulta ");
       
      } 
     else {  
       $qry =mysqli_query($conecta, "SELECT * FROM usuarios order by nome")  or die(mysqli_error($GLOBALS["___mysqli_ston"])); 
      } 
       
       
       while($resultado = mysqli_fetch_array($qry)) {  
       
       ?> 
      <tr > 
         <td><?php echo   $resultado["id"]; ?></td>
        <td><?php echo   $resultado["nome"]; ?></td>
        <td><?php echo   $resultado["email"]; ?></td>
     <td data-toggle="modal" ><a href="usuarios1.php?pg=altera&cod=<?php echo $resultado["id"]; ?>" class="btn btn-info btn-xs"><span class="glyphicon glyphicon-edit"></span> Edit</a></td>
    <td><a title="Del" href="usuarios1.php?pg=deleta&cod=<?php echo $resultado["id"];?>" class="btn btn-info " onclick="return confirm('Confirme Exclusao?');"> <span class="glyphicon glyphicon-trash"></span></a></td> 
        </tr> 
       
      <?php 
       
     }   
      echo '</table>';  
      echo '</div>';  
      
      ?> 
      
       <div id="addUsuarioModal" class="modal fade" role="dialog" style="font-size: 13px;" >
          <div class="modal-dialog" role="document">
        <div class="modal-content">
         <div class="modal-header bg-info">
          <h5 class="modal-title" id="addUsuarioModalLabel">Cadastra Inlcusao</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
         </div>
         <div class="modal-body">
          <fieldset style="background-color: #E9ECF5; font-size: 12px;" >
          <form action="cadastrom.php"   method="post" > 
           <div class="form-group row">
            <label class="col-sm-2 col-form-label">Nome</label>
            <div class="col-sm-10">
             <input name="nome" type="text" autofocus required="required"  class="form-control" id="nome" placeholder="Nome completo">
            </div>
           </div>
           
           <div class="form-group row">
            <label class="col-sm-2 col-form-label">Email *</label>
            <div class="col-sm-10">
             <input name="email" type="email" required="required" class="form-control" id="email" placeholder="bote E-mail">
            </div>
           </div>
           <div class="form-group row">
            <div class="col-sm-10">
            <button type="reset" Title="Sair" onclick="window.location.href='usuarios1.php'"> Cancelar </button> 
                                    <input type="submit" title"Salvar Alteracao"   class="btn btn-success  btn-sm "  value="Gravar" />
           
            </div>
           </div>
          </form>
          </fieldset> 
         </div>
        </div>
       </div>
      </div>
       <?php
          
    ?>
      
      
      </body>  
       </html> 
       <!---
          <p >Preencha a Inclusao !</p> 
    <input  type="submit"  value="Gravar"  class="btn btn-outline-info " />    
      --->   
      
    
    cadastrom
    <?php
    
    
    Include ("config.php");
    
    $nome = $_POST[ 'nome'];
    $email =$_POST[ 'email'];
    
     $sql_cadastro=mysqli_query($GLOBALS["___mysqli_ston"],"INSERT INTO  usuarios set nome='$nome',email='$email'   ")  or die("Falha ao Incluir ");
       echo "<script>alert('Cadastrei e gravei 51');</script>";
     
     echo '<meta http-equiv="refresh" content="0; url=usuarios1.php">';  
     
     
    ?>
    
    
    
    
    
    1. <input type="text" class="form-control cpf-mask" placeholder="Ex.: 000.000.000-00">
    2. <input type="text" class="form-control cep-mask" placeholder="Ex.: 00000-000">
    3. <input type="text" class="form-control time-mask" placeholder="Ex.: 00:00:00">
    4. <input type="text" class="form-control date-time-mask" placeholder="Ex.: 00/00/0000 00:00:00">
    5. <input type="text" class="form-control phone-mask" placeholder="Ex.: 0000-0000">
    6. <input type="text" class="form-control phone-ddd-mask" placeholder="Ex.: (00) 0000-0000">
    7. <input type="text" class="form-control cel-sp-mask" placeholder="Ex.: (00) 00000-0000">
    8. <input type="text" class="form-control cep-mask" placeholder="Ex.: AAA 000-S0S">

    Definindo as mascaras no HTML.


    1. <input type="text" class="form-control" placeholder="Ex.: dd/mm/aaaa" data-mask="00/00/0000" maxlength="10" autocomplete="off">
     t 
    
    
    
    
    gera as tabelas com vfp
    * Ne gére pas les champs de type "GENERAL"
    
    clear
    SET DATE french
    SET CENTURY on
    
    
    LOCAL ls_export_mysql_file as string
    ls_export_mysql_file = "c:\temp\test.sql"
    
    USE HOME()+"samples\northwind\customers.dbf"
    =WriteDumpSQL(ls_export_mysql_file, .F. )
    use
    
    USE HOME()+"samples\northwind\products.dbf"
    =WriteDumpSQL(ls_export_mysql_file, .T. )
    use
    
    * fichier a incoporer dans mysql
    MODIFY COMMAND (ls_export_mysql_file)
    
    return
    
    
    FUNCTION WriteDumpSQL(ts_fichier_sql as string, tl_appended as logical) as Boolean
    LOCAL ARRAY la_Champs[1,18]
    LOCAL li_nombre_de_champs as Integer
    LOCAL li_i as Integer
    LOCAL li_select as Integer
    LOCAL ls_sql as string
    LOCAL ls_champ as string
    LOCAL ls_type as string
    LOCAL ls_width as string
    LOCAL ls_precision as string
    LOCAL ll_binary as Logical
    #define csCRLF CHR(13)+CHR(10)  && peut être " " c'est pour la lisibilité
    #define cs_delimiteur chr(96)
      IF EMPTY(ALIAS())
        =MESSAGEBOX("Export mysql impossible : pas de table en cours d'utilisation dans la zone active",16, "Dump Dbf2Sql")
        RETURN .F.
      ENDIF
      li_nombre_de_champs = AFIELDS(la_Champs)
      ls_sql = "CREATE TABLE "+cs_delimiteur+ALIAS()+cs_delimiteur+" ("+ csCRLF
      for li_i=1 TO li_nombre_de_champs
        * nom du champ
        ls_sql = ls_sql + cs_delimiteur+la_Champs[li_i, 1]+cs_delimiteur
        * type :
        * A vérifier la correspondance des types vfp / mysql ....
        * ---------_
        ls_type = la_Champs[li_i, 2]
        ls_width = ALLTRIM(STR(la_Champs[li_i, 3]))
        ls_precision = ALLTRIM(STR(la_Champs[li_i, 4]))
        ll_binary = la_Champs[li_i, 6]
        DO case
          CASE ls_type == "C" && character
            IF ll_binary
              ls_sql = ls_sql + " VARCHAR("+ls_width+") BINARY "
            else
              ls_sql = ls_sql + " VARCHAR("+ls_width+") "
            endif
          CASE ls_type == "Y" && Currency
            ls_sql = ls_sql + " DECIMAL("+ls_width+","+ls_precision+") "
          CASE ls_type == "D" && Date
            ls_sql = ls_sql + " DATE "
          CASE ls_type == "T" && DateTime
            ls_sql = ls_sql + " DATETIME "
          CASE ls_type == "B" && Double
            ls_sql = ls_sql + " DOUBLE("+ls_width+","+ls_precision+") "
          CASE ls_type == "F" && Float
            ls_sql = ls_sql + " FLOAT("+ls_width+","+ls_precision+") "
          CASE ls_type == "G" && General
            ls_sql = ls_sql + " BLOB "
          CASE ls_type == "I" && Integer
            ls_sql = ls_sql + " INT("+ls_width+") "
          CASE ls_type == "L" && Logical
            ls_sql = ls_sql + " SMALLINT(1) "
          CASE ls_type == "M" && Memo
            IF ll_binary
              ls_sql = ls_sql + " BLOB "
            ELSE
              ls_sql = ls_sql + " TEXT "
            endif
          CASE ls_type == "N" && Numeric
            ls_sql = ls_sql + " DOUBLE("+ls_width+","+ls_precision+") "
          CASE ls_type == "Q" && Varbinary
            ls_sql = ls_sql + " VARCHAR("+ls_width+") BINARY "
          CASE ls_type == "V" && Varchar
            IF ll_binary
              ls_sql = ls_sql + " VARCHAR("+ls_width+") "
            ELSE
              ls_sql = ls_sql + " VARCHAR("+ls_width+") BINARY "
            endif
          CASE ls_type == "W" && Blob
            ls_sql = ls_sql + " BLOB "
          OTHERWISE
            =MESSAGEBOX("Erreur de programmation, type inconnu : à traiter!")
            RETURN .F.
        ENDCASE
        * null values allowed
        IF la_Champs[li_i, 5]
          ls_sql = ls_sql + "null "
        ELSE
          ls_sql = ls_sql + "not null "
        ENDIF
        * field default value
        IF NOT EMPTY(la_Champs[li_i, 9])
          ls_champ = la_Champs[li_i, 9]
          ls_sql = ls_sql + "default "+Transformer(ls_champ, la_Champs[li_i, 6])+" "
        ENDIF
        * AUTO_INCREMENT
        IF la_Champs[li_i, 18]<>0
          ls_sql = ls_sql + "AUTO_INCREMENT PRIMARY KEY "
        endif
        *
        IF li_i<li_nombre_de_champs
          ls_sql = ls_sql + ","+csCRLF
        ELSE
          ls_sql = ls_sql + csCRLF
        endif
      NEXT
      ls_sql = ls_sql + ");"+ csCRLF
      * champs
      ls_sql = ls_sql + csCRLF
      SCAN
        ls_sql = ls_sql + "INSERT INTO "+cs_delimiteur+ALIAS()+cs_delimiteur+ " ("+ csCRLF
        for li_i=1 TO li_nombre_de_champs
          IF la_Champs[li_i, 2]="G" && ignorer le champ général
            LOOP
          endif
          ls_champ = la_Champs[li_i, 1]
          ls_sql = ls_sql + cs_delimiteur+ ls_champ + cs_delimiteur
          IF li_i<li_nombre_de_champs
            ls_sql = ls_sql + ","+csCRLF
          ELSE
            ls_sql = ls_sql + csCRLF
          endif
        next
        ls_sql = ls_sql + ")" + csCRLF
        ls_sql = ls_sql + " VALUES ("
        for li_i=1 TO li_nombre_de_champs
          IF la_Champs[li_i, 2]="G" && ignorer le champ général
            LOOP
          endif
          ls_champ = EVALUATE(la_Champs[li_i, 1])
          ls_sql = ls_sql + Transformer(ls_champ, la_Champs[li_i, 6])
          IF li_i<li_nombre_de_champs
            ls_sql = ls_sql + ","+csCRLF
          ELSE
            ls_sql = ls_sql + csCRLF
          endif
        next
        ls_sql = ls_sql + ");" + csCRLF
      ENDSCAN
      ls_sql = ls_sql + csCRLF
    
      SET SAFETY OFF
      =STRTOFILE(ls_sql, ts_fichier_sql, tl_appended)
      SET SAFETY ON
    RETURN .T.
    
    
    FUNCTION Transformer(t_champ, tl_en_binaire) as string
    LOCAL ls_return as String
    LOCAL li_i
    IF ISNULL(t_champ)
      ls_return = "NULL"
    ELSE
      DO case
        CASE tl_en_binaire
          * cas du binaire a transformer en hexadecimal
          IF LEN(t_champ)>1
            ls_return = "0x"
            FOR li_i=1 TO LEN(t_champ)
              ls_return = ls_return + RIGHT(TRANSFORM( ASC(SUBSTR(t_champ,li_i,1)), "@0"),2)
            NEXT
          ELSE
            ls_return = "''"
          ENDIF
        CASE TYPE("t_champ")$"CMV"
          ls_return = ALLTRIM(t_champ)
          ls_return = STRTRAN(ls_return, CHR(92), CHR(92)+CHR(92)) && \ en \\
          ls_return = STRTRAN(ls_return, CHR(39), CHR(92)+CHR(39)) && ' en \'
          ls_return = "'"+ls_return+"'"
        CASE TYPE("t_champ")$"NYBFI"
          ls_return = ALLTRIM(STR(t_champ))
        CASE TYPE("t_champ")=="D"
          ls_return = "'" + LEFT(TTOC(t_champ,3),10) + "'"
        CASE TYPE("t_champ")=="T"
          ls_return = "'" + TTOC(t_champ,3) + "'"
        CASE TYPE("t_champ")=="L"
          * boolean .T. = 1
          IF t_champ
            ls_return = "1"
          ELSE
            ls_return = "0"
          endif
        CASE TYPE("t_champ")=="Q"
          * cas particulier en binaire directement
          IF LEN(t_champ)>1
            ls_return = "0x" + TRANSFORM(t_champ)
          ELSE
            ls_return = "''"
          ENDIF
        OTHERWISE
          ls_return = "'?'"
          =MESSAGEBOX("a traiter Transformer type="+TYPE("t_champ"))
      ENDCASE
    endif
    RETURN ls_return
    
    
    
    
    
    
    
    PUBLIC myconnect,minhaTabela,m.nomecursor
    m.nomecursor=SYS(2015)
    lcDriver="{PruebaMySQLx Driver}"
    
    ** local
    *!* lcServer="localhost"
    *!* lcPort="3306"
    *!* lcDatabase="sysproga"
    *!* lcUser = "root"
    *!* lcPassword = ""
    
    ** site sysproga
    lcServer="111.111.111.111"
    lcPort="3306"
    lcDatabase="sysproga"
    lcUser = "sysproga"
    lcPassword = "*******"
    lcStringConn="Driver="+lcDriver+;
      ";Port="+lcPort+;
      ";Server="+lcServer+;
      ";Database="+lcDatabase+;
      ";Uid="+lcUser+;
      ";Pwd="+lcPassword+;
      ";Option=3"
    *!* SQLSETPROP(0,"DispLogin",3)
    myconnect=SQLSTRINGCONNECT(lcStringConn)
    IF myconnect < 0
      && Error, no pudo conectarse a la Base de Datos SQL
      do MENSAJE_ERROR with "NÃO CONSIGO CONECTAR A BASE DE DADOS !!!" + Chr(ENTER_KEY) + Chr(ENTER_KEY) ;
                       + "Ocorreu um erro quando tentei conectarme a:" + CHR(ENTER_KEY) + lcDatabase + CHR(ENTER_KEY) + SPACE(100);
                       + "Este Sistema finalizará agora"
      ON SHUTDOWN
      CANCEL
    ELSE
      * --- A forma principal do aplicativo é lançada
      ABRE_ARQUIVOS()
      do form MAIN
      Read Events
      ** -- A aplicação está terminada
      SQLDISCONNECT(myconnect)
      set sysmenu to DEFAULT
      CLOSE ALL
      CLEAR ALL
      ON SHUTDOWN
      Return
    ENDIF
    
    
    NO FORMS:
    
    IF myconnect > 0
      SQLQ="SELECT * FROM sysproga.&minhaTabela"
      retSQL = SQLEXEC(myconnect,SQLQ, m.nomecursor)
      IF retSQL > 0
         IF USED(m.nomecursor) THEN
              SELECT cidade , uf FROM (m.nomecursor) WHERE UF=UFS INTO CURSOR &MOTA01
         ENDIF
      ENDIF
    ENDIF
    
    
     
    
    
    
    
    
    
    
    
     
    
    
    
    
    
    
    
    

    Secrects  My Heart
    Secret of my heart our future is forever

    Segredo do meu coração
    Com quais palavras eu poderia comunicar a você
    Que desde aquela época, várias estações
    Já se passaram e eu sempre fiquei por perto, sorrindo
    Mesmo tendo esse sentimento do qual não posso falar

    Segredo do meu coração, sem duvidas
    Enquanto houver algum futuro
    Você será capaz de compreender a verdade
    Não posso falar mais nada
    Estou esperando uma chance
    Tempos tranqüilos como este, eu gostaria que nós conectássemos mais
    Tendo medo de revelar tudo
    Caminho mantendo uma distância entre nós, por alguma razão seu perfil
    Parece tão frágil, quero proteger você e estar ao seu lado
    Segredo do meu coração, você irá entender, não?
    Todos querem escapar as vezes
    Mas nada irá começar somente assim
    Não posso dizer, de verdade, definitivamente
    Estou esperando uma chance
    Posso dizer a verdade?
    Não consigo dizer as palavras com estes lábios trêmulos
    Não posso mais esconder este sentimento em meu coração
    Pois eu amo você
    Estarei com você
    Não importa onde você esteja
    Você pode sentir meu coração?
    Você pode sentir meu coração?
    Você não percebe que é meu sonho, não quero perder
    Nosso precioso tempo juntos
    Se você vai desistir, pelo menos acredite
    Que quero simplesmente falar, não irei mais hesitar
    Você não percebe que é meu sonho, tudo que é forçado
    Algum dia acabará se partindo
    Mesmo assim, isso não irá nunca mudar
    Segredo do meu coração, nosso futuro é eterno

    Um comentário: