[Fusionforge-commits] r14716 - in trunk/src/www: include mail my news people

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 10:23:49 CEST 2011


Author: aljeux
Date: 2011-10-26 10:23:48 +0200 (Wed, 26 Oct 2011)
New Revision: 14716

Modified:
   trunk/src/www/include/tool_reports.php
   trunk/src/www/include/vote_function.php
   trunk/src/www/mail/index.php
   trunk/src/www/my/dashboard.php
   trunk/src/www/my/diary.php
   trunk/src/www/news/index.php
   trunk/src/www/people/skills_utils.php
   trunk/src/www/people/viewjob.php
   trunk/src/www/people/viewprofile.php
Log:
Clean HTML code mostly

Modified: trunk/src/www/include/tool_reports.php
===================================================================
--- trunk/src/www/include/tool_reports.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/include/tool_reports.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -62,7 +62,7 @@
 		);
 		end_graph();
 		print '<p /><br />';
-		print '<table cellspacing="0" border="0"><tr align="center"><td width="15%">'._('Key').':</td><td width="5%">(</td><td width="35%" style="background-color:'.$bar_colors[0].'">'._('Open').'</td>'.
+		print '<table><tr class="align-center"><td width="15%">'._('Key').':</td><td width="5%">(</td><td width="35%" style="background-color:'.$bar_colors[0].'">'._('Open').'</td>'.
 		      '<td width="5%">/</td><td width="35%" style="background-color:'.$bar_colors[1].'">'._('All').' </td><td width="5%">)</td></tr></table>';
 		print '<p />';
 //      		GraphResult($result,$title);

Modified: trunk/src/www/include/vote_function.php
===================================================================
--- trunk/src/www/include/vote_function.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/include/vote_function.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -164,7 +164,7 @@
 	$quest_array=explode(',', $questions);
 	$count=count($quest_array);
 	echo '
