cvs: pearweb /public_html faq.php

From: Date: Sat, 01 Sep 2001 10:26:34 +0000
Subject: cvs: pearweb /public_html faq.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-720@lists.php.net to get a copy of this message
mj Sat Sep 1 06:26:34 2001 EDT Modified files: /pearweb/public_html faq.php Log: * added anchors for each FAQ entry Index: pearweb/public_html/faq.php diff -u pearweb/public_html/faq.php:1.2 pearweb/public_html/faq.php:1.3 --- pearweb/public_html/faq.php:1.2 Fri Aug 31 18:49:34 2001 +++ pearweb/public_html/faq.php Sat Sep 1 06:26:34 2001 @@ -3,6 +3,8 @@ echo "<h1>PEAR Frequently Asked Questions</h1>"; +$ID = 0; + function startElement($parser, $elementName, $elementAttributes) { @@ -14,9 +16,9 @@ case "qandaset" : echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\">"; break; - + case "question" : - echo "<tr><td bgcolor=\"#cccccc\"><h3>"; + echo "<tr><td bgcolor=\"#cccccc\"><a name=\"faq-".$GLOBALS['ID']++."\"><h3>"; break; case "answer" : @@ -66,6 +68,9 @@ } break; + case "break" : + echo "<br/>"; + break; } }

« previous php.pear.cvs (#720) next »