fixing some strings that can't be extracted with gettext 0.10.40.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Mar 2004 16:27:24 +0000 (16:27 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Mar 2004 16:27:24 +0000 (16:27 +0000)
adding form functions.
maybe functions/forms.php can be loaded by include/validate.php?

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6985 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/bug_report/bug_report.php

index ed658d1..9fc9c32 100644 (file)
@@ -25,6 +25,9 @@ define('SM_PATH','../../');
 
 require_once(SM_PATH . 'include/validate.php');
 
+// loading form functions
+require_once(SM_PATH . 'functions/forms.php');
+
 displayPageHeader($color, 'None');
 
 
@@ -99,7 +102,7 @@ if ($imap_stream) {
     array_shift($list);
     array_shift($list);
     $read = implode(' ', $list);
-    $body .= "  Cabailities:  $read";
+    $body .= "  Capabilities:  $read";
     fputs ($imap_stream, "a002 LOGOUT\r\n");
     fclose($imap_stream);
 } else {
@@ -136,15 +139,15 @@ $body = htmlspecialchars($body_top . $body);
 
 ?>
    <br>
-   <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr>
+   <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
       <?php echo html_tag('td',"<b>"._("Submit a Bug Report")."</b>",'center',$color[0]); ?>
    </tr></table>
 
    <?PHP echo $warning_html; 
 
-   echo "<p><font size=\"+1\">";
+   echo '<p><big>';
    echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
-   echo "</font></p>";
+   echo '</big></p>';
 
    echo "<ul>";
    echo "<li>";
@@ -187,11 +190,13 @@ $body = htmlspecialchars($body_top . $body);
    </tr>
    <tr>
      <td align=center>
-       <input type="hidden" name="send_to_cc" value="">
-       <input type="hidden" name="send_to_bcc" value="">
-       <input type="hidden" name="subject" value="Bug Report">
-       <input type="hidden" name="body" value="<?PHP echo $body ?>">
-       <input type="submit" value="<?php echo _("Start Bug Report Form"); ?>">
+    <?php
+       echo addHidden("send_to_cc","");
+       echo addHidden("send_to_bcc","");
+       echo addHidden("subject","Bug Report");
+       echo addHidden("body",$body);
+       echo addSubmit(_("Start Bug Report Form"));
+    ?>
      </td>
    </tr>
    </table>