pearweb_manual
[ class tree: pearweb_manual ] [ index: pearweb_manual ] [ all elements ]

Source for file add-note-form.tpl.php

Documentation is available at add-note-form.tpl.php

  1. <?php response_header('Add a User Note')?>
  2. <h1>Add a Note to <?php echo htmlspecialchars($noteUrl?></h1>
  3. <?php
  4. require 'pear-manual.php';
  5.  
  6. if (isset($errors)) {
  7. ?>
  8.  
  9. <?php
  10.     foreach ($errors as $error{
  11.         echo '<div class="errors">'htmlspecialchars($error)'</div>';
  12.     }
  13. }
  14. ?>
  15.  
  16. <p>
  17.  You can contribute your helpful information to the PEAR manual using this simple
  18.  form.  Please proof-read your note.
  19. </p>
  20. <p>
  21.  There is no need to hide or otherwise obfuscate your email address (like joeSPAM @#@at Gronk
  22.  dawt net), as this will be done automatically.
  23. </p>
  24. <p>
  25.  Please, please ONLY add actual information.  Questions, feature requests
  26.  ("You guys should document this!@#"), or bug reports should not be posted as a note.
  27.  We have a great bug tracker for bugs/feature requests at
  28.  <a href="<?php echo getBugReportLink(getPackageNameForId($noteUrl))?>">this location</a>.
  29.  Questions can be answered through our <a href="http://pear.php.net/support">support
  30.  channels</a>.
  31. </p>
  32. <form action="/notes/add-note.php" method="post">
  33. <input type="hidden" name="noteUrl" value="<?php echo htmlspecialchars($noteUrl?>" />
  34. <input type="hidden" name="redirect" value="<?php echo htmlspecialchars($redirect?>" />
  35. <table>
  36. <tbody>
  37.  <tr>
  38.   <td colspan="2">
  39.  <?php if (!$loggedin?>
  40.  </td></tr>
  41.  <tr>
  42.   <!-- We will care after about finding the user, this is quick fix. -->
  43.   <th class="form-label_left">Your email address (or name):</th>
  44.   <td class="form-input">
  45.    <input name="user" size="40" maxlength="40" value="<?php echo htmlspecialchars($email?>" type="text" />
  46.   </td>
  47.  </tr>
  48.  <?php // if ($loggedin) ?>
  49.  <tr>
  50.   <th class="form-label_left">Your notes:</th>
  51.   <td class="form-input"><textarea name="note" rows="16" cols="60" wrap="virtual"><?php
  52.   echo htmlspecialchars($note);
  53.   ?></textarea>
  54.    <br />
  55.   </td>
  56.  </tr>
  57.  <?php if (!$loggedin?>
  58.  <tr>
  59.   <th class="form-label_left"><br/></th>
  60.   <td class="form-input">
  61.     <?php print $captcha?>
  62.   </td>
  63.  </tr>
  64.  <?php // if ($loggedin) ?>
  65.  <tr>
  66.   <th colspan="2">
  67.    <!-- I'll add the preview soon -->
  68.    <input name="action" value="Add Note" type="submit">
  69.   </th>
  70.  </tr>
  71. </tbody>
  72. </table>
  73. </form>
  74.  
  75. <?php response_footer()?>

Documentation generated on Mon, 11 Mar 2019 16:04:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.