<commit_before>
<div class="export-tools">
    <div class="openclose">
        <?php echo $this->Html->image('oxygen/16x16/actions/tool2.png'); ?>
    </div>
    <ul class="toolslist">
        <li><?php
            echo $this->Html->image('oxygen/16x16/actions/mail_generic.png');
            echo $this->Html->link(__('email notifica iscrizione', true),
            array(
            'action' => 'mail_users_notification'),
            array(
            'title' => __('invia agli utenti una email con le istruzioni per accedere al sito', true)
            ));
            ?></li>
    </ul>
</div>

<div class="users index">
    <h2><?php __('Gestione utenti');
if(isset($role)) {
        echo ' - '.$role;
    } ?>
    (<?php echo $familiesCount; ?> <?php __('famiglie'); ?>)</h2>

    <div class="search">
        <?php
        echo $this->Form->create('Search', array('url' => array('controller' => 'users', 'action' => 'search')));
        echo $this->Form->text('key');
        echo $this->Form->end(__('Cerca', true));
        ?>
    </div>

    <p>
        <?php
        echo $this->Paginator->counter(array(
'format' => __('Pagina %page% di %pages%, %count% utenti totali', true)
));
        ?>	</p>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
    </div>

    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort(__('Nome', true), 'last_name');?></th>
            <th><?php echo $this->Paginator->sort(__('Username', true), 'username');?></th>
            <th><?php echo $this->Paginator->sort(__('e-mail', true), 'email');?></th>
            <th><?php echo $this->Paginator->sort(__('Tipo', true), 'role');?></th>
            <th><?php echo $this->Paginator->sort(__('Attivo', true), 'active');?></th>
            <th><?php echo $this->Html->link(__('Famiglia', true), array('fathers' => true));?></th>
            <th class="actions"><?php __('Azioni');?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($users as $user):
            $class = null;
            if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
    }
    ?>
        <tr<?php echo $class;?>>
            <td>
                <?php echo $user['User']['last_name']; ?>
                &nbsp;
                <?php echo $user['User']['first_name']; ?>&nbsp;
            </td>
            <td><?php echo $user['User']['username']; ?>&nbsp;</td>
            <td><?php echo $this->Html->link($user['User']['email'], 'mailto:'.$user['User']['email']); ?>&nbsp;</td>
            <td><?php echo Configure::read('roles.'.$user['User']['role']); ?>&nbsp;</td>
            <td class="align-center"><?php echo $user['User']['active']?'si':'no'; ?>&nbsp;</td>
            <td class="align-center">
                <?php
                if(isset($fathers[$user['User']['id']])) {
                    echo $this->Html->image('oxygen/family.png', array('title' => __('Visualizza famiglia', true), 'url' => array('action' => 'index', 'family' => $user['User']['id'])));
                } else if(empty($user['User']['parent_id'])) {
                    echo $this->Html->image('oxygen/single.png', array('title' => __('Partecipante single', true)));
                } else {
                    echo $this->Html->image('oxygen/child.png', array('title' => __('Appartiene a una famiglia', true)));
                }
                ?>
            </td>
            <td class="actions">
                <?php echo $this->Html->link(__('Modifica', true), array('action' => 'edit', $user['User']['id'])); ?>
                <?php echo $this->Html->link(__('Elimina', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
            </td>
        </tr>
<?php endforeach; ?>
    </table>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div>
<div class="actions">
    <h3><?php __('Actions'); ?></h3><commit_msg>piccola modifica a elenco utenti<commit_after>
<div class="export-tools">
    <div class="openclose">
        <?php echo $this->Html->image('oxygen/16x16/actions/tool2.png'); ?>
    </div>
    <ul class="toolslist">
        <li><?php
            echo $this->Html->image('oxygen/16x16/actions/mail_generic.png');
            echo $this->Html->link(__('email notifica iscrizione', true),
            array(
            'action' => 'mail_users_notification'),
            array(
            'title' => __('invia agli utenti una email con le istruzioni per accedere al sito', true)
            ));
            ?></li>
    </ul>
</div>

<div class="users index">
    <h2><?php __('Gestione utenti');
if(isset($role)) {
        echo ' - '.$role;
    } ?>
    (<?php echo $familiesCount; ?> <?php __('famiglie'); ?>)</h2>

    <div class="search">
        <?php
        echo $this->Form->create('Search', array('url' => array('controller' => 'users', 'action' => 'search')));
        echo $this->Form->text('key');
        echo $this->Form->end(__('Cerca', true));
        ?>
    </div>

    <p>
        <?php
        echo $this->Paginator->counter(array(
'format' => __('Pagina %page% di %pages%, %count% utenti totali', true)
));
        ?>	</p>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
    </div>

    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort(__('Nome', true), 'last_name');?></th>
            <th><?php echo $this->Paginator->sort(__('Username', true), 'username');?></th>
            <th><?php echo $this->Paginator->sort(__('e-mail', true), 'email');?></th>
            <th><?php echo $this->Paginator->sort(__('Tipo', true), 'role');?></th>
            <th><?php echo $this->Paginator->sort(__('Attivo', true), 'active');?></th>
            <th><?php echo $this->Html->link(__('Famiglia', true), array('fathers' => true));?></th>
            <th class="actions"><?php __('Azioni');?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($users as $user):
            $class = null;
            if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
    }
    ?>
        <tr<?php echo $class;?>>
            <td>
                <?php echo $user['User']['last_name']; ?>
                &nbsp;
                <?php echo $user['User']['first_name']; ?>&nbsp;
            </td>
            <td><?php echo $user['User']['username']; ?>&nbsp;</td>
            <td><?php echo $this->Html->link($user['User']['email'], 'mailto:'.$user['User']['email']); ?>&nbsp;</td>
            <td><?php echo Configure::read('roles.'.$user['User']['role']); ?>&nbsp;</td>
            <td class="align-center"><?php echo $user['User']['active']?'si':'no'; ?>&nbsp;</td>
            <td class="align-center">
                <?php
                if(isset($fathers[$user['User']['id']])) {
                    echo $this->Html->image('oxygen/family.png', array('title' => __('Visualizza famiglia', true), 'url' => array('action' => 'index', 'family' => $user['User']['id'])));
                } else if(empty($user['User']['parent_id'])) {
                    echo $this->Html->image('oxygen/single.png', array('title' => __('Partecipante single', true)));
                } else {
                    echo $this->Html->image('oxygen/child.png', array('title' => __('Appartiene a una famiglia', true), 'url' => array('action' => 'index', 'family' => $user['User']['parent_id'])));
                }
                ?>
            </td>
            <td class="actions">
                <?php echo $this->Html->link(__('Modifica', true), array('action' => 'edit', $user['User']['id'])); ?>
                <?php echo $this->Html->link(__('Elimina', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?>
            </td>
        </tr>
<?php endforeach; ?>
    </table>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
<?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div>
<div class="actions">
    <h3><?php __('Actions'); ?></h3>
{'fraction_non_alphanumeric': 0.248061156658542, 'fraction_numerical': 0.0039884777309993355, 'mean_word_length': 2.519298245614035, 'pattern_counts': {'":': 0, '<': 191, '<?xml version=': 0, '>': 332, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1661674', 'n_tokens_mistral': 2865, 'n_tokens_neox': 2862, 'n_words': 578}