<?php
session_start();

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

?>


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

 <form class="form-horizontal" method="post" action="adiciona.php" id='bannerform' enctype="multipart/form-data">
        <fieldset>
          <div class="control-group">
            <label class="control-label" for="titulop">Título</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='titulop'size='45' id="titulop">
            </div>
          </div>
       <!--    <div class="control-group">
            <label class="control-label" for="tituloi">Título Inlgês</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='tituloi'size='45' id="tituloi">
            </div>
          </div>
        -->
           <div class="control-group">
            <label class="control-label" for="tituloe">Descricao</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='descricao' id="tituloe">
            </div>
          </div> 

  <!--             <div class="control-group">
            <label class="control-label" for="textarea">Texto</label>
            <div class="controls">
              <textarea class="input-xxlarge" id="myArea2" name="texto" rows="30"></textarea>
            </div>
          </div>
 -->
          <div class="control-group">
            <label class="control-label" for="link">Link</label>
            <div class="controls">
              <input type="text" class="input-xlarge" name='link' id="link">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="imagem">Imagem</label>
            <div class="controls">
              <input class="input-file required" id="imagem" name='imagem' accept="image/*" type="file">
            </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>

         <script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
    <script type="text/javascript">
      //<![CDATA[
      var area1;

      function toggleArea1() {
      
            area1 = new nicEditor({fullPanel : true}).panelInstance('myArea2',{hasPanel : true});

      }


      bkLib.onDomLoaded(function() { 
      
          new nicEditor({buttonList : ['fontFormat','bold','italic','underline','strikeThrough','subscript','superscript','html','image','link','ul']}).panelInstance('myArea2');
      
      toggleArea1(); });

      //]]>
      </script>




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