Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php
2
echo showSectionHead($spTextSubscription['Renew Subscription']);
3
 
4
// if payment form is to displayed
5
if (!empty($paymentForm)) {
6
	echo $paymentForm;
7
} else {
8
 
9
	if(!empty($msg)){ showSuccessMsg($msg, false);}
10
	?>
11
	<form id="updateUser">
12
	<input type="hidden" name="sec" value="update-subscription"/>
13
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
14
		<tr class="listHead">
15
			<td class="left" width='30%'><?php echo $spTextSubscription['Renew Subscription']; ?></td>
16
			<td class="right">&nbsp;</td>
17
		</tr>
18
		<tr class="white_row">
19
			<td class="td_left_col"><?php echo $spTextSubscription['Subscription']?>:*</td>
20
			<td class="td_right_col">
21
				<select name="utype_id">
22
					<?php
23
					foreach ($userTypeList as $uTypeInfo) {
24
						$typeLabel = ucfirst($uTypeInfo['user_type']) . " - ";
25
 
26
						// if user type have price
27
						if ($uTypeInfo['price'] > 0) {
28
							$typeLabel .= $currencyList[SP_PAYMENT_CURRENCY]['symbol'] . $uTypeInfo['price'] . "/" . $spText['label']['Monthly'];
29
						} else {
30
							$typeLabel .= $spText['label']['Free'];
31
						}
32
 
33
						$selected = ($uTypeInfo['id'] == $userTypeInfo['id']) ? "selected" : "";
34
	 					?>
35
						<option value="<?php echo $uTypeInfo['id']?>" <?php echo $selected; ?>><?php echo $typeLabel?></option>
36
						<?php
37
					}
38
					?>
39
				</select>
40
				<?php echo $errMsg['utype_id']?>
41
				<a class="bold_link" target="_blank" href="<?php echo SP_WEBPATH . "/register.php?sec=pricing"; ?>"><?php echo $spTextSubscription['Plans and Pricing']?> &gt;&gt;</a>
42
			</td>
43
		</tr>
44
		<tr class="blue_row">
45
			<td class="td_left_col"><?php echo $spTextSubscription['Term']?>:*</td>
46
			<td class="td_right_col">
47
				<select name="quantity">
48
					<?php
49
					for ($i = 1; $i <= 24; $i++) {
50
						?>
51
						<option value="<?php echo $i;?>"><?php echo $i;?></option>
52
						<?php
53
					}
54
					?>
55
				</select>
56
			</td>
57
		</tr>
58
		<tr class="white_row">
59
			<td class="td_left_col"><?php echo $spTextSubscription['Payment Method']?>:*</td>
60
			<td class="td_right_col">
61
				<select name="pg_id">
62
					<?php
63
					// loop through the payment types
64
					foreach ($pgList as $pgInfo) {
65
						$checked = ($defaultPgId == $pgInfo['id']) ? "selected" : ""
66
						?>
67
						<option value="<?php echo $pgInfo['id']?>" <?php echo $checked; ?> ><?php echo $pgInfo['name']; ?></option>
68
						<?php
69
					}
70
					?>
71
				</select>
72
				<?php echo $errMsg['pg_id']?>
73
			</td>
74
		</tr>
75
		<tr class="white_row">
76
			<th class="td_left_col"><?php echo $spTextUser['Expiry Date']?>:</th>
77
			<td class="td_right_col"><?php echo date("d M Y", strtotime($userInfo['expiry_date'])); ?></td>
78
		</tr>
79
		<tr class="blue_row">
80
			<td class="tab_left_bot_noborder"></td>
81
			<td class="tab_right_bot"></td>
82
		</tr>
83
		<tr class="listBot">
84
			<td class="left" colspan="1"></td>
85
			<td class="right"></td>
86
		</tr>
87
	</table>
88
	<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
89
		<tr>
90
	    	<td style="padding-top: 6px;text-align:right;">
91
	    		<a onclick="scriptDoLoad('users.php?sec=my-profile', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut">
92
	         		<?php echo $spText['button']['Cancel']?>
93
	         	</a>&nbsp;
94
	         	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : "confirmSubmit('users.php', 'updateUser', 'content')"; ?>
95
	         	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
96
	         		<?php echo $spText['button']['Proceed']?>
97
	         	</a>
98
	    	</td>
99
		</tr>
100
	</table>
101
	</form>
102
<?php
103
}
104
?>