[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/templates/problem/ -> problem.inc (source)

   1  <script type="text/javascript">
   2  <!--
   3  // Check all of the main form fields to make sure they are filled in
   4  function validate()
   5  {
   6      if (document.problem_report.subject.value == '') {
   7          alert('<?php echo addslashes(_("Please provide a summary of the problem.")) ?>');
   8          document.problem_report.subject.focus();
   9          return false;
  10      } else if (document.problem_report.message.value == '') {
  11          alert('<?php echo addslashes(_("You must describe the problem before you can send the problem report.")) ?>');
  12          document.problem_report.message.focus();
  13          return false;
  14      }
  15  
  16      document.problem_report.actionID.value = 'send_problem_report';
  17      return true;
  18  }
  19  //-->
  20  </script>
  21  
  22  <form method="post" name="problem_report" action="problem.php">
  23  <?php Util::pformInput() ?>
  24  <input type="hidden" name="actionID" value="cancel_problem_report" />
  25  <input type="hidden" name="return_url" value="<?php echo htmlspecialchars(Util::getFormData('return_url')) ?>" />
  26  
  27  <table cellpadding="3" cellspacing="2" width="100%">
  28  <tr class="header">
  29      <td colspan="2" class="header"><?php echo _("Describe the Problem") ?></td>
  30  </tr>
  31  
  32  <tr>
  33      <td class="light rightAlign"><?php echo _("Your Name") ?></td>
  34      <td><input type="text" tabindex="1" name="name" value="<?php echo htmlspecialchars($name) ?>" size="70" /></td>
  35  </tr>
  36  
  37  <tr>
  38      <td class="light rightAlign"><?php echo _("Your Email Address") ?></td>
  39      <td><input type="text" tabindex="2" name="email" value="<?php echo htmlspecialchars($email) ?>" size="70" /></td>
  40  </tr>
  41  
  42  <tr>
  43      <td class="light rightAlign"><?php echo _("Short Summary") ?></td>
  44      <td><input type="text" tabindex="3" name="subject" value="<?php echo htmlspecialchars($subject) ?>" size="70" /></td>
  45  </tr>
  46  
  47  <tr>
  48      <td colspan="2" class="smallheader"><?php echo _("Full Description") ?></td>
  49  </tr>
  50  <tr>
  51      <td></td>
  52      <td><textarea tabindex="4" name="message" rows="20" cols="80" wrap="hard"><?php echo htmlspecialchars($message) ?></textarea></td>
  53  </tr>
  54  
  55  <tr>
  56    <td></td>
  57    <td class="light">
  58      <input class="button" type="submit" name="formsubmit" onclick="return validate();" value="<?php echo _("Send Problem Report") ?>" />
  59      <input class="button" type="submit" name="formsubmit" value="<?php echo _("Cancel Problem Report") ?>" />
  60    </td>
  61  </tr>
  62  
  63  </table>
  64  </form>


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7