<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Markup
  </title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.231.17.1">
  <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.231.17.1">
  <link rel="stylesheet" href="dist/css/custom.css?versao=3.231.17.1">
  <link rel="stylesheet" href="dist/css/sisplan.css?versao=3.231.17.1">
  <!-- <link rel="stylesheet" type="text/css" href="plugins/datatables-keytable/css/keyTable.bootstrap4.min.cs?versao=3.231.17.1"> -->
  <link rel="stylesheet" href="plugins/toastr/toastr.min.css?versao=3.231.17.1">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.231.17.1">
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.231.17.1" />
  <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.231.17.1">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <link rel="stylesheet" href="plugins/select2/css/select2.min.css?versao=3.231.17.1">
  <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=3.231.17.1">
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css?versao=3.231.17.1">

</head>
<style>
  #msform {
    text-align: start;
    position: relative;
  }

  .card {
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
  }

  .card-header {
    box-shadow: 0px 1px rgb(0 0 0 / 20%) !important;
  }

  .fa-angle-right,
  .fa-angle-down {
    color: #343a40;
  }

  .card-body {
    margin-left: 0px !important;
    padding-left: 1.25rem !important;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-right: 1.25rem !important;
  }

  .header-content-page .title-page,
  .title-content-page .title,
  .title-page {
    font-size: 20px;
    line-height: normal;
    font-weight: 500;
    color: #343a40;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
  }

  #DadosGerais>.card,
  #obs>.card {
    background: #f7f7f7;
  }

  .radiosStyle {
    padding-top: 0.5rem;
    border: solid #e0e4e6;
    border-radius: 4px;
    border-width: 2px;
    margin-left: 0%;
  }

  .radiosStyle2 {
    padding-top: 0.5rem;
    border: solid #e0e4e6;
    border-radius: 4px;
    border-width: 2px;
  }

  .bordaProduto {
    padding: 10px;
    border: solid #e0e4e6;
    border-radius: 4px;
    border-width: 2px;
  }

  .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    float: left;
  }

  .border-Field .textoBorda {
    font-size: 1.1em !important;
    text-align: left !important;
    width: auto;
    padding: 0 10px;
    border-bottom: none;
  }

  .border-Field {
    border: 1px solid #fff !important;
    padding: 0 1.0em 1.0em 1.0em !important;
    margin: 0 0 1.0em 0 !important;
    -webkit-box-shadow: 0px 0px 0px 0px #000;
    box-shadow: 0px 0px 0px 0px #000;
  }

  #tabelaIndice_length {
    display: none;
  }

  #tabelaIndice_filter {
    display: none;
  }

  #tabelaIndice_info {
    display: none;
  }

  #tabelaTributacao_length {
    display: none;
  }

  #tabelaTributacao_filter {
    display: none;
  }

  #tabelaTributacao_info {
    display: none;
  }
</style>

