r20995 - htdocs/branches/beta - First steps to validate webpages code.

Cristian Marchi cmarchi at code.gnucash.org
Sat Jul 30 08:59:52 EDT 2011


Author: cmarchi
Date: 2011-07-30 08:59:51 -0400 (Sat, 30 Jul 2011)
New Revision: 20995
Trac: http://svn.gnucash.org/trac/changeset/20995

Modified:
   htdocs/branches/beta/externals/header.phtml
   htdocs/branches/beta/externals/menu.phtml
   htdocs/branches/beta/features.phtml
   htdocs/branches/beta/index.phtml
Log:
First steps to validate webpages code.

Modified: htdocs/branches/beta/externals/header.phtml
===================================================================
--- htdocs/branches/beta/externals/header.phtml	2011-07-30 12:41:24 UTC (rev 20994)
+++ htdocs/branches/beta/externals/header.phtml	2011-07-30 12:59:51 UTC (rev 20995)
@@ -12,17 +12,17 @@
 if (!isset($can_utf)) { $can_utf = true; }
 if ($can_utf)
 { ?>
-  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+  <meta http-equiv="content-type" content="text/html; charset=UTF-8"></meta>
 <?php } ?>
-<link rel="stylesheet" href="<?=$home?>/externals/gnucash.css" type="text/css">
-<link rel="icon" href="<?=$home?>/favicon.ico" type="image/x-icon" >
-<link rel="shortcut icon" href="<?=$home?>/favicon.ico" type="image/x-icon">
+<link rel="stylesheet" href="<?=$home?>/externals/gnucash.css" type="text/css"></link>
+<link rel="icon" href="<?=$home?>/favicon.ico" type="image/x-icon" ></link>
+<link rel="shortcut icon" href="<?=$home?>/favicon.ico" type="image/x-icon"></link>
 <?php
 include("$top_dir/externals/global_params.php");
 $current_page = array_key_exists('HTTP_HOST', $_SERVER) ? ($top_dir . "/" . basename($_SERVER["SCRIPT_NAME"])) : "";
 
 if (isset($homepage)) { ?>
-  <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="<?=$home?>/atom.php">
+  <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="<?=$home?>/atom.php"></link>
 <?php } ?>
 
 <title><?= T_($title); ?> | GnuCash</title>
@@ -33,15 +33,15 @@
 <div id="head">
 <div style="float:right;">
 <p id="rss">
-<a href="http://gnucash.uservoice.com/"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/uservoice-32x32.png" title="<?php echo T_($titleuservoice);?>" alt="[Donation]" width="32" height="32" ></a>
-<a href="http://sourceforge.net/donate/index.php?group_id=192"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/donation-32x32.png" title="<?php echo T_($titledonation);?>" alt="[Donation]" width="32" height="32" ></a>
-<a href="<?=$home?>/atom.php"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/feed-icon-32x32.png" title="<?php echo T_($titleRSS);?>" alt="[atom syndication feed]" width="32" height="32" ></a>
+<a href="http://gnucash.uservoice.com/"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/uservoice-32x32.png" title="<?php echo T_($titleuservoice);?>" alt="[Donation]" width="32" height="32" ></img></a>
+<a href="http://sourceforge.net/donate/index.php?group_id=192"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/donation-32x32.png" title="<?php echo T_($titledonation);?>" alt="[Donation]" width="32" height="32" ></img></a>
+<a href="<?=$home?>/atom.php"><img style="margin: 0 10px 0 0" src="<?=$top_dir?>/externals/feed-icon-32x32.png" title="<?php echo T_($titleRSS);?>" alt="[atom syndication feed]" width="32" height="32" ></img></a>
 </p>
 </div>
 
 <div style="margin: 0px 0px 0 0;">
 <a href="<?=$home?>/"><!--img src="<?=$home?>/externals/gnucash_logo1.png" alt="[GnuCash Logo]" id="gnclogo" width="179" height="45" border="0"/ -->
