Modified: web/php/branches/PROTOTYPE_2010/header.php
===================================================================
--- web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:10:23 UTC (rev 306671)
+++ web/php/branches/PROTOTYPE_2010/header.php 2010-12-26 13:15:25 UTC (rev 306672)
@@ -51,95 +51,7 @@
">
Modified: web/php/branches/PROTOTYPE_2010/include/layout.inc
===================================================================
--- web/php/branches/PROTOTYPE_2010/include/layout.inc 2010-12-26 13:10:23 UTC (rev 306671)
+++ web/php/branches/PROTOTYPE_2010/include/layout.inc 2010-12-26 13:15:25 UTC (rev 306672)
@@ -39,5 +39,51 @@
require __DIR__ . "/../footer.php";
}
+function doc_toc($lang) {
+ include __DIR__ . "/../manual/$lang/toc/index.inc";
+
+ echo "\n";
+ doc_toc_list($lang, $TOC, "getting-started");
+ doc_toc_list($lang, $TOC, "langref");
+ echo "
\n";
+
+ echo "\n";
+ doc_toc_list($lang, $TOC, "security");
+ doc_toc_list($lang, $TOC, "features");
+ echo "
\n";
+
+ echo "\n";
+ doc_toc_list($lang, $TOC, "funcref");
+ echo "
\n";
+
+ echo "\n";
+ doc_toc_title($lang, $TOC, "install");
+ doc_toc_title($lang, $TOC, "internals2");
+ doc_toc_title($lang, $TOC, "faq");
+ doc_toc_title($lang, $TOC, "appendices");
+ echo "- Quick function reference
\n";
+ echo "
\n";
+
+}
+function doc_toc_list($lang, $index, $file) {
+ include __DIR__ . "/../manual/$lang/toc/$file.inc";
+
+ doc_toc_title($lang, $index, $file);
+ foreach($TOC as $entry) {
+ echo "\t{$entry[1]}\n";
+ }
+ echo "\n";
+}
+function doc_toc_title($lang, $index, $file) {
+ foreach($index as $entry) {
+ if ($entry[0] == "$file.php") {
+ $link = $entry[0];
+ $title = $entry[1];
+ break;
+ }
+ }
+ echo "$title\n";
+}
+
/* vim: set et ts=4 sw=4 ft=php: : */