noalyss Version-9
user_sec_profile.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* $Revision$ */
21
22// Copyright Author Dany De Bontridder danydb@aevalys.eu
23
24/**
25 * @file
26 * @brief show the available profiles for action-management
27 *
28 */
29?>
30<form method="POST" class="print">
31 <?php echo HtmlInput::hidden('tab','profile_gestion_div')?>
32 <?php echo HtmlInput::hidden("p_id", $this->p_id);?>
33 <table>
34 <tr>
35 <th><?php echo _("Profil")?></th>
36 <th><?php echo _("Accès")?></th>
37 </tr>
38 <?php for ($i=0;$i<count($array);$i++): ?>
39 <tr>
40 <td>
41 <?php echo $array[$i]['p_name']?>
42 <?php echo HtmlInput::hidden('ua_id[]',$array[$i]['ua_id'])?>
43 <?php echo HtmlInput::hidden('ap_id[]',$array[$i]['p_id'])?>
44 </td>
45 <?php
46 $color=($array[$i]['ua_right']!='X')?"border:lightgreen 2px solid; ":"border:red 2px solid; ";
47 ?>
48 <td style="<?php echo $color?>">
49 <?php
50 $isel=new ISelect("right[]");
51 $isel->value=$aright_value;
52 $isel->selected=$array[$i]['ua_right'];
53 echo $isel->input();?>
54 </td>
55 </tr>
56 <?php endfor;?>
57 </table>
58<?php echo HtmlInput::submit("change_profile", _("Sauver"))?>
59</form>
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
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
$profile p_id
$opd_description style
static hidden($p_name, $p_value, $p_id="")
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
$all table
endfor