<?php
session_start();

include "../phpconfig/config.php";
include "../phpconfig/valida_login.php";
include "../phpconfig/funcoes.php";
include "../includes/topo.php"; 

$id = $_GET['id'];

// ALTEARAR NOME DO BANCO

$sql = mysql_query("SELECT * FROM info_estado WHERE id='$id'");

$lin = mysql_fetch_assoc($sql);

?>

<!--ANTIGO titulo_pt -->

        <ul class="breadcrumb">
          <li><a href="<?php echo sti('adm');  ?>">Home</a></li>
          <li>Editar noticia
          <li class="active"><?php echo $lin['cnae']; ?> </li>
        </ul>
<div class='row'>
    
    

  <div class='col-md-8'>
 <form class="form-horizontal" method="post" action="edita.php" id='depform'  enctype="multipart/form-data">

        <fieldset>


          <br/>
<?php //titulo a1
         


$arr = array(
    
    $lin['tituloa1'],
    $lin['tituloa2'],
    $lin['tituloa3'],
    $lin['tituloa4'],
    $lin['tituloa5'],
    $lin['tituloa6'],
    $lin['tituloa7'],
    $lin['tituloa8'],
    $lin['tituloa9'],
    $lin['tituloa10'],
        
    
    $lin['a1'],
    $lin['a2'],
    $lin['a3'],
    $lin['a4'],
    $lin['a5'],
    $lin['a6'],
    $lin['a7'],
    $lin['a8'],
    $lin['a9'],
    $lin['a10'],
  
  $lin['a1_2'],
  $lin['a2_2'],
  $lin['a3_2'],
  $lin['a4_2'],
  $lin['a5_2'],
  $lin['a6_2'],
  $lin['a7_2'],
  $lin['a8_2'],
  $lin['a9_2'],
  $lin['a10_2'],
  
  
  $lin['a1_link'],
    
    );
for ($i = 0; $i < count($arr); $i++) {
  $arr[$i] = str_replace("bairro1", '<span style="color:red;">bairro</span>', $arr[$i]);
  $arr[$i] = str_replace("cidade1", '<span style="color:red;">cidade</span>', $arr[$i]);
}
$tituloa1 = $arr[0];
$tituloa2 = $arr[1];
$tituloa3 = $arr[2];
$tituloa4 = $arr[3];
$tituloa5 = $arr[4];
$tituloa6 = $arr[5];
$tituloa7 = $arr[6];
$tituloa8 = $arr[7];
$tituloa9 = $arr[8];
$tituloa10 = $arr[9];

$a1 = $arr[10];
$a2 = $arr[11];
$a3 = $arr[12];
$a4 = $arr[13];
$a5 = $arr[14];
$a6 = $arr[15];
$a7 = $arr[16];
$a8 = $arr[17];
$a9 = $arr[18];
$a10 = $arr[19];

$a1_2 = $arr[20];
$a2_2 = $arr[21];
$a3_2 = $arr[22];
$a4_2 = $arr[23];
$a5_2 = $arr[24];
$a6_2 = $arr[25];
$a7_2 = $arr[26];

$a8_2 = $arr[27];
$a9_2 = $arr[28];

$a10_2 = $arr[29];



          ?>
          
          
          
          
  <div class="alert alert-info" role="alert">
  <h4 class="alert-heading">ESTADO INFO</h4>
  
  <hr>
  <!-- ID CNAE-->
  <!-- ID CNAE-->
  <!-- ID CNAE-->
  
  <p><label class="control-label" for="titulopb">ID DO ESTADO</label></p>

  <p class="mb-0">
      
  <!-- ID CNAE-->  
       <input type="text" class="input-xlarge" name='titulopb'size='45' id="titulopb" value='<?php echo $lin['info'];  ?>' ></p>
   <hr>    
   <!-- XXXXX -->      
   <!-- XXXXX -->   
   <!-- XXXXX -->
   
   
    <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
    
   
   
   <!-- NOME DO CNAE-->   
   <!-- NOME DO CNAE-->   
   <!-- NOME DO CNAE-->
    
    <p> <label class="control-label" for="titulop">NOME DO ESTADO</label></p>
       
    <!-- NOME DO CNAE-->  
       
    <p>
           
       <input type="text" class="input-xlarge" name='titulop'size='45' id="titulop" value='<?php echo $lin['cnae'];  ?>' >
           
           

  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  
  
  
  
    <!-- CONTADOR  -->
  <!-- CONTADOR  -->
  <!-- CONTADOR  -->
  <!-- CONTADOR  -->
  <!-- CONTADOR  -->
  <!-- CONTADOR  -->
  
 <hr>        
 </p>
 
 <?php   include "../info_estado/contador/contador_geral.php"; ?>
 <hr>   
 <p>
        
 <?php   include "../info_estado/contador/contador_cnae.php"; ?><br/>
 <hr> 
 <?php  $total1 = $row1["total"];
