[ghelda-devel] [25] Update xHTML.inc.php to accept SELECTs kindly in lists.

[ Thread Index | Date Index | More lists.tuxfamily.org/ghelda-devel Archives ]


Revision: 25
Author:   odyx
Date:     2009-04-29 14:27:25 +0200 (Wed, 29 Apr 2009)

Log Message:
-----------
Update xHTML.inc.php to accept SELECTs kindly in lists.

Needed for upcoming plugins/Groups

Modified Paths:
--------------
    trunk/inc/outputs/xHTML.class.php


Modified: trunk/inc/outputs/xHTML.class.php
===================================================================
--- trunk/inc/outputs/xHTML.class.php	2009-04-27 15:36:40 UTC (rev 24)
+++ trunk/inc/outputs/xHTML.class.php	2009-04-29 12:27:25 UTC (rev 25)
@@ -283,6 +283,9 @@
 					if(stripos($fieldsSpec[$fieldName]['type'],'date') !== false) { // If we have a date
 						$fieldContent = $this->formatDate($fieldContent);
 					}
+					elseif(stripos($fieldsSpec[$fieldName]['type'],'select') !== false) { // If we have a select
+						$fieldContent = $fieldsSpec[$fieldName]['values'][$fieldContent];
+					}
 					$line .= $this->tag('td',$fieldContent);
 			}
 			// Restore the old querystring


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/