cleaned up interface
[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><tr><td bgcolor="<?php echo $color[0] ?>">
30 <center><b><?php echo _("Options") . " - " . _("Personal Information"); ?></b></center>
31 </td></tr></table>
32
33 <form name=f action="options.php" method=post>
34 <table width=100% cellpadding=0 cellspacing=2 border=0>
35 <tr>
36 <td align=right nowrap><?php echo _("Full Name"); ?>:
37 </td><td>
38 <input size=50 type=text value="<?php echo $fullname ?>" name=full_name>
39 </td>
40 </tr>
41 <tr>
42 <td align=right nowrap><?php echo _("E-Mail Address"); ?>:
43 </td><td>
44 <input size=50 type=text value="<?php echo $email_address ?>" name=email_address>
45 </td>
46 </tr>
47 <tr>
48 <td align=right nowrap><?php echo _("Reply To"); ?>:
49 </td><td>
50 <input size=50 type=text value="<?php echo $replyto ?>" name=reply_to>
51 </td>
52 </tr>
53 <tr>
54 <td align=right nowrap>&nbsp;
55 </td><td>
56 <a href="options_identities.php"><?php echo _("Edit multiple identities"); ?></a>
57 </td>
58 </tr>
59 <tr><td colspan=2><hr size=1 width=80%></td></tr>
60 <tr>
61 <td align=right nowrap valign=top><br><?php echo _("Signature"); ?>:
62 </td><td>
63 <?php
64 if ($use_signature == true)
65 echo '<input type=checkbox value="1" name=usesignature checked>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
66 else
67 echo '<input type=checkbox value="1" name=usesignature>&nbsp;&nbsp;' . _("Use a signature?") . '&nbsp;&nbsp;';
68 if ( ! isset($prefix_sig) || $prefix_sig == true )
69 echo '<input type="checkbox" value="1" name="prefixsig" checked>&nbsp;&nbsp;'
70 . _( "Prefix signature with '--' ?" ) . '<BR>';
71 else
72 echo '<input type="checkbox" value="1" name="prefixsig">&nbsp;&nbsp;' .
73 _( "Prefix signature with '--' ?" ) . '<BR>';
74 echo "\n<textarea name=\"signature_edit\" rows=\"5\" cols=\"50\">$signature_abs</textarea><br>";
75 ?>
76 </td>
77 </tr>
78 <?php do_hook("options_personal_inside"); ?>
79 <tr>
80 <td>&nbsp;
81 </td><td>
82 <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_personal">
83 </td>
84 </tr>
85 </table>
86 </form>
87 <?php do_hook('options_personal_bottom'); ?>
88 </body></html>