<?php
include 'header.php';
include 'erpc_departamentos_toolbar.php';
include 'connect.php';
?>


<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="form1">
<form id=validate_custom method=POST action="erpc_departamentos_ws.php" >
  <div class=block>
    <div class=header>
      <h2>Incluir Departamento</h2>
    </div>


      <div class="content controls">
  	  <div class=form-row>
          <div class=col-md-3><label>Departamento:</label></div>
          <div class=col-md-6><input required type=text name="ds_departamento" class="form-control" maxlength=50 class="validate[required]"/> </div>
        </div>
                 
      <div class="form-row">
      <div class="col-md-3"><label>Centro de Custo:</label></div>
      <div class="col-md-2">
        <div class="input-group">
          <input required type="text" id="id_centro_custo" name="id_centro_custo" class="form-control" value="<?php echo $id_centro_custo; ?>" />

          <div class="input-group-addon">
            <a href="erpc_centro_custo_helper.php" class='input-helper' data-remote="false" data-toggle="modal" data-target="#helper-modal-div" data-value="#id_centro_custo" data-description="#ds_centro_custo" data-title="Selecione:" value="<?php echo $ds_centro_custo;?>">
            <span class="fa fa-search"></span></a>
          </div>
        </div>
      </div>
      <div class="col-md-4"><input readonly name="ds_centro_custo" id="ds_centro_custo"/></div>
    </div>
       </div> 

    <div class=footer>
      <div class="side pull-right">
        <div class=btn-group>
		        <button class="btn btn-default" type="button" onClick="window.history.go(-1)" value="Voltar">Voltar</button>
            <button class="btn btn-success" type="submit" value="adicionar" name="adicionar">Adicionar</button>

		    </div>
      </div>
    </div>

  </div>
</form>

  </div>

</div>
<script type='text/javascript' src='js\jquery-3.1.1.min.js' ></script>
<script type='text/javascript' src='js\validar_form.js' ></script>
<?php include 'inc/helper_modal_div.php'; ?>
<?php include 'footer.php'; ?>