-<img src="<?=$home?>/externals/banner5.png"></a>
+<img src="<?=$home?>/externals/banner5.png"></img></a>
 <p style="font-style:italic; font-size:1.1em; margin: 0 0 0 10px; color: #08006d"><?php echo T_("Free Acconting Software");?></p>
 </div>
 

Modified: htdocs/branches/beta/externals/menu.phtml
===================================================================
--- htdocs/branches/beta/externals/menu.phtml	2011-07-30 12:41:24 UTC (rev 20994)
+++ htdocs/branches/beta/externals/menu.phtml	2011-07-30 12:59:51 UTC (rev 20995)
@@ -59,7 +59,7 @@
   
 <h2 class="adstitle">New Book: GnuCash 2.4 Small Business Accounting</h2>
 
-<p class="center"><a href="http://link.packtpub.com/6FDDUr"><img src="<?=$home?>/externals/packtpub_gnucash_2.4cov.png" alt="GnuCash 2.4 small business accounting" align="middle" border="0" height="152" width="125"></a>
+<p class="center"><a href="http://link.packtpub.com/6FDDUr"><img src="<?=$home?>/externals/packtpub_gnucash_2.4cov.png" alt="GnuCash 2.4 small business accounting" height="152" width="125"></a>
 </p>
 <p class="adstext"><?= T_("The GnuCash development team received notice about a new book published by PacktPub, UK:")?></p>
 <p class="adstext"><a href="http://link.packtpub.com/6FDDUr"><?= T_("GnuCash 2.4 Small Business Accounting, by Ashok Ramachandran")?></a>.</p>

