[Fusionforge-commits] r14715 - in trunk/src/www: export forum top trove trove/admin

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 09:59:24 CEST 2011


Author: aljeux
Date: 2011-10-26 09:59:24 +0200 (Wed, 26 Oct 2011)
New Revision: 14715

Modified:
   trunk/src/www/export/tracker.php
   trunk/src/www/forum/attachment.php
   trunk/src/www/forum/myforums.php
   trunk/src/www/top/toplist.php
   trunk/src/www/top/topusers.php
   trunk/src/www/trove/admin/trove_cat_edit.php
   trunk/src/www/trove/index.php
Log:
Clean HTML code with css classes

Modified: trunk/src/www/export/tracker.php
===================================================================
--- trunk/src/www/export/tracker.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/export/tracker.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -64,7 +64,6 @@
 	//
 	//  Add checks to see if they have perms to view this
 	//
-	;
 	if (!session_check_perm ('tracker', $atid)) {
 		endOnError('Permission Denied');
 		$errors = true;

Modified: trunk/src/www/forum/attachment.php
===================================================================
--- trunk/src/www/forum/attachment.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/forum/attachment.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -31,7 +31,6 @@
 require_once $gfcommon.'include/pre.php';
 require_once $gfcommon.'forum/ForumHTML.class.php';
 
-
 /**
 	 *  goodbye - Just prints a message and a close button.
 	 *

Modified: trunk/src/www/forum/myforums.php
===================================================================
--- trunk/src/www/forum/myforums.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/forum/myforums.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -50,12 +50,12 @@
 $result = db_query_params ('SELECT mon.forum_id, fg.group_id FROM forum_monitored_forums mon,forum_group_list fg where mon.user_id=$1 and fg.group_forum_id=mon.forum_id',
 			   array ($user_id));
 if (!$result) {
-    echo '<div class="error">Database error :'.db_error().'</div>';
+    echo '<p class="error">Database error :'.db_error().'</p>';
     forum_footer(array());
     exit;
 }
 if ( db_numrows($result) < 1) {
-    echo '<div class="feedback">'._('You have no monitored forums').'</div>';
+    echo '<p class="information">'._('You have no monitored forums').'</p>';
     forum_footer(array());
     exit;
 }

Modified: trunk/src/www/top/toplist.php
===================================================================
--- trunk/src/www/top/toplist.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/top/toplist.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -71,7 +71,7 @@
 	$display_rank++;
 	print '<tr '. $HTML->boxGetAltRowStyle($i) .'><td>  '.$display_rank
 		.'</td><td>'.util_make_link_g (strtolower($row_top['unix_group_name']),@$row_top['group_id'],stripslashes($row_top['group_name']))
-		.'</td><td align="right">'.$row_top['items']
+		.'</td><td class="align-right">'.$row_top['items']
 		.'   </td>'
 		.'</tr>
 ';

Modified: trunk/src/www/top/topusers.php
===================================================================
--- trunk/src/www/top/topusers.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/top/topusers.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -75,10 +75,10 @@
 	print '<tr '. $HTML->boxGetAltRowStyle($i) .'><td>  '.$row_top['ranking']
 		.'</td><td>'.util_make_link_u ($row_top['user_name'],$row_top['user_id'],$row_top['user_name']).'</td>'
 		.'<td>'.$row_top['realname'].'</td>'
-		.'</td><td align="right">'.sprintf('%.2f', $row_top['metric'])
-		.'   </td><td align="right">'.$row_top['old_ranking']
+		.'</td><td class="align-right">'.sprintf('%.2f', $row_top['metric'])
+		.'   </td><td class="align-right">'.$row_top['old_ranking']
 		.'   </td>'
-		.'<td align="right">';
+		.'<td class="align-right">';
 
 	// calculate change
 	$diff = $row_top["old_ranking"] - $row_top["ranking"];

Modified: trunk/src/www/trove/admin/trove_cat_edit.php
===================================================================
--- trunk/src/www/trove/admin/trove_cat_edit.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/trove/admin/trove_cat_edit.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -74,7 +74,7 @@
 site_admin_header(array('title'=>_('Site Admin: Trove - Category List'))) ;
 ?>
 
-<table width="100%" border="0">
+<table class="fullwidth">
 	<tr>
 		<td width="60%" valign="top">
 		  <h3><?php echo _('Site Admin: Trove - Edit Category'); ?></h3>

Modified: trunk/src/www/trove/index.php
===================================================================
--- trunk/src/www/trove/index.php	2011-10-26 07:50:03 UTC (rev 14714)
+++ trunk/src/www/trove/index.php	2011-10-26 07:59:24 UTC (rev 14715)
@@ -86,9 +86,9 @@
 // We display the trove
 
 ?>
-<table width="100%" border="0" cellspacing="0" cellpadding="0">
-	<tr valign="top">
-		<td width="50%">
+<table class="fullwidth">
+	<tr class="top">
+		<td class="halfwidth">
 		<?php
 			// here we print list of root level categories, and use open folder for current
 			$rootCategories = TroveCategoryFactory::getRootCategories();
@@ -114,7 +114,7 @@
 			}
 		?>
 		</td>
-		<td width="50%">
+		<td class="halfwidth">
 		<?php
 			$currentIndent='';
 			$parentCategories =& $category->getParents();
@@ -199,10 +199,10 @@
 
 print $html_limit."<hr />\n";
 
-?><table border="0" cellpadding="0" width="100%"><?php
+?><table class="fullwidth"><?php
 while($project = db_fetch_array($projectsResult)) {
 	?>
-		<tr valign="top">
+		<tr class="top">
 			<td colspan="2"><?php
 	echo $count.'. ' ;
 	echo util_make_link_g ($project['unix_group_name'],
@@ -215,12 +215,12 @@
 			<br /> 
 			</td>
 		</tr>
-		<tr valign="top">
+		<tr class="top">
 			<td><?php
 				// list all trove categories
 				//print trove_getcatlisting($row_grp['group_id'],1,0);
 			?></td>
-			<td align="right">
+			<td class="align-right">
 				Activity Percentile: <strong><?php echo number_format($project['percentile'],2) ?></strong>
 				<br />Activity Ranking: <strong><?php echo number_format($project['ranking'],2) ?></strong>
 				<br />Register Date: <strong><?php echo date($sys_datefmt, $project['register_time']) ?></strong>




More information about the Fusionforge-commits mailing list