<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<?php $this->load->view('template/head_front.php'); ?>
<?php $this->load->view('template/header_admin.php'); ?>
<?php $permisos = $this->session->userdata('permisos'); ?>
<section>
    <div class="row">
        <div id="container">
            <h3 class="text-center titulo"><?= $titulo ?></h3>
        </div>
    </div>
    <div class="row">
        <?=
         form_open('clear_data/clean_reg_votacion', ['name'  => 'clean_reg_votacion_form',
           'id'    => 'clean_reg_votacion_form',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('reg_vota', 1) ?>
                    <input type="submit" value="Limpiar Registro de Votación" id="btn-reg-vota" 
                           class="btn btn-default botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>
        <?=
         form_open('clear_data/clean_ingresos_salidas', ['name'  => 'clean_ingresos_salidas',
           'id'    => 'clean_ingresos_salidas',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('ingre_salida', 1) ?>
                    <input type="submit" value="Limpiar Registro Ingresos - Salidas" class="btn btn-default botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>   
    <div class="row" style="margin-top: 30px;">
        <?=
         form_open('clear_data/clean_participantes', ['name'  => 'clean_participantes',
           'id'    => 'clean_participantes',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('participantes', 1) ?>
                    <input type="submit" value="Limpiar tabla Participantes" class="btn btn-danger botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>
        <?=
         form_open('clear_data/clean_candidatos', ['name'  => 'clean_candidatos',
           'id'    => 'clean_candidatos',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('candidatos', 1) ?>
                    <input type="submit" value="Limpiar tabla Candidatos" class="btn btn-danger botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>

    </div>
 <div class="row" style="margin-top: 30px;">
        <?=
         form_open('clear_data/clean_listas', ['name'  => 'clean_listas',
           'id'    => 'clean_listas',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('listas', 1) ?>
                    <input type="submit" value="Limpiar tabla Listas" class="btn btn-danger botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>

        <?php if (isset($permisos['clear_data']['clear_data_backup'])): ?>							
        <?=
         form_open('clear_data/backup_db', ['name'  => 'backup_db',
           'id'    => 'backup_db',
           'class' => 'clean_reg']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('backup', 1) ?>
                    <input type="submit" value="Hacer backup base de datos" class="btn btn-primary botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>
        <?php endif;?>

    </div>
 <div class="row" style="margin-top: 30px;">
        <?=
         form_open('clear_data/clean_votacion', ['name'  => 'clean_votacion',
           'id'    => 'clean_votacion',
           'class' => 'clean_vot']);
        ?>
        <div class="col-lg-4 col-md-4">
            <div class="boton-submit">
                <div class="input-group">
                    <?= form_hidden('votacion', 1) ?>
                    <input type="submit" value="Limpiar para una nueva votación" class="btn btn-success botones-clean"> 
                </div>  
            </div>
        </div>
        <?php echo form_close(); ?>
    </div>
</section>
<?php
 $data_view['loajs'] = $load_js;
 $this->load->view('template/footer_front.php', $data_view);
?>