[Fusionforge-commits] r17774 - trunk/src/www/project/stats

Marc-Etienne VARGENAU vargenau at fusionforge.org
Thu Aug 22 14:34:50 CEST 2013


Author: vargenau
Date: 2013-08-22 14:34:50 +0200 (Thu, 22 Aug 2013)
New Revision: 17774

Modified:
   trunk/src/www/project/stats/index.php
Log:
Center table

Modified: trunk/src/www/project/stats/index.php
===================================================================
--- trunk/src/www/project/stats/index.php	2013-08-22 12:02:17 UTC (rev 17773)
+++ trunk/src/www/project/stats/index.php	2013-08-22 12:34:50 UTC (rev 17774)
@@ -84,6 +84,10 @@
 if ($start && !is_numeric($start)) { $start = false; }
 if ($end && !is_numeric($end)) { $end = false; }
 
+if (!$group->usesStats()) {
+	exit_disabled('activity');
+}
+
 html_use_jqueryjqplotpluginCanvas();
 html_use_jqueryjqplotpluginhighlighter();
 html_use_jqueryjqplotplugindateAxisRenderer();
@@ -95,17 +99,19 @@
 // BEGIN PAGE CONTENT CODE
 //
 ?>
-<div align="center">
-
 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
-<input type="hidden" name="group_id" value="<?php echo $group_id; ?>" />
-<table><tr>
-<td><strong><?php echo _('Areas'); ?>:</strong><br /><?php echo report_area_box('area',$area,$group); ?></td>
-<td><strong><?php echo _('Type'); ?>:</strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
-<td><strong><?php echo _('Start Date'); ?>:</strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
-<td><strong><?php echo _('End Date'); ?>:</strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
-<td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?>" /></td>
-</tr></table>
+<table class="centered">
+<tr>
+<td><strong><?php echo _('Areas')._(':'); ?></strong><br /><?php echo report_area_box('area',$area,$group); ?></td>
+<td><strong><?php echo _('Type')._(':'); ?></strong><br /><?php echo report_span_box('SPAN',$SPAN); ?></td>
+<td><strong><?php echo _('Start Date')._(':'); ?></strong><br /><?php echo report_months_box($report, 'start', $start); ?></td>
+<td><strong><?php echo _('End Date')._(':'); ?></strong><br /><?php echo report_months_box($report, 'end', $end); ?></td>
+<td>
+	<input type="hidden" name="group_id" value="<?php echo $group_id; ?>" />
+	<input type="submit" name="submit" value="<?php echo _('Refresh'); ?>" />
+</td>
+</tr>
+</table>
 </form>
 <p>
 <?php
@@ -118,7 +124,6 @@
 }
 ?>
 </p>
-</div>
 <?php
 
 site_project_footer( array() );




More information about the Fusionforge-commits mailing list