$total2 = $row["total"];
$percent = ($total2 / $total1) * 100;

$percent_formatted = number_format($percent, 2) . '%';
echo $percent_formatted; // exibe 98.94%
  ?>
  

  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
  
  
 <hr>  
      <label class="control-label"  for="nome">ATIVAR ESTADO</label></label>
      
    </p>
      
      <input type="checkbox"  <?php  if($lin['ativo']==1) { echo 'checked'; }  ?>  name='ativo' >
      
    </p>
      
  <hr>
  
       
</div>

    <!-- XXXXX -->
    <!-- XXXXX -->
    <!-- XXXXX -->

  <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->


  <!-- ANTIGO slug - mdelo para passar id (nao sei onde aparece, so sei que se retirar nao funciona-->
  
 
       <input type="hidden" class="input-xlarge" name='id' size='45' id="id" value='<?php echo $lin['id'];  ?>' >
   
   
   <br/>     
   
   <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->  
   
   
         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info"><h5 class="alert-heading">PAINEL DE NAVEGACAO</a></h5> 
    <hr>
 
 
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 
  
  
  
  
  
  
  

<h4 id="1"></h4>

 <div class="alert alert-info" role="alert">

        
  
  <br/><br/>      
 <h4 class="alert-heading">MODELO A1</h4>
 <!-- a1-->
          <!-- a1-->
          <!-- a1-->
          <!-- a1-->
          <!-- a1-->
          <!-- a1-->
 
<!-- tituloa1-->                
 
 
       
<label class="control-label" for="tituloa1">tituloa1</label>

<textarea name='tituloa1' id="myArea2" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa1']; ?></textarea>

<!-- a1-->                



<label class="control-label" for="aa1">a1</label>

<textarea name='aa1' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a1']; ?></textarea>

<!-- a1_2-->
<label class="control-label" for="aa1">a1_2</label>

<textarea name='aa1_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a1_2']; ?></textarea>



<!-- a1 link -->                



<label class="control-label" for="aa1_link">a1_link</label>

<textarea name='aa1_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a1_link']; ?></textarea>



         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">
    <hr>
 
  <a class="btn btn-danger btn-sm" href="<?php echo $lin['a1_link']; ?>" target="_blank">SITE A1</a>
 
 <a class="btn btn-success btn-sm" href="#1">1</a>

  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 
</div>











<div class="alert alert-info" role="alert">

 <h4 id="2"></h4>
 <br/><br/>         
 <h4 class="alert-heading">MODELO A2</h4>
          <!-- a2-->
          <!-- a2-->
          <!-- a2-->
          <!-- a2-->
          <!-- a2-->
          <!-- a2-->
 
<!-- tituloa2-->                
       
<label class="control-label" for="tituloa1">tituloa2</label>

<textarea name='tituloa2' id="myArea2" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa2']; ?></textarea>

<!-- a2-->                

<label class="control-label" for="aa2">a2</label>

<textarea name='aa2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a2']; ?></textarea>
    
<!-- a2_2-->
<label class="control-label" for="aa2">a2_2</label>

<textarea name='aa2_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a2_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
 <!-- a1 link -->                



<label class="control-label" for="aa2_link">a2_link</label>

<textarea name='aa2_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a2_link']; ?></textarea>

         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a2_link']; ?>" target="_blank">SITE A2</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->


</div>
 <div class="alert alert-info" role="alert">
<h4 id="3"></h4>
 <h4 class="alert-heading">MODELO A3</h4>
