[Gnucash-changes] r12834 - htdocs/trunk - rendering a valid HTML 4.01 Strict index page

Neil Williams codehelp at cvs.gnucash.org
Tue Jan 17 14:31:09 EST 2006


Author: codehelp
Date: 2006-01-17 14:31:08 -0500 (Tue, 17 Jan 2006)
New Revision: 12834
Trac: http://svn.gnucash.org/trac/changeset/12834

Modified:
   htdocs/trunk/en/index.phtml
   htdocs/trunk/en/menu/menu-general.phtml
   htdocs/trunk/en/menu/menu-help.phtml
   htdocs/trunk/en/menu/menu-main-developer.phtml
   htdocs/trunk/en/menu/menu-main-documentation.phtml
   htdocs/trunk/en/menu/menu-main-general.phtml
   htdocs/trunk/en/menu/menu-main-help.phtml
   htdocs/trunk/en/menu/menu-main-other.phtml
   htdocs/trunk/en/menu/menu-main-search.phtml
   htdocs/trunk/en/menu/menu-search.phtml
   htdocs/trunk/gnucash.css
   htdocs/trunk/php-scripts/news-script.php
Log:
rendering a valid HTML 4.01 Strict index page

Modified: htdocs/trunk/en/index.phtml
===================================================================
--- htdocs/trunk/en/index.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/index.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -1,31 +1,31 @@
 <?php $title = "Open Source Accounting Software"; ?>
 <?php if (!ini_get('register_globals')) {
- include("../emulate_globals_on.php"); 
+ include("../emulate_globals_on.php");
 }
 ?>
 <?php include($GLOBALS['DOCUMENT_ROOT']."/en/components/header.phtml"); ?>
 <?php include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-main.phtml"); ?>
-</div>
+
 <div id="content">
-  
+
 <h1>Welcome to GnuCash.org</h1>
-  
-<p>If you've been looking for a way to manage your personal or business 
-finances using Free Software, you've found it! Designed to be easy to use, 
-yet powerful and flexible, GnuCash allows you to track bank accounts, 
-stocks, income and expenses.  As quick and intuitive to use as a checkbook 
-register, it is based on professional accounting principles to ensure 
-balanced books and accurate reports.  GnuCash is backed by an active 
-development community and is blossoming into a full-fledged accounting 
+
+<p>If you've been looking for a way to manage your personal or business
+finances using Free Software, you've found it! Designed to be easy to use,
+yet powerful and flexible, GnuCash allows you to track bank accounts,
+stocks, income and expenses.  As quick and intuitive to use as a checkbook
+register, it is based on professional accounting principles to ensure
+balanced books and accurate reports.  GnuCash is backed by an active
+development community and is blossoming into a full-fledged accounting
 system. Developed under the GPL, you have no need to worry about obsolescence:
-GnuCash will always be there for you. 
+GnuCash will always be there for you.
 </p>
 <p>This web site is devoted to promoting the Gnucash.org software development project. We are
-committed to developing top-notch accounting and financial tools for GNU/Linux and Unix 
-users. This includes the development of programming API's, libraries and components that 
-can be used to create both server and personal applications for home and business use. 
-By focusing on ease-of-use, modular design, architected interfaces and well-documented 
-code, we hope that GnuCash and its associated financial libraries become the choice of 
+committed to developing top-notch accounting and financial tools for GNU/Linux and Unix
+users. This includes the development of programming API's, libraries and components that
+can be used to create both server and personal applications for home and business use.
+By focusing on ease-of-use, modular design, architected interfaces and well-documented
+code, we hope that GnuCash and its associated financial libraries become the choice of
 a GNU generation of programmers and users.
 </p>
 <p>Yes, GnuCash now runs on Mac OSX, as well as GNU/Linux, *BSD, and the
@@ -35,7 +35,7 @@
 
 <h1>News</h1>
 
-<?php 
+<?php
   # for english, the native and alt news path are identical
   $native_newspath  =  "news/";
   $alt_newspath  =  "news/";

Modified: htdocs/trunk/en/menu/menu-general.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-general.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-general.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -9,4 +9,4 @@
 <li><a href="/en/donations.phtml">Donations</a></li>
 <li><a href="/en/contribute.phtml">How To Help</a></li>
 <li><a href="/en/required.phtml">Software Dependencies</a></li>
-</ul>
+</ul>
\ No newline at end of file

Modified: htdocs/trunk/en/menu/menu-help.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-help.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-help.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -5,7 +5,7 @@
 <li style="list-style-image:none;list-style-type:none;"><ul><li>
 <a href="https://lists.gnucash.org/search/">Search</a>
 </li></ul></li>
-</li>
 <li><a href="/en/bugs.phtml">Bug Reports</a></li>
 <li><a href="/en/irc.phtml">IRC (Chat)</a></li>
