noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
profile_sec_repository.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  * @file
00025  * @brief show the available profiles for action-management
00026  *
00027  */
00028 ?>
00029 <form method="POST" class="print">
00030 <?php echo HtmlInput::hidden('tab','profile_repo_div')?>
00031 
00032         <?php echo HtmlInput::hidden("p_id", $p_id);?>
00033         <table>
00034                 <tr>
00035                         <th><?php echo _("Dépot")?></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]['r_name']?>
00042                                 <?php echo HtmlInput::hidden('ur_id[]',$array[$i]['ur_id'])?>
00043                                 <?php echo HtmlInput::hidden('ar_id[]',$array[$i]['r_id'])?>
00044                         </td>
00045                          <?php
00046                             $color=($array[$i]['ur_right']!='X')?"border:lightgreen 2px solid; ":"border:red 2px solid; ";
00047                         ?>
00048                         <td style="<?php echo $color?>">
00049 
00050                                 <?php
00051                                 $isel=new ISelect("right[]");
00052                                 $isel->value=$aright_value;
00053                                 $isel->selected=$array[$i]['ur_right'];
00054                                 echo $isel->input();?>
00055                         </td>
00056                 </tr>
00057                 <?php endfor;?>
00058         </table>
00059 <?php echo HtmlInput::submit("change_stock", _("Sauver"))?>
 All Data Structures Namespaces Files Functions Variables Enumerations