<commit_before>
<div class="-page-header">
  <h3>Absences <small><i class="glyphicon glyphicon-chevron-right"></i> Récapitulatif</small></h3>
</div>

<div class="row">
  <div class="col-md-3">
    
    <div class="panel panel-default">
      <div class="panel-body">
        
        <?php echo form_open('absences/recap', 'method=GET"') ?>
          <div class="form-group">
            <label class="form-label" for="id_annee">Année scolaire</label>
            <?php echo form_dropdown("id_annee", $annees, $id_annee, 'class="form-control" id=id_annee') ?>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="id_group">Classes</label>
            <?php echo form_dropdown("id_group", ['' => "Toutes les classes"] + $classes, $id_group, 'class="form-control" id=id_group') ?>
          </div>
          
          <button type="submit" class="btn btn-block btn-info">Filtrer</button>
        <?php echo form_close() ?>
        
      </div>
    </div>
    
  </div>
  <div class="col-md-9">
    
    <div class="panel panel-default">
      <div class="panel-body">
        
        <table class="table -table-bordered table-condensed table-striped table-hover" style="margin-bottom: 10px">
          <thead>
            <tr>
              <th>Etudiant</th>
              <th class="hidden-xs text-center">Semestre 1</th>
              <th class="hidden-xs text-center">Semestre 2</th>
              <th class="text-center">Total</th>
            </tr>
          </thead>
          <tbody>
            <?php if (! count($records) ): ?>
            <tr class="warning text-center"><td colspan="7">Aucun résultat trouvé</td></tr>
            <?php else: ?>
            <?php foreach ($records as $item) : ?>
            <tr>
              <td><?php echo anchor("absences?e={$item->id}", "{$item->code} {$item->prenom} {$item->nom}") ?></td>
              <td class="hidden-xs text-center"><?php echo $s1 = (int) $item->s1 ?></td>
              <td class="hidden-xs text-center"><?php echo $s2 = (int) $item->s2 ?></td>
              <td class="text-center"><?php echo $s1 + $s2 ?></td>
            </tr>
            <?php endforeach; ?>
            <?php endif; ?>
          </tbody>
        </table>
        
      </div>
    </div>
    
  </div>
</div><commit_msg>Update recap.php<commit_after>
<div class="-page-header">
  <h3>Absences <small><i class="glyphicon glyphicon-chevron-right"></i> Récapitulatif</small></h3>
</div>

<div class="row">
  <div class="col-md-3">
    
    <div class="panel panel-default">
      <div class="panel-body">
        
        <?php echo form_open('absences/recap', 'method=GET"') ?>
          <div class="form-group">
            <label class="form-label" for="id_annee">Année scolaire</label>
            <?php echo form_dropdown("id_annee", $annees, $id_annee, 'class="form-control" id=id_annee') ?>
          </div>
          
          <div class="form-group">
            <label class="form-label" for="id_group">Classes</label>
            <?php echo form_dropdown("id_group", ['' => "Toutes les classes"] + $classes, $id_group, 'class="form-control" id=id_group') ?>
          </div>
          
          <button type="submit" class="btn btn-block btn-info">Filtrer</button>
        <?php echo form_close() ?>
        
      </div>
    </div>
    
  </div>
  <div class="col-md-9">
    
    <div class="panel panel-default">
      <div class="panel-body">
        
        <table class="table -table-bordered table-condensed table-striped table-hover" style="margin-bottom: 10px">
          <thead>
            <tr>
              <th>Etudiant</th>
              <th class="hidden-xs text-center">Semestre 1</th>
              <th class="hidden-xs text-center">Semestre 2</th>
              <th class="text-center">Total</th>
            </tr>
          </thead>
          <tbody>
            <?php if (! count($records) ): ?>
            <tr class="warning text-center"><td colspan="7">Aucun résultat trouvé</td></tr>
            <?php else: ?>
            <?php foreach ($records as $item) : ?>
            <tr>
              <td><?php echo anchor("absences?e={$item->id}&s=all&a={$id_annee}", "{$item->code} {$item->prenom} {$item->nom}") ?></td>
              <td class="hidden-xs text-center"><?php echo $s1 = (int) $item->s1 ?></td>
              <td class="hidden-xs text-center"><?php echo $s2 = (int) $item->s2 ?></td>
              <td class="text-center"><?php echo $s1 + $s2 ?></td>
            </tr>
            <?php endforeach; ?>
            <?php endif; ?>
          </tbody>
        </table>
        
      </div>
    </div>
    
  </div>
</div>

<script type="text/javascript">
  $('#id_annee').change(function (e) {
    location.href = "<?php echo uri_string() ?>?id_annee=" + $(this).val()
  })
</script>
{'fraction_non_alphanumeric': 0.193033381712627, 'fraction_numerical': 0.006220194899440182, 'mean_word_length': 2.053164556962025, 'pattern_counts': {'":': 0, '<': 156, '<?xml version=': 0, '>': 170, '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': '6522699', 'n_tokens_mistral': 1585, 'n_tokens_neox': 1580, 'n_words': 313}