remove old readme
[atutor.git] / docs / themes / simplified-desktop / social / basic_profile.tmpl.php
1 <div class="social-wrapper">
2 <?php
3 include('lib/profile_menu.inc.php');
4 ?>
5 <br />
6 <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form">
7 <?php global $languageManager, $_config; ?>
8 <div class="input-form">
9         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('required_information'); ?></legend>
10         <div class="row">
11                 <h3><?php echo _AT('required_information'); ?></h3>
12         </div>
13
14         <div class="row">
15                 <label for="login"><?php echo _AT('login_name'); ?></label><br />
16                                 <span id="login"><?php echo stripslashes(htmlspecialchars($_POST['login'])); ?></span>
17                                 <input name="member_id" type="hidden" value="<?php echo intval($_POST['member_id']); ?>" />
18                                 <input name="login" type="hidden" value="<?php echo stripslashes(htmlspecialchars($_POST['login'])); ?>" />
19         </div>
20         <div class="row">
21                 <?php echo _AT('email_address'); ?><br />
22                 <?php echo stripslashes(htmlspecialchars($_POST['email'])); ?>
23                 <input type="checkbox" id="priv" name="private_email" value="1" <?php if ($_POST['private_email']) { echo 'checked="checked"'; } ?> /><label for="priv"><?php echo _AT('keep_email_private');?></label>
24         </div>
25         <div class="row">
26                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="first_name"><?php echo _AT('first_name'); ?></label><br />
27                 <input id="first_name" name="first_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['first_name'])); ?>" />
28         </div>
29
30         <div class="row">
31                 <label for="second_name"><?php echo _AT('second_name'); ?></label><br />
32                 <input id="second_name" name="second_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['second_name'])); ?>" />
33         </div>
34
35         <div class="row">
36                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><label for="last_name"><?php echo _AT('last_name'); ?></label><br />
37                 <input id="last_name" name="last_name" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['last_name'])); ?>" />
38         </div>
39         
40         <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE)): 
41                         if ($_POST['status'] == AT_STATUS_INSTRUCTOR) {
42                                 $inst = ' checked="checked"';
43                         } else if ($_POST['status'] == AT_STATUS_STUDENT) {
44                                 $stud = ' checked="checked"';
45                         }  else if ($_POST['status'] == AT_STATUS_DISABLED) {
46                                 $disa = ' checked="checked"';
47                         } else {
48                                 $uncon = ' checked="checked"';
49                         }?>
50                         <input type="hidden" name="id" value="<?php echo $_POST['member_id']; ?>" >
51                         <div class="row">
52                                 <span class="required" title="<?php echo _AT('required_field'); ?>">*</span><?php echo _AT('account_status'); ?><br />
53
54                                 <input type="radio" name="status" value="0" id="disa" <?php echo $disa; ?> /><label for="disa"><?php echo _AT('disabled'); ?></label>
55                                 <?php if (defined('AT_EMAIL_CONFIRMATION') && AT_EMAIL_CONFIRMATION): ?>
56                                         <input type="radio" name="status" value="1" id="uncon" <?php echo $uncon; ?> /><label for="uncon"><?php echo _AT('unconfirmed'); ?></label>
57                                 <?php endif; ?>
58
59                                 <input type="radio" name="status" value="2" id="stud" <?php echo $stud; ?> /><label for="stud"><?php echo _AT('student'); ?></label>
60
61                                 <input type="radio" name="status" value="3" id="inst" <?php echo $inst; ?> /><label for="inst"><?php echo _AT('instructor'); ?></label>
62
63                                 <input type="hidden" name="old_status" value="<?php echo $_POST['old_status']; ?>" />
64                         </div>
65         <?php endif; ?>
66         </fieldset>
67         <fieldset class="group_form"><legend class="group_form"><?php echo _AT('personal_information'); ?></legend>
68         <div class="row">
69                 <h3><?php echo _AT('personal_information').' ('._AT('optional').')'; ?></h3>
70         </div>
71
72         <?php if (admin_authenticate(AT_ADMIN_PRIV_USERS, TRUE) && defined('AT_MASTER_LIST') && AT_MASTER_LIST): ?>
73                 <div class="row">
74                         <label for="student_id"><?php echo _AT('student_id'); ?></label><br />
75                                 <input type="text" name="student_id" value="<?php echo $_POST['student_id']; ?>" size="20" /><br />
76                 </div>
77                 <div class="row">
78                         <label for="student_pin"><?php echo _AT('student_pin'); ?></label><br />
79                         <input id="student_pin" name="student_pin" type="password" size="15" maxlength="15" value="<?php echo stripslashes(htmlspecialchars($_POST['student_pin'])); ?>" /><br />
80                 </div>
81         <?php endif; ?>
82
83         <div class="row">
84                 <?php echo _AT('date_of_birth'); ?><br />
85                 <label for="year"><?php echo _AT('year'); ?>: </label><input id="year" class="formfield" name="year" type="text" size="4" maxlength="4" value="<?php echo $_POST['year']; ?>" />  <label for="month"><?php echo _AT('month'); ?>: </label><input id="month" class="formfield" name="month" type="text" size="2" maxlength="2" value="<?php echo $_POST['month']; ?>" /> <label for="day"><?php echo _AT('day'); ?>: </label><input id="day" class="formfield" name="day" type="text" size="2" maxlength="2" value="<?php echo $_POST['day']; ?>" />
86         </div>
87
88         <div class="row">
89                 <?php echo _AT('gender'); ?><br />
90                 <input type="radio" name="gender" id="m" value="m" <?php if ($_POST['gender'] == 'm') { echo 'checked="checked"'; } ?> /><label for="m"><?php echo _AT('male'); ?></label> <input type="radio" value="f" name="gender" id="f" <?php if ($_POST['gender'] == 'f') { echo 'checked="checked"'; } ?> /><label for="f"><?php echo _AT('female'); ?></label>  <input type="radio" value="n" name="gender" id="ns" <?php if (($_POST['gender'] == 'n') || ($_POST['gender'] == '')) { echo 'checked="checked"'; } ?> /><label for="ns"><?php echo _AT('not_specified'); ?></label>
91         </div>
92
93         <div class="row">
94                 <label for="address"><?php echo _AT('street_address'); ?></label><br />
95                 <input id="address" name="address" size="30" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['address'])); ?>" />
96         </div>
97
98         <div class="row">
99                 <label for="postal"><?php echo _AT('postal_code'); ?></label><br />
100                 <input id="postal" name="postal" size="7" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['postal'])); ?>" />
101         </div>
102
103         <div class="row">
104                 <label for="city"><?php echo _AT('city'); ?></label><br />
105                 <input id="city" name="city" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['city'])); ?>" />
106         </div>
107
108         <div class="row">
109                 <label for="province"><?php echo _AT('province'); ?></label><br />
110                 <input id="province" name="province" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['province'])); ?>" />
111         </div>
112
113         <div class="row">
114                 <label for="country"><?php echo _AT('country'); ?></label><br />
115                 <input id="country" name="country" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['country'])); ?>" />
116         </div>
117
118         <div class="row">
119                 <label for="phone"><?php echo _AT('phone'); ?></label><br />
120                 <input size="11" name="phone" type="text" value="<?php echo stripslashes(htmlspecialchars($_POST['phone'])); ?>" id="phone" />
121         </div>
122
123         <div class="row">
124                 <label for="website"><?php echo _AT('web_site'); ?></label><br />
125                 <input id="website" name="website" size="30" type="text" value="<?php if ($_POST['website'] == '') { echo 'http://'; } else { echo stripslashes(htmlspecialchars($_POST['website'])); } ?>" />
126         </div>
127         </fieldset>
128         <div class="row buttons">
129                 <input type="submit" name="submit" value=" <?php echo _AT('save'); ?> " accesskey="s" />
130                 <input type="submit" name="cancel" value=" <?php echo _AT('cancel'); ?> " />
131         </div>
132 </div>
133 </form>
134 <div style="clear:both;"></div>
135 </div>