<?php echo $__env->make('admin.users.top',array('title' => 'Anagrafica - Importa utenti'), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php echo HTML::script('js/jquery.ui.widget.js'); ?>
<?php echo HTML::script('js/jquery.fileupload.js'); ?>
<?php echo HTML::script('js/jquery.iframe-transport.js'); ?>
<?php echo HTML::script('js/pa/import-users.js'); ?>
<?php echo HTML::style('css/jquery.fileupload.css',array('type' => 'text/css')); ?>
<div class="row">
    <div class="col-md-12">
        <div class="alert alert-warning fade in" style="display: none">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            <div id="textOutput"></div>
        </div>
    </div>
</div>
<div class="row form-horizontal">
    <div class="col-md-5">
        <span class="btn btn-primary fileinput-button">
            <i class="glyphicon glyphicon-plus"></i>
            <span>Seleziona il file CSV...</span>

            <input id="fileupload" type="file" name="csvfile">
        </span>
    </div>
    <div id="afterImport" class="hidden">
        <label for="typeImport" class="col-md-2 control-label">Operazione :</label>
        <div class="col-md-3">
            <select id="typeImport" name="typeImport" class="form-control">
                <optgroup label="Azione:">
                    <option value="REG">Registrazione</option>
                    <option value="DEL">Cancella utente</option>
                </optgroup>
            </select>
        </div>
        <div class="col-md-2">
            <button type="button" id="btnConfirm" class="btn btn-success pull-right"><span class="glyphicon glyphicon-import"></span> Conferma</button>
        </div>
    </div>
</div>
<div class="both bordered-bottom"></div>

<div class="table-responsive">
    <table id="users_import_table" class="table-small table-admin table table-striped table-bordered" cellspacing="0" width="100%" style="display: none">
        <thead>
        <tr>
            <th data-name="nome">Nome</th>
            <th data-name="cognome">Cognome</th>
            <th data-name="struttura">Struttura</th>
            <th data-name="email">Email</th>
            <th data-name="username">Username</th>
            <th data-name="pw">Password</th>
            <th data-name="valid"></th>
            <th data-name="vemail"></th>
        </tr>
        </thead>
        <tbody>

        </tbody>
    </table>
</div>

