Go to the source code of this file.
Functions | |
| display_security_fieldset ($p_legend, $p_array, $sec_User) | |
Variables | |
| $array | |
| display_security_fieldset | ( | $ | p_legend, |
| $ | p_array, | ||
| $ | sec_User | ||
| ) |
Definition at line 6 of file security_list_action.php.
References $a, $array, $gDossier, $p_array, echo, id, style, table, td(), and tr().
{
$array=array(array('value'=>0,'label'=>_("Pas d'accès")),
array('value'=>1,'label'=>_('Accès')),
);
$gDossier=dossier::id();
?>
<fieldset><legend><?php echo $p_legend;?></legend>
<TABLE >
<?php
foreach ( $p_array as $l_line){
?>
<tr>
<td align="right">
<?php echo $l_line['ac_description'];?>
</td>
<?php
$right=$sec_User->check_action($l_line['ac_id']);
$a=new ISelect();
$a->name=sprintf('action%d',$l_line['ac_id']);
$a->value=$array;
$a->selected=$right;
if ( $right==1) {
?>
<td style="border:lightgreen 2px solid; ">
<?php } else { ?>
<td style="border:red 2px solid; " align="right">
<?php }?>
<?php echo $a->input(); ?>
</td>
</tr>
<?php
} // end loop
?>
</table>
</fieldset>
<?php
}// end function
| $array |
$cn->get_array("select ac_id, ac_description from action where ac_id >=$1 and ac_id <=$2 order by ac_id ", array(800,1000))
Definition at line 52 of file security_list_action.php.