noalyss Version-9
profile_sec_repository.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 * @file
25 * @brief show the available profiles for action-management
26 *
27 */
28?>
29<form method="POST" class="print">
30<?php echo HtmlInput::hidden('tab','profile_repo_div')?>
31
32 <?php echo HtmlInput::hidden("p_id", $this->p_id);?>
33 <table>
34 <tr>
35 <th><?php echo _("Dépot")?></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]['r_name']?>
42 <?php echo HtmlInput::hidden('ur_id[]',$array[$i]['ur_id'])?>
43 <?php echo HtmlInput::hidden('ar_id[]',$array[$i]['r_id'])?>
44 </td>
45 <?php
46 $color=($array[$i]['ur_right']!='X')?"border:lightgreen 2px solid; ":"border:red 2px solid; ";
47 ?>
48 <td style="<?php echo $color?>">
49
50 <?php
51 $isel=new ISelect("right[]");
52 $isel->value=$aright_value;
53 $isel->selected=$array[$i]['ur_right'];
54 echo $isel->input();?>
55 </td>
56 </tr>
57 <?php endfor;?>
58 </table>
59<?php echo HtmlInput::submit("change_stock", _("Sauver"))?>
60</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