Author: danydb
Date: 2012-06-19 19:47:26 +0200 (Tue, 19 Jun 2012)
New Revision: 4945

Modified:
   phpcompta/trunk/include/template/user_sec_profile.php
   phpcompta/trunk/include/template/user_sec_repository.php
Log:
Color red or green following that you have or not access

Modified: phpcompta/trunk/include/template/user_sec_profile.php
===================================================================
--- phpcompta/trunk/include/template/user_sec_profile.php       2012-06-19 
17:46:29 UTC (rev 4944)
+++ phpcompta/trunk/include/template/user_sec_profile.php       2012-06-19 
17:47:26 UTC (rev 4945)
@@ -42,9 +42,9 @@
                                
<?=HtmlInput::hidden('ap_id[]',$array[$i]['p_id'])?>
                        </td>
                         <?
-                            
$color=($array[$i]['ua_right']!='')?"border:lightgreen 2px solid; ":"border:red 
2px solid; ";
+                            
$color=($array[$i]['ua_right']!='X')?"border:lightgreen 2px solid; 
":"border:red 2px solid; ";
                         ?>
-                       <td <?=$color?>>
+                       <td style="<?=$color?>">
                                <?
                                $isel=new ISelect("right[]");
                                $isel->value=$aright_value;

Modified: phpcompta/trunk/include/template/user_sec_repository.php
===================================================================
--- phpcompta/trunk/include/template/user_sec_repository.php    2012-06-19 
17:46:29 UTC (rev 4944)
+++ phpcompta/trunk/include/template/user_sec_repository.php    2012-06-19 
17:47:26 UTC (rev 4945)
@@ -41,9 +41,10 @@
                                
<?=HtmlInput::hidden('ar_id[]',$array[$i]['r_id'])?>
                        </td>
                          <?
-                            
$color=($array[$i]['ur_right']!='')?"border:lightgreen 2px solid; ":"border:red 
2px solid; ";
+                            
$color=($array[$i]['ur_right']!='X')?"border:lightgreen 2px solid; 
":"border:red 2px solid; ";
                         ?>
-                       <td <?=$color?>>
+                       <td style="<?=$color?>">
+
                                <?
                                $isel=new ISelect("right[]");
                                $isel->value=$aright_value;



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilit&#233; en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to