[Fusionforge-commits] r14712 - in trunk/src/www: snippet stats survey

Alain Peyrat aljeux at fusionforge.org
Wed Oct 26 09:29:30 CEST 2011


Author: aljeux
Date: 2011-10-26 09:29:30 +0200 (Wed, 26 Oct 2011)
New Revision: 14712

Modified:
   trunk/src/www/snippet/index.php
   trunk/src/www/snippet/snippet_utils.php
   trunk/src/www/stats/graphs.php
   trunk/src/www/stats/index.php
   trunk/src/www/stats/lastlogins.php
   trunk/src/www/stats/projects.php
   trunk/src/www/stats/site_stats_utils.php
   trunk/src/www/survey/index.php
   trunk/src/www/survey/survey_resp.php
Log:
Clean HTML code with css classes

Modified: trunk/src/www/snippet/index.php
===================================================================
--- trunk/src/www/snippet/index.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/snippet/index.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -57,7 +57,7 @@
       . '</h3><p>'
       . _('You can browse the snippet library quickly:').'
 	</p>
-	<table width="100%" border="0">
+	<table class="fullwidth">
 	<tr><td>
 	</td></tr>
 	<tr><td>

Modified: trunk/src/www/snippet/snippet_utils.php
===================================================================
--- trunk/src/www/snippet/snippet_utils.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/snippet/snippet_utils.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -146,10 +146,7 @@
 AND snippet_package_item.snippet_package_version_id=$1", array($version));
 
 	$rows=db_numrows($result);
-	echo '
-	<p> </p>
-	<h3>' ._('Snippets In This Package:').':</h3>
-	<p> </p>';
+	echo '<h3>' ._('Snippets In This Package:').'</h3>';
 
 	$title_arr=array();
 	$title_arr[]= _('Snippet ID');
@@ -190,7 +187,7 @@
 
 	echo '
 	<p>
-	<table width="100%" border="0" cellspacing="1" cellpadding="2">
+	<table class="fullwidth" cellspacing="1" cellpadding="2">
 
 	<tr><td colspan="2">
 	<h2>'. db_result($result,0,'name').'</h2>
@@ -206,7 +203,7 @@
 		</td>
 	</tr>
 
-	<tr><td colspan="2"> <br /><strong>Description:</strong><br />
+	<tr><td colspan="2"><br /><strong>Description:</strong><br />
 	'. util_make_links(nl2br(db_result($result,0,'description'))).'
 	</td></tr>
 
@@ -221,7 +218,7 @@
 
 	echo '
 	<p>
-	<table width="100%" border="0" cellspacing="1" cellpadding="2">
+	<table class="fullwidth" cellspacing="1" cellpadding="2">
 
 	<tr><td colspan="2">
 	<h2>'. db_result($result,0,'name').'</h2>
@@ -239,7 +236,7 @@
 		'.$SCRIPT_LANGUAGE[db_result($result,0,'language')].'
 	</td></tr>
 
-	<tr><td colspan="2"> <br />
+	<tr><td colspan="2"><br />
 	<strong>Description:</strong><br />
 	'. util_make_links(nl2br(db_result($result,0,'description'))).'
 	</td></tr>

Modified: trunk/src/www/stats/graphs.php
===================================================================
--- trunk/src/www/stats/graphs.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/stats/graphs.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -34,8 +34,8 @@
 
 <hr />
 
-<table width="100%" cellpadding="0" cellspacing="0" border="0">
-<tr align="center">
+<table class="fullwidth">
+<tr class="align-center">
 <td><a href="index.php"><?php echo _('OVERVIEW STATS'); ?></a></td>
 <td><a href="projects.php"><?php echo _('PROJECT STATS'); ?></a></td>
 <td><strong><?php echo _('SITE GRAPHS'); ?></strong></td>

Modified: trunk/src/www/stats/index.php
===================================================================
--- trunk/src/www/stats/index.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/stats/index.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -39,8 +39,8 @@
 
 <hr />
 
-<table width="100%" cellpadding="0" cellspacing="0" border="0">
-<tr align="center">
+<table class="fullwidth">
+<tr class="align-center">
 <td><strong><?php echo _('OVERVIEW STATS'); ?></strong></td>
 <td><a href="projects.php"><?php echo _('PROJECT STATS'); ?></a></td>
 <td><a href="graphs.php"><?php echo _('SITE GRAPHS'); ?></a></td>

Modified: trunk/src/www/stats/lastlogins.php
===================================================================
--- trunk/src/www/stats/lastlogins.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/stats/lastlogins.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -45,7 +45,7 @@
 
 ?>
 
-<table  width="100%" cellspacing="0" cellpadding="0">
+<table  width="100%">
 <tr class="tableheading">
 <th><?php echo _('Date'); ?></th>
 <th><?php echo _('Username'); ?></th>

