noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/03: Admin : display folder improve , dynam


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/03: Admin : display folder improve , dynamic /static search
Date: Mon, 02 Nov 2015 18:09:46 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 15ddd368092040573ea49f7b00caef5f2e75d524
Author: Dany De Bontridder <address@hidden>
Date:   Mon Nov 2 18:41:23 2015 +0100

    Admin : display folder improve , dynamic /static search
---
 html/js/admin.js                    |    2 +-
 include/ajax/ajax_admin.php         |    6 +++++-
 include/constant.php                |    2 +-
 include/lib/message_javascript.php  |    1 -
 include/template/folder_display.php |    7 ++++++-
 5 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/html/js/admin.js b/html/js/admin.js
index 12ea004..7cd16bf 100644
--- a/html/js/admin.js
+++ b/html/js/admin.js
@@ -63,7 +63,7 @@ function folder_display(p_user)
             var content = getNodeText(html[0]);
             // fill up the div
             folder.innerHTML = unescape_xml(content);
-
+            folder.innerHTML.evalScripts();
             // show it
             folder.show();
             $('database_filter_input').focus();
diff --git a/include/ajax/ajax_admin.php b/include/ajax/ajax_admin.php
index 4668de5..ef04d33 100644
--- a/include/ajax/ajax_admin.php
+++ b/include/ajax/ajax_admin.php
@@ -132,7 +132,11 @@ if ($op=='folder_display') // operation
         <form method="get" onsubmit="folder_display('<?php echo $user_id ?>');
                         return false">
             <p style="text-align: center">
-                <?php echo _('Recherche'); ?><input type="text" 
id="database_filter_input" class="input_text" autofocus="true" nohistory 
autocomplete="false" value="<?php echo $p_filter ?>">
+                <?php echo _('Recherche'); ?>
+                
+                <input type="text" id="database_filter_input" 
class="input_text" autofocus="true" autocomplete="off" nohistory 
autocomplete="false" value="<?php echo $p_filter ?>" 
+                       onkeyup="filter_table(this, 
'folder_display_tb','1,2,3',0)"  >
+                <input type="button" class="smallbutton" 
onclick="$('database_filter_input').value='';filter_table($('database_filter_input'),
 'folder_display_tb','1,2,3',0);" value="X">
                 <input type="submit" class="smallbutton" value="<?php echo 
_('Valider') ?>">
             </p>
         </form>    
diff --git a/include/constant.php b/include/constant.php
index e12a76a..01d789e 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -117,7 +117,7 @@ define ('COMPTA_MIN_YEAR',1900);
 define ('MAX_RECONCILE',25);
 define ('MAX_QCODE',4);
 define ('MAX_SEARCH_CARD',20);
-define ('MAX_FOLDER_TO_SHOW',20);
+define ('MAX_FOLDER_TO_SHOW',80);
 define ('MAX_ACTION_SHOW',20);
 
 if ( DEBUG ) {
diff --git a/include/lib/message_javascript.php 
b/include/lib/message_javascript.php
index 633ca04..a06ffad 100644
--- a/include/lib/message_javascript.php
+++ b/include/lib/message_javascript.php
@@ -18,7 +18,6 @@
 */
 // Copyright (2014) Author Dany De Bontridder <address@hidden>
 
-if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
 
 /**
  * @file
diff --git a/include/template/folder_display.php 
b/include/template/folder_display.php
index fb33899..a4eb2e5 100644
--- a/include/template/folder_display.php
+++ b/include/template/folder_display.php
@@ -37,7 +37,7 @@ if ( count($a_dossier) == 0 )
     return;
 }
 ?>
-<table class="result">
+<table id="folder_display_tb" class="result">
 <?php
 $nb_dossier=count($a_dossier);
 for ($i=0;$i<$nb_dossier;$i++):
@@ -52,6 +52,11 @@ for ($i=0;$i<$nb_dossier;$i++):
         </td>
         <td>
             <?php
+            echo $a_dossier[$i]['dos_id'];
+            ?>
+        </td>
+        <td>
+            <?php
                 echo h($a_dossier[$i]['dos_name']);
             ?>
         </td>



reply via email to

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