[Fusionforge-commits] r10857 - in trunk/src/www: project/admin scm/reporting stats survey/admin tracker/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Oct 4 19:25:00 CEST 2010


Author: aljeux
Date: 2010-10-04 19:25:00 +0200 (Mon, 04 Oct 2010)
New Revision: 10857

Modified:
   trunk/src/www/project/admin/massadd.php
   trunk/src/www/project/admin/project_admin_utils.php
   trunk/src/www/project/admin/roleedit.php
   trunk/src/www/scm/reporting/commits_graph.php
   trunk/src/www/stats/graphs.php
   trunk/src/www/stats/site_stats_utils.php
   trunk/src/www/survey/admin/survey.php
   trunk/src/www/tracker/admin/form-workflow_roles.php
Log:
Minor layout, indent or messages changes.

Modified: trunk/src/www/project/admin/massadd.php
===================================================================
--- trunk/src/www/project/admin/massadd.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/project/admin/massadd.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -77,7 +77,7 @@
 <input type="hidden" name="accumulated_ids" value="'. implode(',',$accumulated_ids) .'" />';
 
 $abc_array = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
-echo _('<p>Choose the <strong>First Letter</strong> of the name of the person you wish to add.</p>');
+echo '<p>' . _('Choose the <strong>First Letter</strong> of the name of the person you wish to add.') . '</p>';
 for ($i=0; $i<count($abc_array); $i++) {
     if ($sw == $abc_array[$i]) {
         echo '<strong>'.$abc_array[$i].'</strong>&nbsp;';
@@ -87,7 +87,7 @@
 }
 
 if (!$res || db_numrows($res) < 1) {
-	echo _('<p>No Matching Users Found</p>');
+	echo '<p>' . _('No Matching Users Found') . '</p>';
 } else {
 
 	$titles[]=_('Real name');

Modified: trunk/src/www/project/admin/project_admin_utils.php
===================================================================
--- trunk/src/www/project/admin/project_admin_utils.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/project/admin/project_admin_utils.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -101,7 +101,7 @@
 
 */
 
-function project_admin_footer($params) {
+function project_admin_footer($params=array()) {
 	site_project_footer($params);
 }
 

Modified: trunk/src/www/project/admin/roleedit.php
===================================================================
--- trunk/src/www/project/admin/roleedit.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/project/admin/roleedit.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -244,7 +244,7 @@
 					$txt='';
 				}
 				echo '<tr ' . $HTML->boxGetAltRowStyle($j++) . '>
-				<td>'.$rbac_edit_section_names[$keys[$i]].'</td>
+				<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
 				<td>'.db_result($res,$q,'forum_name').'</td>
 				<td>'.html_build_select_box_from_assoc(
 					$role->getRoleVals($keys[$i]), 
@@ -263,7 +263,7 @@
 			array($group_id));
 		for ($q=0; $q<db_numrows($res); $q++) {
 			echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
-			<td>'.$rbac_edit_section_names[$keys[$i]].'</td>
+			<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
 			<td>'.db_result($res,$q,'project_name').'</td>
 			<td>'.html_build_select_box_from_assoc(
 				$role->getRoleVals($keys[$i]), 
@@ -298,7 +298,7 @@
 					$txt='';
 				}
 				echo '<tr '. $HTML->boxGetAltRowStyle($j++) . '>
-				<td>'.$rbac_edit_section_names[$keys[$i]].'</td>
+				<td style="padding-left: 4em;">'.$rbac_edit_section_names[$keys[$i]].'</td>
 				<td>'.db_result($res,$q,'name').'</td>
 				<td>'.html_build_select_box_from_assoc(
 					$role->getRoleVals($keys[$i]), 

Modified: trunk/src/www/scm/reporting/commits_graph.php
===================================================================
--- trunk/src/www/scm/reporting/commits_graph.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/scm/reporting/commits_graph.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -83,7 +83,6 @@
 $graph  = new PieGraph(640, 480,"auto");
 //$graph->SetMargin(50,10,35,50);
 
-//$graph->title->Set("Commits By User (".date('m/d/Y',$start) ."-". date('m/d/Y',$end) .")");
 $graph->title->Set(utf8_decode(_("Commits By User")." (".strftime('%x',$start) ." - ". strftime('%x',$end) .")"));
 $graph->subtitle->Set(forge_get_config ('forge_name'));
 

Modified: trunk/src/www/stats/graphs.php
===================================================================
--- trunk/src/www/stats/graphs.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/stats/graphs.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -30,10 +30,10 @@
 session_require_global_perm ('forge_stats', 'read') ;
 
 $HTML->header(array('title'=>sprintf(_('%1$s Site Statistics'), forge_get_config ('forge_name'))));
+echo "\n\n";
+print '<h1>'._('Sitewide Statistics Graphs').'</h1>' . "\n";
+?>
 
-print '<h1>'._('Sitewide Statistics Graphs').'</h1>';
-print '<div align="center">' . "\n";
-?>
 <hr />
 
 <table width="100%" cellpadding="0" cellspacing="0" border="0">
@@ -46,12 +46,12 @@
 
 <hr />
 
-<br /><br />
+<p style="text-align: center;">
 <img src="views_graph.php?monthly=1" alt="" />
-<br /><br />
+</p>
+<p style="text-align: center;">
 <img src="users_graph.php" alt="" />
-<br /><br />
-</div>
+</p>
 
 <?php
 $HTML->footer( array() );

Modified: trunk/src/www/stats/site_stats_utils.php
===================================================================
--- trunk/src/www/stats/site_stats_utils.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/stats/site_stats_utils.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -239,7 +239,7 @@
 		<table width="100%" cellpadding="0" cellspacing="0" border="0">
 
 		<tr valign="top" align="right" class="tableheading">
-			<td><strong><?php echo _('Group Name'); ?></strong></td>
+			<td><strong><?php echo _('Project Name'); ?></strong></td>
 			<td colspan="2"><strong><?php echo _('Page Views'); ?></strong></td>
 			<?php if (forge_get_config('use_frs')) { ?>
 			<td><strong><?php echo _('Downloads'); ?></strong></td>

Modified: trunk/src/www/survey/admin/survey.php
===================================================================
--- trunk/src/www/survey/admin/survey.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/survey/admin/survey.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -63,7 +63,7 @@
     $to_add = getStringFromRequest('to_add');
     $to_del = getStringFromRequest('to_del');
     $is_active = getStringFromRequest('is_active');
-  
+
     if ($survey_id) { /* Modify */
 		$s->update($survey_title, $to_add, $to_del, $is_active);
 		$feedback = _('Update Successful');

Modified: trunk/src/www/tracker/admin/form-workflow_roles.php
===================================================================
--- trunk/src/www/tracker/admin/form-workflow_roles.php	2010-10-04 17:24:55 UTC (rev 10856)
+++ trunk/src/www/tracker/admin/form-workflow_roles.php	2010-10-04 17:25:00 UTC (rev 10857)
@@ -58,8 +58,8 @@
 		}
 
 ?>
-    	<h1><?php printf(_('Configuring allowed roles for the transitions from %1$s to %2$s'), $name[$from], $name[$next]) ?></h1>
- 		<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID(); ?>" method="post">
+	<h1><?php printf(_('Configuring allowed roles for the transitions from %1$s to %2$s'), $name[$from], $name[$next]) ?></h1>
+		<form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id.'&amp;atid='.$ath->getID(); ?>" method="post">
 		<input type="hidden" name="field_id" value="<?php echo $field_id ?>" />
 		<input type="hidden" name="workflow_roles" value="1" />
 		<input type="hidden" name="from" value="<?php echo $from ?>" />




More information about the Fusionforge-commits mailing list