Modified: trunk/src/www/stats/projects.php
===================================================================
--- trunk/src/www/stats/projects.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/stats/projects.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -40,8 +40,8 @@
 
 <hr />
 
-<table width="100%" cellpadding="0" cellspacing="0" border="0">
-<tr align="center">
+<table class="fullwidth">
+<tr class="align-center">
 <td><a href="index.php"><?php echo _('OVERVIEW STATS'); ?></a></td>
 <td><strong><?php echo _('PROJECT STATS'); ?></strong></td>
 <td><a href="graphs.php"><?php echo _('SITE GRAPHS'); ?></a></td>

Modified: trunk/src/www/stats/site_stats_utils.php
===================================================================
--- trunk/src/www/stats/site_stats_utils.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/stats/site_stats_utils.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -241,9 +241,9 @@
 	if ( db_numrows( $res ) > 1 ) {
 
 		?>
-		<table width="100%" cellpadding="0" cellspacing="0" border="0">
+		<table class="fullwidth">
 
-		<tr valign="top" align="right" class="tableheading">
+		<tr class="align-right top tableheading">
 			<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')) { ?>
@@ -277,7 +277,7 @@
 		$uri_string .= "&orderby=";
 
 		?>
-		<tr valign="top" align="right" class="tableheading">
+		<tr class="align-right top tableheading">
 			<td> </td>
 			<td><a href="<?php echo $uri_string; ?>site_views"><?php echo _('Site'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>subdomain_views"><?php echo _('Subdomain'); ?></a></td>
@@ -344,7 +344,7 @@
 		}
 
 		?>
-		</table></p>
+		</table>
 		<?php
 
 	} else {
@@ -373,8 +373,8 @@
 
 		?>
 		<h2><?php printf(_('Statistics for the past %1$s days'), $valid_days); ?></h2>
-		<table width="100%" cellpadding="0" cellspacing="0" border="0">
-			<tr valign="top" align="right">
+		<table class="fullwidth">
+			<tr class="top" align="right">
 			<td><strong><?php echo _('Day'); ?></strong></td>
 			<td><strong><?php echo _('Site Views'); ?></strong></td>
 			<td><strong><?php echo _('Subdomain Views'); ?></strong></td>
@@ -427,8 +427,8 @@
 		?>
 
 		<h2><?php printf(_('Statistics for the past %1$s months'), $valid_months); ?></h2>
-		<table width="100%" cellpadding="0" cellspacing="0" border="0">
-			<tr valign="top" align="right">
+		<table class="fullwidth">
+			<tr class="top" align="right">
 			<td><strong><?php echo _('Month'); ?>Month</strong></td>
 			<td><strong><?php echo _('Site Views'); ?></strong></td>
 			<td><strong><?php echo _('Subdomain Views'); ?></strong></td>
@@ -487,8 +487,8 @@
 	?>
 	<h2><?php echo _('Current Aggregate Statistics for All Time'); ?></h2>
 
-	<table width="100%" cellpadding="0" cellspacing="0" border="0">
-	<tr valign="top">
+	<table class="fullwidth">
+	<tr class="top">
 		<td><strong><?php echo _('Site Views'); ?></strong></td>
 		<td><strong><?php echo _('Subdomain Views'); ?></strong></td>
 		<td><strong><?php echo _('Downloads'); ?></strong></td>

Modified: trunk/src/www/survey/index.php
===================================================================
--- trunk/src/www/survey/index.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/survey/index.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -53,7 +53,7 @@
 $sf = new SurveyFactory($g);
 $ss = & $sf->getSurveys();
 if (!$ss) {
-    echo '<p class="warning_msg">' . (_('No Survey is found')) . '</p>';
+    echo '<p class="information">' . (_('No Survey is found')) . '</p>';
 } else {
 	echo '<p>' . _('Select a survey to vote') . '</p>';
     echo($sh->showSurveys($ss, 0, 0, 1, 1, 1, 0));

Modified: trunk/src/www/survey/survey_resp.php
===================================================================
--- trunk/src/www/survey/survey_resp.php	2011-10-26 07:29:25 UTC (rev 14711)
+++ trunk/src/www/survey/survey_resp.php	2011-10-26 07:29:30 UTC (rev 14712)
@@ -46,7 +46,7 @@
 	/*
 		Quit if params are not provided
 	*/
-	echo '<div class="error">'._('For some reason, the Project ID or Survey ID did not make it to this page').'</div>';
+	echo '<p class="error">'._('For some reason, the Project ID or Survey ID did not make it to this page').'</p>';
 	$sh->footer(array());
 	exit;
 }




More information about the Fusionforge-commits mailing list