10 {
11
13 ?>
14<fieldset><legend><?php echo $p_legend;?></legend>
15 <TABLE >
16
17 <?php
19 ?>
22 <?php echo $l_line['ac_description'];?>
24
25 <?php
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);
33 ?>
35
36
37 <?php echo $is_switch->input(); ?>
38
41 <?php
42}
43
44 ?>
46</fieldset>
47<?php
48
49}
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.