[Fusionforge-commits] r10423 - in trunk/src/www: include news/admin project register survey/admin survey/include

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 8 20:22:01 CEST 2010


Author: aljeux
Date: 2010-09-08 20:22:00 +0200 (Wed, 08 Sep 2010)
New Revision: 10423

Modified:
   trunk/src/www/include/help.php
   trunk/src/www/news/admin/news_admin_utils.php
   trunk/src/www/project/request.php
   trunk/src/www/register/projectinfo.php
   trunk/src/www/survey/admin/show_results.php
   trunk/src/www/survey/include/SurveyHTML.class.php
Log:
xhtml & accesbility fixes

Modified: trunk/src/www/include/help.php
===================================================================
--- trunk/src/www/include/help.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/include/help.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -37,7 +37,7 @@
 <title><?php print $title; ?></title>
 </head>
 <body>
-<h4><?php echo forge_get_config ('forge_name'); ?> Site Help System:</h4>
+<h1><?php echo forge_get_config ('forge_name'); ?> Site Help System:</h1>
 <h2><?php print $title; ?></h2>
 <hr />
 <?php

Modified: trunk/src/www/news/admin/news_admin_utils.php
===================================================================
--- trunk/src/www/news/admin/news_admin_utils.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/news/admin/news_admin_utils.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -67,9 +67,9 @@
 
        	if ($rows < 1) {
        		echo '
-       			<h4>'._('No Queued Items Found').'</h4>';
+       			<h2>'._('No Queued Items Found').'</h2>';
        	} else {
-       		echo '<h4>'.sprintf(_('These items need to be approved (total: %1$s)'), $rows).'</h4>';
+       		echo '<h2>'.sprintf(_('These items need to be approved (total: %1$s)'), $rows).'</h2>';
        		echo $GLOBALS['HTML']->listTableTop($title_arr);
        		for ($i=0; $i<$rows; $i++) {
        			show_news_item($result,$i,false,true);
@@ -89,7 +89,7 @@
        		echo '
        			<h2>'._('No rejected items found for this week').'</h2>';
        	} else {
-       		echo '<h2>'.sprintf(_('These items were rejected this past week (total: %1$s)'), $rows).'</h2>';
+       		echo '<h2>'.sprintf(_('These items were rejected this past week or were not intended for front page (total: %1$s)'), $rows).'</h2>';
        		echo $GLOBALS['HTML']->listTableTop($title_arr);
        		for ($i=0; $i<$rows; $i++) {
        			show_news_item($result,$i,false,false);

Modified: trunk/src/www/project/request.php
===================================================================
--- trunk/src/www/project/request.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/project/request.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -63,7 +63,7 @@
 echo ngettext('You can request to join a project by clicking the submit button. The administrator will be emailed to approve or deny your request.', 'You can request to join a project by clicking the submit button. The administrators will be emailed to approve or deny your request.', $nbadmins); ?></p>
 <form action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id"; ?>" method="post">
 <p>
-<?php echo ngettext('You must send a comment to the administrator:', 'You must send a comment to the administrators:',$nbadmins); echo utils_requiredField(); ?><br>
+<?php echo ngettext('You must send a comment to the administrator:', 'You must send a comment to the administrators:',$nbadmins); echo utils_requiredField(); ?>
 </p>
 <textarea name="comments" rows="15" cols="60"><?php echo $comments ?></textarea>
 <p>

Modified: trunk/src/www/register/projectinfo.php
===================================================================
--- trunk/src/www/register/projectinfo.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/register/projectinfo.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -146,7 +146,8 @@
 echo '<h1>' . _('Register Project') . '</h1>';
 ?>
 
-<p><?php echo _('To apply for project registration, you should fill in basic information about it. Please read descriptions below carefully and provide complete and comprehensive data. All fields below are mandatory.') ?>
+<p>
+<?php echo _('To apply for project registration, you should fill in basic information about it. Please read descriptions below carefully and provide complete and comprehensive data. All fields below are mandatory.') ?>
 </p>
 
 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">

Modified: trunk/src/www/survey/admin/show_results.php
===================================================================
--- trunk/src/www/survey/admin/show_results.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/survey/admin/show_results.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -52,8 +52,9 @@
 $is_admin_page='y';
 $sh = new  SurveyHtml();
 
-$is_admin_page='y';
-$sh->header(array('title'=>_('Survey Results')));
+$title = _('Survey Results');
+$sh->header(array('title'=>$title));
+echo '<h1>' . $title . '</h1>';
 
 if (!session_loggedin() || !user_ismember($group_id,'A')) {
 	echo '<div class="error">'._('Permission denied').'</div>';

Modified: trunk/src/www/survey/include/SurveyHTML.class.php
===================================================================
--- trunk/src/www/survey/include/SurveyHTML.class.php	2010-09-08 18:21:41 UTC (rev 10422)
+++ trunk/src/www/survey/include/SurveyHTML.class.php	2010-09-08 18:22:00 UTC (rev 10423)
@@ -179,7 +179,7 @@
 			$survey_title = ''; 
 		}
 
-		$ret = '<h2>'. $title. '</h2>';
+		$ret = '<h1>'. $title. '</h1>';
 		$ret.= $warning;
 		$ret.='<form action="'.getStringFromServer('PHP_SELF').'" method="post">';
 		$ret.='<input type="hidden" name="post" value="Y" />';




More information about the Fusionforge-commits mailing list