<?php
session_start();

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


$id=$_GET['id'];
$proj=$_GET['proj'];
$t=1;

$sql_img = mysql_query("SELECT * FROM imagens WHERE id = '$id'");

$lin = mysql_fetch_assoc($sql_img);


?>


        <ul class="breadcrumb">
          <li><a href="<?php echo sti('adm');  ?>">Home</a></li>
          <li class="active">Editar imagem</li>
        </ul>

 <form class="form-horizontal" method="post" action="edita.php">
        <fieldset>
          <div class="control-group">
            <label class="control-label" for="input01">Imagem</label>
            <div class="controls">
              <input type='hidden' value='<?php echo $lin['id']; ?>' name='id' />
              <input type='hidden' value='<?php echo $proj; ?>' name='proj' />
               <img width='250' src="<?php echo  sti('up').'galerias/'.''.$lin['nome'];  ?>" /><br /><br />

            </div>
          </div>

          <div class="control-group">
            <label class="control-label" for="textarea">Texto alternativo PT (alt)</label>
            <div class="controls">
              <textarea class="input-xxlarge" id="" name="alt" rows="10"><?php echo $lin['alt']; ?> </textarea>
            </div>
          </div>


          <div class="form-actions">
            <button type="submit" class="btn btn-primary">Salvar</button>
            <a class="btn btn-warning pull-right" href="index.php?id=<?php echo $proj; ?>">Voltar</a>
          </div>



        </fieldset>
      </form>

 

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