<commit_before><?php
if (isset($this->session->userdata['logged_in'])) {
    $username = ($this->session->userdata['logged_in']['username']);
    $email = ($this->session->userdata['logged_in']['email']);
    $tipouser = 'Administrador';
    $id_user = ($this->session->userdata['logged_in']['id']);
} else {
    redirect(base_url());
}
?>

<?php
if ($tipouser == 'Administrador') {
    
} else {
    redirect(base_url());
}
?>
<div class="wrapper">

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="min-height: 1156px;">
        <br/>
        <br/>
        <br/>
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1 style="color:#3C8DBC">
                Invitados
            </h1>
            <ol class="breadcrumb">
                <li><a href="<?php echo base_url(); ?>index.php"  style="color:#3C8DBC"><i class="fa fa-home"></i> Inicio</a></li>
                <li class="active">Links de invitación</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- SELECT2 EXAMPLE -->
                    <div class="box box-primary">
                        <div class="box-body">
                            <div class="col-md-3 text-left">
                                <img style="width: 80%" src="<?= base_url() ?>static/img/logo4.png"/>
                            </div>
                            <div class="col-md-9 text-right">
                                <label style="color:#001A5A" >nro. de usuario: <?php echo str_pad($editar[0]->codigo, 5, '0',STR_PAD_LEFT) ?></label>
                            </div>
                            <div class="col-md-12">
                                <div class="col-md-6 text-center">
                                    <table id="tab_rel_links" class="table table-bordered table-striped table-hover table-condensed dt-responsive table-responsive">
                                        <thead>
                                            <tr style="background-color: #001a5a">
                                                <th style='text-align: center; color: white'>Acción</th>
                                                <th style='text-align: center; color: white'>Links</th>
                                            </tr>
                                        </thead>
                                        <tbody >       
                                            <?php $i = 1; ?>
                                            <?php foreach ($listar_links as $links) { ?>
                                            <tr style="font-size: 16px;text-align: center" class="{% cycle 'impar' 'par' %}" >
                                                <td><a title="Copiar" class="pdf_retiro" id="<?php echo $links->links; ?>" ><img style="width: 40%" src="<?= base_url() ?>static/img/copiar.png"/></a></td>
                                                <td><span id="textarea" ><?php echo $links->links; ?></span></td>
                                            </tr>
                                            <?php $i++ ?>
                                            <?php } ?>
                                        </tbody>
                                    </table>
                                </div>
                                <div class="col-md-6 text-center">
                                    <div style="width: 100%">
                                        <canvas id="canvas" height="800" width="1000"></canvas>
                                    </div>
                                </div>
                            </div>

                        </div><!-- /.box-body -->
                    </div><!-- /.box-body-primary -->
                </div><!-- /.box-body -->
            </div><!-- /.col -->
            
        
                
                
                
                
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.3.0
        </div>
        <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
    </footer>



