<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<style>
    body {background: #ffffff !important;}
    .footer {top: 205% !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_agencia->TEX_NOMAGE ?></h3> 
</section>
<div class="row">
    <div class="col-lg-12 col-md-12 cajas contenedor-enlace-return">
        <a href="<?php echo base_url('informes/por_agencia') ?>" class="btn btn-danger">Regresar</a>
    </div>
</div>
<input type="hidden" value="<?= $agencia ?>" id="agencia_id">
<section class="row contenedor">
    <div class="col-lg-12 col-md-12">
        <table id="por_agencia" class="table compact display table-hover">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Candidato</th>
                    <th># Votos</th>
                    <th>%</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>ID</th>
                    <th>Candidato</th>
                    <th># Votos</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'] = "getdatosGraficosPorAgencia()";
 $this->load->view('template/footer.php', $data_view);
?>

