2 ################################################################################
4 # File: $RCSfile: editprofile.cgi,v $
5 # Revision: $Revision: 1.1 $
6 # Description: Edit the user's profile
7 # Author: Andrew@DeFaria.com
8 # Created: Mon Jan 16 20:25:32 PST 2006
9 # Modified: $Date: 2013/06/12 14:05:47 $
12 # (c) Copyright 2000-2006, Andrew@DeFaria.com, all rights reserved.
14 ################################################################################
19 local $0 = $FindBin::Script;
21 use lib "$FindBin::Bin/../lib";
26 use CGI qw(:standard *table);
29 my $table_name = 'profile';
32 FindUser(userid => $userid);
36 my %options = GetUserOptions($userid);
40 -action => 'updateprofile.cgi',
41 -onSubmit => 'return validate (this);'
52 td {-class => 'label',
53 -width => 134}, 'Username:',
54 td {-width => 290}, $userid,
55 td {-class => 'notetext'}, 'Specify a username to log into MAPS'
58 td {-class => 'label'}, 'Full name:',
60 textfield {-class => 'inputfield',
63 -value => $rec->{name}}),
64 td {-class => 'notetext'},'Specify your full name'
67 td {-class => 'label'}, 'Email:',
69 textfield {-class => 'inputfield',
72 -value => $rec->{email}}),
73 td {-class => 'notetext'},'Your email address is used if you are a ' .
74 i ("Tag & Forward") .
75 ' user. This is the email address that MAPS will forward your email to after it tags it. This email address is also used in case you forget your password so that we can email you your password.'
78 td {-class => 'label'}, 'Old Password:',
80 password_field {-class => 'inputfield',
82 -name => 'old_password'}),
83 td {-class => 'notetext'}, 'Enter your old password'
86 td {-class => 'label'}, 'New Password:',
88 password_field {-class => 'inputfield',
90 -name => 'new_password',
92 td {-class => 'notetext'}, 'Choose a new password greater than 6 characters.'
95 td {-class => 'label'},'Repeat Password:',
97 password_field {-class => 'inputfield',
99 -name => 'repeated_password',
101 td {-class => 'notetext'}, 'Re-enter your password so we can be sure you typed it correctly.'
104 td {-class => 'label'}, 'MAPSPOP user:',
106 font ({-class => 'label'},
107 radio_group {-name => 'MAPSPOP',
108 -values => ['yes', 'no'],
110 -labels => {'yes' => 'Yes',
112 td {-class => 'notetext'}, 'MAPSPOP users need to download ' .
113 a ({-href => '/maps/bin/MAPSPOP.exe'}, 'MAPSPOP') .
115 a ({-href => '/maps/doc/UsingMAPSPOP.html'}, 'Using MAPSPOP') .
116 ' for more information.'
119 td {-class => 'label'}, 'Keep history for:',
121 font ({-class => 'label'},
122 popup_menu {-class => 'inputfield',
124 -values => ['7', '14', '30', '60', '90'],
125 -default => $options{'History'}}),
126 font ({-class => 'label'}, ' days')),
127 td {-class => 'notetext'}, 'This specifies how many days of history that MAPS will keep before discarding returned messages.'
130 td {-class => 'label'}, 'Dates in Stats Page:',
132 font ({-class => 'label'},
133 popup_menu {-class => 'inputfield',
135 -values => ['7', '14', '21', '30'],
136 -default => $options{'Dates'}})),
137 td {-class => 'notetext'}, 'This specifies how many days are displayed in the MAPS Stats Page.'
140 td {-class => 'label'}, 'Entries per page:',
142 font ({-class => 'label'},
143 popup_menu {-class => 'inputfield',
145 -values => ['10', '20', '30', '40', '50'],
146 -default => $options{'Page'}})),
147 td {-class => 'notetext'}, 'This specifies how many entries are displayed per page in the online MAPS Reports.'
150 td {-class => 'label'}, i ('Tag & Forward:'),
152 font ({-class => 'label'},
153 radio_group {-name => 'tag_and_forward',
154 -values => ['yes', 'no'],
156 -labels => {'yes' => 'Yes',
158 td {-class => 'notetext'},
159 i ('Tag and Forward') . ' means that MAPS will not filter or save any email for you. Instead it will simply add an X-MAPS header to your email indicating what MAPS would have done with the email. This allows you to filter your email in your local email client.'
162 print br (div {-align => 'center'},
163 submit (-name => 'submit',
164 -value => 'Update Profile'));
171 my @scripts = ('MAPSUtils.js', 'CheckEditProfile.js');
177 'Spam Elimination System',
183 $userid //= $ENV{USER};
186 NavigationBar $userid;