Author: danydb
Date: 2013-07-10 19:12:32 +0200 (Wed, 10 Jul 2013)
New Revision: 5331
Modified:
phpcompta/tags/rel660/html/ajax_card.php
Log:
Card ordered by name
Modified: phpcompta/tags/rel660/html/ajax_card.php
===================================================================
--- phpcompta/tags/rel660/html/ajax_card.php 2013-07-03 20:08:41 UTC (rev
5330)
+++ phpcompta/tags/rel660/html/ajax_card.php 2013-07-10 17:12:32 UTC (rev
5331)
@@ -258,7 +258,8 @@
$html.='</h3>';
break;
}
- $sql.=" ".$where;
+ $sql.=" ".$where." order by fd_label";
+
$array=$cn->make_array($sql);
$html=HtmlInput::anchor_close('select_card_div');
$html.=h2info('Choix de la catégorie');
@@ -364,9 +365,8 @@
$html.='</h3>';
break;
}
- /* We limit the search to 20 records */
- $sql=$sql.' order by vw_name limit 20';
- $a=$cn->get_array($sql);
+ /* We limit the search to MAX_SEARCH_CARD records */
+ $sql=$sql.' order by vw_name limit '.MAX_SEARCH_CARD;
for($i=0;$i<count($a);$i++)
{
@@ -439,7 +439,7 @@
$search->set_attribute('account',$search->name);
$search->set_attribute('ipopup','ipop_account');
- $nom_mod=new IText("nom_mod");
+ $nom_mod=new IText("nom_mod");
$str_poste=$search->input();
$submit=HtmlInput::submit('save',_('Sauve'));
ob_start();
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
_______________________________________________
Phpcompta est un logiciel libre de comptabilité en ligne
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev