[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 05/05: Task #1145 - Ajout attribut fait déca
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 05/05: Task #1145 - Ajout attribut fait décaler dans CARD->résumé #1145: Ajout attribut fait décaler dans CARD->résumé |
Date: |
Thu, 09 Jul 2015 10:20:45 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 286e1af609d0d83d4e0c31c2d459295053b126d0
Author: Dany De Bontridder <address@hidden>
Date: Thu Jul 9 12:12:54 2015 +0200
Task #1145 - Ajout attribut fait décaler dans CARD->résumé
#1145: Ajout attribut fait décaler dans CARD->résumé
---
include/template/result_cat_card_summary.php | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/include/template/result_cat_card_summary.php
b/include/template/result_cat_card_summary.php
index 29a3595..51e71c2 100644
--- a/include/template/result_cat_card_summary.php
+++ b/include/template/result_cat_card_summary.php
@@ -47,12 +47,18 @@ echo td($detail);
echo td($attr->av_text,'style="padding: 0 10 1
10;white-space:nowrap;" '.$sort);
else:
$value=$cn->make_array($attr->ad_extra);
- for ($e=0;$e<count($value);$e++):
- if ( $value[$e]['value']==$attr->av_text):
- echo td($value[$e]['label'],'style="padding: 0
10 1 10;white-space:nowrap;"');
- break;
- endif;
- endfor;
+ $found=0;
+ for ($e=0;$e<count($value);$e++):
+ if ( $value[$e]['value']==$attr->av_text):
+ echo td($value[$e]['label'],'style="padding: 0
10 1 10;white-space:nowrap;"');
+ $found=1;
+ break;
+ endif;
+ endfor;
+ if ( $found == 0 ):
+ echo td($attr->av_text,'style="padding: 0 10 1
10;white-space:nowrap;"');
+
+ endif;
endif;
endforeach;