Mini Shell

Direktori : /home/funerariamayer/www/cms/
Upload File :
Current File : /home/funerariamayer/www/cms/alterar-parametro.php

<div class="content-wrapper">

<?
$cod_empresa = $_SESSION['cod_empresa_user'];
$cod_parametro=$_POST['cod_parametro'];
//echo $cod_parametro;


require_once('conexao.php');
$sql="select c.cod_parametro,c.parametro,c.valor,c.tmtp
      from mayer_parametros c
      where
      c.cod_parametro='$cod_parametro'
      ;";

//echo "<pre>".$sql."<pre>";
$query=mysqli_query($con,$sql);
$totitens=@mysqli_num_rows($query);
if ($totitens!="")
{
 while($row = mysqli_fetch_array($query))
 {
   $cod_parametro=$row['cod_parametro'];
   $tmtp=$row['tmtp'];
   $parametro=$row['parametro'];
   $valor=$row['valor'];

  }
}


?>
  <!-- Content Header (Page header) -->
  <section class="content-header">
    <h1>
      Vel&oacute;rios Alterar
      <small>Preview</small>
    </h1>
    
  </section>


<div class="box-body">
  <div class="row">
  <div class="col-md-4">
  <div class="form-group">
  <form name="frm_alt_parametro" action="gravar-alterar-parametro" method="POST">
  <input type="hidden" name="cod_parametro" value="<?=$cod_parametro;?>">

         <label> Parametro </label>
         <input type="text" name="parametro" value="<?=$parametro;?>" class="form-control" readonly placeholder="Enter ...">

         <label> Valor </label>
         <input type="text" name="valor" value="<?=$valor;?>" class="form-control" placeholder="Enter ...">



        <div style="padding:10px">
          <a href="gerenciar-parametro">
          <div class="btn btn-default">Cancel</div>
          </a>
          <button type="submit" class="btn btn-info pull-right">Salvar</button>
        </div>
  </form>
  </div>
  </div>
  </div>
</div>

</div>



Zerion Mini Shell 1.0