예제 #1
0
        <td style="width: 25px;"></td>
        <td style="width: 25px;"></td>
        <td style="width: 25px;"></td>
        <td style="width: 25px;"></td>
      </tr>
    <?php
    $type_collection = new PropelCollection();
    $type_collection = AbsenceEleveTypeQuery::create()
                       ->leftJoinWith('AbsenceEleveType.AbsenceEleveLieu')
                       ->findList();
    $type = new AbsenceEleveType();
    $i = '1';
    foreach ($type_collection as $type) { ?>
        <tr>
	  <td><?php echo $type->getNom(); ?></td>
	  <td><?php echo $type->getCommentaire(); ?></td>
	  <td><?php if ($type->getJustificationExigible()) { ?><img src='../../images/enabled.png' width='20' height='20' title='oui' alt='oui' /><?php } ?></td>
	  <td>
	    <?php if ($type->getSousResponsabiliteEtablissement() == AbsenceEleveType::SOUS_RESP_ETAB_VRAI) { echo "<img src='../../images/enabled.png' width='20' height='20' title='oui' alt='oui' />"; }
		else if ($type->getSousResponsabiliteEtablissement() == AbsenceEleveType::SOUS_RESP_ETAB_FAUX) { echo "<img src='../../images/disabled.png' width='20' height='20' title='non' alt='non' />"; }
		//si le ManquementObligationPresence est non precisé on affiche rien
	    ?>
	  </td>
	  <td>
	    <?php if ($type->getManquementObligationPresence() == AbsenceEleveType::MANQU_OBLIG_PRESE_VRAI) { echo "<img src='../../images/enabled.png' width='20' height='20' title='oui' alt='oui' />"; }
		else if ($type->getManquementObligationPresence() == AbsenceEleveType::MANQU_OBLIG_PRESE_FAUX) { echo "<img src='../../images/disabled.png' width='20' height='20' title='non' alt='non' />"; }
		//si le ManquementObligationPresence est non precisé on affiche rien
	    ?>
	  </td>
	  <td>
	    <?php if ($type->getRetardBulletin() == AbsenceEleveType::RETARD_BULLETIN_VRAI) { echo "<img src='../../images/enabled.png' width='20' height='20' title='oui' alt='oui' />"; }