Several fixes to Rico3.net.
[infodrom/rico3] / examples / php / ex1.php
index 5f8c7da..787f57f 100644 (file)
@@ -5,7 +5,12 @@
 <title>Rico LiveGrid sourced from HTML table</title>\r
 \r
 <?php\r
-require "LoadRicoClient.php";\r
+error_reporting(E_ALL);\r
+ini_set('display_errors', '1');\r
+require "../../plugins/php/rico.php";\r
+Rico\init(array('checkQueryString' => true));\r
+Rico\renderHead();\r
+//require "LoadRicoClient.php";\r
 ?>\r
 <link href="../demo.css" type="text/css" rel="stylesheet" />\r
 \r
@@ -30,18 +35,18 @@ Rico.onLoad( function() {
 <body>\r
 \r
 <table id='explanation' border='0' cellpadding='0' cellspacing='5' style='clear:both'><tr valign='top'><td>\r
-Base Library: \r
+Base Library:\r
 <script type='text/javascript'>\r
 document.write(Rico.Lib+' '+Rico.LibVersion);\r
 </script>\r
 <hr>\r
 This example demonstrates how Rico can convert an existing HTML table into\r
-a much more usable LiveGrid. \r
+a much more usable LiveGrid.\r
 LiveGrid provides scrolling, column resizing, filtering, and sorting capabilities.\r
 Click on a cell to see available actions.\r
-<p style='font-size:smaller;'>Data source: <a href="http://www.un.org/esa/population/unpop.htm">Population Division of the \r
-Department of Economic and Social Affairs of the United Nations Secretariat</a> (2009). \r
-<em>World Population Prospects: The 2008 Revision. Highlights.</em> New York: United Nations.  </p>                            \r
+<p style='font-size:smaller;'>Data source: <a href="http://www.un.org/esa/population/unpop.htm">Population Division of the\r
+Department of Economic and Social Affairs of the United Nations Secretariat</a> (2009).\r
+<em>World Population Prospects: The 2008 Revision. Highlights.</em> New York: United Nations.</p>\r
 </td>\r
 <td>\r
 <?php\r