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