62b62e4e80b29bd18cabfa87bb59313a99e12a3c
[squirrelmail.git] / src / options_personal.php
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 **
10 ** $Id$
11 **/
12
13 include('../src/validate.php');
14 include('../functions/display_messages.php');
15 include('../functions/imap.php');
16 include('../functions/array.php');
17 include('../functions/plugin.php');
18
19 displayPageHeader($color, 'None');
20
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');
24
25 ?>
26 <br>
27 <table width=95% align=center border=0 cellpadding=2 cellspacing=0>
28 <tr><td align="center" bgcolor="<?php echo $color[0] ?>">
29
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>
37 <tr>
38 <td align=right nowrap><?php echo _("Full Name"); ?>:
39 </td><td>
40 <input size=50 type=text value="<?php echo $fullname ?>" name=full_name>
41 </td>
42 </tr>
43 <tr>
44 <td align=right nowrap><?php echo _("E-Mail Address"); ?>:
45 </td><td>
46 <input size=50 type=text value="<?php echo $email_address ?>" name=email_address>
47 </td>
48 </tr>
49 <tr>
50 <td align=right nowrap><?php echo _("Reply To"); ?>:
51 </td><td>
52 <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to>
53 </td>
54 </tr>
55 <tr>
56 <td align=right nowrap><?PHP echo _("Multiple Identities"); ?>:
57 </td><td>
58 <a href="options_identities.php">Edit Advanced Identities</a>
59 (discards changes made on this form so far)
60 </td>
61 </tr>
62 <tr><td colspan=2><hr size=1 width=80%></td></tr>
63 <tr>
64 <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>:
65 </td><td>
66 <?php
67 if ($use_signature == true)
68 echo '<input type=checkbox value="1" name=usesignature checked>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
69 else
70 echo '<input type=checkbox value="1" name=usesignature>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
71 if ( ! isset($prefix_sig) || $prefix_sig == true )
72 echo '<input type="checkbox" value="1" name="prefixsig" checked>&nbsp;&nbsp;'
73 . _( "Prefix signature with '--' ?" ) . '<BR>';
74 else
75 echo '<input type="checkbox" value="1" name="prefixsig">&nbsp;&nbsp;' .
76 _( "Prefix signature with '--' ?" ) . '<BR>';
77 echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>";
78 ?>
79 </td>
80 </tr>
81 <?php do_hook("options_personal_inside"); ?>
82 <tr>
83 <td>&nbsp;
84 </td><td>
85 <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal">
86 </td>
87 </tr>
88 </table>
89 </form>
90
91 <?php do_hook('options_personal_bottom'); ?>
92
93 </td></tr>
94 </table>
95
96 </td></tr>
97 </table>
98 </body></html>