<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>
<div class="content-wrapper ">
    <section class="content-header">
        <?php echo $pagetitle; ?>
        <?php echo $breadcrumb; ?>
    </section>
    <section class="content">
        <div class="row">
            <!-- Custom Tabs -->
            <div class="nav-tabs-custom">
                <div class="tab-content" style="background-color:#F0F0F0">
                    <div id="tab_1" class="tab-pane active">
                        <div class="box-body" style="background-color:#F0F0F0" id="div_reg01">
                            <div class="col-sm-4">
                                <div class="box box-info">
                                    <div class="box-header with-border">
                                        <h3 class="box-title"><?php echo "Carga Masiva de Fotos"; ?></h3>
                                    </div>
                                    <div class="box-body">
                                        <?php if (isset($_SESSION['errores_de_fotos'])):?>
                                        <pre id="mensajes">
                                            <?php //print_r($_SESSION['errores_de_fotos']); ?>
                                        </pre>
                                        <?php endif;?>

                                        <?php if (isset($_SESSION['carga_masiv_error'])):?>
                                        <pre>
                                            <h5 id="mensajes"><?php echo $_SESSION['carga_masiv_error'];?></h5>
                                        </pre>
                                        <?php endif;?>
                                        <?php echo form_open_multipart(current_url(),array('id' => 'form-carga_masiv')) ?>
                                        <div class="form-group">
                                            <?php echo lang('colonias_dpto_cod', 'dpto_cod', array('class' => 'col-sm-1 control-label')); ?>
                                            <div>
                                                <?php  
                                                    $attribute = 'class="form-control selectpicker" title="Departamentos" id="dpto" name="dpto" '; 
                                                    echo form_dropdown('dpto', $departamentos, '',$attribute); ?>
                                            </div>
                                            <?php echo lang('colonias_dist_cod', 'dist_cod', array('class' => 'col-sm-1 control-label')); ?>
                                            <div>
                                                <select class="form-control selectpicker" title="Distritos" id="dist" name="dist"></select>
                                            </div>
                                            <?php echo lang('colonias_col_cod', 'col_cod', array('class' => 'col-sm-1 control-label')); ?>
                                            <div>
                                                <select class="form-control selectpicker" title="Colonias" id="col_cod" name="col_cod"></select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="fotos_cuest" class="col-sm-2 control-label">Carpeta:</label>
                                            <div class="col-sm-1">
                                                <input name="fotos_cuest[]" id="fotos_cuest[]" type="file" webkitdirectory directory/>
                                            </div>
                                        </div>
                                        <br>
                                        <br>
                                        <br>
                                        <div class="form-group">
                                            <div <div class="col-md-offset-1 col-md-10" align="center">
                                                <div class="btn-group">
                                                    <?php echo form_button(array('id' => 'carga_masiv_btn','type' => 'button', 'class' => 'btn btn-primary btn-flat', 'content' => 'Importar Fotos')); ?>
                                                </div>
                                            </div>
                                        </div>
                                        <?php echo form_close(); ?>
                                    </div>
                                </div>
                            </div>
                            <!-- Fin bloque de Mapa-->
                        </div><!-- /.box-body -->
                    </div><!-- /.tab-pane -->
                </div><!-- /.tab-content -->
            </div><!-- nav-tabs-custom -->                          
        </div>
    </section>
</div>