[Fusionforge-commits] r14697 - trunk/src/www/admin

Alain Peyrat aljeux at fusionforge.org
Mon Oct 24 15:05:07 CEST 2011


Author: aljeux
Date: 2011-10-24 15:05:06 +0200 (Mon, 24 Oct 2011)
New Revision: 14697

Modified:
   trunk/src/www/admin/admin_table.php
   trunk/src/www/admin/vhost.php
Log:
Mostly indent changes

Modified: trunk/src/www/admin/admin_table.php
===================================================================
--- trunk/src/www/admin/admin_table.php	2011-10-24 12:56:29 UTC (rev 14696)
+++ trunk/src/www/admin/admin_table.php	2011-10-24 13:05:06 UTC (rev 14697)
@@ -113,8 +113,8 @@
 		$result = db_numrows(db_query_params ('SELECT processor_id FROM frs_file WHERE processor_id = $1',
 			array($id)));
 		if ($result > 0) {
-			echo '<div class="warning_msg">'.sprintf(_('You can\'t delete the processor %1$s since it\'s currently referenced in a file release.'), db_result(db_query_params ('select name from frs_processor where processor_id = $1',
-			array($id)), 0, 0)).'</div>';
+			echo '<p class="warning_msg">'.sprintf(_('You can\'t delete the processor %1$s since it\'s currently referenced in a file release.'), db_result(db_query_params ('select name from frs_processor where processor_id = $1',
+			array($id)), 0, 0)).'</p>';
 			return;
 		}
 	}
@@ -245,9 +245,9 @@
 				 array ($id)) ;
 
 	if (db_query_qpa($qpa)) {
-        print('<p class="feedback">');
+		print('<p class="feedback">');
 		printf(_('%1$s successfully modified.'), ucfirst(getUnitLabel($unit)));
-        print('</p>');
+		print('</p>');
 	} else {
 		echo db_error();
 	}
@@ -267,9 +267,9 @@
 	$qpa = db_construct_qpa ($qpa, implode (',', $v).')', $values) ;
 
 	if (db_query_qpa($qpa)) {
-        print('<div class="feedback">');
+        print('<p class="feedback">');
 		printf(_('%1$s successfully added.'), ucfirst(getUnitLabel($unit)));
-        print('</div>');
+        print('</p>');
 	} else {
 		form_release_key(getStringFromRequest('form_key'));
 		echo db_error();
@@ -297,22 +297,22 @@
 		$cell_data[]=array(ucwords(getUnitLabel($unit)).' <a href="'.getStringFromServer('PHP_SELF').'?function=add">['._('add new').']</a>',
 			'colspan="'.($cols+1).'"');
 
-                echo '<table border="0" width="100%">';
+		echo '<table border="0" width="100%">';
 		echo $HTML->multiTableRow('',$cell_data, TRUE);
 
-                echo '
+		echo '
 			<tr><td width="5%"></td>';
-                for ($i = 0; $i < $cols; $i++) {
+		for ($i = 0; $i < $cols; $i++) {
 			echo '<td><strong>'.db_fieldname($result,$i).'</strong></td>';
 		}
 		echo '</tr>';
 
-                for ($j = 0; $j < $rows; $j++) {
+		for ($j = 0; $j < $rows; $j++) {
 			echo '<tr '. $HTML->boxGetAltRowStyle($j) . '>';
 
-                        $id = db_result($result,$j,0);
-                        echo '<td><a href="'.getStringFromServer('PHP_SELF').'?function=edit&id='.$id.'">['._('Edit').']</a>';
-                        echo '<a href="'.getStringFromServer('PHP_SELF').'?function=confirmdelete&id='.$id.'">['._('Delete').']</a> </td>';
+			$id = db_result($result,$j,0);
+			echo '<td><a href="'.getStringFromServer('PHP_SELF').'?function=edit&id='.$id.'">['._('Edit').']</a>';
+			echo '<a href="'.getStringFromServer('PHP_SELF').'?function=confirmdelete&id='.$id.'">['._('Delete').']</a> </td>';
 			for ($i = 0; $i < $cols; $i++) {
 				echo '<td>'. db_result($result, $j, $i) .'</td>';
 			}

Modified: trunk/src/www/admin/vhost.php
===================================================================
--- trunk/src/www/admin/vhost.php	2011-10-24 12:56:29 UTC (rev 14696)
+++ trunk/src/www/admin/vhost.php	2011-10-24 13:05:06 UTC (rev 14697)
@@ -117,7 +117,7 @@
 
 <strong><?php echo _('Add Virtual Host'); ?></strong>
 
-<table border="0">
+<table>
 
 <tr>
 <td><?php echo _('Project Unix Name'); ?></td>
@@ -140,7 +140,7 @@
 <br />
 
 <form name="tweak" method="post" action="<?php echo getStringFromServer('PHP_SELF'); ?>">
-<table border="0">
+<table>
 <tr>
    <td><?php echo _('Virtual Host:'); ?></td><td><input type="text" name="vhost_name" /></td>
    <td><input type="submit" value="<?php echo _('Get Info'); ?>" /></td>
@@ -168,7 +168,7 @@
 
 		$row_vh = db_fetch_array($res_vh);
 
-		print '<div class="feedback">'._('Update Record:').'</div>';
+		print '<p class="feedback">'._('Update Record:').'</p>';
 
 		$title=array();
 		$title[]=_('VHOST ID');
@@ -194,7 +194,7 @@
 			</form>
 		';
 	} else {
-		echo '<div class="warning">'._('No such VHOST: ') . $vhost_name.'</div>';
+		echo '<p class="warning">'._('No such VHOST: ') . $vhost_name.'</p>';
 	}
 
 }




More information about the Fusionforge-commits mailing list