<!--a3-->
<!--a3-->
<!--a3-->
<!--a3-->
<!--a3-->
<!--a3-->

<hr>
<br/><br/>
    <!-- tituloa3-->                
       
<label class="control-label"  for="tituloa3">tituloa3</label>

<textarea name='tituloa3' id="myArea2" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa3']; ?></textarea>

 
<!--a3-->        
      
<label class="control-label"  for="aa3">a3</label>

<textarea name='aa3' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a3']; ?></textarea>

       
<!--a3-->

<!-- a3_2-->
<label class="control-label" for="aa3">a3_2</label>

<textarea name='aa3_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a3_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     


<!-- a3 link -->                



<label class="control-label" for="aa3_link">a3_link</label>

<textarea name='aa3_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a3_link']; ?></textarea>

         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a3_link']; ?>" target="_blank">SITE A3</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->

</div>
 <div class="alert alert-info" role="alert">
 

<h4 id="4"></h4>
 <h4 class="alert-heading">MODELO A4</h4>
<br/><br/>


          <!-- a4-->
          <!-- a4-->
          <!-- a4-->
          <!-- a4-->
          <!-- a4-->
          <!-- a4-->
 
<!-- tituloa4-->                
       
<label class="control-label" for="tituloa1">tituloa4</label>

<textarea name='tituloa4' id="myArea4" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa4']; ?></textarea>

<!-- a1-->                

<label class="control-label" for="aa4">a4</label>

<textarea name='aa4' id="myArea4" cols='20' style='width:700px' rows='5'><?php echo $lin['a4']; ?></textarea>
    
<!-- a4_2-->
<label class="control-label" for="aa4">a4_2</label>

<textarea name='aa4_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a4_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
<!-- a4 link -->                



<label class="control-label" for="aa4_link">a4_link</label>

<textarea name='aa4_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a4_link']; ?></textarea>
 
 
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a4_link']; ?>" target="_blank">SITE A4</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 
 </div>
 <div class="alert alert-info" role="alert">


 
 <h4 id="5"></h4>
  <h4 class="alert-heading">MODELO A5</h4>
 
 
           <!-- a5-->
          <!-- a5-->
          <!-- a5-->
          <!-- a5-->
          <!-- a5-->
          <!-- a5-->
 
<!-- tituloa5-->                
       
<label class="control-label" for="tituloa1">tituloa5</label>

<textarea name='tituloa5' id="myArea5" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa5']; ?></textarea>

<!-- a5-->                

<label class="control-label" for="aa5">a5</label>

<textarea name='aa5' id="myArea5" cols='20' style='width:700px' rows='5'><?php echo $lin['a5']; ?></textarea>
    
<!-- a5_2-->
<label class="control-label" for="aa5">a5_2</label>

<textarea name='aa5_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a5_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
<!-- a5 link -->                



<label class="control-label" for="aa1_link">a5_link</label>

<textarea name='aa5_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a5_link']; ?></textarea>
 
 
 
 
           <!-- a6-->
          <!-- a6-->
          <!-- a6-->
          <!-- a6-->
          <!-- a6-->
          <!-- a6-->
 
<!-- tituloa6-->                
       
       
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a5_link']; ?>" target="_blank">SITE A5</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->      
       
      </div>
      
  <h4 id="6"></h4>    
 
  
 <div class="alert alert-info" role="alert">
   <h4 class="alert-heading">MODELO A6</h4>
       
<label class="control-label" for="tituloa1">tituloa6</label>

<textarea name='tituloa6' id="myArea6" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa6']; ?></textarea>

<!-- a6-->                

<label class="control-label" for="aa6">a6</label>

<textarea name='aa6' id="myArea6" cols='20' style='width:700px' rows='5'><?php echo $lin['a6']; ?></textarea>
    
<!-- a6_2-->
<label class="control-label" for="aa1">a6_2</label>

<textarea name='aa6_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a6_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
<!-- a6 link -->                



<label class="control-label" for="aa6_link">a6_link</label>

<textarea name='aa6_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a6_link']; ?></textarea>
 
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a6_link']; ?>" target="_blank">SITE A6</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 
 </div>
 <div class="alert alert-info" role="alert">
 
