This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/service/user_view.tpl
2011-05-03 09:49:01 +10:00

304 lines
14 KiB
Smarty

{if $smarty.const.SESS_LOGGED == false}
{$block->display('account:user_login')}
{else}
{assign var=meth value=':'|explode:$VAR._page}
<!-- {$meth.0}:{$meth.1} -->
{if $SESS_LOGGED == '1'}
{$method->exe($meth.0,$meth.1)}
{if ($method->result == false)}
{$block->display('core:method_error')}
{else}
{include file='file:../core/user_view_pre.tpl'}
<form id="user_view" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{osb f=tt}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=date_orig}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=date_last}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=invoice_id}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->date($record.date_orig)}</td>
<td style="width: 33%;">{$list->date($record.date_last)}</td>
<td style="width: 33%;"><a href="?_page=invoice:user_view&amp;id={$record.invoice_id}">{$record.invoice_id}</a></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=active}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=sku}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=type}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->bool('',$record.print_status)}</td>
<td style="width: 33%;">{if $record.product_id}<a href="?_page=product:details&amp;id={$record.product_id}">{$record.sku}</a>{else}{$record.sku}{/if}</td>
<td style="width: 33%;">{t}{$record.type}{/t}</td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=price}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=price_type}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=taxable}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$list->format_currency_num($record.price,'')}</td>
<td style="width: 33%;">{$list->menu_staticlist('pricetype','','',$record.price_type,'','')}</td>
<td style="width: 33%;">{$list->bool('',$record.taxable)}</td>
</tr>
{if $record.account_billing_id > 0}
<tr valign="top">
<td style="width: 33%;"><b>{osb f=tf field=account_billing_id}</b></td>
<td style="width: 33%;"><a href="{$SSL_URL}?_page=account_billing:user_view&amp;id={$record.account_billing_id}">{t}View{/t}</a></td>
<td style="width: 33%;">&nbsp;</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{if $record.active == 1}
{if $record.recur_modify == 1 && $record.suspend_billing != 1}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Modify Service{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td>{t}This service can be modified by selecting another product from our offering. This will allow you to effectively upgrade or downgrade your current service.{/t}</td>
</tr>
<tr valign="top" class="row1">
<td>{t}Click here :{/t} <b><a href="?_page=service:user_modify&service_id={$record.id}">{t}Select another product{/t}</a></b>.</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{if $record.date_next_invoice > 0 && $record.suspend_billing == 1 }
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}title_suspended_billing{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td>{t}suspended_billing_explain{/t} {$list->date($record.date_next_invoice)}&nbsp;<a href="?_page=service:user_view&amp;id={$record.id}&amp;do[]=service:user_reactivate"><strong>{t}reactivate{/t}</strong></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{elseif $record.date_next_invoice > 0 && $record.suspend_billing != 1 }
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Recurring Details{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 50%;"><b>{osb f=tf field=date_last_invoice}</b></td>
<td style="width: 50%;"><b>{osb f=tf field=date_next_invoice}</b></td>
</tr>
<tr valign="top">
<td style="width: 50%;">{$list->date($record.date_last_invoice)}</td>
<td style="width: 50%;">{$list->date($record.date_next_invoice)}</td>
</tr>
<tr valign="top" class="row1">
<td style="width: 50%;"><b>{osb f=tf field=recur_schedule}</b></td>
<td style="width: 50%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 50%;">
{if $recur_price}
<select name="service_recur_schedule" {if $record.recur_schedule_change == "1"}onchange="if (confirm('{t}Are you sure you wish to change the billing schedule of this service? If so, your subscription price will be modified accordingly and you will be billed at the new rate on your next invoice date.{/t}')) {literal}{document.location='?_page=service:user_view&id={/literal}{$record.id}{literal}&do[]=service:user_changeschedule&service_recur_schedule='+this.value;}{/literal}{else} disabled="disabled"{/if}">
{foreach from=$recur_price item=price_recurr key=key}
<option value="{$key}" {if $record.recur_schedule == $key} selected="selected"{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;&nbsp;&nbsp;{$list->menu_staticlist('recur_schedule','','',$key,'','')}
</option>
{/foreach}
</select>
{else}
{$list->menu_staticlist('recur_schedule','','',$record.recur_schedule,'','')}
{/if}
</td>
<td style="width: 50%;">
{if $record.recur_cancel == 1}
<input type="button" name="cancelservice" value="{t}Cancel{/t}" class="form_button" onclick="if (confirm('{t}Are you sure you wish to cancel this service?{/t}')) {literal}{document.location='?_page=service:user_view&id={/literal}{$record.id}{literal}&do[]=service:user_cancelservice';}{/literal}"/>
{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{if $record.type == 'group' || $record.type == 'host_group'}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{translate module=service}title_group{/translate}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
<tr>
<td width="98%" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td>
<p>
<input type="radio" name="service_group_type" value="0" {if $record.group_type == "0"}checked="checked"{/if}/>
{translate module=product}assoc_group_limited{/translate}
<input type="text" name="service_group_days" value="{$record.group_days}" size="3"/>
<br/>
<input type="radio" name="service_group_type" value="1" {if $record.group_type == "1"}checked="checked"{/if}/>
{translate module=product}assoc_group_subscription{/translate}
<br/>
<input type="radio" name="service_group_type" value="2" {if $record.group_type == "2"}checked="checked"{/if}/>
{translate module=product}assoc_group_forever{/translate}
</p>
</td>
</tr>
</table>
</td>
<td width="2%" align="left" valign="top">{$list->menu_multi($record.group_grant,'service_group_grant','group','name','10','','form_menu')}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{if $record.type == 'domain'}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Internet Domain Name{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=domain_name}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=domain_term}</b></td>
<td style="width: 33%;"><b>{osb f=tf field=domain_date_expire}</b></td>
</tr>
<tr valign="top">
<td style="width: 33%;">{$record.domain_name|upper}.{$record.domain_tld|upper}<b>&nbsp;<a href="?_page=core:search&amp;module=service&amp;service_domain_name={$record.domain_name}&amp;service_domain_tld={$record.domain_tld}"><img src="themes/{$THEME_NAME}/images/icons/zoomi_16.gif" alt="Resend Invoice" width="16" height="16" style="border: 0px;"/></a></b></td>
<td style="width: 33%;">{$record.domain_term} Year(s) <a href="?_page=service:user_view&amp;id={$record.id}&amp;do[]=service:user_renew_domain">{t}Renew{/t}</a></td>
<td style="width: 33%;">{$list->date($record.date_last)}</td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"><b>{osb f=tf field=domain_type}</b></td>
<td style="width: 33%;">&nbsp;</td>
<td style="width: 33%;">&nbsp;</td>
</tr>
<tr valign="top">
<td style="width: 33%;">{t}{$record.domain_type}{/t}</td>
<td style="width: 33%;">&nbsp;</td>
<td style="width: 33%;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{if $record.type == 'host' || $record.type == 'host_group'}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr valign="top">
<td class="table_heading">{t}Hosting Details{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
{if $record.domain_name != ''}
<td style="width: 35%;">{osb f=tf field=domain_name}</td>
<td style="width: 65%;"><a href="http://www.{$record.domain_name}.{$record.domain_tld}" onclick="target='_blank';"><b>{$record.domain_name|upper}.{$record.domain_tld|upper}</b></a></td>
{/if}
</tr>
{if $record.host_ip != ''}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=host_ip}</td>
<td style="width: 65%;">{$record.host_ip}</td>
</tr>
{/if}
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=host_username}</td>
<td style="width: 65%;">{$record.host_username}</td>
</tr>
<tr valign="top">
<td style="width: 35%;">{osb f=tf field=host_password}</td>
<td style="width: 65%;">{$record.host_password}</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
{/if}
</form>
{/if}
{/if}
{/if}