noalyss Version-9
Functions | Variables
security_list_action.php File Reference

Go to the source code of this file.

Functions

 display_security_fieldset ($p_legend, $p_array, $sec_User)
 

Variables

 $array
 

Function Documentation

◆ display_security_fieldset()

display_security_fieldset (   $p_legend,
  $p_array,
  $sec_User 
)

Definition at line 10 of file security_list_action.php.

10 {
11
13 ?>
14<fieldset><legend><?php echo $p_legend;?></legend>
15 <TABLE >
16
17 <?php
18 foreach ( $p_array as $l_line){
19 ?>
20 <tr>
21 <td align="right">
22 <?php echo $l_line['ac_description'];?>
23 </td>
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 ?>
34 <td >
35
36
37 <?php echo $is_switch->input(); ?>
38
39 </td>
40 </tr>
41 <?php
42} // end loop
43
44 ?>
45 </table>
46</fieldset>
47<?php
48
49}// end function
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
return false Description text align
$input_from id
Definition: balance.inc.php:63
A switch let you switch between 2 values : 0 and 1, it is used to replace the check.
$all table

References $gDossier, $p_array, align, id, table, td(), and tr().

+ Here is the call graph for this function:

Variable Documentation

◆ $array

$array
Initial value:
=$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 54 of file security_list_action.php.