161 lines
4.6 KiB
Smarty
161 lines
4.6 KiB
Smarty
{include file='header.tpl'}
|
|
|
|
<script type="text/javascript" src="./include/js/semods.js"></script>
|
|
<script type="text/javascript" src="./include/js/semods.controls.dialog.js"></script>
|
|
|
|
<link rel="stylesheet" href="./templates/styles_subscriber.css" title="stylesheet" type="text/css">
|
|
|
|
<script>
|
|
var lang_dlg_title = "{lang_print id=100014312}";
|
|
var lang_dlg_text = "{lang_print id=100014313}";
|
|
</script>
|
|
|
|
{literal}
|
|
<script>
|
|
var semods_plan_id = 0;
|
|
|
|
function plan_cancel(plan_id) {
|
|
semods_plan_id = plan_id;
|
|
new SEMods.Controls.Dialog( { title : lang_dlg_title, text : lang_dlg_text, width : "300px", height : "130px", onYes : plan_cancel_confirmed } );
|
|
}
|
|
|
|
function plan_cancel_confirmed() {
|
|
//semods_plan_id
|
|
|
|
var asyncform = document.getElementById('asyncform');
|
|
document.getElementById('asyncform_task').value = "cancelplan";
|
|
document.getElementById('asyncform_plan_id').value = semods_plan_id;
|
|
|
|
asyncform.submit();
|
|
}
|
|
|
|
function plan_renew(plan_id) {
|
|
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
|
|
|
|
td.form2 {
|
|
padding:12px 0px 5px 10px;
|
|
}
|
|
|
|
</style>
|
|
|
|
{/literal}
|
|
|
|
|
|
<table class='tabs' cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td class='tab0'> </td>
|
|
<td class='tab1' NOWRAP><a href='user_plan.php'>{lang_print id=100014293}</a></td>
|
|
<td class='tab'> </td>
|
|
<td class='tab2' NOWRAP><a href='user_plan_history.php'>{lang_print id=100014294}</a></td>
|
|
<td class='tab'> </td>
|
|
<td class='tab2' NOWRAP><a href='user_plan_upgrade.php'>{lang_print id=100014295}</a></td>
|
|
<td class='tab3'> </td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!--<img style="margin-left:5px;margin-right:10px;" src='./images/icons/subscriber48.png' border='0' class='icon_big'>-->
|
|
<div class='page_header'>{lang_print id=100014296}</div>
|
|
<div>{lang_print id=100014297}</div>
|
|
|
|
<br>
|
|
|
|
{* SHOW SUCCESS OR ERROR MESSAGE *}
|
|
{if $result != 0}
|
|
<div class='success'><img src='./images/success.gif' border='0' class='icon'> {$success_message}</div><br>
|
|
{elseif $is_error != 0}
|
|
<div class='error'><img src='./images/error.gif' border='0' class='icon'> {$error_message}</div><br>
|
|
{/if}
|
|
|
|
|
|
<br>
|
|
|
|
{if $plans|@count > 0 }
|
|
|
|
<table cellspacing='0' cellpadding='0' class='form'>
|
|
{foreach from=$plans item=userplan}
|
|
|
|
<tr>
|
|
<td class='form1'>{lang_print id=100014299} </td>
|
|
<td class='form2'> {$userplan->userplan_info.plan_name}
|
|
(<a href="user_plan_upgrade.php?from_plan={$userplan->userplan_info.userplan_id}">{lang_print id=100014306}</a>)
|
|
</td>
|
|
</tr>
|
|
|
|
{* status *}
|
|
<tr>
|
|
<td class='form1'> {lang_print id=100014300} </td>
|
|
<td class='form2'>
|
|
{lang_print id=$userplan->userplan_info.userplan_statetext}
|
|
{if ($userplan->userplan_info.userplan_expiredate != 0) AND (($userplan->userplan_info.userplan_state == 0) OR ($userplan->userplan_info.userplan_state == 1))}
|
|
(<a href="javascript:plan_cancel({$userplan->userplan_info.userplan_id})">{lang_print id=100014307}</a>)
|
|
{elseif ($userplan->userplan_info.userplan_state == 2) OR ($userplan->userplan_info.userplan_state == 3)}
|
|
(<a href="user_plan_renew.php?from_plan={$userplan->userplan_info.userplan_id}">{lang_print id=100014308}</a>)
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
|
|
{* start date *}
|
|
<tr>
|
|
<td class='form1'> {lang_print id=100014302} </td>
|
|
<td class='form2'>
|
|
{assign var=userplan_startdate value=$datetime->timezone($userplan->userplan_info.userplan_startdate, $global_timezone)}
|
|
{$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $userplan_startdate)}
|
|
</td>
|
|
</tr>
|
|
|
|
{* expire date - canceled but not expired yet *}
|
|
{if $userplan->userplan_info.userplan_state == 3}
|
|
<tr>
|
|
<td class='form1'> {lang_print id=100014309} </td>
|
|
<td class='form2'>
|
|
{assign var=userplan_expiredate value=$datetime->timezone($userplan->userplan_info.userplan_expiredate , $global_timezone)}
|
|
{$datetime->cdate("`$setting.setting_dateformat` `$setting.setting_timeformat`", $userplan_expiredate)} <br>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
{* NEXT PAYENT DATE *}
|
|
{*
|
|
{if $userplan->userplan_info.userplan_expiredate != 0}
|
|
<tr>
|
|
<td class='form1'> {lang_print id=100014303} </td>
|
|
<td class='form2'>
|
|
{lang_print id=100014303}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
*}
|
|
|
|
{* last payment - ? *}
|
|
<tr>
|
|
<td class='form1'> {lang_print id=100014310} </td>
|
|
<td class='form2'>
|
|
|
|
(<a href="user_plan_history.php">{lang_print id=100014311}</a>)
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<table cellpadding='0' cellspacing='0' align='center'><tr>
|
|
<td class='result'><!--<img src='./images/icons/bulb16.gif' border='0' class='icon'>-->{lang_print id=100014298}</td>
|
|
</tr></table>
|
|
|
|
{/if}
|
|
|
|
<form method=POST id="asyncform" action="user_plan.php">
|
|
<input type="hidden" id="asyncform_task" name="task">
|
|
<input type="hidden" id="asyncform_plan_id" name="plan_id">
|
|
</form>
|
|
|
|
{include file='footer.tpl'} |