search.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <link rel="SHORTCUT ICON" href="/favicon.ico">
  6. <style type="text/css"><!--
  7. TD {font-family: Verdana,Arial,Helvetica}
  8. BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
  9. H1 {font-family: Verdana,Arial,Helvetica}
  10. H2 {font-family: Verdana,Arial,Helvetica}
  11. H3 {font-family: Verdana,Arial,Helvetica}
  12. A:link, A:visited, A:active { text-decoration: underline }
  13. --></style>
  14. <title>Search the documentation on XMLSoft.org</title>
  15. </head>
  16. <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000">
  17. <table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"><tr>
  18. <td width="180">
  19. <a href="http://www.gnome.org/"><img src="gnome2.png" alt="Gnome2 Logo"></a><a href="http://www.w3.org/Status"><img src="w3c.png" alt="W3C Logo"></a><a href="http://www.redhat.com/"><img src="redhat.gif" alt="Red Hat Logo"></a><div align="left"><a href="http://xmlsoft.org/"><img src="Libxml2-Logo-180x168.gif" alt="Made with Libxml2 Logo"></a></div>
  20. </td>
  21. <td><table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"><tr><td align="center">
  22. <h1>The XML C library for Gnome</h1>
  23. <h2>Search engine</h2>
  24. </td></tr></table></td></tr></table></td>
  25. </tr></table>
  26. <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr>
  27. <td valign="top" width="200" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td>
  28. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  29. <tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Main Menu</b></center></td></tr>
  30. <tr><td bgcolor="#fffacd"><ul>
  31. <li><a href="index.html">Home</a></li>
  32. <li><a href="intro.html">Introduction</a></li>
  33. <li><a href="FAQ.html">FAQ</a></li>
  34. <li><a href="docs.html">Documentation</a></li>
  35. <li><a href="bugs.html">Reporting bugs and getting help</a></li>
  36. <li><a href="help.html">How to help</a></li>
  37. <li><a href="downloads.html">Downloads</a></li>
  38. <li><a href="news.html">News</a></li>
  39. <li><a href="XMLinfo.html">XML</a></li>
  40. <li><a href="XSLT.html">XSLT</a></li>
  41. <li><a href="python.html">Python and bindings</a></li>
  42. <li><a href="architecture.html">libxml architecture</a></li>
  43. <li><a href="tree.html">The tree output</a></li>
  44. <li><a href="interface.html">The SAX interface</a></li>
  45. <li><a href="xmldtd.html">Validation &amp; DTDs</a></li>
  46. <li><a href="xmlmem.html">Memory Management</a></li>
  47. <li><a href="encoding.html">Encodings support</a></li>
  48. <li><a href="xmlio.html">I/O Interfaces</a></li>
  49. <li><a href="catalog.html">Catalog support</a></li>
  50. <li><a href="library.html">The parser interfaces</a></li>
  51. <li><a href="entities.html">Entities or no entities</a></li>
  52. <li><a href="namespaces.html">Namespaces</a></li>
  53. <li><a href="upgrade.html">Upgrading 1.x code</a></li>
  54. <li><a href="threads.html">Thread safety</a></li>
  55. <li><a href="DOM.html">DOM Principles</a></li>
  56. <li><a href="example.html">A real example</a></li>
  57. <li><a href="contribs.html">Contributions</a></li>
  58. <li><a href="tutorial/index.html">Tutorial</a></li>
  59. <li>
  60. <a href="xml.html">flat page</a>, <a href="site.xsl">stylesheet</a>
  61. </li>
  62. </ul></td></tr>
  63. </table>
  64. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  65. <tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>API Indexes</b></center></td></tr>
  66. <tr><td bgcolor="#fffacd"><ul>
  67. <li><a href="APIchunk0.html">Alphabetic</a></li>
  68. <li><a href="APIconstructors.html">Constructors</a></li>
  69. <li><a href="APIfunctions.html">Functions/Types</a></li>
  70. <li><a href="APIfiles.html">Modules</a></li>
  71. <li><a href="APIsymbols.html">Symbols</a></li>
  72. </ul></td></tr>
  73. </table>
  74. <table width="100%" border="0" cellspacing="1" cellpadding="3">
  75. <tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Related links</b></center></td></tr>
  76. <tr><td bgcolor="#fffacd"><ul>
  77. <li><a href="http://mail.gnome.org/archives/xml/">Mail archive</a></li>
  78. <li><a href="http://xmlsoft.org/XSLT/">XSLT libxslt</a></li>
  79. <li><a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a></li>
  80. <li><a href="http://www.aleksey.com/xmlsec/">XML-DSig xmlsec</a></li>
  81. <li><a href="ftp://xmlsoft.org/">FTP</a></li>
  82. <li><a href="http://ww.zlatkovic.com/projects/libxml/">Windows binaries</a></li>
  83. <li><a href="http://garypennington.net/libxml2/">Solaris binaries</a></li>
  84. <li><a href="http://www.zveno.com/open_source/libxml2xslt.html">MacOsX binaries</a></li>
  85. <li><a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a></li>
  86. <li><a href="http://bugzilla.gnome.org/buglist.cgi?product=libxml&amp;product=libxml2">Bug Tracker</a></li>
  87. </ul></td></tr>
  88. </table>
  89. </td></tr></table></td>
  90. <td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd">
  91. <?php
  92. $query = $HTTP_GET_VARS[ "query" ];
  93. $scope = $HTTP_GET_VARS[ "scope" ];
  94. // We handle only the first argument so far
  95. $query = $_GET['query'];
  96. $query = ltrim ($query);
  97. if (! $query) {
  98. echo "<h1 align='center'>Search the documentation on XMLSoft.org</h1>";
  99. }
  100. if ($scope == NULL)
  101. $scope = "any";
  102. $scope = ltrim ($scope);
  103. if ($scope == "")
  104. $scope = "any";
  105. ?>
  106. <p> The search service indexes the libxml2 and libxslt APIs and documentation as well as the xml@gnome.org and xslt@gnome.org mailing-list archives. To use it simply provide a set of keywords:
  107. <p>
  108. <form action="<?php echo "$PHP_SELF", "?query=", rawurlencode($query) ?>"
  109. enctype="application/x-www-form-urlencoded" method="GET">
  110. <input name="query" type="TEXT" size="50" value="<?php echo $query?>">
  111. <select name="scope">
  112. <option value="any">Search All</option>
  113. <option value="XML" <?php if ($scope == 'XML') print "selected"?>>XML resources</option>
  114. <option value="XSLT" <?php if ($scope == 'XSLT') print "selected"?>>XSLT resources</option>
  115. <option value="API" <?php if ($scope == 'API') print "selected"?>>Only the APIs</option>
  116. <option value="XMLAPI" <?php if ($scope == 'XMLAPI') print "selected"?>>Only the XML API</option>
  117. <option value="XSLTAPI" <?php if ($scope == 'XSLTAPI') print "selected"?>>Only the XSLT API</option>
  118. <option value="DOCS" <?php if ($scope == 'DOCS') print "selected"?>>Only the Documentation</option>
  119. <option value="XMLDOC" <?php if ($scope == 'XMLDOC') print "selected"?>>Only the XML Documentation</option>
  120. <option value="XSLTDOC" <?php if ($scope == 'XSLTDOC') print "selected"?>>Only the XSLT Documentation</option>
  121. <option value="LISTS" <?php if ($scope == 'LISTS') print "selected"?>>Only the lists archives</option>
  122. <option value="XMLLIST" <?php if ($scope == 'XMLLIST') print "selected"?>>Only the XML list archive</option>
  123. <option value="XSLTLIST" <?php if ($scope == 'XSLTLIST') print "selected"?>>Only the XSLT list archive</option>
  124. </select>
  125. <input name=submit type=submit value="Search ...">
  126. </form>
  127. <?php
  128. function logQueryWord($word) {
  129. $result = mysql_query ("SELECT ID,Count FROM Queries WHERE Value='$word'");
  130. if ($result) {
  131. $i = mysql_num_rows($result);
  132. if ($i == 0) {
  133. mysql_free_result($result);
  134. mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
  135. } else {
  136. $id = mysql_result($result, 0, 0);
  137. $count = mysql_result($result, 0, 1);
  138. $count ++;
  139. mysql_query ("UPDATE Queries SET Count=$count WHERE ID=$id");
  140. }
  141. } else {
  142. mysql_query ("INSERT INTO Queries (Value,Count) VALUES ('$word',1)");
  143. }
  144. }
  145. function queryWord($word) {
  146. $result = NULL;
  147. $j = 0;
  148. if ($word) {
  149. $result = mysql_query ("SELECT words.relevance, symbols.name, symbols.type, symbols.module, symbols.descr FROM words, symbols WHERE LCASE(words.name) LIKE LCASE('$word') and words.symbol = symbols.name ORDER BY words.relevance DESC LIMIT 75");
  150. if ($result) {
  151. $j = mysql_num_rows($result);
  152. if ($j == 0)
  153. mysql_free_result($result);
  154. }
  155. logQueryWord($word);
  156. }
  157. return array($result, $j);
  158. }
  159. function queryHTMLWord($word) {
  160. $result = NULL;
  161. $j = 0;
  162. if ($word) {
  163. $result = mysql_query ("SELECT relevance, name, id, resource, section FROM wordsHTML WHERE LCASE(name) LIKE LCASE('$word') ORDER BY relevance DESC LIMIT 75");
  164. if ($result) {
  165. $j = mysql_num_rows($result);
  166. if ($j == 0)
  167. mysql_free_result($result);
  168. }
  169. logQueryWord($word);
  170. }
  171. return array($result, $j);
  172. }
  173. function queryArchiveWord($word) {
  174. $result = NULL;
  175. $j = 0;
  176. if ($word) {
  177. $result = mysql_query ("SELECT wordsArchive.relevance, wordsArchive.name, 'xml-list', archives.resource, archives.title FROM wordsArchive, archives WHERE LCASE(wordsArchive.name) LIKE LCASE('$word') and wordsArchive.ID = archives.ID ORDER BY relevance DESC LIMIT 75");
  178. if ($result) {
  179. $j = mysql_num_rows($result);
  180. if ($j == 0)
  181. mysql_free_result($result);
  182. }
  183. logQueryWord($word);
  184. }
  185. return array($result, $j);
  186. }
  187. function XSLTqueryWord($word) {
  188. $result = NULL;
  189. $j = 0;
  190. if ($word) {
  191. $result = mysql_query ("SELECT XSLTwords.relevance, XSLTsymbols.name, XSLTsymbols.type, XSLTsymbols.module, XSLTsymbols.descr FROM XSLTwords, XSLTsymbols WHERE LCASE(XSLTwords.name) LIKE LCASE('$word') and XSLTwords.symbol = XSLTsymbols.name ORDER BY XSLTwords.relevance DESC LIMIT 75");
  192. if ($result) {
  193. $j = mysql_num_rows($result);
  194. if ($j == 0)
  195. mysql_free_result($result);
  196. }
  197. logQueryWord($word);
  198. }
  199. return array($result, $j);
  200. }
  201. function XSLTqueryHTMLWord($word) {
  202. $result = NULL;
  203. $j = 0;
  204. if ($word) {
  205. $result = mysql_query ("SELECT relevance, name, id, resource, section FROM XSLTwordsHTML WHERE LCASE(name) LIKE LCASE('$word') ORDER BY relevance DESC LIMIT 75");
  206. if ($result) {
  207. $j = mysql_num_rows($result);
  208. if ($j == 0)
  209. mysql_free_result($result);
  210. }
  211. logQueryWord($word);
  212. }
  213. return array($result, $j);
  214. }
  215. function XSLTqueryArchiveWord($word) {
  216. $result = NULL;
  217. $j = 0;
  218. if ($word) {
  219. $result = mysql_query ("SELECT XSLTwordsArchive.relevance, XSLTwordsArchive.name, 'xslt-list', archives.resource, archives.title FROM XSLTwordsArchive, archives WHERE LCASE(XSLTwordsArchive.name) LIKE LCASE('$word') and XSLTwordsArchive.ID = archives.ID ORDER BY relevance DESC LIMIT 75");
  220. if ($result) {
  221. $j = mysql_num_rows($result);
  222. if ($j == 0)
  223. mysql_free_result($result);
  224. }
  225. logQueryWord($word);
  226. }
  227. return array($result, $j);
  228. }
  229. function resSort ($a, $b) {
  230. list($ra,$ta,$ma,$na,$da) = $a;
  231. list($rb,$tb,$mb,$nb,$db) = $b;
  232. if ($ra == $rb) return 0;
  233. return ($ra > $rb) ? -1 : 1;
  234. }
  235. if (($query) && (strlen($query) <= 50)) {
  236. $link = mysql_connect ("localhost", "nobody");
  237. if (!$link) {
  238. echo "<p> Could not connect to the database: ", mysql_error();
  239. } else {
  240. mysql_select_db("xmlsoft", $link);
  241. $list = explode (" ", $query);
  242. $results = array();
  243. $number = 0;
  244. for ($number = 0;$number < count($list);$number++) {
  245. $word = $list[$number];
  246. if (($scope == 'any') || ($scope == 'XML') ||
  247. ($scope == 'API') || ($scope == 'XMLAPI')) {
  248. list($result, $j) = queryWord($word);
  249. if ($j > 0) {
  250. for ($i = 0; $i < $j; $i++) {
  251. $relevance = mysql_result($result, $i, 0);
  252. $name = mysql_result($result, $i, 1);
  253. $type = mysql_result($result, $i, 2);
  254. $module = mysql_result($result, $i, 3);
  255. $desc = mysql_result($result, $i, 4);
  256. if (array_key_exists($name, $results)) {
  257. list($r,$t,$m,$d,$w,$u) = $results[$name];
  258. $results[$name] = array(($r + $relevance) * 2,
  259. $t,$m,$d,$w,$u);
  260. } else {
  261. $id = $name;
  262. $m = strtolower($module);
  263. $url = "html/libxml-$module.html#$id";
  264. $results[$name] = array($relevance,$type,
  265. $module, $desc, $name, $url);
  266. }
  267. }
  268. mysql_free_result($result);
  269. }
  270. }
  271. if (($scope == 'any') || ($scope == 'XSLT') ||
  272. ($scope == 'API') || ($scope == 'XSLTAPI')) {
  273. list($result, $j) = XSLTqueryWord($word);
  274. if ($j > 0) {
  275. for ($i = 0; $i < $j; $i++) {
  276. $relevance = mysql_result($result, $i, 0);
  277. $name = mysql_result($result, $i, 1);
  278. $type = mysql_result($result, $i, 2);
  279. $module = mysql_result($result, $i, 3);
  280. $desc = mysql_result($result, $i, 4);
  281. if (array_key_exists($name, $results)) {
  282. list($r,$t,$m,$d,$w,$u) = $results[$name];
  283. $results[$name] = array(($r + $relevance) * 2,
  284. $t,$m,$d,$w,$u);
  285. } else {
  286. $id = $name;
  287. $m = strtolower($module);
  288. $url = "XSLT/html/libxslt-$module.html#$id";
  289. $results[$name] = array($relevance,$type,
  290. $module, $desc, $name, $url);
  291. }
  292. }
  293. mysql_free_result($result);
  294. }
  295. }
  296. if (($scope == 'any') || ($scope == 'XML') ||
  297. ($scope == 'DOCS') || ($scope == 'XMLDOC')) {
  298. list($result, $k) = queryHTMLWord($word);
  299. if ($k > 0) {
  300. for ($i = 0; $i < $k; $i++) {
  301. $relevance = mysql_result($result, $i, 0);
  302. $name = mysql_result($result, $i, 1);
  303. $id = mysql_result($result, $i, 2);
  304. $module = mysql_result($result, $i, 3);
  305. $desc = mysql_result($result, $i, 4);
  306. if (strncmp($module, "libxml-", 7) == 0)
  307. $url = "html/$module";
  308. if ($id != "") {
  309. $url = $url + "#$id";
  310. }
  311. $results["$name _html_ $number _ $i"] =
  312. array($relevance, "XML docs",
  313. $module, $desc, $name, $url);
  314. }
  315. mysql_free_result($result);
  316. }
  317. }
  318. if (($scope == 'any') || ($scope == 'XSLT') ||
  319. ($scope == 'DOCS') || ($scope == 'XSLTDOC')) {
  320. list($result, $k) = XSLTqueryHTMLWord($word);
  321. if ($k > 0) {
  322. for ($i = 0; $i < $k; $i++) {
  323. $relevance = mysql_result($result, $i, 0);
  324. $name = mysql_result($result, $i, 1);
  325. $id = mysql_result($result, $i, 2);
  326. $module = mysql_result($result, $i, 3);
  327. $desc = mysql_result($result, $i, 4);
  328. $url = "XSLT/$module";
  329. if ($id != "") {
  330. $url = $url + "#$id";
  331. }
  332. $results["$name xslthtml $number _ $i "] =
  333. array($relevance, "XSLT docs",
  334. $module, $desc, $name, $url);
  335. }
  336. mysql_free_result($result);
  337. }
  338. }
  339. if (($scope == 'any') || ($scope == 'XML') ||
  340. ($scope == 'LISTS') || ($scope == 'XMLLIST')) {
  341. list($result, $j) = queryArchiveWord($word);
  342. if ($j > 0) {
  343. for ($i = 0; $i < $j; $i++) {
  344. $relevance = mysql_result($result, $i, 0);
  345. $name = mysql_result($result, $i, 1);
  346. $type = mysql_result($result, $i, 2);
  347. $url = mysql_result($result, $i, 3);
  348. $desc = mysql_result($result, $i, 4);
  349. if (array_key_exists($url, $results)) {
  350. list($r,$t,$m,$d,$w,$u) = $results[$url];
  351. $results[$name] = array(($r + $relevance) * 2,
  352. $t,$m,$d,$w,$u);
  353. } else {
  354. $id = $name;
  355. $m = strtolower($module);
  356. $u = str_replace(
  357. "http://mail.gnome.org/archives/xml/", "", $url);
  358. $results[$url] = array($relevance,$type,
  359. $u, $desc, $name, $url);
  360. }
  361. }
  362. mysql_free_result($result);
  363. }
  364. }
  365. if (($scope == 'any') || ($scope == 'XSLT') ||
  366. ($scope == 'LISTS') || ($scope == 'XSLTLIST')) {
  367. list($result, $j) = XSLTqueryArchiveWord($word);
  368. if ($j > 0) {
  369. for ($i = 0; $i < $j; $i++) {
  370. $relevance = mysql_result($result, $i, 0);
  371. $name = mysql_result($result, $i, 1);
  372. $type = mysql_result($result, $i, 2);
  373. $url = mysql_result($result, $i, 3);
  374. $desc = mysql_result($result, $i, 4);
  375. if (array_key_exists($url, $results)) {
  376. list($r,$t,$m,$d,$w,$u) = $results[$url];
  377. $results[$name] = array(($r + $relevance) * 2,
  378. $t,$m,$d,$w,$u);
  379. } else {
  380. $id = $name;
  381. $m = strtolower($module);
  382. $u = str_replace(
  383. "http://mail.gnome.org/archives/xslt/", "", $url);
  384. $results[$url] = array($relevance,$type,
  385. $u, $desc, $name, $url);
  386. }
  387. }
  388. mysql_free_result($result);
  389. }
  390. }
  391. }
  392. if ((count($results) == 0) && (count($list) == 1)) {
  393. $word = $list[0];
  394. if (($scope == 'any') || ($scope == 'XML') ||
  395. ($scope == 'API') || ($scope == 'XMLAPI')) {
  396. list($result, $j) = queryWord("xml$word");
  397. if ($j > 0) {
  398. for ($i = 0; $i < $j; $i++) {
  399. $relevance = mysql_result($result, $i, 0);
  400. $name = mysql_result($result, $i, 1);
  401. $type = mysql_result($result, $i, 2);
  402. $module = mysql_result($result, $i, 3);
  403. $desc = mysql_result($result, $i, 4);
  404. if (array_key_exists($name, $results)) {
  405. list($r,$t,$m,$d,$w,$u) = $results[$name];
  406. $results[$name] = array(($r + $relevance) * 2,
  407. $t,$m,$d,$w,$u);
  408. } else {
  409. $id = $name;
  410. $m = strtolower($module);
  411. $url = "html/libxml-$module.html#$id";
  412. $results[$name] = array($relevance,$type,
  413. $module, $desc, $name, $url);
  414. }
  415. }
  416. mysql_free_result($result);
  417. }
  418. }
  419. if (($scope == 'any') || ($scope == 'XSLT') ||
  420. ($scope == 'API') || ($scope == 'XSLTAPI')) {
  421. list($result, $j) = XSLTqueryWord("xslt$word");
  422. if ($j > 0) {
  423. for ($i = 0; $i < $j; $i++) {
  424. $relevance = mysql_result($result, $i, 0);
  425. $name = mysql_result($result, $i, 1);
  426. $type = mysql_result($result, $i, 2);
  427. $module = mysql_result($result, $i, 3);
  428. $desc = mysql_result($result, $i, 4);
  429. if (array_key_exists($name, $results)) {
  430. list($r,$t,$m,$d,$w,$u) = $results[$name];
  431. $results[$name] = array(($r + $relevance) * 2,
  432. $t,$m,$d,$w,$u);
  433. } else {
  434. $id = $name;
  435. $m = strtolower($module);
  436. $url = "XSLT/html/libxslt-$module.html#$id";
  437. $results[$name] = array($relevance,$type,
  438. $module, $desc, $name, $url);
  439. }
  440. }
  441. mysql_free_result($result);
  442. }
  443. }
  444. }
  445. mysql_close($link);
  446. $nb = count($results);
  447. echo "<h3 align='center'>Found $nb results for query $query</h3>\n";
  448. usort($results, "resSort");
  449. if ($nb > 0) {
  450. printf("<table><tbody>\n");
  451. printf("<tr><td>Quality</td><td>Symbol</td><td>Type</td><td>module</td><td>Description</td></tr>\n");
  452. $i = 0;
  453. while (list ($name, $val) = each ($results)) {
  454. list($r,$t,$m,$d,$s,$u) = $val;
  455. $m = str_replace("<", "&lt;", $m);
  456. $s = str_replace("<", "&lt;", $s);
  457. $d = str_replace("<", "&lt;", $d);
  458. echo "<tr><td>$r</td><td><a href='$u'>$s</a></td><td>$t</td><td>$m</td><td>$d</td></tr>";
  459. $i = $i + 1;
  460. if ($i > 75)
  461. break;
  462. }
  463. printf("</tbody></table>\n");
  464. }
  465. }
  466. }
  467. ?>
  468. </td></tr></table></td></tr></table></td></tr></table></td>
  469. </tr></table></td></tr></table>
  470. </body>
  471. </html>