<?php
session_start();

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

$id = $_GET['id'];


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

$lin = mysql_fetch_assoc($sql);

?>


        <ul class="breadcrumb">
          <li><a href="<?php echo sti('urlbase');  ?>ncms/">Home</a> </li>
          <li>Editar tags </li>
          <li class="active"><?php echo $lin['slug']; ?> </li>
        </ul>

 <form class="form-horizontal" method="post" action="edita.php" id='depform'  enctype="multipart/form-data">
  <input type="hidden" name="id" value="<?php echo $id ?>">
        <fieldset>
          <div class="control-group">Tag</label>
            <div class="controls">
             <input type="text" class="form-control" name='tag' value="<?php echo $lin['tag']; ?>">
            </div>
          </div>
          <div class="control-group">Slug</label>
            <div class="controls">
             <input type="text" class="form-control" name='slug' value="<?php echo $lin['slug']; ?>">
            </div>
          </div>          
          <br >

          <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"; ?>