<h4 id="7"></h4>
  <h4 class="alert-heading">MODELO A7</h4>
 
 
           <!-- a7-->
          <!-- a7-->
          <!-- a7-->
          <!-- a7-->
          <!-- a7-->
          <!-- a7-->
 
<!-- tituloa7-->                
       
<label class="control-label" for="tituloa1">tituloa7</label>

<textarea name='tituloa7' id="myArea7" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa7']; ?></textarea>

<!-- a7-->                

<label class="control-label" for="aa7">a7</label>

<textarea name='aa7' id="myArea7" cols='20' style='width:700px' rows='5'><?php echo $lin['a7']; ?></textarea>
    
<!-- a7_2-->
<label class="control-label" for="aa1">a7_2</label>

<textarea name='aa7_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a7_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
<!-- a7 link -->                



<label class="control-label" for="aa7_link">a7_link</label>

<textarea name='aa7_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a7_link']; ?></textarea>
 
         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a7_link']; ?>" target="_blank">SITE A7</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
 
 </div>
 <div class="alert alert-info" role="alert">

<h4 id="8"></h4>
  <h4 class="alert-heading">MODELO A8</h4>
 
 
 
           <!-- a8-->
          <!-- a8-->
          <!-- a8-->
          <!-- a8-->
          <!-- a8-->
          <!-- a8-->
 
<!-- tituloa8-->                
       
<label class="control-label" for="tituloa1">tituloa8</label>

<textarea name='tituloa8' id="myArea8" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa8']; ?></textarea>

<!-- a8-->                

<label class="control-label" for="aa8">a8</label>

<textarea name='aa8' id="myArea8" cols='20' style='width:700px' rows='5'><?php echo $lin['a8']; ?></textarea>
    
<!-- a8_2-->
<label class="control-label" for="aa1">a8_2</label>

<textarea name='aa8_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a8_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->     
 
 <!-- a8 link -->                



<label class="control-label" for="aa8_link">a8_link</label>

<textarea name='aa8_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a8_link']; ?></textarea>
 
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a8_link']; ?>" target="_blank">SITE A8</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 </div>
 <div class="alert alert-info" role="alert">
 
<h4 id="9"></h4>
  <h4 class="alert-heading">MODELO A9</h4>
 
 
          <!-- a9-->
          <!-- a9-->
          <!-- a9-->
          <!-- a9-->
          <!-- a9-->
          <!-- a9-->
 
<!-- tituloa9-->                
       
<label class="control-label" for="tituloa1">tituloa9</label>

<textarea name='tituloa9' id="myArea9" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa9']; ?></textarea>

<!-- a9-->                

<label class="control-label" for="aa9">a9</label>

<textarea name='aa9' id="myArea9" cols='20' style='width:700px' rows='5'><?php echo $lin['a9']; ?></textarea>
    
<!-- a9_2-->
<label class="control-label" for="aa1">a9_2</label>

<textarea name='aa9_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a9_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->          
 
<!-- a9 link -->                



<label class="control-label" for="aa9_link">a9_link</label>

<textarea name='aa9_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a9_link']; ?></textarea>
 
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a9_link']; ?>" target="_blank">SITE A9</a>
 
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
 
 </div>
 <div class="alert alert-info" role="alert">
 
<h4 id="10"></h4>
 <h4 class="alert-heading">MODELO A10</h4> 
 
          <!-- a10-->
          <!-- a10-->
          <!-- a10-->
          <!-- a10-->
          <!-- a10-->
          <!-- a10-->
 
<!-- tituloa10-->                
       
<label class="control-label" for="tituloa1">tituloa10</label>

<textarea name='tituloa10' id="myArea10" cols='20' style='width:700px' rows='1'><?php echo $lin['tituloa10']; ?></textarea>

<!-- a10-->                

<label class="control-label" for="aa10">a10</label>

<textarea name='aa10' id="myArea10" cols='20' style='width:700px' rows='5'><?php echo $lin['a10']; ?></textarea>
    
<!-- a10_2-->
<label class="control-label" for="aa1">a10_2</label>

<textarea name='aa10_2' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a10_2']; ?></textarea>
    
