[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 25/323: Task#1461 : nombre de fiches dans ca
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 25/323: Task#1461 : nombre de fiches dans catégorie |
Date: |
Wed, 14 Mar 2018 17:38:11 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit b10be77d2e7690619946fce40132298bdb6a64c5
Author: Dany De Bontridder <address@hidden>
Date: Mon Jan 8 11:37:50 2018 +0100
Task#1461 : nombre de fiches dans catégorie
---
include/ajax/ajax_card.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php
index 4abfbf9..696368d 100644
--- a/include/ajax/ajax_card.php
+++ b/include/ajax/ajax_card.php
@@ -290,6 +290,7 @@ case 'st':
$r.='<table id="cat_card_table" class="result">';
for ($i=0;$i<count($array);$i++)
{
+ $nb_count=$cn->get_value("select count(*) from fiche where
fd_id=$1",[$array[$i]['fd_id']]);
$list_fiche.=sprintf("<fiche_cat_item>%d</fiche_cat_item>",$array[$i]['fd_id']);
$class=($i%2==0)?' class="even" ':' class="odd" ';
$r.='<tr '.$class.' id="select_cat_row_'.$array[$i]['fd_id'].'">';
@@ -297,7 +298,7 @@ case 'st':
$r.='<a href="javascript:void(0)"
onclick="select_cat(\''.$array[$i]['fd_id'].'\','.$gDossier.',\''.$eltid.'\')">'.h($array[$i]['fd_label']).'</a>';
$r.='</td>';
$r.='<td>';
- $r.='<a href="javascript:void(0)"
onclick="select_cat(\''.$array[$i]['fd_id'].'\','.$gDossier.',\''.$eltid.'\')">'.h($array[$i]['fd_description']).'</a>';
+ $r.='<a href="javascript:void(0)"
onclick="select_cat(\''.$array[$i]['fd_id'].'\','.$gDossier.',\''.$eltid.'\')">'.h($array[$i]['fd_description'])."($nb_count)".'</a>';
$r.='</td>';
$r.="</tr>";
- [Noalyss-commit] [noalyss] 18/323: cosmetic , add a button close for warning, (continued)
- [Noalyss-commit] [noalyss] 18/323: cosmetic , add a button close for warning, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 17/323: query is prepared twice and cannot be called only once, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 05/323: Fix : script failed due to the lack of search_path, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 10/323: Acc_Plan_SQL : add doxygen doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 14/323: Update Doxyfile : version nb, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 15/323: Fix problem with font OpenSans, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 19/323: Task #1516 : Module période : add icon for closing / opening, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 12/323: Rewriting periode : add format date + exception, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 24/323: use calcy instead of computing the scroll, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 20/323: Add documentation , code rewriting : use of title_box, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 25/323: Task#1461 : nombre de fiches dans catégorie,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 27/323: set_jrn in deprecated and replaced by set_ledger, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 22/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 28/323: Task #1466 : add a receipt number if paid by an ODS ledger, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 21/323: code rewriting : use of title_box + button close for Card Detail, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 26/323: Task#1461 : nombre de fiches dans catégorie, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 29/323: Task #1466 : add a receipt number if paid by an ODS ledger (Sale & Sold), Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 32/323: documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 30/323: Task #1326 & #1512 = ajout détail extourne, libellé, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 39/323: Bug : profile_id was missing, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 35/323: Bug in Manage_Table_SQL when an exception is thrown from ajax_input, Dany De Bontridder, 2018/03/14