Pelzini

This is the code documentation for the Pelzini project

source of /viewer/controllers/more_info.php

Shows a list of reports and parser documents
  1. <?php
  2. /*
  3. Copyright 2008 Josh Heidenreich
  4.  
  5. This file is part of Pelzini.
  6.  
  7. Pelzini is free software: you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation, either version 3 of the License, or
  10. (at your option) any later version.
  11.  
  12. Pelzini is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with Pelzini. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20.  
  21. /**
  22.  * Shows a list of reports and parser documents
  23.  *
  24.  * @package Viewer
  25.  * @author Josh Heidenreich
  26.  * @since 0.2
  27.  * @see ParserDocuemnt
  28.  * @see viewer/authors_list.php
  29.  * @see viewer/tables_list.php
  30.  * @tag i18n-done
  31.  **/
  32.  
  33. require_once 'head.php';
  34.  
  35.  
  36. echo '<h2>', str(STR_MORE_INFO), '</h2>';
  37.  
  38.  
  39. $q = "SELECT name FROM documents WHERE projectid = {$project['id']} ORDER BY name";
  40. $res = db_query ($q);
  41.  
  42. if (db_num_rows ($res) > 0) {
  43. echo '<h3>', str(STR_PROJECT_DOCS), '</h3>';
  44. echo "<ul>\n";
  45.  
  46. while ($row = db_fetch_assoc ($res)) {
  47. $url = htmlspecialchars(urlencode($row['name']));
  48. $html = htmlspecialchars($row['name']);
  49.  
  50. echo "<li><a href=\"document?name={$url}\">{$html}</a></li>\n";;
  51. }
  52.  
  53. echo "</ul>\n";
  54. }
  55. ?>
  56.  
  57.  
  58. <h3><?php echo str(STR_ADDITIONAL_DOCS); ?></h3>
  59. <p><b><a href="class_tree"><?php echo str(STR_CLASS_TREE_TITLE); ?></a></b>
  60. <br><?php echo str(STR_CLASS_TREE_DESC); ?></p>
  61.  
  62. <br>
  63.  
  64. <p><b><a href="authors_list"><?php echo str(STR_AUTHOR_LIST_TITLE); ?></a></b>
  65. <br><?php echo str(STR_AUTHOR_LIST_DESC); ?></p>
  66.  
  67. <br>
  68.  
  69. <p><b><a href="tables_list"><?php echo str(STR_TABLE_LIST_TITLE); ?></a></b>
  70. <br><?php echo str(STR_TABLE_LIST_DESC); ?></p>
  71.  
  72. <br>
  73.  
  74. <p><b><a href="tags_list"><?php echo str(STR_TAG_LIST_TITLE); ?></a></b>
  75. <br><?php echo str(STR_TAG_LIST_DESC); ?></p>
  76.  
  77. <?php
  78. require_once 'foot.php';
  79. ?>
  80.