c36ed9cf |
1 | <?php |
2 | /** |
3 | ** options_personal.php |
4 | ** |
5 | ** Copyright (c) 1999-2000 The SquirrelMail development team |
6 | ** Licensed under the GNU GPL. For full terms see the file COPYING. |
7 | ** |
8 | ** Displays all options relating to personal information |
9 | ** |
245a6892 |
10 | ** $Id$ |
c36ed9cf |
11 | **/ |
12 | |
f740c049 |
13 | include('../src/validate.php'); |
f740c049 |
14 | include('../functions/display_messages.php'); |
15 | include('../functions/imap.php'); |
16 | include('../functions/array.php'); |
f740c049 |
17 | include('../functions/plugin.php'); |
f740c049 |
18 | |
e1db998a |
19 | displayPageHeader($color, 'None'); |
c36ed9cf |
20 | |
e1db998a |
21 | $fullname = getPref($data_dir, $username, 'full_name'); |
22 | $replyto = getPref($data_dir, $username, 'reply_to'); |
23 | $email_address = getPref($data_dir, $username, 'email_address'); |
c36ed9cf |
24 | |
25 | ?> |
e9f8ea4e |
26 | <br> |
e7db48af |
27 | <table width=95% align=center border=0 cellpadding=2 cellspacing=0> |
28 | <tr><td align="center" bgcolor="<?php echo $color[0] ?>"> |
c36ed9cf |
29 | |
e7db48af |
30 | <b><?php echo _("Options") . " - " . _("Personal Information"); ?></b> |
31 | |
32 | <table width="100%" border="0" cellpadding="1" cellspacing="1"> |
33 | <tr><td bgcolor="<?php echo $color[4] ?>" align="center"> |
34 | |
35 | <form name=f action="options.php" method=post><br> |
36 | <table width=100% cellpadding=2 cellspacing=0 border=0> |
c36ed9cf |
37 | <tr> |
6170c5b6 |
38 | <td align=right nowrap><?php echo _("Full Name"); ?>: |
c36ed9cf |
39 | </td><td> |
6170c5b6 |
40 | <input size=50 type=text value="<?php echo $fullname ?>" name=full_name> |
c36ed9cf |
41 | </td> |
42 | </tr> |
43 | <tr> |
6170c5b6 |
44 | <td align=right nowrap><?php echo _("E-Mail Address"); ?>: |
c36ed9cf |
45 | </td><td> |
6170c5b6 |
46 | <input size=50 type=text value="<?php echo $email_address ?>" name=email_address> |
c36ed9cf |
47 | </td> |
48 | </tr> |
49 | <tr> |
6170c5b6 |
50 | <td align=right nowrap><?php echo _("Reply To"); ?>: |
c36ed9cf |
51 | </td><td> |
6170c5b6 |
52 | <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to> |
c36ed9cf |
53 | </td> |
54 | </tr> |
aaf9abef |
55 | <tr> |
e7db48af |
56 | <td align=right nowrap><?PHP echo _("Multiple Identities"); ?>: |
aaf9abef |
57 | </td><td> |
e7db48af |
58 | <a href="options_identities.php">Edit Advanced Identities</a> |
59 | (discards changes made on this form so far) |
aaf9abef |
60 | </td> |
61 | </tr> |
62 | <tr><td colspan=2><hr size=1 width=80%></td></tr> |
c36ed9cf |
63 | <tr> |
6170c5b6 |
64 | <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>: |
c36ed9cf |
65 | </td><td> |
8442ac08 |
66 | <?php |
c36ed9cf |
67 | if ($use_signature == true) |
b8163cc4 |
68 | echo '<input type=checkbox value="1" name=usesignature checked> ' . _("Use a signature?") . ' '; |
69 | else |
70 | echo '<input type=checkbox value="1" name=usesignature> ' . _("Use a signature?") . ' '; |
f740c049 |
71 | if ( ! isset($prefix_sig) || $prefix_sig == true ) |
72 | echo '<input type="checkbox" value="1" name="prefixsig" checked> ' |
73 | . _( "Prefix signature with '--' ?" ) . '<BR>'; |
b8163cc4 |
74 | else |
f740c049 |
75 | echo '<input type="checkbox" value="1" name="prefixsig"> ' . |
76 | _( "Prefix signature with '--' ?" ) . '<BR>'; |
e1db998a |
77 | echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>"; |
c36ed9cf |
78 | ?> |
79 | </td> |
80 | </tr> |
ef3c69f0 |
81 | <?php do_hook("options_personal_inside"); ?> |
c36ed9cf |
82 | <tr> |
83 | <td> |
84 | </td><td> |
32f4685b |
85 | <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal"> |
c36ed9cf |
86 | </td> |
87 | </tr> |
88 | </table> |
e7db48af |
89 | </form> |
90 | |
e1db998a |
91 | <?php do_hook('options_personal_bottom'); ?> |
e7db48af |
92 | |
93 | </td></tr> |
94 | </table> |
95 | |
96 | </td></tr> |
97 | </table> |
c36ed9cf |
98 | </body></html> |