-		<table border="0">';
+		<table>';
 	$q_num=1;
 
 	for ($i=0; $i<$count; $i++) {
@@ -182,11 +182,11 @@
 			*/
 
 			echo '
-				<tr><td valign="top"> </td><td>';
+				<tr><td class="top"> </td><td>';
 
 		} else {
 			echo '
-				<tr><td valign="top"><strong>';
+				<tr><td class="top"><strong>';
 			/*
 				If it's a 1-5 question box and first in series, move Quest
 				number down a bit

Modified: trunk/src/www/mail/index.php
===================================================================
--- trunk/src/www/mail/index.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/mail/index.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -64,7 +64,7 @@
 
 	$mlCount = count($mlArray);
 	if($mlCount == 0) {
-		echo '<p>'.sprintf(_('No Lists found for %1$s'), $group->getPublicName()) .'</p>';
+		echo '<p class="information">'.sprintf(_('No Lists found for %1$s'), $group->getPublicName()) .'</p>';
 		echo '<p>'._('Project administrators use the admin link to request mailing lists.').'</p>';
 		mail_footer(array());
 		exit;

Modified: trunk/src/www/my/dashboard.php
===================================================================
--- trunk/src/www/my/dashboard.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/my/dashboard.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -38,8 +38,8 @@
 	site_user_header(array('title'=>sprintf(_('Personal Page For %s'), $u->getRealName())));
 	?>
 
-	<table width="100%" border="0">
-	<tr><td valign="top" width="100%">
+	<table class="fullwidth">
+	<tr><td class="top" width="100%">
 	<?php
 
 	echo $HTML->boxTop(_('All trackers for my projects'), false, false);

Modified: trunk/src/www/my/diary.php
===================================================================
--- trunk/src/www/my/diary.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/my/diary.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -74,7 +74,6 @@
 			}
 		} else if (getStringFromRequest('add')) {
 			//inserting a new diary entry
-
 			$res=db_query_params ('INSERT INTO user_diary (user_id,date_posted,summary,details,is_public) VALUES
 								($1,$2,$3,$4,$5)',
 								array(user_getid() ,
@@ -188,7 +187,7 @@
 	<input type="hidden" name="form_key" value="'.form_generate_key().'"/>
 	<input type="hidden" name="'. $proc_str .'" value="1" />
 	<input type="hidden" name="diary_id" value="'. $_diary_id .'" />
-	<table width="100%">
+	<table class="fullwidth">
 	<tr><td colspan="2"><strong>'._('Summary').':</strong><br />
 		<input type="text" name="summary" size="60" maxlength="60" value="'. $_summary .'" />
 	</td></tr>
@@ -197,7 +196,7 @@
 		$params['content'].'</td></tr>
 	<tr><td colspan="2">
 		<p>
-		<input type="submit" name="submit" value="'._('SUBMIT ONLY ONCE').'" />
+		<input type="submit" name="submit" value="'._('Submit').'" />
 		  <input type="checkbox" name="is_public" value="1" '. (($_is_public)?'checked="checked"':'') .' /> '._('Is Public').'
 		</p>
 		<p>'._('If marked as public, your entry will be mailed to any monitoring users when it is first submitted.').'

Modified: trunk/src/www/news/index.php
===================================================================
--- trunk/src/www/news/index.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/news/index.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -69,9 +69,9 @@
 
 if ($rows < 1) {
 	if ($group_id) {
-		echo '<p class="warning_msg">'.sprintf(_('No News Found for %s'),group_getname($group_id)).'</p>';
+		echo '<p class="information">'.sprintf(_('No News Found for %s'),group_getname($group_id)).'</p>';
 	} else {
-		echo '<p class="warning_msg">'._('No News Found').'</p>';
+		echo '<p class="information">'._('No News Found').'</p>';
 	}
 	echo db_error();
 } else {

Modified: trunk/src/www/people/skills_utils.php
===================================================================
--- trunk/src/www/people/skills_utils.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/people/skills_utils.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -147,11 +147,11 @@
 			$finishY = substr($finish, 0, 4);
 			$finishM = substr($finish, 4, 2);
 
-			echo '<table border="0">'.
+			echo '<table>'.
 				'<tr '.$HTML->boxGetAltRowStyle($i+1).'>'.
 				'<td><h3>'.db_result($result, $i,'title').'</h3></td></tr>'.
 				'<tr><td>'.
-				'<table border="0" >'.
+				'<table>'.
 					'<tr class="tableheading">'.
 						'<td >'._('Type').'</td>'.
 						'<td >'._('Start Date').'</td>'.
@@ -168,7 +168,7 @@
 				'</td></tr>'.
 
 				'<tr '.$HTML->boxGetAltRowStyle($i+1).'><td>'.
-				'<table border="0">'.
+				'<table>'.
 					'<tr class="tableheading">'.
 						'<td>'._('Title (max 100 characters)').'</td>'.
 					'</tr>'.

Modified: trunk/src/www/people/viewjob.php
===================================================================
--- trunk/src/www/people/viewjob.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/people/viewjob.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -60,7 +60,7 @@
 //		<h2>'. db_result($result,0,'category_name') .' wanted for '. db_result($result,0,'group_name') .'</h2>
 		echo '
 		<p />
-		<table border="0" width="100%">
+		<table class="fullwidth">
                 <tr><td colspan="2">
 			<strong>'. db_result($result,0,'title') .'</strong>
 		</td></tr>

Modified: trunk/src/www/people/viewprofile.php
===================================================================
--- trunk/src/www/people/viewprofile.php	2011-10-26 07:59:24 UTC (rev 14715)
+++ trunk/src/www/people/viewprofile.php	2011-10-26 08:23:48 UTC (rev 14716)
@@ -62,7 +62,7 @@
         <p>
 		<strong>'._('Skills profile for').' : </strong>'. db_result($result,0,'realname') .
         ' ('.db_result($result, 0, 'user_name') .
-        ')<br /><br /></p> <table border="0" width="100%">';
+        ')<br /><br /></p> <table class="fullwidth">';
 
         displayUserSkills($user_id, 0);
 




More information about the Fusionforge-commits mailing list