<?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 Serviços</li>
        </ul>

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

          <div class="control-group">
            <label class="control-label" >Título</label>
            <div class="controls">
              <input type="text" class="input-xxlarge" name='titulo' >
            </div>
          </div>

           <div class="control-group">
            <label class="control-label" >Slug</label>
            <div class="controls">
              <input type="text" class="input-xxlarge" name='slug' >
            </div>
          </div>

          <div class="control-group">
            <label class="control-label" for="textarea">Conteúdo</label>
            <div class="controls">
              <textarea class="input-xxlarge" id="myArea2" name="conteudo" rows="30"></textarea>
            </div>
          </div>

          <div class="control-group">
            <label class="control-label" for="imagem">Imagem</label>
            <div class="controls">
              <input id="imagem" name='imagem' accept="image/*" 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>
      <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"; ?>
