86 lines
3.0 KiB
Smarty
86 lines
3.0 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
{literal}
|
|
<script>
|
|
|
|
function enable_plan(item_id, enable) {
|
|
var asyncform = document.getElementById('asyncform');
|
|
document.getElementById('asyncform_task').value = "enable";
|
|
document.getElementById('asyncform_item_id').value = item_id;
|
|
document.getElementById('asyncform_enable').value = enable;
|
|
|
|
asyncform.submit();
|
|
}
|
|
|
|
function delete_plan(item_id) {
|
|
var asyncform = document.getElementById('asyncform');
|
|
document.getElementById('asyncform_task').value = "delete";
|
|
document.getElementById('asyncform_item_id').value = item_id;
|
|
|
|
asyncform.submit();
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
.pipe {
|
|
color: #CCC;
|
|
}
|
|
|
|
</style>
|
|
{/literal}
|
|
|
|
<h2>{lang_print id=100014120}</h2>
|
|
{lang_print id=100014121}
|
|
|
|
<br><br>
|
|
|
|
{if $is_error != 0}
|
|
<div class='error'><img src='../images/error.gif' border='0' class='icon'> {lang_print id=$is_error}</div>
|
|
{/if}
|
|
|
|
{if $result == 2}
|
|
<div class='success'><img src='../images/success.gif' class='icon' border='0'> {$admin_subscriber_plans16}</div>
|
|
{/if}
|
|
|
|
<form action='admin_subscriber_editplan.php' method='GET'>
|
|
<input type='submit' class='button' value='{lang_print id=100014122}'>
|
|
</form>
|
|
|
|
<br>
|
|
|
|
<table cellpadding='0' cellspacing='0' class='list'>
|
|
<tr>
|
|
<td class='header' width='10'><a class='header' href='admin_subscriber_plans.php?s={$i}'>{lang_print id=100014123}</a></td>
|
|
<td class='header'><a class='header' href='admin_subscriber_plans.php?s={$n}'>{lang_print id=100014124}</a></td>
|
|
<td class='header' align='center'><a class='header' href='admin_subscriber_plans.php?s={$u}'>{lang_print id=100014125}</td>
|
|
<td class='header' align='center'>{lang_print id=100014127}</td>
|
|
<td class='header' nobr="nobr">{lang_print id=100014126}</td>
|
|
</tr>
|
|
{foreach from=$plans item=plan}
|
|
<tr class='{cycle values="background2,background1"}'>
|
|
<td class='item'>{$plan.plan_id}</td>
|
|
<td class='item'>{$plan.plan_name}</td>
|
|
<td class='item' align='center'><a href='admin_subscriber_viewusers.php?f_plan={$plan.plan_id}'>{$plan.users} user{if $plan.users!=1}s{/if}
|
|
</a></td>
|
|
<td class='item' align='center'>{if $plan.plan_enabled}{lang_print id=100014128}{else}{lang_print id=100014129}{/if}</td>
|
|
<td class='item' nobr="nobr">
|
|
<a href='admin_subscriber_editplan.php?plan_id={$plan.plan_id}'>{lang_print id=100014130}</a><span class="pipe"> | </span>
|
|
{if $plan.plan_enabled}
|
|
<a href='javascript:enable_plan({$plan.plan_id}, 0)'>{lang_print id=100014131}</a><span class="pipe"> | </span>
|
|
{else}
|
|
<a href='javascript:enable_plan({$plan.plan_id}, 1)'>{lang_print id=100014132}</a><span class="pipe"> | </span>
|
|
{/if}
|
|
<a href='javascript:delete_plan({$plan.plan_id})'>{lang_print id=100014133}</a>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
|
|
<form method=POST id="asyncform" action="admin_subscriber_plans.php">
|
|
<input type="hidden" id="asyncform_task" name="task">
|
|
<input type="hidden" id="asyncform_item_id" name="plan_id">
|
|
<input type="hidden" id="asyncform_enable" name="enable">
|
|
</form>
|
|
|
|
{include file='admin_footer.tpl'} |