5<div
id=
"security_action_tbl">
8 echo
HtmlInput::button(
"grant_all_action", _(
"Toutes les actions"),
" onclick=\" grant_action(1) \"");
9 echo
HtmlInput::button(
"revoke_all_action", _(
"Aucune action"),
" onclick=\" grant_action (0) \"");
14<fieldset><legend><?php echo $p_legend;?></legend>
22 <?php echo $l_line[
'ac_description'];?>
26 $right=$sec_User->check_action($l_line[
'ac_id']);
27 $is_switch=
new Inplace_Switch(sprintf(
'action%d',$l_line[
'ac_id']),$right);
28 $is_switch->set_callback(
"ajax_misc.php");
29 $is_switch->add_json_param(
"op",
"action_access");
30 $is_switch->add_json_param(
"gDossier",
$gDossier);
31 $is_switch->add_json_param(
"ac_id",$l_line[
'ac_id']);
32 $is_switch->add_json_param(
"user_id",$sec_User->id);
37 <?php echo $is_switch->input(); ?>
54$array=
$cn->get_array(
"select ac_id, ac_description from action where ac_id >=$1 and ac_id <=$2 order by ac_id ",
59$array=
$cn->get_array(
"select ac_id, ac_description from action where ac_id >=$1 and ac_id <=$2 order by ac_id ",
65 $array=
$cn->get_array(
"select ac_id, ac_description from action where ac_id >=$1 and ac_id <=$2 order by ac_id ",
71 $array=
$cn->get_array(
"select ac_id, ac_description from action where ac_id >=$1 and ac_id <=$2 order by ac_id ",
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
return false Description text align
A switch let you switch between 2 values : 0 and 1, it is used to replace the check.
display_security_fieldset($p_legend, $p_array, $sec_User)