<div class="cs-space-20 cs-space-md-120"></div>
<div class="d-none d-md-block cs-space-40"></div>
<div class="d-none d-md-block cs-space-80"></div>
<div class="d-none d-md-block cs-space-40"></div>
<?php
$available = $this->api->esea_get_available();

?>
<pre>
<?php
//var_dump($available);
?>
</pre>
<script>
var available_dates = '<?php echo json_encode($available); ?>';
</script>
<section id="single-params">
    <div class="container">
        <div class="row">
            <div class="col-12 col-md-3">
           <!--      <div class="lateral-menu">
                    <div class="header-lateral-menu">
                        <div class="row">
                            <div class="col-4 d-flex align-items-center">
                                <img class="logo" src="<?php echo $current_img; ?>">
                            </div>
                            <div class="col-8">
                                <h4>EMFA</h4>
                            </div>
                        </div>
                    </div>
                    <div class="body-lateral-menu">
                        <?php 

foreach ($emfa_categories as $x => $category) {
                if($_GET["active"] == $x){
                  $maintitle = $category["emfa_title"];
                  $desc_cat2 = $category["emfa_desc"];
                }
              ?>
                            <div class="row">
                                <div class="align-items-end col-2 col-md-3 d-flex flex-column">
                                    <a class="more " data-toggle="collapse" href="#<?php echo " op- " . $scid ?>" role="button" aria-expanded="false" aria-controls="<?php echo " op- " . $scid ?>">
                                        <?php if(!empty($child['sub_sub_crb_cat'])) : ?>
                                            <p>+</p>
                                            <?php else: ?>
                                                <p>-</p>
                                                <?php endif; ?>
                                    </a>
                                </div>
                                <div class="col-10 col-md-9">
                                    <a href="<?php echo get_permalink($paramsID); ?>/?api=<?php echo $category["emfa_ai"]; ?>&active=<?php echo $x; ?>">
                      <h3 class="<?php echo ($x == $_GET['active']) ? 'active' : '' ?>" aria-expanded="false" aria-controls="<?php echo $child_title; ?>">
                        <?php echo $category["emfa_title"]; ?>
                      </h3>
                    </a>
                                </div>
                            </div>
                            <div class="multi-collapse row collapse <?php echo ($scid == $_GET['scid']) ? 'show' : '' ?> collapse-info" id="<?php echo " op- " . $scid ?>">
                                <div class="col-2 col-md-3"></div>
                                <div class="col-10 col-md-9">
                                    <?php if(! empty($child['sub_sub_crb_cat'])) : ?>
                                        <ul>
                                            <?php $count = 0; ?>
                                                <?php foreach ($child['sub_sub_crb_cat'] as $k => $last_child):?>
                                                    <?php if(isset($_GET['list'])): ?>
                                                        <?php if($count == 0 && $_GET['son'] == $child["title"]) {
                            $maintitle = $last_child["title"];
                            $desc_cat1 = $last_child["desc"];
                          } ?>
                                                            <li class="<?php echo ($count == 0 && $_GET['son'] == $child["title"]) ? 'active' : '' ?>">
                                                                <a class="js-ids1" href="<?php echo get_permalink($pageID); ?>/?scsid=<?php echo $count; ?>&cid=<?php echo $cid ?>&scid=<?php echo $scid ?>&data=<?php echo $last_child['api_title'] ?>&parent=<?php echo $current_parent; ?>&son=<?php echo $child['title'] ?>" data-scsid="<?php echo $count; ?>">
                                                                    <?php echo $subcat['title'] ?>
                                                                        <?php echo $last_child["title"]; ?>
                                                                </a>
                                                            </li>
                                                            <?php else: ?>
                                                                <li class="<?php echo ($cid == $_GET['cid'] && $scid == $_GET['scid'] && $k == $_GET['scsid'] && isset($_GET['scsid'])) ? 'active' : '' ?>">
                                                                    <a class="js-ids1" href="<?php echo get_permalink($pageID); ?>/?scsid=<?php echo $count; ?>&cid=<?php echo $cid ?>&scid=<?php echo $scid ?>&data=<?php echo $last_child['api_title'] ?>&parent=<?php echo $current_parent; ?>&son=<?php echo $child['title'] ?>" data-scsid="<?php echo $count; ?>">
                                                                        <?php echo $subcat['title'] ?>
                                                                            <?php echo $last_child["title"]; ?>
                                                                    </a>
                                                                </li>
                                                                <?php endif; ?>
                                                                    <?php
                    $count = $count + 1;
                  endforeach; ?>
                                        </ul>
                                        <?php endif; ?>
                                </div>
                            </div>
                            <?php
              }?>
                    </div>
                </div>
                 -->
                   <div class="lateral-menu">
          <div class="header-lateral-menu">
            <div class="row">
              <div class="col-4 d-flex align-items-center">
                <img class="logo" src="<?php echo $current_img; ?>">
              </div>
              <div class="col-8">
                <h4>EMFA</h4>
              </div>
            </div>
          </div>
          <div class="body-lateral-menu">
            <?php foreach ($emfa_categories as $x => $category) {
              if($_GET["active"] == $x){
                $maintitle = $category["emfa_title"];
                $desc_cat2 = $category["emfa_desc"];
              }

              //$maintitle = $category["emfa_title"];
              // if($_GET["active"] == $x){
              //   $desc_cat2 = $category["emfa_desc"];
              // }
            ?>
              <div class="row">
                <div class="align-items-end col-2 col-md-3 d-flex flex-column">
                  <a class="more " data-toggle="collapse" href="#<?php echo "op-" . $scid ?>" role="button" aria-expanded="false" aria-controls="<?php echo "op-" . $scid ?>">
                    <?php if(!empty($child['sub_sub_crb_cat'])) : ?>
                      <p>+</p>
                    <?php else: ?>
                      <p>-</p>
                    <?php endif; ?>
                  </a>
                </div>
                <div class="col-10 col-md-9">
                  <a href="<?php echo get_permalink($paramsID); ?>/?api=<?php echo $category["emfa_api"]; ?>&active=<?php echo $x; ?>">
                    <h3 class="<?php echo ($x == $_GET['active']) ? 'active' : '' ?>" aria-expanded="false" aria-controls="<?php echo $child_title; ?>">
                      <?php echo $category["emfa_title"]; ?>
                    </h3>
                  </a>
                </div>
              </div>
              <div class="multi-collapse row collapse <?php echo ($scid == $_GET['scid']) ? 'show' : '' ?> collapse-info" id="<?php echo "op-" . $scid ?>">
                <div class="col-2 col-md-3"></div>
                <div class="col-10 col-md-9">
                  <?php if(! empty($child['sub_sub_crb_cat'])) : ?>
                  <ul>
                    <?php $count = 0; ?>
                    <?php foreach ($child['sub_sub_crb_cat'] as $k => $last_child):?>
                      <?php if(isset($_GET['list'])): ?>
                        <?php if($count == 0 && $_GET['son'] == $child["title"]) {
                          $maintitle = $last_child["title"];
                          $desc_cat1 = $last_child["desc"];
                        } ?>
                        <li class="<?php echo ($count == 0 && $_GET['son'] == $child["title"]) ? 'active' : '' ?>">
                          <a class="js-ids1" href="<?php echo get_permalink($pageID); ?>/?scsid=<?php echo $count; ?>&cid=<?php echo $cid ?>&scid=<?php echo $scid ?>&data=<?php echo $last_child['api_title'] ?>&parent=<?php echo $current_parent; ?>&son=<?php echo $child['title'] ?>" data-scsid="<?php echo $count; ?>"><?php echo $subcat['title'] ?>
                            <?php echo $last_child["title"]; ?>
                          </a>
                        </li>
                      <?php else: ?>
                        <li class="<?php echo ($cid == $_GET['cid'] && $scid == $_GET['scid'] && $k == $_GET['scsid'] && isset($_GET['scsid'])) ? 'active' : '' ?>">
                          <a class="js-ids1" href="<?php echo get_permalink($pageID); ?>/?scsid=<?php echo $count; ?>&cid=<?php echo $cid ?>&scid=<?php echo $scid ?>&data=<?php echo $last_child['api_title'] ?>&parent=<?php echo $current_parent; ?>&son=<?php echo $child['title'] ?>" data-scsid="<?php echo $count; ?>"><?php echo $subcat['title'] ?>
                            <?php echo $last_child["title"]; ?>
                          </a>
                        </li>
                      <?php endif; ?>
                  <?php
                  $count = $count + 1;
                endforeach; ?>
                  </ul>
                <?php endif; ?>
                </div>
              </div>
            <?php
            }?>
          </div>
        </div>
            </div>
            <div class="cs-space-20 d-md-none"></div>
            <div class="col-12 col-md-9" id="parameters">
                <h2 class="js-current-son" data-son="<?php echo $_GET['son'] ?>" data-parent="<?php echo $current_parent; ?>"><?php echo $maintitle; ?></h2>
                <div class="cs-space-20"></div>
                <p class="params-p">
                    <pre class="params-p"><?php echo $desc_cat2; ?></pre>
                </p>
                <div class="cs-space-20 d-md-none"></div>
                <div class="d-none d-md-block cs-space-40"></div>
                <ul class="nav nav-pills mb-3" id="main-pills-tab" role="tablist">
                    <li class="nav-item">
                        <a class="nav-link active" id="IPC-pill" data-toggle="pill" href="#IPC-ext0" role="tab" aria-controls="IPC-tab" aria-selected="true">EMFA</a>
                    </li>
                    <?php if(! empty($extra1) && empty($ex_2)): ?>
                        <li class="nav-item">
                            <a class="nav-link" id="IPC-pill-2" data-toggle="pill" href="#IPC-ext1" role="tab" aria-controls="IPC-more-1" aria-selected="false">
                                <?php echo $ex_tit1; ?>
                            </a>
                        </li>
                        <?php endif; ?>
                            <?php if(! empty($ex_2) && ! empty($extra1)):?>
                                <li class="nav-item">
                                    <a class="nav-link" id="IPC-pill-2" data-toggle="pill" href="#IPC-ext1" role="tab" aria-controls="IPC-more-1" aria-selected="false">
                                        <?php echo $ex_tit1; ?>
                                    </a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" id="IPC-pill-3" data-toggle="pill" href="#IPC-ext2" role="tab" aria-controls="IPC-more-2" aria-selected="false">
                                        <?php echo $ex_tit2; ?>
                                    </a>
                                </li>
                                <?php endif; ?>
                </ul>
                <div class="cs-space-20 d-md-none"></div>
                <div class="tab-content" id="main-pills-tabContent">
                    <div class="tab-pane fade show active parameters" id="IPC-ext0" role="tabpanel" aria-labelledby="IPC-ext0">
                        <div class="container">
                            <div class="row">
                                <div class="col-12">
                                    <div class="cs-space-10"></div>
                                    <h3>Parámetros de la consulta</h3>
                                    <div class="cs-space-10"></div>
                                </div>
                            </div>
                        </div>
                        <form id="params-form" class="" action="/graphic-single?parent=<?php echo $current_parent; ?>" method="POST">
                            <div class="container">
                                <div class="row">
                                    <div class="col-12 col-md-6">
                                        <div class="params-box">
                                            <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
                                                <li class="nav-item">
                                                    <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pill-country" role="tab" aria-controls="pill-country" aria-selected="true">Pais</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" id="IPC-more-tab" data-toggle="pill" href="#pill-region" role="tab" aria-controls="pills-profile" aria-selected="false">Regiones</a>
                                                </li>
                                            </ul>
                                            <div class="tab-content" id="pills-tabContent">
                                                <div class="tab-pane fade show active box-content-emfa" id="pill-country" role="tabpanel" aria-labelledby="pills-home-tab">
                                                     <div id="actualiza-data"></div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country0" name="country[]" value="3">
                                                        <label class="custom-control-label" for="country0">Costa Rica</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country1" name="country[]" value="13">
                                                        <label class="custom-control-label" for="country1">El Salvador</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country2" name="country[]" value="50">
                                                        <label class="custom-control-label" for="country2">Guatemala</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country3" name="country[]" value="17">
                                                        <label class="custom-control-label" for="country3">Honduras</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country4" name="country[]" value="4">
                                                        <label class="custom-control-label" for="country4">Nicaragua</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country5" name="country[]" value="52">
                                                        <label class="custom-control-label" for="country5">República Dominicana</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country6" name="country[]" value="161">
                                                        <label class="custom-control-label" for="country6">Panamá</label>
                                                    </div>
                                                </div>
                                                <div class="tab-pane fade" id="pill-region" role="tabpanel" aria-labelledby="IPC-more-tab">
                                                    
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country8" name="country[]" value="56">
                                                        <label class="custom-control-label" for="country8">CARD</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input" id="country9" name="country[]" value="78">
                                                        <label class="custom-control-label" for="country9">CAPARD</label>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- <div class="options-wrapper options-country-wrapper">
                      </div> -->
                                        </div>
                                    </div>
                                    <?php if(count($topics) != 1): ?>
                                        <div class="col-12 col-md-6">
                                            <div class="params-box">
                                                <div class="box-header">
                                                    <h3>Variables</h3>
                                                </div>
                                                <div class="box-content box-content-emfa">
                                                    <?php foreach ($topics as $x => $value):  ?>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var<?php echo $x; ?>" name="var[]" value="<?php echo $value["idDetalle"]; ?>">
                                                            <label class="custom-control-label" for="var<?php echo $x; ?>">
                                                                <?php echo $value["nombreEsp"]; ?>
                                                            </label>
                                                        </div>
                                                        <?php endforeach;?>
                                                        <?php if($_GET['api'] == "ACT_PAS_OSD_BD") : ?>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var00" name="var[]" value="00">
                                                            <label class="custom-control-label" for="var00">
                                                                Matriz Balance BC                                                            </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var01" name="var[]" value="01">
                                                            <label class="custom-control-label" for="var01">
                                                                Matriz Balance OSD                                                            </label>
                                                        </div>
                                                        <?php endif;?>
                                                </div>
                                                <div class="options-wrapper options-var-wrapper"></div>
                                            </div>
                                        </div>
                                        <?php else: ?>
                                            <div class="col-12 col-md-6">
                                                <div class="params-box">
                                                    <div class="box-header" style="justify-content: space-between;">
                                                        <h3>Variables</h3>
                                                        <div style="position: relative;">
                                                          <i class="fa fa-search" aria-hidden="true" style="position: absolute;top: 13px;left: 8px;"></i>
                                                          <input id="js-search-vars" type="text" placeholder="buscar.." style="padding: 5px 10px 5px 31px;">
                                                        </div>
                                                    </div>
                                                    <div class="box-content box-content-emfa">
                                                        <div class="box-content box-content-emfa results-search" style="height: 238px;overflow: auto;">
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="radio" class="custom-control-input radio-variables" id="var0" name="var[]" value="425">
                                                                <label class="custom-control-label" for="var0">
                                                                    Panorama BC </label>
                                                            </div>
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="radio" class="custom-control-input radio-variables" id="var1" name="var[]" value="426">
                                                                <label class="custom-control-label" for="var1">
                                                                    Panorama OSD </label>
                                                            </div>
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="radio" class="custom-control-input radio-variables" id="var2" name="var[]" value="427">
                                                                <label class="custom-control-label" for="var2">
                                                                    Panorama de SD </label>
                                                            </div>
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="radio" class="custom-control-input radio-variables" id="var3" name="var[]" value="428">
                                                                <label class="custom-control-label" for="var3">
                                                                    Panorama OSF </label>
                                                            </div>
                                                            <div class="custom-control custom-checkbox">
                                                                <input type="radio" class="custom-control-input radio-variables" id="var4" name="var[]" value="429">
                                                                <label class="custom-control-label" for="var4">
                                                                    Panorama SF </label>
                                                            </div>
                                                       
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var5" name="var[]" value="445">
                                                            <label class="custom-control-label" for="var5">
                                                                FyU BC BM AMPLIA </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var6" name="var[]" value="446">
                                                            <label class="custom-control-label" for="var6">
                                                                FyU BC BM RESTRINGIDA </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var7" name="var[]" value="458">
                                                            <label class="custom-control-label" for="var7">
                                                                BASE MONETARIA </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var8" name="var[]" value="447">
                                                            <label class="custom-control-label" for="var8">
                                                                FyU OSD MN y ME </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var9" name="var[]" value="459">
                                                            <label class="custom-control-label" for="var9">
                                                                AGREGADOS MONETARIOS </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var10" name="var[]" value="460">
                                                            <label class="custom-control-label" for="var10">
                                                                AGREGADOS MONETARIOS POR SECTOR </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var11" name="var[]" value="455">
                                                            <label class="custom-control-label" for="var11">
                                                                BALANCE OSD - RESUMEN </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var12" name="var[]" value="448">
                                                            <label class="custom-control-label" for="var12">
                                                                BALANCE OSD - ACTIVOS </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var13" name="var[]" value="449">
                                                            <label class="custom-control-label" for="var13">
                                                                OSD - ACTIVOS MN </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var14" name="var[]" value="450">
                                                            <label class="custom-control-label" for="var14">
                                                                OSD - ACTIVOS ME </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var15" name="var[]" value="456">
                                                            <label class="custom-control-label" for="var15">
                                                                BC BALANCE ACTIVOS </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var16" name="var[]" value="452">
                                                            <label class="custom-control-label" for="var16">
                                                                BALANCE OSD - PASIVOS </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var17" name="var[]" value="453">
                                                            <label class="custom-control-label" for="var17">
                                                                OSD - PASIVOS MN </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var18" name="var[]" value="454">
                                                            <label class="custom-control-label" for="var18">
                                                                OSD - PASIVOS ME </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                            <input type="radio" class="custom-control-input radio-variables" id="var19" name="var[]" value="457">
                                                            <label class="custom-control-label" for="var19">
                                                                BC BALANCE PASIVOS </label>
                                                        </div>
                                                        <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var20" name="var[]" value="445">
                                                        <label class="custom-control-label" for="var20">
                                                            FyU BC BM AMPLIA </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var21" name="var[]" value="446">
                                                        <label class="custom-control-label" for="var21">
                                                            FyU BC BM RESTRINGIDA </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var22" name="var[]" value="458">
                                                        <label class="custom-control-label" for="var22">
                                                            BASE MONETARIA </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var23" name="var[]" value="447">
                                                        <label class="custom-control-label" for="var23">
                                                            FyU OSD MN y ME </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var24" name="var[]" value="459">
                                                        <label class="custom-control-label" for="var24">
                                                            AGREGADOS MONETARIOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var25" name="var[]" value="460">
                                                        <label class="custom-control-label" for="var25">
                                                            AGREGADOS MONETARIOS POR SECTOR </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var26" name="var[]" value="455">
                                                        <label class="custom-control-label" for="var26">
                                                            BALANCE OSD - RESUMEN </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var27" name="var[]" value="448">
                                                        <label class="custom-control-label" for="var27">
                                                            BALANCE OSD - ACTIVOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var28" name="var[]" value="449">
                                                        <label class="custom-control-label" for="var28">
                                                            OSD - ACTIVOS MN </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var29" name="var[]" value="450">
                                                        <label class="custom-control-label" for="var29">
                                                            OSD - ACTIVOS ME </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="va30" name="var[]" value="456">
                                                        <label class="custom-control-label" for="va30">
                                                            BC BALANCE ACTIVOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var31" name="var[]" value="452">
                                                        <label class="custom-control-label" for="var31">
                                                            BALANCE OSD - PASIVOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var32" name="var[]" value="453">
                                                        <label class="custom-control-label" for="var32">
                                                            OSD - PASIVOS MN </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var33" name="var[]" value="454">
                                                        <label class="custom-control-label" for="var33">
                                                            OSD - PASIVOS ME </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var34" name="var[]" value="457">
                                                        <label class="custom-control-label" for="var34">
                                                            BC BALANCE PASIVOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var35" name="var[]" value="451">
                                                        <label class="custom-control-label" for="var35">
                                                            OSD - PRÉSTAMOS </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var36" name="var[]" value="461">
                                                        <label class="custom-control-label" for="var36">
                                                            BC CRÉDITO SECTOR PÚBLICO </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var37" name="var[]" value="462">
                                                        <label class="custom-control-label" for="var37">
                                                            OSD CRÉDITO SECTOR PÚBLICO </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var38" name="var[]" value="463">
                                                        <label class="custom-control-label" for="var38">
                                                            BC COMPOSICIÓN CAPITAL </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var39" name="var[]" value="464">
                                                        <label class="custom-control-label" for="var39">
                                                            OSD COMPOSICIÓN CAPITAL </label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="radio" class="custom-control-input radio-variables" id="var40" name="var[]" value="465">
                                                        <label class="custom-control-label" for="var40">
                                                            ACTIVOS EXTERNOS NETOS </label>
                                                    </div>
                                                </div>
                                                </div>
                                            </div>
                                            <div class="options-wrapper options-var-wrapper">
                                            </div>
                                </div>
                            </div>
                            <?php endif; ?>
                                <div class="col-12 col-md-6">
                                    <div class="params-box">
                                        <div class="box-header">
                                            <h3>Años</h3>
                                        </div>
                                        <div class="box-content js-custom-emfa-years emfa-years">
                                        </div>
                                        <div class="button-box">
                                            <button type="button" class="btn btn-primary all js-take-all">Seleccionar todo</button>
                                            <button type="button" class="btn btn-primary not-all js-remove-all">Eliminar todo</button>
                                        </div>
                                        <div class="options-wrapper options-fe-wrapper js-custom-wrapper">
                                        </div>
                                    </div>
                                </div>
                                <div class="col-12 col-md-6">
                                    <div class="params-box">
                                        <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
                                            <li class="nav-item">
                                                <a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pill-mes" role="tab" aria-controls="pill-mes" aria-selected="true">Meses</a>
                                            </li>
                                           <!--  <li class="nav-item">
                                                <a class="nav-link" id="IPC-more-tab" data-toggle="pill" href="#pill-per" role="tab" aria-controls="pills-per" aria-selected="false">Periodos</a>
                                            </li>
                                            <li class="nav-item">
                                                <a class="nav-link" id="IPC-more-tab" data-toggle="pill" href="#pill-anual" role="tab" aria-controls="pills-anual" aria-selected="false">Anual</a>
                                            </li> -->
                                        </ul>
                                        <div class="tab-content" id="pills-tabContent">
                                            <div class="tab-pane fade show active box-content-emfa" id="pill-mes" role="tabpanel" aria-labelledby="pill-mes">
                                                <div class="box-content">
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout1" name="mouths[]" value="1">
                                                        <label class="custom-control-label" for="mout1">Enero</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout2" name="mouths[]" value="2">
                                                        <label class="custom-control-label" for="mout2">Febrero</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout3" name="mouths[]" value="3">
                                                        <label class="custom-control-label" for="mout3">Marzo</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout4" name="mouths[]" value="4">
                                                        <label class="custom-control-label" for="mout4">Abril</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout5" name="mouths[]" value="5">
                                                        <label class="custom-control-label" for="mout5">Mayo</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout6" name="mouths[]" value="6">
                                                        <label class="custom-control-label" for="mout6">Junio</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout7" name="mouths[]" value="7">
                                                        <label class="custom-control-label" for="mout7">Julio</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout8" name="mouths[]" value="8">
                                                        <label class="custom-control-label" for="mout8">Agosto</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout9" name="mouths[]" value="9">
                                                        <label class="custom-control-label" for="mout9">Septiembre</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout10" name="mouths[]" value="10">
                                                        <label class="custom-control-label" for="mout10">Octubre</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout11" name="mouths[]" value="11">
                                                        <label class="custom-control-label" for="mout11">Noviembre</label>
                                                    </div>
                                                    <div class="custom-control custom-checkbox">
                                                        <input type="checkbox" class="custom-control-input radio-mou" id="mout12" name="mouths[]" value="12">
                                                        <label class="custom-control-label" for="mout12">Diciembre</label>
                                                    </div>
                                                </div>
                                                <div class="button-box">
                                                    <button type="button" class="btn btn-primary all js-take-all-tabs">Seleccionar todo</button>
                                                    <button type="button" class="btn btn-primary not-all RemoveAll js-remove-all">Eliminar todo</button>
                                                </div>
                                            </div>
                                          <!--   <div class="tab-pane fade" id="pill-per" role="tabpanel" aria-labelledby="pills-per">
                                                <div class="custom-control custom-checkbox">
                                                    <input type="checkbox" class="custom-control-input" id="perI" name="peri[]" value="I">
                                                    <label class="custom-control-label" for="perI">I</label>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                    <input type="checkbox" class="custom-control-input" id="perII" name="peri[]" value="II">
                                                    <label class="custom-control-label" for="perII">II</label>
                                                </div>
                                                <div class="custom-control custom-checkbox">
                                                    <input type="checkbox" class="custom-control-input" id="perIII" name="peri[]" value="III">
                                                    <label class="custom-control-label" for="perIII">III</label>
                                                </div>
                                                <div class="button-box">
                                                    <button type="button" class="btn btn-primary all js-take-all-tabs">Seleccionar todo</button>
                                                    <button type="button" class="btn btn-primary not-all RemoveAll js-remove-all">Eliminar todo</button>
                                                </div>
                                            </div> -->
                                            <!-- <div class="tab-pane fade" id="pill-anual" role="tabpanel" aria-labelledby="pills-anual">
                                                <div class="custom-control custom-checkbox">
                                                    <input type="checkbox" class="custom-control-input" id="an" name="mouths[]" value="Anual">
                                                    <label class="custom-control-label" for="an">Anual</label>
                                                </div>
                                                <div class="button-box">
                                                    <button type="button" class="btn btn-primary all js-take-all-tabs">Seleccionar todo</button>
                                                    <button type="button" class="btn btn-primary not-all RemoveAll js-remove-all">Eliminar todo</button>
                                                </div>
                                            </div> -->
                                        </div>
                                    </div>
                                </div>
                                <div class="col-12 send-params">
                                  <img class="loader_years_load" src="<?php echo get_template_directory_uri(); ?>/src/images/load_years.gif" alt="">
                                    <button id="send" data-active="<?php echo $_GET["active"]; ?>" data-restpage="<?php echo get_page_link($page_results); ?>" data-emfa="<?php echo get_page_link($resultpageID); ?>" type="submit" name="Submit" class="btn btn-primary w-100 emfa">Consultar datos</button>
                                </div>
                    </div>
                    </form>
                    <div class="cs-space-40 d-md-none"></div>
                </div>
            </div>
            <div class="tab-pane fade" id="IPC-ext1" role="tabpanel" aria-labelledby="IPC-ext1">
                <pre>
                <?php echo $extra1; ?>
              </pre>
            </div>
            <div class="tab-pane fade" id="IPC-ext2" role="tabpanel" aria-labelledby="IPC-ext2">
                <pre>
                <?php echo $ex_2; ?>
              </pre>
            </div>
        </div>
    </div>
    </div>
    </div>
</section>
<div class="d-none d-md-block cs-space-40"></div>