[Fusionforge-commits] r11582 - trunk/src/www/tracker

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Fri Nov 19 11:47:55 CET 2010


Author: nerville
Date: 2010-11-19 11:47:55 +0100 (Fri, 19 Nov 2010)
New Revision: 11582

Modified:
   trunk/src/www/tracker/ind.php
Log:
implement new listTableTop

Modified: trunk/src/www/tracker/ind.php
===================================================================
--- trunk/src/www/tracker/ind.php	2010-11-19 10:46:57 UTC (rev 11581)
+++ trunk/src/www/tracker/ind.php	2010-11-19 10:47:55 UTC (rev 11582)
@@ -2,6 +2,7 @@
 /**
  * Tracker Front Page
  *
+ * Copyright 2010, Franck Villaume - Capgemini
  * http://fusionforge.org/
  *
  * This file is part of FusionForge.
@@ -31,6 +32,8 @@
 	exit_permission_denied('tracker');
 }
 
+use_javascript('/js/sortable.js');
+
 //required params for site_project_header();
 $params['group']=$group_id;
 $params['title']=sprintf(_('Trackers for %1$s'), $group->getPublicName());
@@ -61,9 +64,10 @@
 	/*
 		Put the result set (list of trackers for this group) into a column with folders
 	*/
-	$tablearr=array(_('Tracker'),_('Description'),_('Open'),_('Total'));
-	echo $HTML->listTableTop($tablearr);
+	$tablearr = array(_('Tracker'),_('Description'),_('Open'),_('Total'));
 
+	echo $HTML->listTableTop($tablearr, false, 'sortable_table_tracker', 'sortable_table_tracker');
+
 	for ($j = 0; $j < count($at_arr); $j++) {
 		if (!is_object($at_arr[$j])) {
 			//just skip it
@@ -71,7 +75,7 @@
 			echo $at_arr[$j]->getErrorMessage();
 		} else {
 			echo '
-		<tr '. $HTML->boxGetAltRowStyle($j) . '>
+		<tr>
 			<td><a href="'.util_make_url ('/tracker/?atid='.$at_arr[$j]->getID().'&amp;group_id='.$group_id.'&amp;func=browse').'">'.
  				html_image("ic/tracker20w.png","20","20").' &nbsp;'.
 				$at_arr[$j]->getName() .'</a>




More information about the Fusionforge-commits mailing list