<!-- XXXXXXXXXXX -->       
 
<!-- a10 link -->                



<label class="control-label" for="aa10_link">a10_link</label>

<textarea name='aa10_link' id="myArea2" cols='20' style='width:700px' rows='5'><?php echo $lin['a10_link']; ?></textarea>
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
          <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
   <a class="btn btn-danger btn-sm" href="<?php echo $lin['a10_link']; ?>" target="_blank">SITE A10</a>
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
  




</div>
                
       
 <!-- linha_c15_10-->         
 
 
 <!-- linha_c15_1-->    
 
 <!-- linha-->  
    <!-- linha-->        
    <!-- linha-->
    <!-- linha-->  
    <!-- linha-->        
    <!-- linha--> 
    <!-- linha-->  
    <!-- linha-->        
    <!-- linha-->  
    <!-- linha-->  
    <!-- linha-->        
    <!-- linha-->    
  
  <br/><br/>
  
  <?php 
  
$br = '';
if (!empty($textoa1_2)) {
$br = '<br/><br/>';
}

$br1 = '';
if (!empty($textoa2_2)) {
$br1 = '<br/><br/>';
}

$br2 = '';
if (!empty($textoa3_2)) {
$br2 = '<br/><br/>';
}

$br3 = '';
if (!empty($textob1_2)) {
$br3 = '<br/><br/>';
}

$br4 = '';
if (!empty($textob2_2)) {
$br4 = '<br/><br/>';
}

$br5 = '';
if (!empty($textob3_2)) {
$br5 = '<br/><br/>';
}

$br6 = '';
if (!empty($textoc1_2)) {
$br6 = '<br/><br/>';
}

$br7 = '';
if (!empty($textoc2_2)) {
$br7 = '<br/><br/>';
}

$br8 = '';
if (!empty($textoc3_2)) {
$br8 = '<br/><br/>';
}
?>




<h4 id="CONFERENCIA"></h4>



<div class="alert alert-info" role="alert">
  <h4 class="alert-heading">CONFERENCIA</h4>
 <br/><br/>  
<p>
    
<a class="btn btn-warning"  data-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample">
    CONFERENCIA </a>
 <hr>   
</p>
<div class="collapse" id="collapseExample">
  <div class="card card-body">





 
<?php   echo '




 <h4 class="alert-heading">MODELO A1</h4><h3 span style="color: #0074bc;"><span>' . $tituloa1 . '</span></h3>
      <div <span style="color: #000; ">' . $a1 . '<br/><br/></div>
      
          <div <span style="color: #000; ">' . $a1_2 . '</div>
 <hr>   

<h4 class="alert-heading">MODELO A2</h4><h3 span style="color: #0074bc;"><span>' . $tituloa2 . '</span></h3>
      <div <span style="color: #000; ">' . $a2 . '<br/><br/></div>
      
         <div <span style="color: #000; ">' . $a2_2 . '</div>
       <hr>   
      

 <h4 class="alert-heading">MODELO A3</h4><h3 span style="color: #0074bc;"><span>' . $tituloa3 . '</span></h3>
      <div <span style="color: #000; ">' . $a3 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a3_2 . '</div>
      
 <hr>         
       <h4 class="alert-heading">MODELO A4</h4><h3 span style="color: #0074bc;"><span>' . $tituloa4 . '</span></h3>
      <div <span style="color: #000; ">' . $a4 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a4_2 . '</div>
      
  <hr>        
       <h4 class="alert-heading">MODELO A5</h4><h3 span style="color: #0074bc;"><span>' . $tituloa5 . '</span></h3>
      <div <span style="color: #000; ">' . $a5 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a5_2 . '</div>
      
 <hr>         
       <h4 class="alert-heading">MODELO A6</h4><h3 span style="color: #0074bc;"><span>' . $tituloa6 . '</span></h3>
      <div <span style="color: #000; ">' . $a6 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a6_2 . '</div>
 <hr>         
      
       <h4 class="alert-heading">MODELO A7</h4><h3 span style="color: #0074bc;"><span>' . $tituloa7 . '</span></h3>
      <div <span style="color: #000; ">' . $a7 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a7_2 . '</div>
  <hr>        
      
       <h4 class="alert-heading">MODELO A8</h4><h3 span style="color: #0074bc;"><span>' . $tituloa8 . '</span></h3>
      <div <span style="color: #000; ">' . $a8 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a8_2 . '</div>
      
  <hr>        
       <h4 class="alert-heading">MODELO A9</h4><h3 span style="color: #0074bc;"><span>' . $tituloa9 . '</span></h3>
      <div <span style="color: #000; ">' . $a9 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a9_2 . '</div>
      
 <hr>         
       <h4 class="alert-heading">MODELO A10</h4><h3 span style="color: #0074bc;"><span>' . $tituloa10 . '</span></h3>
      <div <span style="color: #000; ">' . $a10 . '<br/><br/></div>
         <div <span style="color: #000; ">' . $a10_2 . '</div>
      

      
      ';?>
      <br/><br/>
     

