noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
user_sec_profile.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 /* $Revision$ */
00021 
00022 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00023 
00024 /**
00025  * @file
00026  * @brief show the available profiles for action-management
00027  *
00028  */
00029 ?>
00030 <form method="POST" class="print">
00031     <?php echo HtmlInput::hidden('tab','profile_gestion_div')?>
00032         <?php echo HtmlInput::hidden("p_id", $p_id);?>
00033         <table>
00034                 <tr>
00035                         <th><?php echo _("Profil")?></th>
00036                         <th><?php echo _("Accès")?></th>
00037                 </tr>
00038                 <?php for ($i=0;$i<count($array);$i++): ?>
00039                 <tr>
00040                         <td>
00041                                 <?php echo $array[$i]['p_name']?>
00042                                 <?php echo HtmlInput::hidden('ua_id[]',$array[$i]['ua_id'])?>
00043                                 <?php echo HtmlInput::hidden('ap_id[]',$array[$i]['p_id'])?>
00044                         </td>
00045                         <?php
00046                             $color=($array[$i]['ua_right']!='X')?"border:lightgreen 2px solid; ":"border:red 2px solid; ";
00047                         ?>
00048                         <td style="<?php echo $color?>">
00049                                 <?php
00050                                 $isel=new ISelect("right[]");
00051                                 $isel->value=$aright_value;
00052                                 $isel->selected=$array[$i]['ua_right'];
00053                                 echo $isel->input();?>
00054                         </td>
00055                 </tr>
00056                 <?php endfor;?>
00057         </table>
00058 <?php echo HtmlInput::submit("change_profile", _("Sauver"))?>
00059 </form>
 All Data Structures Namespaces Files Functions Variables Enumerations