<?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 seo WHERE id='$id'");

$lin = mysql_fetch_assoc($sql);

?>


        <ul class="breadcrumb">
          <li><a href="<?php echo sitei('ADM');  ?>">Home</a> <span class="divider">/</span></li>
          <li>Editar noticia <span class="divider">/</li>
          <li class="active"><?php echo $lin['page']; ?> </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">
            <label class="control-label"  for="depp">Página</label>
            <div class="controls">
             <input type="text" class="input-xlarge" name='pagina' value="<?php echo $lin['page']; ?>">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="depi">Título</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='titulo' value="<?php echo $lin['title']; ?>">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="deps">Descrição</label>
            <div class="controls">
              <textarea name='descricao' class="field span4" id='deps'><?php echo $lin['description']; ?></textarea>
            </div>
          </div>         
          <div class="control-group">
            <label class="control-label" for="deps">Palavra Chave</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='chave' value="<?php echo $lin['keywords']; ?>">
            </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"; ?>
