docs.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. /*
  3. * $Id: docs.php,v 1.15 2006/10/02 05:36:52 andrei Exp $
  4. */
  5. require_once('include/prepend.php');
  6. // Start output buffering in order to grab the data from the documentation
  7. // CVS updates file (that is echoed when included) and save to a variable
  8. // instead of echoing it right away.
  9. ob_start();
  10. ?>
  11. <div id="docsupdates">
  12. <h3>Docs Updates</h3>
  13. <?php
  14. //include_once 'manual/en/updates.php';
  15. echo file_get_contents('http://gtk.php.net/manual/en/updates.php');
  16. ?>
  17. </div>
  18. <?php
  19. $RIGHT_SIDEBAR_DATA = ob_get_clean();
  20. $SIDEBAR_DATA = <<< EOF
  21. <h3>FAQ</h3>
  22. <p>The <a href="/faq.php">PHP-GTK FAQ</a> is your first stop for general
  23. information and those questions that seem to be on most people&#8217;s
  24. minds.</p>
  25. <!--
  26. <p>The <a href="/wiki/">PHP-GTK Wiki</a> also provides an <a href="/wiki/PhpGtk/PhpGtkFaq">extended
  27. FAQ</a> section.</p>
  28. -->
  29. <h3>Changelog</h3>
  30. <p>You can also find the <a href="/changelog.php">PHP-GTK Changelog</a> useful,
  31. if you would like to look up changes between various versions of
  32. PHP-GTK.</p>
  33. <h3>More Information</h3>
  34. <p>The <a href="/wiki/">PHP-GTK Wiki</a> is an excellent resource and
  35. addendum to the documentation listed here.</p>
  36. <h3>Sample Code</h3>
  37. <p>Sample code and example scripts are often the best way to learn PHP-GTK.
  38. The manual comes complete with a <a href="/manual1/en/tutorials.php">Tutorials
  39. section</a> that contains some sample code. However, the Wiki also has a
  40. <a href="/wiki/Code">code section</a> dedicated to samples.</p>
  41. EOF;
  42. commonHeader("Documentation");
  43. ?>
  44. <h1>Documentation</h1>
  45. <p>The documentation for PHP-GTK 2 is a work in progress, as can be seen from the
  46. updates list to the right. Translations are very much in the early stages, and
  47. will be added here as they start to come in.</p>
  48. <p>Note that, in translated versions of the manual, untranslated sections will
  49. still be in English.</p>
  50. <table border="0" cellpadding="3" cellspacing="2" width="100%">
  51. <tr bgcolor="#cccccc">
  52. <th>Formats</th>
  53. <th>Languages</th>
  54. </tr>
  55. <tr>
  56. <th bgcolor="#dddddd">View Online</th>
  57. <td bgcolor="#eeeeee">
  58. <?php
  59. $lastlang = count($man2_languages) - 1;
  60. foreach ($man2_languages as $langnum => $langcode) {
  61. echo '<a href="/manual/'.$langcode.'/">'.$LANGUAGES[$langcode].'</a>';
  62. echo ($lastlang != $langnum) ? ", " : "";
  63. }
  64. ?>
  65. </td>
  66. </tr>
  67. <tr>
  68. <th bgcolor="#dddddd">Printer friendly</th>
  69. <td bgcolor="#eeeeee">
  70. <?php
  71. foreach ($man2_languages as $langnum => $langcode) {
  72. echo '<a href="/manual/'.$langcode.'/html/index.html">'.$LANGUAGES[$langcode].'</a>';
  73. echo ($lastlang != $langnum) ? ", " : "";
  74. }
  75. ?>
  76. </td>
  77. </tr>
  78. <tr>
  79. <th bgcolor="#dddddd">Downloads</th>
  80. <td bgcolor="#eeeeee">For other downloadable formats, please visit
  81. our <a href="download-docs.php">documentation downloads</a> page.</td>
  82. </tr>
  83. </table>
  84. <p>The PHP-GTK 1 manual is available online in a selection of languages. You can
  85. choose between the printer friendly and graphically designed versions.
  86. Please pick a language and format from the table below.</p>
  87. <p> Note, that many languages are just under translation, and the untranslated
  88. parts are still in English. Also some translated parts might be outdated.
  89. The translation teams are open to contributions. Please send an e-mail to
  90. <a href="mailto:php-gtk-doc+at+lists+dot+php+dot+net">php-gtk-doc at lists
  91. dot php dot net</a> to offer your help.</p>
  92. <table border="0" cellpadding="3" cellspacing="2" width="100%">
  93. <tr bgcolor="#cccccc">
  94. <th>Formats</th>
  95. <th>Languages</th>
  96. </tr>
  97. <tr>
  98. <th bgcolor="#dddddd">View Online</th>
  99. <td bgcolor="#eeeeee">
  100. <?php
  101. $lastlang = count($man_languages) - 1;
  102. foreach ($man_languages as $langnum => $langcode) {
  103. echo '<a href="/manual1/'.$langcode.'/">'.$LANGUAGES[$langcode].'</a>';
  104. echo ($lastlang != $langnum) ? ", " : "";
  105. }
  106. ?>
  107. </td>
  108. </tr>
  109. <tr>
  110. <th bgcolor="#dddddd">Printer friendly</th>
  111. <td bgcolor="#eeeeee">
  112. <?php
  113. foreach ($man_languages as $langnum => $langcode) {
  114. echo '<a href="/manual1/'.$langcode.'/html/index.html">'.$LANGUAGES[$langcode].'</a>';
  115. echo ($lastlang != $langnum) ? ", " : "";
  116. }
  117. ?>
  118. </td>
  119. </tr>
  120. <tr>
  121. <th bgcolor="#dddddd">Downloads</th>
  122. <td bgcolor="#eeeeee">For other downloadable formats, please visit
  123. our <a href="download-docs.php">documentation downloads</a>
  124. page.</td>
  125. </tr>
  126. </table>
  127. <?php
  128. commonFooter();
  129. /*
  130. * Local variables:
  131. * tab-width: 4
  132. * c-basic-offset: 4
  133. * End:
  134. * vim: expandtab sw=4 ts=4 fdm=marker
  135. */
  136. ?>