</div>

</div>
         <!-- PAINEL DE NAVEGACAO  -->
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         <!-- PAINEL DE NAVEGACAO  -->  
         
           
<nav id="navbar-example2" >
    
  
        
    <ul class="alert alert-info">

 
 
 
  <a class="btn btn-success btn-sm" href="#1">1</a>
  <a class="btn btn-success btn-sm" href="#2">2</a>
  <a class="btn btn-success btn-sm" href="#3">3</a>
  <a class="btn btn-success btn-sm" href="#4">4</a>
  <a class="btn btn-success btn-sm" href="#5">5</a>
  <a class="btn btn-success btn-sm" href="#6">6</a>
  <a class="btn btn-success btn-sm" href="#7">7</a>
  <a class="btn btn-success btn-sm" href="#8">8</a>
  <a class="btn btn-success btn-sm" href="#9">9</a>
  <a class="btn btn-success btn-sm" href="#10">10</a>
  
    <a class="btn btn-success btn-sm" href="#CONFERENCIA">CONFERENCIA</a>  
   
            
    <a class="btn btn-danger btn-sm" href="#SALVAR1">SALVAR</a> 
 
    </li>
 

</nav>

<div data-spy="scroll" data-target="#navbar-example2" data-offset="0">

</div>

               
               
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> 
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
     <!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->


<div class="collapse" id="collapseExamplec6">
  <div class="card card-body">


      
<br/>




 </div>
</div>
      
      

<!-- SALVAR -->
<!-- SALVAR -->
<!-- SALVAR -->
<!-- SALVAR -->
<!-- SALVAR -->
<!-- SALVAR -->

          <h4 id="SALVAR1"></h4>
          
          
     <br/>
 
</div>
<div class="jumbotron">
  <h2 class="display-4">SEJA UM OBSTINADO!</h2>
  <p class="lead">Nunca desista dos seus sonhos</p>
  <hr class="my-4">
  <p>Quem descansa são os fracos! De o seu maximo!</p>
 
   <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>
</div>



<div class='col-md-4'>

              
</div>
</div>




 <script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
    <script type="text/javascript">
      //<![CDATA[
      var area1;

      function toggleArea1() {
      
            area1 = new nicEditor({fullPanel : true}).panelInstance('myArea2',{hasPanel : true});

      }


      bkLib.onDomLoaded(function() { 
      
          new nicEditor({buttonList : ['fontFormat','bold','italic','underline','strikeThrough','subscript','superscript','html','image','link','ul']}).panelInstance('myArea2');
      
      toggleArea1(); 

    });

     
       $("#estados").change(function(){
        var uf = $("#estados").val();

    $.ajax({   
      url: "retCidades.php?uf="+uf,
      type: 'GET',
      beforeSend: function() {    


      },
    success: function(data)
    {
 
        $('#retc').html(data);  
        $("#uf").val(uf);
 
    }
  });

      });


       function aha(){

        var uf = $("#estados").val();

    $.ajax({   
      url: "retCidades.php?uf="+uf,
      type: 'GET',
      beforeSend: function() {    


      },
    success: function(data)
    {
 
        $('#retc').html(data);  
        $("#uf").val(uf);

 
    }
  });


       }
 $("#cidade").val('<?php  echo $id_cidade;  ?>');

//aha();
      </script>

 

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