Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextUser['Edit User']); ?>
2
<form id="updateUser">
3
<input type="hidden" name="sec" value="update"/>
4
<input type="hidden" name="oldName" value="<?php echo $post['oldName']?>"/>
5
<input type="hidden" name="id" value="<?php echo $post['id']?>"/>
6
<input type="hidden" name="oldEmail" value="<?php echo $post['oldEmail']?>"/>
7
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
8
	<tr class="listHead">
9
		<td class="left" width='30%'><?php echo $spTextUser['Edit User']?></td>
10
		<td class="right">&nbsp;</td>
11
	</tr>
12
	<tr class="white_row">
13
		<td class="td_left_col"><?php echo $spText['login']['Username']?>:</td>
14
		<td class="td_right_col"><input type="text" name="userName" value="<?php echo $post['userName']?>"><?php echo $errMsg['userName']?></td>
15
	</tr>
16
	<tr class="blue_row">
17
		<td class="td_left_col"><?php echo $spText['login']['Password']?>:</td>
18
		<td class="td_right_col"><input type="password" name="password" value=""><?php echo $errMsg['password']?></td>
19
	</tr>
20
	<tr class="white_row">
21
		<td class="td_left_col"><?php echo $spText['login']['Confirm Password']?>:</td>
22
		<td class="td_right_col"><input type="password" name="confirmPassword" value=""><?php echo $errMsg['confirmPassword']?></td>
23
	</tr>
24
	<tr class="blue_row">
25
		<td class="td_left_col"><?php echo $spText['login']['First Name']?>:</td>
26
		<td class="td_right_col"><input type="text" name="firstName" value="<?php echo $post['firstName']?>"><?php echo $errMsg['firstName']?></td>
27
	</tr>
28
	<tr class="white_row">
29
		<td class="td_left_col"><?php echo $spText['login']['Last Name']?>:</td>
30
		<td class="td_right_col"><input type="text" name="lastName" value="<?php echo $post['lastName']?>"><?php echo $errMsg['lastName']?></td>
31
	</tr>
32
	<tr class="blue_row">
33
		<td class="td_left_col"><?php echo $spText['login']['Email']?>:</td>
34
		<td class="td_right_col"><input type="text" name="email" value="<?php echo $post['email']?>"><?php echo $errMsg['email']?></td>
35
	</tr>
36
	<tr class="white_row">
37
		<td class="td_left_col"><?php echo $spText['login']['User Type']?>:</td>
38
		<td class="td_right_col">
39
			<select name="userType">
40
				<?php foreach ($userTypeList as $key => $val) {?>
41
					<?php if ($post['userType'] == $val['id']) {?>
42
						<option value="<?php echo $val['id']?>" selected><?php echo $val['user_type']?></option>
43
					<?php } else {?>
44
						<option value="<?php echo $val['id']?>"><?php echo $val['user_type']?></option>
45
					<?php }?>
46
				<?php }?>
47
			</select>
48
		</td>
49
	</tr>
50
	<tr class="blue_row">
51
		<td class="td_left_col"><?php echo $spTextUser['Expiry Date']?>:</td>
52
		<td class="td_right_col">
53
			<input type="text" name="expiry_date" value="<?php echo $post['expiry_date']?>" class="date_fld">
54
			<script type="text/javascript">
55
			$(function() {
56
				$( "input[name='expiry_date']").datepicker({dateFormat: "yy-mm-dd"});
57
			});
58
		  	</script>
59
    		<p><?php echo $errMsg['expiry_date']?></p>
60
		</td>
61
	</tr>
62
	<tr class="white_row">
63
		<td class="tab_left_bot_noborder"></td>
64
		<td class="tab_right_bot"></td>
65
	</tr>
66
	<tr class="listBot">
67
		<td class="left" colspan="1"></td>
68
		<td class="right"></td>
69
	</tr>
70
</table>
71
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
72
	<tr>
73
    	<td style="padding-top: 6px;text-align:right;">
74
    		<a onclick="scriptDoLoad('users.php', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut">
75
         		<?php echo $spText['button']['Cancel']?>
76
         	</a>&nbsp;
77
         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('users.php', 'updateUser', 'content')"; ?>
78
         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
79
         		<?php echo $spText['button']['Proceed']?>
80
         	</a>
81
    	</td>
82
	</tr>
83
</table>
84
</form>