OSB enhancements to date

This commit is contained in:
Deon George
2010-11-30 09:41:08 +11:00
parent 8715a2059b
commit ec6a542bc3
478 changed files with 23423 additions and 9309 deletions

View File

@@ -21,7 +21,12 @@
{elseif ($record.type == 'host' || $record.type == 'host_group') && trim($record.server_name)}
<i>{$record.server_name|trim:25}</i>
{else}
{t}{$record.type}{/t}
{if $record.type == 'product' && $record.prod_plugin_name == 'ADSL'}
{$list->unserial($record.prod_attr,'prod_attr')}
{$prod_attr.service_number}
{else}
{t}{$record.type}{/t}
{/if}
{/if}
</td>
<td>

View File

@@ -49,10 +49,10 @@
{else}
{if $product_show}
{$method->exe('product','details')}
{if ($method->result == false || !$product)}
{if ($method->result == false || !$record)}
{$block->display('core:method_error')}
{else}
{if $product}
{if $record}
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
@@ -62,10 +62,10 @@
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
<tr valign="top">
<td>
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
{if $list->translate('product_translate','name,description_short,description_full','product_id',$record.id,'prod_translate')}
{$prod_translate.name}
{else}
{$product.sku}
{$record.sku}
{/if}
</td>
</tr>
@@ -77,15 +77,15 @@
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
<tr valign="top" class="body">
<td>
{if $product.thumbnail != ''}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" alt="" style="border: 0px;"/>
{if $record.thumbnail != ''}
<img src="{$URL}{$smarty.const.URL_IMAGES}{$record.thumbnail}" alt="" style="border: 0px;"/>
{/if}
{$prod_translate.description_full}
</td>
</tr>
<tr valign="top">
<td align="left">
{if $product.price_type == '1'}
{if $record.price_type == '1'}
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
<tr valign="top" class="body">
<td><b>{osb f=tf module=product field=price_recurr_type}</b></td>
@@ -94,7 +94,7 @@
<td>
<select name="recurr_schedule" >
{foreach from=$price item=price_recurr key=key}
<option value="{$key}" {if $product.price_recurr_default == $key} selected="selected"{/if}>
<option value="{$key}" {if $record.price_recurr_default == $key} selected="selected"{/if}>
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}&nbsp;
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
{if $waive_setup != 1}
@@ -172,7 +172,7 @@
<!--
{literal}
function addCart(addtype) {
var hosting = '{/literal}{$product.host}{literal}';
var hosting = '{/literal}{$record.host}{literal}';
if (hosting == '1') {}
attrValidate(addtype);
}
@@ -224,7 +224,7 @@
<input type="hidden" name="service_id" value="{$VAR.service_id}"/>
<input type="hidden" id="page" name="_page" value=""/>
<input type="hidden" name="do[]" value="cart:add"/>
<input type="hidden" name="product_id" value="{$product.id}"/>
<input type="hidden" name="product_id" value="{$record.id}"/>
<input type="hidden" name="s" value="{$SESS}"/>
</p>
{/if}

View File

@@ -69,6 +69,29 @@
</table>
{if $record.active == 1}
<div id="plugin">
{if $record.type == 'product' || $record.type == 'product_group'}
{assign var='plugin' value=$record.prod_plugin_name}
<br/>
<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}Service Details{/t}</td>
</tr>
<tr valign="top">
<td class="row1">
{$block->display("product_plugin:plugin_view_$plugin")}
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
</div>
{if $record.recur_modify == 1 && $record.suspend_billing != 1}
<div><br/></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">

View File

@@ -333,7 +333,7 @@
<tr valign="top">
<td width="30%">{$record.domain_name|upper}.{$record.domain_tld|upper}<b>&nbsp;<a href="?_page=core:search&module=service&service_domain_name={$record.domain_name}&service_domain_tld={$record.domain_tld}"><img src="themes/{$THEME_NAME}/images/icons/zoomi_16.gif" alt="Resend Invoice" style="border: 0px; width: 16px; height: 16px;"/></a></b></td>
<td width="40%">{$record.domain_term} Year(s) <a href="?_page=service:view&id={$record.id}&do%5B%5D=invoice:generatedomaininvoice">{translate module=cart}renew{/translate}</a></td>
<td width="30%">{$list->calender_view('service_domain_date_expire',$record.domain_date_expire,'form_field',$record.id)}</td>
<td width="30%">{$list->calender_view('service_domain_date_expire',$record.domain_date_expire,'form_field')}</td>
</tr>
<tr valign="top" class="row1">
<td width="30%"><b>{osb f=tf field=domain_type}</b></td>
@@ -417,6 +417,7 @@
<div id="product" {osb f=style_hide}>
{if $record.type == 'product' || $record.type == 'product_group'}
{assign var='plugin' value=$record.prod_plugin_name}
<br/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
@@ -429,19 +430,22 @@
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top">
<td style="width: 50%;">{translate module=service}product_plugin{/translate}</td>
<td style="width: 50%;"><b>{$record.prod_plugin_name}</b></td>
<td style="width: 20%;">{t}Plugin Information{/t}</td>
<td><b>{$plugin}</b></td>
</tr>
{assign var="pid" value=$record.product_id}
{if ($list->smarty_array('product_translate','description_short'," AND product_id=$pid ",'product'))}
<tr valign="top" class="row2">
<td>{osb f=tf field=product}</td>
<td><b>{$product.0.description_short}</b></td>
</tr>
{/if}
</table>
</td>
</tr>
<tr valign="top">
<td class="row1">
{assign var='product' value=$service}
{assign var='afile' value=$record.prod_plugin_name}
{assign var='ablock' value='product_plugin:plugin_prod_'}
{assign var='blockfile' value="$ablock$afile"}
{$block->display($blockfile)}
{$block->display("product_plugin:plugin_prod_$plugin")}
</td>
</tr>
</table>