noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 89/323: task #0001533: Possibilité d'activer


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 89/323: task #0001533: Possibilité d'activer ou désactiver des étiquettes Cache ou montre les tags inactifs dans recherche
Date: Wed, 14 Mar 2018 17:38:28 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit f7f922eb98b165482c4bdf4f77fc3a1a82436f84
Author: Dany De Bontridder <address@hidden>
Date:   Thu Jan 25 20:32:21 2018 +0100

    task #0001533: Possibilité d'activer ou désactiver des étiquettes
    Cache ou montre les tags inactifs dans recherche
---
 include/template/tag_search_select.php | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/include/template/tag_search_select.php 
b/include/template/tag_search_select.php
index bfabb4c..cd48dac 100644
--- a/include/template/tag_search_select.php
+++ b/include/template/tag_search_select.php
@@ -10,6 +10,8 @@ if ( $max == 0 ) {
 }
 ?>
 <?php echo _("Cherche")." ".HtmlInput::filter_table($p_prefix.'tag_tb_id', 
'0,1', 1); ?>
+<?php echo HtmlInput::button_action(_('Uniquement actif'), 
'show_only_row(\''.$p_prefix.'tag_tb_id'.'\',\'tag_status\',\'Y\')');?>
+<?php echo HtmlInput::button_action(_('Tous'), 
'show_all_row(\''.$p_prefix.'tag_tb_id'.'\')');?>
 <table class="result" id="<?php echo $p_prefix;?>tag_tb_id">
     <tr>
         <th>
@@ -23,8 +25,9 @@ if ( $max == 0 ) {
 $gDossier=Dossier::id();
     for ($i=0;$i<$max;$i++):
         $row=Database::fetch_array($ret, $i);
+    $attr=sprintf('tag_status="%s"',$row['t_actif']);
 ?>
-    <tr class="<?php echo (($i%2==0)?'even':'odd');?>">
+    <tr <?=$attr?> class="<?php echo (($i%2==0)?'even':'odd');?>">
         <td>
             <?php
             
$js=sprintf("search_add_tag('%s','%s','%s')",$gDossier,$row['t_id'],$p_prefix);
@@ -36,6 +39,13 @@ $gDossier=Dossier::id();
             echo $row['t_description'];
             ?>
         </td>
+         <td>
+            <?php
+            if ( $row['t_actif'] == 'N') { 
+                echo _('non actif');
+            }
+            ?>
+        </td>
     </tr>
 <?php
  endfor;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]