ok

Mini Shell

Direktori : /home/viveiroimperium/www/admin/
Upload File :
Current File : /home/viveiroimperium/www/admin/lista1.php

<?php include("includes/topo.php"); ?>

<div class="alert alert-success" id="sucesso_user" style="display:none">
  <strong>Sucesso!</strong> Informações salvas/alteradas com sucesso.
</div>   

<?php

$x=0;
$db = new DB();    
		

//FAZ A PESQUISA PARA ALTERAÇAO NO BANCO DE DADOS	
if(isset($_GET['action']) && $_GET['action']==1){
	
$sel = $db->select("UPDATE lista1 SET texto='$texto' WHERE id=1 LIMIT 1");	
	

echo '<script>$("#sucesso_user").show();</script>';
//FAZ A ALTERAÇAO NO BANCO DE DADOS		
} 
		
$sel = $db->select("SELECT * FROM lista1 WHERE id=1 LIMIT 1");
$ln = $db->expand($sel);
	
$texto = $ln['texto'];

?>



<div class="panel panel-primary">

	<div class="panel-heading">
		<h4 class="panel-title"><h4>Atualizar Números</h4></h4>
	</div>
				


<?php
//SE FOR UPDATE
if($x==1){
	echo '<form method="post" action="lista1.php?action=4" enctype="multipart/form-data">';	
	echo '<input type="hidden" name="id" value="'.$id.'">';
	
// INSERÇAO NORMAL	
} else {
	echo '<form method="post" action="lista1.php?action=1" enctype="multipart/form-data">';
}
?>
<div class="row">

	<div class="col-md-12">&nbsp;</div>
	
    <div class="col-md-12">
   

            
        <div class="col-md-12">
           <div class="form-group ">
                <textarea class="form-html"  style="height:100px" name="texto"><?php  echo $texto; ?></textarea>
           </div>
        </div> 
        
       
        
        <hr>
        
        <div class="col-md-12">
        <button type="submit" class="btn btn-primary">SALVAR</button>
        </div>   
        
        <div class="col-md-12">&nbsp;</div>
           
   </div>

</div>                            
      
</div>    

</form>

<?php include("includes/editor_texto.php"); ?>

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


Zerion Mini Shell 1.0