-<li><a href="http://gnomesupport.org/wiki/index.php/GnuCashFrequentlyAskedQuestions">FAQ</a></li></ul>
+<li><a href="http://gnomesupport.org/wiki/index.php/GnuCashFrequentlyAskedQuestions">FAQ</a>
+</li></ul>

Modified: htdocs/trunk/en/menu/menu-main-developer.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-developer.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-developer.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -19,7 +19,7 @@
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-other.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+echo "</div>\n";
 ?>
 
 <!-- MENU:END -->

Modified: htdocs/trunk/en/menu/menu-main-documentation.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-documentation.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-documentation.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -19,7 +19,7 @@
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-other.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+echo "</div>\n";
 ?>
 
 <!-- MENU:END -->

Modified: htdocs/trunk/en/menu/menu-main-general.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-general.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-general.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -7,19 +7,19 @@
 # highlighted menu entry:
 echo "<div class=\"highlight\">";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-general.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-documentation.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-help.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-downloads.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-developer.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-other.phtml");
-echo "</div>\n<div class=\"othernews\">\n";
+echo "</div>\n\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+
 ?>
 
 <!-- MENU:END -->

Modified: htdocs/trunk/en/menu/menu-main-help.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-help.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-help.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -18,7 +18,7 @@
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-other.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+echo "</div>\n";
 ?>
 
 

Modified: htdocs/trunk/en/menu/menu-main-other.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-other.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-other.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -18,7 +18,7 @@
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-other.phtml");
 echo "</div>\n<div class=\"othernews\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+echo "</div>\n";
 ?>
 
 <!-- MENU:END -->

Modified: htdocs/trunk/en/menu/menu-main-search.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-main-search.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-main-search.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -18,7 +18,7 @@
 # highlighted menu entry:
 echo "</div>\n<div class=\"highlight\">\n";
 include($GLOBALS['DOCUMENT_ROOT']."/en/menu/menu-search.phtml");
-echo "</div>\n</div>\n";
+echo "</div>\n";
 ?>
 
 <!-- MENU:END -->

Modified: htdocs/trunk/en/menu/menu-search.phtml
===================================================================
--- htdocs/trunk/en/menu/menu-search.phtml	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/en/menu/menu-search.phtml	2006-01-17 19:31:08 UTC (rev 12834)
@@ -1,13 +1,14 @@
 <div style="position:relative;top:0;left:1em;margin:1em;">
 <form action="/en/search.phtml" method="get"
 enctype="application/x-www-form-urlencoded">
+<div>
 <span>Search:</span>
 <input type="text" name="words" size="15"><br>
-<br><font size="-2">Sort method:</font>
+<small>Sort method:</small>
 <select name="sort">
 <option value="sort">Standard
 <option value="time">Time
 <option value="revtime">Time (reversed)
-</select>
+</select></div>
 </form>
 </div>
\ No newline at end of file

Modified: htdocs/trunk/gnucash.css
===================================================================
--- htdocs/trunk/gnucash.css	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/gnucash.css	2006-01-17 19:31:08 UTC (rev 12834)
@@ -6,6 +6,24 @@
 	border: 0px;
 	margin: 0px;
 }
+IMG {
+    border-style:none;
+}
+.news1 {
+    background-color:#cacaf7;
+    border:2px;
+    border-color:silver;
+    border-style:ridge;
+    margin:1em;
+    padding:2px;
+    line-height:2em;
+    text-align:top;
+}
+.newsinner {
+    background-color:#ffffff;
+    padding:4px;
+}
+
 #head {
 	background-color: #666699;
 	color: white;

Modified: htdocs/trunk/php-scripts/news-script.php
===================================================================
--- htdocs/trunk/php-scripts/news-script.php	2006-01-17 18:58:19 UTC (rev 12833)
+++ htdocs/trunk/php-scripts/news-script.php	2006-01-17 19:31:08 UTC (rev 12834)
@@ -1,96 +1,89 @@
 <?php
-    
+
     // This PHP script automatically scans the news directory
     // and posts news items on the gnucash home page, using the
     // gnucash html page style.  This script supports the display
     // of translated news items by getting news articles from two
     // directories: 'native' and 'alt'.  A news article from 'alt'
-    // is displayed only if there is'nt a matching news article 
+    // is displayed only if there is'nt a matching news article
     // in 'native'.
     //
     // originally by Jeremy Collins, heavily modified by Linas Vepstas
     //
-    //  change  this  to  the  directory  of  your  news  files 
-    //  they  should  be  plain  ASCII  text  files  with  extension  ".txt" 
+    //  change  this  to  the  directory  of  your  news  files
+    //  they  should  be  plain  ASCII  text  files  with  extension  ".txt"
 
     # Be sure to define the following patch to newsdirs
     if (!$native_newspath) { $native_newspath  =  "news/";  }
     if (!$alt_newspath) { $alt_newspath =  "../news/";  }
 
     // array of displayed filenames is indexed with filenames, holds timestamps.