<script>
    
    $(".pdf_retiro").click(function (e) {
    //    e.preventDefault();  // Para evitar que se envíe por defecto
    //    // Establecemos las variables
        var id = this.getAttribute('id');
        //alert (id);
        //id.value().clone();

    });


    var Tusuarios = $('#tab_rel_links').dataTable({
        "paging": true,
        "lengthChange": false,
        "autoWidth": false,
        "searching": false,
        "ordering": true,
        "info": true,
        "iDisplayLength": 10,
        "iDisplayStart": 0,
        "sPaginationType": "full_numbers",
        "aLengthMenu": [5,10,15],
        "oLanguage": {"sUrl": "<?= base_url() ?>/static/js/es.txt"},
        "decimal": ",",
        "thousands": ".",
        "aoColumns": [
            {"sClass": "registro center", "sWidth": "1%"},
            {"sClass": "registro center", "sWidth": "15%"},<commit_msg>Cambios 05-09-2017 Cambio en la interfaz links ahora invitados<commit_after><?php
if (isset($this->session->userdata['logged_in'])) {
    $username = ($this->session->userdata['logged_in']['username']);
    $email = ($this->session->userdata['logged_in']['email']);
    $tipouser = 'Administrador';
    $id_user = ($this->session->userdata['logged_in']['id']);
} else {
    redirect(base_url());
}
?>

<?php
if ($tipouser == 'Administrador') {
    
} else {
    redirect(base_url());
}
?>
<div class="wrapper">

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="min-height: 1156px;">
        <br/>
        <br/>
        <br/>
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1 style="color:#3C8DBC">
                Invitados
            </h1>
            <ol class="breadcrumb">
                <li><a href="<?php echo base_url(); ?>index.php"  style="color:#3C8DBC"><i class="fa fa-home"></i> Inicio</a></li>
                <li class="active">Links de invitación</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- SELECT2 EXAMPLE -->
                    <div class="box box-primary">

                        <div class="box-body">
                            <div class="col-md-3 text-center">
                                <img style="width: 80%" src="<?= base_url() ?>static/img/logo4.png"/>
                                <label style="color:#001A5A" >nro. de usuario: <?php echo str_pad($editar[0]->codigo, 5, '0',STR_PAD_LEFT) ?></label>
                            </div><!-- /.form-group -->
                            <div class="col-md-8" style="width: 50%">
                                <br><br>
                                <canvas id="canvas" height="100" width="250"></canvas>
                            </div>
                            <div class="col-md-1"> </div><!-- /.form-group -->
                        </div><!-- /.box-body -->
                    </div><!-- /.box-body-primary -->

                     <!-- PESTAÑAS -->
                    <div class="col-xs-8">
                        <div class="box box-primary">
                            <table id="tab_rel_links" class="table table-bordered table-striped table-hover table-condensed dt-responsive table-responsive">
                                <thead>
                                    <tr style="background-color: #001a5a">
                                        <th style='text-align: center; color: white'>Acción</th>
                                        <th style='text-align: center; color: white'>Links</th>
                                    </tr>
                                </thead>
                                <tbody >       
                                    <?php $i = 1; ?>
                                    <?php foreach ($listar_links as $links) { ?>
                                    <tr style="font-size: 16px;text-align: center" class="{% cycle 'impar' 'par' %}" >
                                        <td><a title="Copiar" class="pdf_retiro" id="<?php echo $links->links; ?>" ><img style="width: 40%" src="<?= base_url() ?>static/img/copiar.png"/></a></td>
                                        <td><span id="textarea" ><?php echo $links->links; ?></span></td>
                                    </tr>
                                    <?php $i++ ?>
                                    <?php } ?>
                                </tbody>
                            </table>    
                        </div><!-- /.box-body -->
                    </div><!-- /.box-body-primary -->
                    <div class="col-xs-4">
                        <div class="box box-primary">
                            <table id="tab_rel_distribucion" class="table table-bordered table-striped table-hover table-condensed dt-responsive table-responsive">
								<thead>
                                    <tr style="background-color: #001a5a">
										<th style='text-align: center; color: white'>Nivel</th>
										<th style='text-align: center; color: white'>Número de invitados</th>
									</tr>
								</thead>
								<tbody >       
									<?php $i = 1; ?>
									<?php foreach (range(0, 6) as $padres) { ?>
									<tr style="font-size: 16px;text-align: center" class="{% cycle 'impar' 'par' %}" >
										<td><img id="nivel" class="img-circle" src="<?= base_url() ?>static/img/iconos_medianos/Nivel <?php echo $i; ?>.png" style="width: 75%;"  /></td>
										<td><?php echo pow(5, $i) ?></td>
									</tr>
									<?php $i++ ?>
									<?php } ?>
								</tbody>
							</table>
                        </div><!-- /.box-body -->
                    </div><!-- /.box-body-primary -->


                </div><!-- /.col -->
                    
                    
                   
                    

            </div><!-- /.col -->
            
        
                
                
                
                
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->

    <footer class="main-footer">
        <div class="pull-right hidden-xs">
            <b>Version</b> 2.3.0
        </div>
        <strong>Copyright &copy; 2014-2015 <a href="http://almsaeedstudio.com">Almsaeed Studio</a>.</strong> All rights reserved.
    </footer>



<script>
    
    $(".pdf_retiro").click(function (e) {
    //    e.preventDefault();  // Para evitar que se envíe por defecto
    //    // Establecemos las variables
        var id = this.getAttribute('id');
        //alert (id);
        //id.value().clone();

    });


    var Tusuarios = $('#tab_rel_distribucion').dataTable({
        "paging": true,
        "lengthChange": false,
        "autoWidth": false,
        "searching": false,
        "ordering": true,
        "info": true,
        "iDisplayLength": 10,
        "iDisplayStart": 0,
        "sPaginationType": "full_numbers",
        "aLengthMenu": [5,10,15],
        "oLanguage": {"sUrl": "<?= base_url() ?>/static/js/es.txt"},
        "decimal": ",",
        "thousands": ".",
        "aoColumns": [
            {"sClass": "registro center", "sWidth": "1%"},
            {"sClass": "registro center", "sWidth": "15%"},
        ],        
    });
    
    var Tusuarios = $('#tab_rel_links').dataTable({
        "paging": true,
        "lengthChange": false,
        "autoWidth": false,
        "searching": false,
        "ordering": true,
        "info": true,
        "iDisplayLength": 8,
        "iDisplayStart": 0,
        "sPaginationType": "full_numbers",
        "aLengthMenu": [5,10,15],
        "oLanguage": {"sUrl": "<?= base_url() ?>/static/js/es.txt"},
        "decimal": ",",
        "thousands": ".",
        "aoColumns": [
            {"sClass": "registro center", "sWidth": "1%"},
            {"sClass": "registro center", "sWidth": "15%"},
{'fraction_non_alphanumeric': 0.17347104749512035, 'fraction_numerical': 0.013581652569941444, 'mean_word_length': 1.2309506531204644, 'pattern_counts': {'":': 57, '<': 249, '<?xml version=': 0, '>': 271, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 49, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2269765', 'n_tokens_mistral': 3661, 'n_tokens_neox': 3341, 'n_words': 677}