Example #1
0
    ?>
" method="post">
     <DIV class="REQUADRE">
	    <?php 
    include_partial('botonera', array('tipus' => 'Tancar', 'url' => 'gestio/gUsuaris?accio=FC'));
    echo input_hidden_tag('id_usuari', $USUARI->getUsuariId());
    ?>
        <DIV class="TITOL">GestiĆ³ de permisos d'aplicacions de l'usuari <?php 
    echo $USUARI->getNomComplet();
    ?>
</DIV>        
      	<TABLE class="DADES">
                <?php 
    foreach (AppsPeer::select() as $IDAPP => $APP) {
        $SELECT = isset($LLISTAT_PERMISOS[$IDAPP]) ? $LLISTAT_PERMISOS[$IDAPP] : NivellsPeer::CAP;
        echo '<tr><td>' . AppsPeer::getNom($IDAPP) . '</td>
                				  <td>' . select_tag('PERMIS[' . $IDAPP . ']', options_for_select(NivellsPeer::getSelect(), $SELECT, array('include_blank' => true))) . '</td>
                			  </tr>';
    }
    echo '<TR><TD colspan="2"><button name="BACTUALITZA_PERMISOS" class="BOTO_ACTIVITAT">ACTUALITZA</TD></TR>';
    ?>
      	</TABLE>      
      </DIV>
     </form>

  <?php 
}
?>

	<?php 
if (isset($MODE['CONSULTA']) && $MODE['CONSULTA']) {