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