<body class="hold-transition sidebar-mini layout-fixed">
  <main class="wrapper">

    <?php
    include_once('../../../menu.php');
    ?>

    <div class="content-wrapper">
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <h3 class="col-mb-2"></h3>
            </div>
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="./index">Início</a></li>
                <li class="breadcrumb-item active">Markup</li>
              </ol>
            </div>
          </div>
          <div class="row">
            <div class="col-12">
              <div class="card" style="height:auto;">
                <div class="card-header bg-dark">
                  <div class="row flex">
                    <div class="col-sm-12 card-body">
                      <nav>
                        <div class="nav nav-tabs justify-content-start" id="nav-tab" role="tablist" style="text-decoration: none">
                          <a class="nav-link abaLink" id="tabCadIndices" data-toggle="tab" href="#divCadIndices" role="tab" aria-controls="divCadIndices" aria-selected="false">Cadastro de índices</a>
                          <a class="nav-link abaLink" id="tabCadMarkup" data-toggle="tab" href="#divCadMarkup" role="tab" aria-controls="divCadMarkup" aria-selected="true">Cadastro Markup</a>
                          <a class="nav-link abaLink" id="tabCadTributacao" data-toggle="tab" href="#divCadTributacao" role="tab" aria-controls="divCadTributacao" aria-selected="false">Tributação</a>
                          <button title="Tutorial" class="btn btn-info btn-sm ml-2" id="tutorial"><i class="fas fa-question-circle"></i></button>
                        </div>
                      </nav>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="tab-content" id="nav-tabContent">
            <div class="tab-pane fade d-none" id="divCadIndices" role="tabpanel" aria-labelledby="tabCadIndices">
              <div class="card-body" style="padding-left: 0rem!important; padding-right: 0rem!important;">
                <div class="collapse show" id="DadosGerais">
                  <div class="card card-body" style="padding-top: 10px;">
                    <div class="form-row bordaProduto">
                      <div class="col-4 col-lg-4">
                        <label for="txtIndice">Índice: *</label>
                        <div class="input-group">
                          <input type="text" class="input-default focus form-control" aria-describedby="ufError" id="txtIndice" name="txtIndice" class="form-control" placeholder="Índice">
                          <div class="input-group-append">
                            <button class="btn bg-danger" id="btnIndice" name="btnIndice" data-button="absolute" type="button">
                              <i class="m-0 p-0 fas fa-search"></i>
                            </button>
                            <button class="btn bg-danger" id="btnLimpaIndice" type="button">
                              <i class="m-0 p-0 fas fa-trash"></i>
                            </button>
                          </div>
                        </div>
                      </div>
                      <div class="form-group col-md-2 col-2">
                        <label for="selectTipoIndice">Tipo</label>
                        <div class="relative">
                          <select id="selectTipoIndice" class="input-default focus form-control validate" required="required" name="selectTipoIndice">
                            <option value="0 - INDICE" selected>0 - INDICE</option>
                            <option value="1 - MRG_LUCRO">1 - MRG_LUCRO</option>
                            <option value="2 - ICMS">2 - ICMS</option>
                            <option value="3 - COMISSAO">3 - COMISSAO</option>
                            <option value="4 - FRETE">4 - FRETE</option>
                            <option value="5 - PIS">5 - PIS</option>
                            <option value="6 - COFINS">6 - COFINS</option>
                            <option value="7 - IPI">7 - IPI</option>
                            <option value="8 - D_VENDAS">8 - D_VENDAS</option>
                            <option value="9 - CUSTO_IND">9 - CUSTO_IND</option>
                            <option value="10 - FINANC">10 - FINANC</option>
                            <option value="11 - MARKET">11 - MARKET</option>
                            <option value="12 - CONTR_S">12 - CONTR_S</option>
                            <option value="13 - IRPJ">13 - IRPJ</option>
                          </select>
                        </div>
                      </div>
                      <div class="col-md-12 col-12 table-responsive" style="margin-top: 5px; width:100%;">
                        <table id="tabelaIndice" style="width:100%;" class="table table-sm table-condensed">
                          <thead>
                            <th>Código</th>
                            <th>Descrição</th>
                            <th>Tipo</th>
                            </tr>
                          </thead>
                          <tbody>
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="modal-footer">
                      <button type="button" id="btnExcluirIndice" class="btn btn-sisp bg-gradient-danger">Excluir</button>
                      <!-- <button type="button" id="btnIncluirIndice" class="btn btn-sisp bg-gradient-success">Incluir</button> -->
                      <button type="button" id="btnGravarIndice" class="btn btn-sisp bg-gradient-primary">Gravar</button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="tab-content" id="nav-tabContent">
            <div class="tab-pane fade" id="divCadMarkup" role="tabpanel" aria-labelledby="tabCadMarkup">
              <div class="card-body" style="padding-left: 0rem!important; padding-right: 0rem!important;">
                <div class="collapse show" id="DadosGerais">
                  <div class="card card-body" style="padding-top: 10px;">
                    <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="dados-tab">
                      <label for="divGeral">Dados Regra</label>
                      <div class="form-row bordaProduto" id="divGeral">
                        <div class="col-md-8 col-12">
                          <div class="form-row">
                            <div class="form-group col-md-6 col-12" id="codigoInfoTour">
                              <label for="txtCodigo">Código *</label>
                              <div class="relative">
                                <input type="text" autocomplete="off" readonly placeholder="Preenchimento automático" class="input-default focus form-control validate" pattern="[0-9]+$" id="txtCodigo" name="txtCodigo">
                              </div>
                            </div>
                            <div class="form-group col-md-6 col-12" id="descricaoInfoTour">
                              <label for="txtDescricao">Descrição *</label>
                              <div class="relative">
                                <input type="text" autocomplete="off" placeholder="Descrição" class="input-default focus form-control validate" required="required" pattern="[0-9]+$" id="txtDescricao" name="txtDescricao">
                              </div>
                            </div>
                          </div>
                          <div class="form-row">
                            <div class="col-12 col-lg-12">
                              <label for="txtTabelaPreco">Tabela de Preço *</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" aria-describedby="ufError" id="txtTabelaPreco" name="txtTabelaPreco" class="form-control" placeholder="Tabela de preço">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnTabelaPreco" name="btnTabelaPreco" data-button="absolute" type="button">
                                    <i class="m-0 p-0 fas fa-search"></i>
                                  </button>
                                  <button class="btn bg-danger" id="btnATabelaPreco" type="button">
                                    <i class="m-0 p-0 fas fa-trash"></i>
                                  </button>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-row" style="margin-top: 2%">
                            <div class="col-lg-6  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="dataIni">Data
                                inicial *</label>
                              <div class="input-group">
                                <input type="date" class="input-default focus form-control" id="dataIni" name="dataIni" class="form-control">
                              </div>
                            </div>
                            <div class="col-lg-6  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="dataFim">Data
                                final *</label>
                              <div class="input-group">
                                <input type="date" class="input-default focus form-control" id="dataFim" name="dataFim" class="form-control">
                              </div>
                            </div>
                          </div>
                          <div class="form-row d-none">
                            <div class="col-lg-6  col-12 form-group">
                              <div class="labelDep">
                                <b>
                                  <p class="labelGeral">Preço</p>
                                </b>
                                <div style="margin-top: -3.5%" class="radiosStyle">
                                  <label class="container">
                                    <input type="radio" id="checkTodos" checked name="preco">
                                    <label for="checkTodos">   Todos</label>
                                    <span class="checkmark"></span>
                                  </label>
                                  <br>
                                  <label class="container">
                                    <input type="radio" id="checkPreco" name="preco">
                                    <label for="checkPreco">   Com preço</label>
                                    <span class="checkmark"></span>
                                  </label>
                                  <br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <label for="divBusca" style="margin-top: 25px;">Buscar Produto</label>
                      <div class="form-row bordaProduto" id="divBusca">
                        <div class="form-group col-md-4 col-12">
                          <label for="selectConsiderar">Descrição do produto</label>
                          <div class="relative">
                            <select id="selectConsiderar" class="input-default focus form-control validate" required="required" name="selectConsiderar">
                              <option value="1" selected>Considerar</option>
                              <option value="0">Desconsiderar</option>
                            </select>
                          </div>
                        </div>
                        <div class="form-group col-md-4 col-12" id="descricaoProdInfoTour">
                          <label for="txtDescricaoProduto">Descrição</label>
                          <div class="relative">
                            <input type="text" autocomplete="off" placeholder="Descrição produto" class="input-default focus form-control validate" pattern="[0-9]+$" id="txtDescricaoProduto" name="txtDescricaoProduto">
                          </div>
                        </div>
                        <div class="form-group col-md-2 col-12" id="descricaoProdInfoTour">
                          <label for="txtPrecoProduto">Preço</label>
                          <div class="relative">
                            <input type="text" value="0.00" class="input-default focus form-control validate" placeholder="Preço" pattern="[0-9]+$" id="txtPrecoProduto" name="txtPrecoProduto">
                          </div>
                        </div>
                        <div class="form-group col-md-2 col-12" id="descricaoProdInfoTour" style="padding-top: 29px">
                          <button class="btn bg-danger btn-block" id="btnCarregar" name="btnCarregar" data-button="absolute" type="button">
                            <label class="m-0 p-0">Carregar</label>
                          </button>
                        </div>
                      </div>
                      <label for="divProduto" style="margin-top: 25px;">Incluir produto</label>
                      <div class="form-row bordaProduto" id="divProduto">
                        <div class="row mb-2" style="width: 100%;">
                          <div class="col-12 col-lg-4">
                            <div class="input-group">
                              <select class="js-example-programmatic js-states form-control" id="txtProduto" name="txtProduto" multiple="multiple">
                              </select>
                              <div class="input-group-append" style="align-self: baseline;">
                                <button class="btn bg-danger" id="btnProduto" name="btnProduto" data-button="absolute" type="button">
                                  <i class="m-0 p-0 fas fa-search"></i>
                                </button>
                                <button class="btn bg-danger" id="btnAProduto" type="button">
                                  <i class="m-0 p-0 fas fa-trash"></i>
                                </button>
                              </div>
                            </div>
                          </div>
                          <div class="col-12 col-lg-4">
                            <div class="input-group">
                              <input type="text" class="input-default focus form-control" aria-describedby="ufError" id="txtColecao" name="txtColecao" class="form-control" placeholder="Coleção">
                              <div class="input-group-append">
                                <button class="btn bg-danger" id="btnColecao" name="btnColecao" data-button="absolute" type="button">
                                  <i class="m-0 p-0 fas fa-search"></i>
                                </button>
                                <button class="btn bg-danger" id="btnAColecao" type="button">
                                  <i class="m-0 p-0 fas fa-trash"></i>
                                </button>
                              </div>
                            </div>
                          </div>
                          <div class="col-12 col-lg-4">
                            <div class="input-group">
                              <input type="text" class="input-default focus form-control" aria-describedby="ufError" id="txtSubColecao" name="txtSubColecao" class="form-control" placeholder="Sub-Coleção">
                              <div class="input-group-append">
                                <button class="btn bg-danger" id="btnSubColecao" name="btnSubColecao" data-button="absolute" type="button">
                                  <i class="m-0 p-0 fas fa-search"></i>
                                </button>
                                <button class="btn bg-danger" id="btnASubColecao" type="button">
                                  <i class="m-0 p-0 fas fa-trash"></i>
                                </button>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="row mb-2" style="width: 100%;">
                          <div class="col-12 col-lg-4">
                            <div class="d-flex justify-content-center radiosStyle2">
                              <input type="radio" id="checkDescPromo" checked name="tipoPromo">
                              <label for="checkDescPromo">  % Desc     </label>
                              <input type="radio" id="checkValorPromo" name="tipoPromo">
                              <label for="checkValorPromo">  Valor</label>
                            </div>
                          </div>
                          <div class="col-12 col-lg-4">
                            <div class="relative">
                              <input type="text" placeholder="% Desc/Valor" class="input-default focus form-control validate" id="txtValorAdd" name="txtDescricaoProduto">
                            </div>
                          </div>
                          <div class="col-12 col-lg-2">
                            <button class="btn bg-danger btn-block" id="btnRemover" name="btnRemover" data-button="absolute" type="button">
                              <label class="m-0 p-0">Remover</label>
                            </button>
                          </div>
                          <div class="col-12 col-lg-2">
                            <button class="btn bg-danger btn-block" id="btnIncluir" name="btnIncluir" data-button="absolute" type="button">
                              <label class="m-0 p-0">Incluir</label>
                            </button>
                          </div>
                        </div>
                        <div class="col-md-12 col-12 table-responsive  mt-12">
                          <table id="tabela-produtos" class="table table-sm table-hover table-select table-condensed">
                            <thead>
                            </thead>
                            <tbody>
                            </tbody>
                          </table>
                        </div>
                      </div>
                      <div class="form-row bordaProduto" id="tipos">
                        <div class="col-12 col-lg-4">
                          <label for="divTipo">Tipo</label>
                          <div class="d-flex justify-content-center radiosStyle2" id="divTipo">
                            <input type="radio" id="checkValorTabela" checked name="tipoValor">
                            <label for="checkValorTabela">  Valor     </label>
                            <input type="radio" id="checkQuantidade" name="tipoValor">
                            <label for="checkQuantidade">  Quantidade</label>
                          </div>
                        </div>
                        <div class="col-12 col-lg-3">
                          <label for="txtValorPromo" id="htmlValor">Valor</label>
                          <input type="text" placeholder="Valor" value="0.00" class="input-default focus form-control validate" id="txtValorPromo" name="txtDescricaoProduto">
                        </div>
                        <div class="col-12 col-lg-3">
                          <label for="txtDescontoPromo">% Desconto</label>
                          <input type="text" placeholder="% Desconto" value="0.00" maxlength="5" class="input-default focus form-control validate" id="txtDescontoPromo" name="txtDescricaoProduto">
                        </div>
                        <div class="col-12 col-lg-2" style="padding-top: 29px">
                          <button class="btn bg-danger btn-block" id="btnIncluirPromo" name="btnIncluirPromo" data-button="absolute" type="button">
                            <label class="m-0 p-0">Incluir</label>
                          </button>
                        </div>
                        <div class="col-md-12 col-12 table-responsive  mt-12" style="margin-top: 5px">
                          <table id="tabela-promo" class="table table-sm table-hover table-select table-condensed">
                            <thead>
                              <th>Ordem</th>
                              <th>Valor</th>
                              <th>% Desconto</th>
                              <th>Excluir</th>
                              </tr>
                            </thead>
                            <tbody>
                            </tbody>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

          <div class="tab-content" id="nav-tabContent">
            <div class="tab-pane fade d-none" id="divCadTributacao" role="tabpanel" aria-labelledby="tabCadTributacao">
              <div class="card-body" style="padding-left: 0rem!important; padding-right: 0rem!important;">
                <div class="collapse show" id="DadosGerais">
                  <div class="card card-body" style="padding-top: 10px;">
                    <div class="tab-pane fade show active bordaProduto" role="tabpanel" aria-labelledby="dados-tab">
                      <div class="col-md-8 col-8">
                        <fieldset class="form border-Field mb-0 pb-0">
                          <legend class="textoBorda mb-0 pb-0">Índices</legend>
                          <div class="row">
                            <div class="col-6 col-lg-6 d-none">
                              <label for="txtId">Id:</label>
                              <div class="input-group">
                                <input type="number" class="input-default focus form-control" aria-describedby="ufError" id="txtId" name="txtId" class="form-control">
                              </div>
                            </div>
                            <div class="col-6 col-lg-6">
                              <label for="txtDolar">Dólar:</label>
                              <div class="input-group">
                                <input type="number" class="input-default focus form-control" aria-describedby="ufError" id="txtDolar" name="txtDolar" class="form-control" placeholder="Dólar">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnLimpaDolar" type="button">
                                    <i class="m-0 p-0 fas fa-trash"></i>
                                  </button>
                                </div>
                              </div>
                            </div>
                            <div class="col-6 col-lg-6">
                              <label for="txtEuro">Euro:</label>
                              <div class="input-group">
                                <input type="number" class="input-default focus form-control" aria-describedby="ufError" id="txtEuro" name="txtEuro" class="form-control" placeholder="Euro">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnLimpaEuro" type="button">
                                    <i class="m-0 p-0 fas fa-trash"></i>
                                  </button>
                                </div>
                              </div>
                            </div>
                            <div class="col-6 col-lg-6">
                              <label for="txtIndiceTrib">Indice:</label>
                              <div class="input-group">
                                <input type="number" class="input-default focus form-control" aria-describedby="ufError" id="txtIndiceTrib" name="txtIndiceTrib" class="form-control" placeholder="Índice">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnLimpaIndice" type="button">
                                    <i class="m-0 p-0 fas fa-trash"></i>
                                  </button>
                                </div>
                              </div>
                            </div>
                            <div class="col-6 col-lg-6">
                              <label for="txtFixo">Fixo:</label>
                              <div class="input-group">
                                <input type="number" class="input-default focus form-control" aria-describedby="ufError" id="txtFixo" name="txtFixo" class="form-control" placeholder="Fixo">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnLimpaFixo" type="button">
                                    <i class="m-0 p-0 fas fa-trash"></i>
                                  </button>
                                </div>
                              </div>
                            </div>
                          </div>
                        </fieldset>
                      </div>
                      <div class="col-md-4 col-4 mb-0">
                        <fieldset class="form border-Field mb-0 pb-0">
                          <legend class="textoBorda mb-0 pb-0">Crédito Tributação</legend>
                          <div class="">
                            <div class="icheck-primary">
                              <input type="checkbox" class="form-check-input" id="cbCOFINS">
                              <label class="form-check-label pr-2 mb-1" for="cbCOFINS">COFINS</label>
                            </div>
                            <div class="icheck-primary">
                              <input type="checkbox" class="form-check-input" id="cbICMS">
                              <label class="form-check-label pr-2 mb-1" for="cbICMS">ICMS</label>
                            </div>
                            <div class="icheck-primary">
                              <input type="checkbox" class="form-check-input" id="cbIPI">
                              <label class="form-check-label pr-2 mb-1" for="cbIPI">IPI</label>
                            </div>
                            <div class="icheck-primary">
                              <input type="checkbox" class="form-check-input" id="cbPIS">
                              <label class="form-check-label pr-2 mb-1" for="cbPIS">PIS</label>
                            </div>
                          </div>
                        </fieldset>
                      </div>
                      <div class="col-md-12 col-12 table-responsive" style="margin-top: 5px">
                        <table id="tabelaTributacao" style="width:100%;" class="table table-sm table-hover table-select table-condensed">
                          <thead>
                            <th>DOLAR</th>
                            <th>FIXO</th>
                            <th>INDICE</th>
                            <th>EURO</th>
                            <th>ID</th>
                            </tr>
                          </thead>
                          <tbody>
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="modal-footer">
                      <button type="button" id="btnExcluirTrib" class="btn btn-sisp bg-gradient-danger">Excluir</button>
                      <button type="button" id="btnIncluirTrib" class="btn btn-sisp bg-gradient-success">Incluir</button>
                      <button type="button" id="btnGravarTributacao" class="btn btn-sisp bg-gradient-primary">Gravar</button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>

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

    <aside class="control-sidebar control-sidebar-dark">
    </aside>
    <?php
    include_once('../../../footer.php');
    ?>
    <?php include_once('../../../menu_fiscal.php'); ?>
  </main>

  <script src="plugins/jquery/jquery.min.js?versao=3.231.17.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.231.17.1"></script>
  <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.231.17.1"></script>
  <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.231.17.1"></script>
  <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.231.17.1"></script>
  <script src="plugins/sweetalert2/sweetalert2.min.js?versao=3.231.17.1"></script>
  <script src="plugins/toastr/toastr.min.js?versao=3.231.17.1"></script>
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.231.17.1"></script>
  <script src="dist/js/adminlte.min.js?versao=3.231.17.1"></script>
  <script src="dist/js/requisicoes.js?versao=3.231.17.1"></script>
  <script src="dist/js/loadingoverlay.min.js?versao=3.231.17.1"></script>
  <script src="dist/js/valida_cpf_cnpj.js?versao=3.231.17.1"></script>
  <script src="plugins/jquery-validation/jquery.validate.min.js?versao=3.231.17.1"></script>
  <script src="dist/js/dataTables.keyTable.js?versao=3.231.17.1"></script>
  <script src="dist/js/sisplan.js?versao=3.231.17.1"></script>
  <script src="utils/funcoes.js?versao=3.231.17.1"></script>
  <script src="utils/cookies.js?versao=3.231.17.1"></script>
  <script src="dist/js/driver.min.js?versao=3.231.17.1"></script>
  <script src="plugins/select2/js/select2.full.min.js?versao=2.1.7"></script>
  <script src="plugins/select2/js/select2.full.min.js?versao=2.1.7"></script>

  <script>
    $(document).ready(async function() {
      if (getCookie('usuario') == "") {
        window.location.href = `${BASE_URI}/login`;
        return;
      }

      let usuario = getCookie('usuario');
      let empresa = getCookie('empresa');

      ipInterno = IP_INTERNO;
      ipExterno = IP_EXTERNO;
      basicAuth = BASIC_AUTH;
      sArquivo = `${BASE_URI}/pages/cadmarkup/cadmarkup/cadmarkup.js?versao=3.231.17.1`;
      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');

      const temAcesso = await temAcessoTela('CADMARKUP');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      const permissaoUsuarioLogado = await permissaoAcessos("CADMARKUP");

      if (permissaoUsuarioLogado.INCLUI == 'N') {
        await criaMensagemErro("Sem permissão para incluir!", () => {
          window.location.href = `${BASE_URI}/cadmarkup`
        });
        return;
      }

      await insereJavaScriptPagina(sArquivo);

      habilitaCamposObrigatoriosTela(nomeTela);
    });
  </script>
</body>

</html>