Revert changes in revision 14302. Revision 14302 should only have changed functions...
[squirrelmail.git] / plugins / bug_report / templates / default / usage.tpl
1 <?php
2
3 /**
4 * usage.tpl
5 *
6 * Template for the usage explanation screen for the Bug Report plugin.
7 *
8 * The following variables are available in this template:
9 *
10 * string $message_body The initial template text of the bug report
11 * message
12 * array $warning_messages A list of warning texts, if any occurred
13 * (array keys must be the "type" used to
14 * index the $correction_messages array below)
15 * array $correction_messages A list of arrays keyed by warning type,
16 * wherein arrays of correction messages are
17 * placed
18 * int $warning_count The number of warnings
19 * string $version The current SquirrelMail version string
20 * string $title_bg_color The background color for the page title
21 * string $admin_email The administrator's email address, if any
22 * (possibly empty)
23 *
24 * @copyright 1999-2012 The SquirrelMail Project Team
25 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
26 * @version $Id$
27 * @package squirrelmail
28 * @subpackage plugins
29 */
30
31
32 // retrieve the template vars
33 //
34 extract($t);
35
36
37 ?>
38 <br />
39 <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
40 <td align="center" bgcolor="<?php echo $title_bg_color; ?>"><b>
41 <?php echo _("Submit a Bug Report"); ?>
42 </b></td>
43 </tr></table>
44
45 <?php
46
47 // warnings require special layout
48 //
49 if (!empty($warning_messages)) {
50 echo '<h1>' . _("Warnings were reported in your setup:") . '</h1><dl>';
51 foreach ($warning_messages as $warning_type => $warning_text) {
52 echo "<dt><b>$warning_text</b></dt>\n";
53 foreach ($correction_messages[$warning_type] as $correction_text) {
54 echo "<dd>* $correction_text</dd>\n";
55 }
56 }
57 echo "</dl>\n<p>" . sprintf(_("%d warning(s) reported."), $warning_count)
58 . "</p>\n<hr />\n";
59 }
60
61
62 echo '<p><a href="show_system_specs.php" target="_blank">'
63 . _("Show System Specifications")
64 . "</a></p>\n\n"
65 . '<p><big>'
66 . _("Before you send your bug report, please make sure to check this checklist for any common problems.")
67 . "</big></p>\n"
68
69 . '<ul>'
70 . '<li>'
71 . sprintf(_("Make sure that you are running the most recent copy of %s. You are currently using version %s."), '<a href="http://squirrelmail.org/" target="_blank">SquirrelMail</a>', $version)
72 . "</li>\n"
73
74 . '<li>'
75 . sprintf(_("Check to see if your bug is already listed in the %sBug List%s on SourceForge. If it is, we already know about it and are trying to fix it."), '<a href="http://sourceforge.net/bugs/?group_id=311" target="_blank">', '</a>')
76 . "</li>\n"
77
78 . '<li>'
79 . _("Try to make sure that you can repeat it. If the bug happens sporatically, try to document what you did when it happened. If it always occurs when you view a specific message, keep that message around so maybe we can see it.")
80 . "</li>\n"
81
82 . '<li>'
83 . sprintf(_("If there were warnings displayed above, try to resolve them yourself. Read the guides in the %s directory where SquirrelMail was installed."), '<tt>doc/</tt>')
84 . "</li>\n"
85 . "</ul>\n"
86
87 . '<p>'
88 . _("Pressing the button below will start a mail message to the developers of SquirrelMail that will contain a lot of information about your system, your browser, how SquirrelMail is set up, and your IMAP server. It will also prompt you for information. Just fill out the sections at the top. If you like, you can scroll down in the message to see what else is being sent.")
89 . "</p>\n"
90
91 . '<p>'
92 . _("Please make sure to fill out as much information as you possibly can to give everyone a good chance of finding and removing the bug. Submitting your bug like this will not have it automatically added to the bug list on SourceForge, but someone who gets your message may add it for you.")
93 . "</p>\n"
94
95 . '<form action="' . $base_uri . 'src/compose.php" method="post">';
96 ?>
97 <table align="center" border="0">
98 <tr>
99 <td>
100 <?php echo _("This bug involves:")
101 . ' <select name="send_to">';
102
103 // if admin's email is set - add 'report to admin'
104 // option and make it default one
105 //
106 if (! empty($admin_email)) {
107 echo '<option value="' . $admin_email . '" selected="selected">'
108 . _("my email account") . '</option>';
109 }
110 ?>
111 <option value="squirrelmail-users@lists.sourceforge.net"><?php
112 echo _("the general program"); ?></option>
113 <option value="squirrelmail-plugins@lists.sourceforge.net"><?php
114 echo _("a specific plugin"); ?></option>
115 </select>
116 </td>
117 </tr>
118 <tr>
119 <td align="center">
120 <input type="hidden" name="send_to_cc" value="" />
121 <input type="hidden" name="send_to_bcc" value="" />
122 <input type="hidden" name="subject" value="Bug Report" />
123 <input type="hidden" name="body" value="<?php echo $message_body; ?>" />
124 <input type="submit" value="<?php echo _("Start Bug Report Form"); ?>" />
125 </td>
126 </tr>
127 </table>
128 </form>
129 <br />