<?php
session_start();
if(strpos(strtolower($_SERVER['REQUEST_URI']), 'phpsessid') !== false)
{
  session_destroy();
  session_regenerate_id();
  session_start();
                              
}
include "../phpconfig/config.php";
include "../phpconfig/valida_login.php";
include "../includes/topo.php"; 


mysql_query("DELETE FROM config WHERE id = 4");
$sql = mysql_query("SELECT * FROM config WHERE id=3");

$lin = mysql_fetch_assoc($sql);

?>
        <ul class="breadcrumb">
          <li><a href="<?php echo sti('adm');  ?>">Home</a></li>
          <li>Configurações</li>
          
        </ul>

       <form class="form-horizontal" method="post" action="edita.php" id='depform'>

        <fieldset>



          <div class="control-group">
            <label class="control-label"  for="depp">Email</label>
            <div class="controls">
             <input type="text" name="email" value='<?php echo ($lin['email']); ?>'>
            </div>
          </div>
          
          
                        
                        
                        
                        <div class="control-group">
            <label class="control-label"  for="depp">Nome Estado - aparece em quem somos/</label>
            <div class="controls">
             <input type="text" name="nomeestado" value='<?php echo ($lin['nomeestado']); ?>'>
            </div>
          </div>
          
            <div class="control-group">
            <label class="control-label"  for="depp">Depoimento 1</label>
            <div class="controls">
             <input type="text" name="depoimento1" value='<?php echo ($lin['depoimento1']); ?>'>
            </div>
          </div>
          
            <div class="control-group">
            <label class="control-label"  for="depp">Depoimento 2</label>
            <div class="controls">
             <input type="text" name="depoimento2" value='<?php echo ($lin['depoimento2']); ?>'>
            </div>
          </div>
          
            <div class="control-group">
            <label class="control-label"  for="depp">Copyright - url do site - aparece no rodaope</label>
            <div class="controls">
             <input type="text" name="copyright" value='<?php echo ($lin['copyright']); ?>'>
            </div>
          </div>
          
                   
            </br>       
             </br>       
             
              

                        
    <div class="control-group">
            <label class="control-label"  for="depp">Titulo pagina inicial</label>
            <div class="controls">
             <input type="text" name="titulopginicial" value='<?php echo ($lin['titulopginicial']); ?>'>
            </div>
          </div>                     
     
   
          
            <div class="control-group">
            <label class="control-label"  for="depp">Nome Título</label>
            <div class="controls">
             <input type="text" name="nometitulo" value='<?php echo ($lin['nometitulo']); ?>'>
            </div>
          </div>
                        
           </br>       
              </br>
 
            
               
         <div class="control-group">
            <label class="control-label"  for="depp">Nome plural</label>
            <div class="controls">
             <input type="text" name="nomeplural" value='<?php echo ($lin['nomeplural']); ?>'>
            </div>
          </div>
                        
         <div class="control-group">
            <label class="control-label"  for="depp">Nome Singular</label>
            <div class="controls">
             <input type="text" name="nomesingular" value='<?php echo ($lin['nomesingular']); ?>'>
            </div>
          </div>
          
           <div class="control-group">
            <label class="control-label"  for="depp">Sigla Estado - aparece no nome do site na pagina inicial/rodape do e-mail</label>
            <div class="controls">
             <input type="text" name="siglaestado" value='<?php echo ($lin['siglaestado']); ?>'>
            </div>
          </div>
          
            <div class="control-group">
            <label class="control-label"  for="depp">O GUIA MAIS -> Completo do (nome do Estado)</label>
            <div class="controls">
             <input type="text" name="completodo" value='<?php echo ($lin['completodo']); ?>'>
            </div>
          </div>
          

       
          
          
            </br></br></br>   
          <div class="control-group">
            <label class="control-label"  for="depp">Google Analytics</label>
            <div class="controls">
              <textarea class="form-control" style='width:600px;height:200px' name='analytics'><?php echo ($lin['analytics']); ?></textarea>            


            </div>
          </div>
          <div class="control-group">
            <label class="control-label"  for="depp">Anúncio do Google Superior</label>
            <div class="controls">
              <textarea class="form-control" style='width:600px;height:200px' name='sup'><?php echo ($lin['sup']); ?></textarea>            


            </div>
          </div>


          <div class="control-group">
            <label class="control-label"  for="depp">Anúncio do Google Lateral</label>
            <div class="controls">
              <textarea class="form-control" style='width:600px;height:200px' name='lat'><?php echo ($lin['lat']); ?></textarea>            


            </div>
          </div>

             <div class="control-group">
            <label class="control-label"  for="depp">Anúncio do Google Inferior</label>
            <div class="controls">
              <textarea class="form-control" style='width:600px;height:200px' name='inf'><?php echo ($lin['inf']); ?></textarea>            


            </div>
          </div>




          <div class="form-actions">
            <input type="submit" class="btn btn-primary" value='Salvar' />
            <a class="btn btn-warning pull-right" href="../index.php">Voltar</a>
          </div>
        </fieldset>
      </form>


<?php include "../includes/rodape.php"; ?>
