[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/04: Task #1145 - Ajout attribut fait déca
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/04: Task #1145 - Ajout attribut fait décaler dans CARD->résumé #1145 Code rewriting |
Date: |
Mon, 13 Jul 2015 05:21:00 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9d487d5976be50f2a2281d999499ffe6092ffe58
Author: Dany De Bontridder <address@hidden>
Date: Fri Jul 10 01:09:48 2015 +0200
Task #1145 - Ajout attribut fait décaler dans CARD->résumé
#1145 Code rewriting
---
include/template/result_cat_card_summary.php | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/include/template/result_cat_card_summary.php
b/include/template/result_cat_card_summary.php
index 51e71c2..c2ef10f 100644
--- a/include/template/result_cat_card_summary.php
+++ b/include/template/result_cat_card_summary.php
@@ -47,18 +47,14 @@ 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);
- $found=0;
+ $row_content="";
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;
+ $row_content=h($value[$e]['label']);
break;
endif;
endfor;
- if ( $found == 0 ):
- echo td($attr->av_text,'style="padding: 0 10 1
10;white-space:nowrap;"');
-
- endif;
+ echo td($row_content,'style="padding: 0 10 1
10;white-space:nowrap;"');
endif;
endforeach;