<?php
session_start();

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

  // $arr = array();
  // $sql = mysql_query("SELECT * FROM clientes_categorias");
  // while (($value = mysql_fetch_array($sql))!=false) {
  //   $arr[] = $value;
  // }
  

?>


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

 <form class="form-horizontal" method="post" action="adiciona.php"  enctype="multipart/form-data">
        <fieldset>

<!-- 
          <div class="control-group">
            <label class="control-label" for="input01">Categoria</label>
            <div class="controls">
              <select name="categoria">
                <?php foreach ($arr as $value): ?>
                  <option value="<?php echo $value['id']; ?>"><?php echo $value['titulo']; ?></option>
                <?php endforeach ?>
              </select>
            </div>
          </div> -->
                  


          <div class="control-group">
            <label class="control-label" for="input01">Nome</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='nome' id="input01">
            </div>
          </div>


      
 
  <div class="control-group">
            <label class="control-label" for="input01">Link</label>
            <div class="controls">
              <input type="text" class="input-xxlarge" name='link' id="input01">
            </div>
          </div>





          <div class="control-group">
            <label class="control-label" for="fileInput">Marca (300px X 300px)</label>
            <div class="controls">
              <input class="input-file" id="fileInput" name='imagem' type="file">
            </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">Voltar</a>
          </div>
        </fieldset>
      </form>




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