Admin : display folder improve , dynamic /static search
This commit is contained in:
parent
7a64c36f2a
commit
15ddd36809
5 changed files with 13 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
*/
|
||||
// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
|
||||
|
||||
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
|
||||
|
||||
/**
|
||||
* @file
|
||||
|
|
|
|||
|
|
@ -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++):
|
||||
|
|
@ -50,6 +50,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']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue