<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<style>
    body {background: #ffffff !important;}
    .footer {top: 217% !important;}
</style>
<?php $this->load->view('template/head.php'); ?>
<?php
 $this->load->view('template/header_admin.php');
?>
<section class="row contenedor-titulo">
   <h3 class="titulo"><?= $this->session->userdata('EMPRESA')?></h3> 
    <h3 class="titulo"><?= $titulo ?></h3> 
    <h3 class="titulo"><?= $nombre_instancia->TEX_NOMINS ?></h3> 
</section>
<input type="hidden" value="<?= $instancia ?>" id="instancia_id">
<section class="row contenedor">
    <div class="col-lg-12 col-md-12">
        <table id="por_instancias" class="table compact display table-hover">
            <thead>
                <tr>
                    <th>ID Candidato</th>
                    <th>Nombres</th>
                    <th># Votos</th>
                    <th>Instancia</th>
                    <th><?= $this->session->userdata('NOMBRE_SEGMENTO') ?></th>
                    <th>%</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>ID Candidato</th>
                    <th>Nombres</th>
                    <th># Votos</th>
                    <th>Instancia</th>
                    <th><?= $this->session->userdata('NOMBRE_SEGMENTO') ?></th>
                    <th>%</th>
                </tr>  
            </tfoot>
        </table>
    </div>    
</section>
<section class="row">
    <h3 class="text-center"><?= $titulo_graficos ?></h3>
    <div id="chartColumn"></div>
</section>
<section class="row" style="margin-top: 440px;">
    <div id="chartBarra"></div>
</section>
<section class="row" style="margin-top: 440px;">
    <div id="chartTorta"></div>
</section>
<?php
 $data_view['loajs'] = $load_js;
 $data_view['chart'] = 'datosGraficosPorInstancia()';
 $this->load->view('template/footer.php', $data_view);
?>