[Fusionforge-commits] r10773 - in trunk/src/www: news survey survey/admin tracker

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Sep 29 20:08:14 CEST 2010


Author: aljeux
Date: 2010-09-29 20:08:14 +0200 (Wed, 29 Sep 2010)
New Revision: 10773

Modified:
   trunk/src/www/news/index.php
   trunk/src/www/survey/admin/question.php
   trunk/src/www/survey/admin/show_results.php
   trunk/src/www/survey/admin/survey.php
   trunk/src/www/survey/index.php
   trunk/src/www/tracker/add.php
   trunk/src/www/tracker/browse.php
Log:
Better messages

Modified: trunk/src/www/news/index.php
===================================================================
--- trunk/src/www/news/index.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/news/index.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -72,12 +72,10 @@
 
 if ($rows < 1) {
 	if ($group_id) {
-		echo '<h2>'.sprintf(_('No News Found For %s'),group_getname($group_id)).'</h2>';
+		echo '<p class="warning_msg">'.sprintf(_('No News Found for %s'),group_getname($group_id)).'</p>';
 	} else {
-		echo '<h2>'._('No News Found').'</h2>';
+		echo '<p class="warning_msg">'._('No News Found').'</p>';
 	}
-	echo '
-		<p>' . _('No items were found') . '</p>';
 	echo db_error();
 } else {
 	echo news_show_latest($group_id,10,true,false,false,-1, true);

Modified: trunk/src/www/survey/admin/question.php
===================================================================
--- trunk/src/www/survey/admin/question.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/survey/admin/question.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -71,10 +71,10 @@
     /* Error */
     if ( $sq->isError()) {
 	$msg = _('Delete failed').' '.$sq->getErrorMessage();
-        echo '<div class="error">' .$msg ."</div>";
+        echo '<p class="error">' .$msg ."</p>";
     } else {
 	$msg = _('Delete successful');
-        echo '<div class="feedback">' .$msg ."</div>";
+        echo '<p class="feedback">' .$msg ."</p>";
     }
 } else if (getStringFromRequest('post')=="Y") {
     /* Modification */
@@ -94,9 +94,9 @@
     if ( $sq->isError()) {
 		$msg = $sq->getErrorMessage();
 		form_release_key(getStringFromRequest("form_key"));
-        echo '<div class="error">' .$msg ."</div>";
+        echo '<p class="error">' .$msg ."</p>";
     } else {
-        echo '<div class="feedback">' .$msg ."</div>";
+        echo '<p class="feedback">' .$msg ."</p>";
     }
 
     /* Add now Question */

Modified: trunk/src/www/survey/admin/show_results.php
===================================================================
--- trunk/src/www/survey/admin/show_results.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/survey/admin/show_results.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -113,7 +113,7 @@
 $sf = new SurveyFactory($g);
 $ss = & $sf->getSurveys();
 if (!$ss) {
-    echo '<div class="warning_msg">' . _('No Survey Question is found') . '</div>';
+    echo '<p class="warning_msg">' . _('No Survey Question is found') . '</p>';
 } else {
     echo($sh->ShowSurveys($ss, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1));
 }

Modified: trunk/src/www/survey/admin/survey.php
===================================================================
--- trunk/src/www/survey/admin/survey.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/survey/admin/survey.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -96,7 +96,7 @@
 $sf = new SurveyFactory($g);
 $ss = & $sf->getSurveys();
 if (!$ss) {
-    echo '<div class="warning_msg">' . _('No Survey Question is found') . '</div>';
+    echo '<p class="warning_msg">' . _('No Survey Question is found') . '</p>';
 } else {
     echo($sh->ShowSurveys($ss, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1));
 }

Modified: trunk/src/www/survey/index.php
===================================================================
--- trunk/src/www/survey/index.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/survey/index.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -54,7 +54,7 @@
 $sf = new SurveyFactory($g);
 $ss = & $sf->getSurveys();
 if (!$ss) {
-    echo '<div class="warning_msg">' . (_('No Survey is found')) . '</div>';
+    echo '<p class="warning_msg">' . (_('No Survey is found')) . '</p>';
 } else {
     echo($sh->showSurveys($ss, 0, 0, 1, 1, 1, 0));
 }

Modified: trunk/src/www/tracker/add.php
===================================================================
--- trunk/src/www/tracker/add.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/tracker/add.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -22,9 +22,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+$ath->header(array ('title'=>_('Submit New')));
 
-$ath->header(array ('title'=>_('Submit')));
-
 	/*
 		Show the free-form text submitted by the project admin
 	*/
@@ -43,7 +42,7 @@
 	            <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />';
 	if (!session_loggedin()) {
 		echo '
-		<div class="error">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode($REQUEST_URI)).'">', '</a>').'</div><<br />
+		<span class="warning_msg">'.sprintf(_('Please %1$s login %2$s'), '<a href="'.util_make_url ('/account/login.php?return_to='.urlencode($REQUEST_URI)).'">', '</a>').'</span><br /><br />
 		'._('If you <strong>cannot</strong> login, then enter your email address here').':<p>
 		<input type="text" name="user_email" size="50" maxlength="255" /></p>
 		';

Modified: trunk/src/www/tracker/browse.php
===================================================================
--- trunk/src/www/tracker/browse.php	2010-09-29 18:08:05 UTC (rev 10772)
+++ trunk/src/www/tracker/browse.php	2010-09-29 18:08:14 UTC (rev 10773)
@@ -714,7 +714,7 @@
 		show_priority_colors_key();
 	}
 } else {
-	echo '<div class="warning_msg">'._('No items found').'</div>';
+	echo '<p class="warning_msg">'._('No items found').'</p>';
 	echo db_error();
 }
 




More information about the Fusionforge-commits mailing list