<?php include('fncr-geral/configuracao_geral.php');
$pagina = "mybd";


// Cadastrando Novo Cliente
if(isset($_POST['gerar']) && $_POST['gerar'] == 'sql') {

  /*
  include 'scripts/db_sql.php';
  $bd_sql = new DBBackup(array(
    'driver' => 'mysql',
    'host' => $host_bd,
    'user' => $fncr_bd_usuario,
    'password' => $fncr_bd_senha,
    'database' => 'fncr'
  ));
  $backup = $bd_sql->backup();
  if(!$backup['error']){
    // If there isn't errors, show the content
    // The backup will be at $var['msg']
    // You can do everything you want to. Like save in a file.
    // $fp = fopen('file.sql', 'a+');fwrite($fp, $backup['msg']);fclose($fp);
    echo nl2br($backup['msg']);
  } else {
    echo 'An error has ocurred.';
  }
  */

}

?>
<!DOCTYPE html>
<html lang="pt-br">
<head>

  <?php include('fncr-geral/html-head.php');?>

<style>
  input[type=checkbox] {
    visibility: hidden;
  }
</style>

</head>
<body>

  <!-- BARRA SUPERIOR -->
  <?php include('barra-sup.php');?>
  <!-- MENU PRINCIPAL -->
  <?php include('menu.php');?>

<section id="content">

<div class="clearfix padder bg-fncr-clearfix">
<h3 class="m-b">Gerar Arquivo .SQL (zpadrao)</h3>
</div>

<section id="content" class="content-sidebar bg-white">
<section class="main">

<!-- MENSAGENS DE ALERTA -->
<?php include('fncr-geral/mensagens.php');?>

  <form class="form-horizontal" method="post" action="" data-validate="parsley" enctype="multipart/form-data">
  <input type="hidden" name="gerar" value="sql" />
    <div class="col-sm-12 text-center" style="padding: 25px 0 40px 0">
        <button type="submit" class="btn btn-primary">Gerar</button>
    </div>
  </form>

  <div class="col-sm-6"><?if(isset($cod_completo)){echo $cod_completo;}?></div>

</section>
</section>
</section>

<!-- FOOTER -->
<?php include('footer.php');?>

<!-- app -->
<script src="js/app.js"></script>
<script src="js/app.plugin.js"></script>
<script src="js/app.data.js"></script>
<!-- fuelux -->
<script src="js/fuelux/fuelux.js"></script>
<!-- datepicker -->
<script src="js/datepicker/bootstrap-datepicker.js"></script>
<!-- slider -->
<script src="js/slider/bootstrap-slider.js"></script>
<!-- file input -->
<script src="js/file-input/bootstrap.file-input.js"></script>
<!-- combodate -->
<script src="js/combodate/moment.min.js"></script>
<script src="js/combodate/combodate.js"></script>
<!-- parsley -->
<script src="js/parsley/parsley.min.js"></script>
<!-- select2 -->
<script src="js/select2/select2.min.js"></script>

</body>
</html>
<?php $bd = null; $bd_fn = null;?>