Modified: htdocs/branches/beta/features.phtml
===================================================================
--- htdocs/branches/beta/features.phtml	2011-07-30 12:41:24 UTC (rev 20994)
+++ htdocs/branches/beta/features.phtml	2011-07-30 12:59:51 UTC (rev 20995)
@@ -35,7 +35,6 @@
 <p class="justify">
 <?php echo T_("Every transaction must debit one account and credit others by an equal amount. This ensures the books balance: the difference between income and expenses exactly equals the sum of assets and liabilities.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -43,7 +42,7 @@
 <h2 class="featuretitle"><?php echo T_("Checkbook-Style Register");?></h2>
 </div>
 <div class="center">
-<img class="featureimage" src="<?=$top_dir?>/images/features/feature_register.png" alt="[Register]"/>
+<img class="featureimage" src="<?=$top_dir?>/images/features/feature_register.png" alt="[Register]"></img>
 </div>
 <p class="justify">
 <?php echo T_("The <span class=\"gnucash\">GnuCash</span> checkbook-style register provides a custom, convenient and familiar interface to entering financial transactions.");?>
@@ -58,7 +57,6 @@
 <li><?php echo T_("A <b>summarybar</b> that display all the relevant account's balance information");?></li>
 <li><?php echo T_("Many options to <b>customize</b> the appearence and the display style");?></li>
 </ul>
-<br clear="all"/>
 </div>
 
 <div class="featurecontainer">
@@ -72,14 +70,13 @@
 <p class="justify">
 <?php echo T_("An assistant that runs when <span class=\"gnucash\">GnuCash</span> is started, allows you to postpone a scheduled transaction without canceling it or to enter it before the due date.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
 <div class="featureborder">
 <h2 class="featuretitle"><?php echo T_("Reports, Graphs");?></h2>
 </div>
-<img class="featureimage" src="<?=$top_dir?>/images/features/feature_graph-report.png" alt="[Graphs]"/>
+<img class="featureimage" src="<?=$top_dir?>/images/features/feature_graph-report.png" alt="[Graphs]"></img>
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> has an integrated module to display graphs of your financial data in the form of:");?>
 </p>
@@ -98,7 +95,6 @@
 <p class="justify">
 <?php echo T_("Graphs and reports can be highly and easily customized in appearence and contents, in order to fullfill every user's need.");?>
 </p>
-<br clear="all"/>
 </div>
 
 <div class="featurecontainer">
@@ -106,11 +102,10 @@
 <h2 class="featuretitle"><?php echo T_("Statement Reconciliation");?></h2>
 </div>
 <div class="center">
-<img class="featureimage" src="<?=$top_dir?>/images/features/feature_reconcile.png" alt="[Reconcile]"/>
+<img class="featureimage" src="<?=$top_dir?>/images/features/feature_reconcile.png" alt="[Reconcile]"></img>
 </div>
 <p class="justify"><?php echo T_("The <b>reconciliation</b> of an account is an operation that allows the user to check the entered transactions belonging to a <span class=\"gnucash\">GnuCash</span> account against a bank statement. This operation is very useful to spot untracked transactions or data entry errors.");?></p>
 <p class="justify"><?php echo T_("The <span class=\"gnucash\">GnuCash</span> reconcile tool with running reconciled and cleared balances makes reconciling against bank statements an easy task.");?></p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -119,7 +114,6 @@
 </div>
 <p><?php echo T_("Income/Expense Account Types (Categories) allow you to categorize your cash flow.  When used properly with the double-entry feature and equity accounts, these enable you to generate reports, such as Profit & Loss, that plain-vanilla systems cannot handle.");?>
 </p>
-<br clear="all" />
 </div>
 
 <h1 class="featuresection"><a name="advan-feat"></a><?php echo T_("Advanced features");?></h1>
@@ -137,7 +131,6 @@
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> gives you also a tool to manage your business' <b>budget</b> so that you can easily plan your financial strategy.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -148,7 +141,6 @@
 <p class="justify">
 <?php echo T_("Different accounts can be denominated in different currencies. Currency movements between accounts are fully balanced when double-entry is enabled.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -157,7 +149,6 @@
 </div>
 <p class="justify">
 <?php echo T_("Track stocks individually (one per account) or in portfolio of accounts (a group of accounts that can be displayed together).");?></p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -166,7 +157,6 @@
 </div>
 <p class="justify">
 <?php echo T_("Get Stock & Mutual Fund quotes from various web sites, update portfolio automatically. Additional pricing sources are added regularly.");?></p>
-<br clear="all" />
 </div>
 
 <h1 class="featuresection"><a name="data-feat"></a><?php echo T_("Data storage and exchange features");?></h1>
@@ -176,7 +166,6 @@
 <h2 class="featuretitle"><?php echo T_("Database support");?></h2>
 </div>
 <p class="justify"><?php echo T_("Along the usual xml format, starting from version 2.4, your <span class=\"gnucash\">GnuCash</span> financial data can be stored in a <b>SQL database</b> under the application of your selection (SQLite3, MySQL or PostgreSQL).");?></p>
-<br clear="all">
 </div>
 
 <div class="featurecontainer">
@@ -192,7 +181,6 @@
 <p class="justify">
 <?php echo T_("A transaction matching system ensures that duplicate transactions are accurately recognized and automatically deleted during file import.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -202,7 +190,6 @@
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> is the first free software application to support the German <b>Home Banking Computer Information</b> protocol, allowing German users to perform statement download and initiate bank transfers and direct debits.");?>
 </p>
-<br clear="all" />
 </div>
 
 <h1 class="featuresection"><a name="oth-feat"></a><?php echo T_("Other goodies");?></h1>
@@ -213,7 +200,6 @@
 </div>
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> can be executed on different operating systems. The most commonly used OS's like <b>Windows</b>, <b>MacOSX</b> and <b>Linux</b>, are supported along with many others.");?></p>
-<br clear="all">
 </div>
 
 <div class="featurecontainer">
@@ -222,7 +208,6 @@
 </div>
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> handles internationalized dates and currencies. The application's menus and popups have been translated to 21 languages, including Chinese, Danish, French, German, Hungarian, Italian, Japanese, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Turkish, Ukrainian, and British English. Documentation is available in English, French, Portuguese and Spanish.");?></p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -231,7 +216,6 @@
 </div>
 <p class="justify">
 <?php echo T_("A powerful transaction query dialogue can help you quickly locate a needle in a haystack.");?></p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -240,7 +224,6 @@
 </div>
 <p class="justify">
 <?php echo T_("Checks may be printed in standard formats on common check stocks. A customization GUI allows custom check layouts to be developed.");?></p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -250,7 +233,6 @@
 <p class="justify">
 <?php echo T_("A guided dialogue for setting up loan payments as scheduled transactions.");?>
 </p>
-<br clear="all" />
 </div>
 
 <div class="featurecontainer">
@@ -259,7 +241,6 @@
 </div>
 <p class="justify">
 <?php echo T_("<span class=\"gnucash\">GnuCash</span> is very well documented: along the application <b>Manual</b>, new users can take full advantage of the <b>Tutorial and Concepts guide</b>. This document gives background information on accounting principles and how they are reflected in <span class=\"gnucash\">GnuCash</span> with many practical examples described step by step.");?></p>
-<br clear="all" />
 </div>
 
 </div>

Modified: htdocs/branches/beta/index.phtml
===================================================================
--- htdocs/branches/beta/index.phtml	2011-07-30 12:41:24 UTC (rev 20994)
+++ htdocs/branches/beta/index.phtml	2011-07-30 12:59:51 UTC (rev 20995)
@@ -7,7 +7,7 @@
 include("externals/menu.phtml"); 
 ?>
 
-<div style="position:fixed; right:0px; top:14%"><img src="<?=$top_dir?>/externals/gnucash-vert.png"></img></div>
+<div style="position:fixed; right:0px; top:14%"><img alt="GnuCash" src="<?=$top_dir?>/externals/gnucash-vert.png"></img></div>
 
 <div id="content">
 
@@ -18,15 +18,15 @@
 <h2><?php printf (T_("Download GnuCash %s"), $latest_stable)?></h2>
 
 <ul>
-<li><img src="<?=$top_dir?>/images/icons/linux.png" /> Linux <a href="<?php echo $download_path.$latest_stable_source;?>"><?php echo T_("Source");?></a> | <a href="<?=$home?>/download.phtml#distribution"><?php echo T_("Via distribution");?></a></li>
-<li><img src="<?=$top_dir?>/images/icons/windows.png" /> Microsoft Windows <a href="<?php echo $download_path.$latest_stable_win;?>">XP/Vista/7</a></li>
-<li><img src="<?=$top_dir?>/images/icons/macosx.png" /> Mac OS X <a href="<?php echo $download_path.$latest_stable_mac_intel;?>">Intel</a> | <a href="<?php echo $download_path.$latest_stable_mac_ppc;?>">Power PC</a> | <a href="http://wiki.gnucash.org/wiki/MacOSX/<?php echo $latest_stable;?>/Readme">Readme</a></li>
+<li><img alt="linux" src="<?=$top_dir?>/images/icons/linux.png"></img> Linux <a href="<?php echo $download_path.$latest_stable_source;?>"><?php echo T_("Source");?></a> | <a href="<?=$home?>/download.phtml#distribution"><?php echo T_("Via distribution");?></a></li>
+<li><img alt="windows" src="<?=$top_dir?>/images/icons/windows.png"></img> Microsoft Windows <a href="<?php echo $download_path.$latest_stable_win;?>">XP/Vista/7</a></li>
+<li><img alt="macosx" src="<?=$top_dir?>/images/icons/macosx.png"></img> Mac OS X <a href="<?php echo $download_path.$latest_stable_mac_intel;?>">Intel</a> | <a href="<?php echo $download_path.$latest_stable_mac_ppc;?>">Power PC</a> | <a href="http://wiki.gnucash.org/wiki/MacOSX/<?php echo $latest_stable;?>/Readme">Readme</a></li>
 <li><a href="<?=$home?>/download.phtml" style="font-size: 80%;"><?=T_("More downloads (Source, Development,...)")?></a></li>
 </ul>
 </div>
 
 <div id="downloadimage">
-<img src="<?=$top_dir;?>/externals/gnc-download.png"></img>
+<img alt="download" src="<?=$top_dir;?>/externals/gnc-download.png"></img>
 </div>
 </div>
 



More information about the gnucash-changes mailing list