logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pearweb /public_html/pepr index.php: msg#00031

Subject: cvs: pearweb /public_html/pepr index.php
mj              Thu Jun 15 19:44:46 2006 UTC

  Modified files:              
    /pearweb/public_html/pepr   index.php 
  Log:
  * Added a few line breaks here and there to more easily spot how the
    HTML is constructed.
  
  
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/pepr/index.php?r1=1.4&r2=1.5&diff_format=u
Index: pearweb/public_html/pepr/index.php
diff -u pearweb/public_html/pepr/index.php:1.4 
pearweb/public_html/pepr/index.php:1.5
--- pearweb/public_html/pepr/index.php:1.4      Thu Jun 15 19:39:03 2006
+++ pearweb/public_html/pepr/index.php  Thu Jun 15 19:44:45 2006
@@ -19,7 +19,7 @@
  * @author    Daniel Convissor <danielc@xxxxxxx>
  * @copyright Copyright (c) 1997-2005 The PHP Group
  * @license   http://www.php.net/license/3_0.txt  PHP License
- * @version   $Id: index.php,v 1.4 2006/06/15 19:39:03 mj Exp $
+ * @version   $Id: index.php,v 1.5 2006/06/15 19:44:45 mj Exp $
  */
 
 /**
@@ -63,33 +63,31 @@
 
 display_overview_nav();
 
-echo "<ul>";
-
 $last_status = false;
 
 $finishedCounter = 0;
 
 foreach ($proposals as $proposal) {
     if ($proposal->getStatus() != $last_status) {
-        echo "</ul>";
         if ($last_status !== false) {
+            echo "</ul>\n";
             echo "<p>";
             echo "<a href='/feeds/pepr_".$last_status.".rss'>Aggregate 
this.</a>";
-            echo "</p>";
+            echo "</p>\n\n";
         }
         echo '<h2 name="' . $proposal->getStatus() . '" id="';
         echo $proposal->getStatus() . '">';
         echo '&raquo; ' . htmlspecialchars($proposal->getStatus(true));
         echo "</h2>\n";
-        echo "<ul>";
+        echo "<ul>\n";
         $last_status = $proposal->getStatus();
     }
     $prpCat = $proposal->pkg_category;
     if ($selectStatus != '' && (!isset($lastChar) || $lastChar != $prpCat{0})) 
{
         $lastChar = $prpCat{0};
-        echo '</ul>';
-        echo "<h3>$lastChar</h3>";
-        echo '<ul>';
+        echo "</ul>\n";
+        echo "<h3>$lastChar</h3>\n";
+        echo "<ul>\n";
     }
     if ($proposal->getStatus() == 'finished' && $selectStatus != 'finished') {
         if (++$finishedCounter == 10) {
@@ -109,7 +107,7 @@
         }
     }
 
-    echo "<li>";
+    echo "  <li>";
     if ($already_voted) {
         echo '(Already voted) ';
     }
@@ -139,11 +137,11 @@
     print_link('/pepr/?filter=finished', 'All finished proposals');
 }
 
-echo "</ul>";
+echo "</ul>\n";
 
 if (isset($proposal)) {
     echo "<p>";
     echo "<a href='/feeds/pepr_".@$proposal->getStatus().".rss'>Aggregate 
this.</a>";
-    echo "</p>";
+    echo "</p>\n\n";
 }
 response_footer();

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>