-    $newsfile  =  array(); 
+    $newsfile  =  array();
 
     // ------------------------------------------
     // array holding native-language news articles.
     $native_files = array();
-    $hd  =  dir($native_newspath); 
-    
+    $hd  =  dir($native_newspath);
+
     //  Get  all  files in the native directory; these will
     // always be displayed.
-    while(  $filename  =  $hd->read()  )  { 
-        $s=strtolower($filename); 
-        if  (strstr($s, ".txt"))  { 
+    while(  $filename  =  $hd->read()  )  {
+        $s=strtolower($filename);
+        if  (strstr($s, ".txt"))  {
             $native_files[$filename]  =  $native_newspath.$filename;
-	    
+
 	    $display_filename = $native_newspath.$filename;
-	    
-            //  Determine  last  modification  date 
-            $lastchanged=filemtime($display_filename); 
-            $newsfile[$display_filename]  =  $lastchanged; 
-        }    
-    } 
-    $hd->close();  
 
+            //  Determine  last  modification  date
+            $lastchanged=filemtime($display_filename);
+            $newsfile[$display_filename]  =  $lastchanged;
+        }
+    }
+    $hd->close();
+
     // ------------------------------------------
     // Are there alternate language articles to display?
-    $hd  =  dir($alt_newspath); 
-    
+    $hd  =  dir($alt_newspath);
+
     //  Get all the alternate-language files, and display them
     // only if there isn't a matching native language article.
-    while(  $filename  =  $hd->read()  )  { 
-        $s=strtolower($filename); 
-        if  (strstr($s, ".txt"))  { 
-	    
+    while(  $filename  =  $hd->read()  )  {
+        $s=strtolower($filename);
+        if  (strstr($s, ".txt"))  {
+
 	    // display laternate only if there isn't a native !
 	    if (!$native_files[$filename]) {
 	       $display_filename = $alt_newspath.$filename;
-               //  Determine  last  modification  date 
-               $lastchanged=filemtime($display_filename); 
-               $newsfile[$display_filename]  =  $lastchanged; 
+               //  Determine  last  modification  date
+               $lastchanged=filemtime($display_filename);
+               $newsfile[$display_filename]  =  $lastchanged;
 	    }
-        }    
-    } 
-    $hd->close();  
-    
+        }
+    }
+    $hd->close();
+
     // ------------------------------------------
-    //  Sort  files  in  descending  date order 
-    arsort($newsfile); 
+    //  Sort  files  in  descending  date order
+    arsort($newsfile);
 
-    //  Output  files  to  browser 
-    for(reset($newsfile);  $key  =  key($newsfile);  next($newsfile))  
-    { 
-        $fa  =  file($key); 
-        $n=count($fa); 
+    //  Output  files  to  browser
+    for(reset($newsfile);  $key  =  key($newsfile);  next($newsfile))
+    {
+        $fa  =  file($key);
+        $n=count($fa);
 
-        echo("<table border=0 cellpadding=1 cellspacing=0 width=\"100%\">");
-        echo("<tr><td valign=middle align=center bgcolor=#666699>");
-        echo("<table border=0 cellpadding=5 cellspacing=1 bgcolor=#cacaf7 width=\"100%\">");
-        echo("<tr><td valign=top>");
-        echo("<table border=0 cellpadding=0 cellspacing=0>");
-        echo("<tr><td> <img src=/images/icons/document.txt.gif width=16 height=16 border=0>&nbsp;</td>");
-       
-        echo("<td>");
+        echo ("<div class=\"news1\">");
+        echo("<img alt=\"\" src=\"/images/icons/document.txt.gif\">&nbsp;");
 	print $fa[0];
-	print  " - <font size=-1><b>(".date( "Y-m-d",$newsfile[$key]);
-	print  "&nbsp; &nbsp;".date( "H:i:s",$newsfile[$key]). ")</b></font></td>\n"; 
-        echo("</tr> </table> </td> </tr>");
-        echo("<tr bgcolor=#ffffff> <td valign=top> <font size=-1>");
+	print  " - <b>(".date( "Y-m-d",$newsfile[$key]);
+	print  "&nbsp; &nbsp;".date( "H:i:s",$newsfile[$key]). ")</b>\n";
 
-        for  ($i=1;  $i<$n;  $i=$i+1)  { 
+        echo "<div class=\"newsinner\">";
+        for  ($i=1;  $i<$n;  $i=$i+1)  {
 	    print $fa[$i];
-        } 
-        echo("</font> </td> </tr> </table> </tr> </table><br><br>");
+        }
+        echo "</div>";
+        echo "</div>";
+    }
 
-    }    
-    
     ?>



More information about the gnucash-changes mailing list