Changes to AgileBill
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,413 +1,232 @@
|
||||
{if $SESS_LOGGED == 1}
|
||||
{$method->exe("service", "modify")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
|
||||
<!-- Show the category drill-down -->
|
||||
{ if $VAR.id == "" }
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading">
|
||||
<tr valign="top">
|
||||
<td width="78%" >
|
||||
{translate module=service}
|
||||
modify_select
|
||||
{/translate}
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row2" >
|
||||
<tr valign="top">
|
||||
<td width="23%" valign="top">
|
||||
<form name="form1" method="get" action="">
|
||||
<select name="id">
|
||||
{foreach from=$product_arr item=product}
|
||||
<option value="{$product.id}">
|
||||
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
-
|
||||
{$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}">
|
||||
<input type="hidden" name="_page" value="service:modify">
|
||||
<input type="hidden" name="service_id" value="{$VAR.service_id}">
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
{if $product_show}
|
||||
{ $method->exe("product","details") }
|
||||
{ if ($method->result == FALSE || !$product) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $product}
|
||||
<form id="product_view" name="product_view" method="post" action="">
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}">
|
||||
<input type="hidden" name="invoice_account_id" value="{$VAR.account_id}">
|
||||
<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:admin_add">
|
||||
<input type="hidden" name="product_id" value="{$product.id}">
|
||||
<input type="hidden" name="s" value="{$SESS}">
|
||||
{if $list->translate("product_translate","name,description_full", "product_id", $product.id, "translate_product")}
|
||||
{/if}
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading">
|
||||
<tr valign="top">
|
||||
<td width="78%" >
|
||||
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row2" >
|
||||
<tr valign="top">
|
||||
<td width="23%" valign="top">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left" bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
{if $product.thumbnail != ""}
|
||||
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" hspace="5" border="0">
|
||||
{/if}
|
||||
{$translate_product.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left">
|
||||
{if $product.price_type == "1" }
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_recurr_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
<select name="recurr_schedule" >
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected{/if}>
|
||||
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
|
||||
{if $key == "0" }
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "1" }
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "2" }
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "3" }
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "4" }
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "5" }
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "6" }
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $waive_setup != 1}
|
||||
{if $price_recurr.setup > 0}
|
||||
+
|
||||
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == "0"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked{/if} >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "1"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20" >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "3"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "2"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}
|
||||
:
|
||||
{$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0}
|
||||
+
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}
|
||||
:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
|
||||
function addCart(addtype)
|
||||
{
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == "1")
|
||||
{
|
||||
}
|
||||
attrValidate(addtype);
|
||||
}
|
||||
function attrValidate(addtype)
|
||||
{
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++)
|
||||
{
|
||||
if(!document.getElementById(val_arr[ii][0]).value)
|
||||
{
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
doCart(addtype);
|
||||
}
|
||||
function doCart(addtype)
|
||||
{
|
||||
if(addtype == 'checkout')
|
||||
{
|
||||
document.getElementById('page').value = 'invoice:add';
|
||||
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}admin.php';
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<p align="center">
|
||||
<input type="submit" onClick="addCart('checkout')" name="modify" value="{translate}submit{/translate}" class="form_button">
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{$block->display("account:login")}
|
||||
{/if}
|
||||
<form id="modify" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
{if $VAR.id == ''}
|
||||
<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="0" cellpadding="5" class="row2" >
|
||||
<tr valign="top">
|
||||
<td valign="top">
|
||||
<select name="id">
|
||||
{foreach from=$product_arr item=product}
|
||||
<option value="{$product.id}">
|
||||
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
- {$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="Submit" value="{t}Submit{/t}"/>
|
||||
<input type="hidden" name="_page" value="{$VAR._page}"/>
|
||||
<input type="hidden" name="service_id" value="{$VAR.service_id}"/>
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
{if $product_show}
|
||||
{$method->exe('product','details')}
|
||||
{if ($method->result == false || ! $product)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $product}
|
||||
<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>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" 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}
|
||||
{$prod_translate.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
{if $product.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>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<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}>
|
||||
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
|
||||
{if $waive_setup != 1}
|
||||
{if $price_recurr.setup > 0}
|
||||
+ {$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br/>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td style="width: 70%;" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td style="width: 30%;" valign="middle" align="right">
|
||||
{if $attr_arr.type == '0' || $attr_arr.type == '1' || $attr_arr.type == '3'}
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
{elseif $attr_arr.type == '2'}
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{if $attr_arr.type == '0'}
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/> {$attr_arr.description}
|
||||
{elseif $attr_arr.type == '1'}
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/> {$attr_arr.description}
|
||||
{elseif $attr_arr.type == '2'}
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0} : {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)} {/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0} +
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{elseif $attr_arr.type == '3'}
|
||||
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea> {$attr_arr.description}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
{literal}
|
||||
function addCart(addtype) {
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == "1") { }
|
||||
attrValidate(addtype);
|
||||
}
|
||||
|
||||
function attrValidate(addtype) {
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++) {
|
||||
if(!document.getElementById(val_arr[ii][0]).value) {
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
doCart(addtype);
|
||||
}
|
||||
|
||||
function doCart(addtype) {
|
||||
if(addtype == 'checkout') {
|
||||
document.getElementById('page').value = 'invoice:add';
|
||||
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}admin.php';
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p style="text-align: center;">
|
||||
<input type="submit" onclick="addCart('checkout')" name="modify" value="{t}Submit{/t}" class="form_button"/>
|
||||
<input type="hidden" name="account_id" value="{$VAR.account_id}"/>
|
||||
<input type="hidden" name="invoice_account_id" value="{$VAR.account_id}"/>
|
||||
<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:admin_add"/>
|
||||
<input type="hidden" name="product_id" value="{$product.id}"/>
|
||||
<input type="hidden" name="s" value="{$SESS}"/>
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</form>
|
||||
|
@@ -1,2 +1,3 @@
|
||||
{ $block->display("core:top_clean") } <br>
|
||||
{$block->display('core:top_clean')}
|
||||
<br/>
|
||||
<div align="center"><b>{translate module=service}none{/translate}</b></div>
|
||||
|
@@ -1,454 +1,137 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{ $method->exe("service","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
<form name="service_search" method="post" action="">
|
||||
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}title_search{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_id" value="{$VAR.service_id}" {if $service_parent_id == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_invoice_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_invoice_id" value="{$VAR.service_invoice_id}" {if $service_invoice_id == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_sku
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_sku" value="{$VAR.service_sku}" {if $service_sku == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="service_account_id" default=$VAR.service_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_active
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("service_active", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="service_type" >
|
||||
<option value=""></option>
|
||||
{if $list->is_installed("host_server") }
|
||||
<option value="host">
|
||||
{translate module=service}
|
||||
host
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="host_group">
|
||||
{translate module=service}
|
||||
host_group
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="domain">
|
||||
{translate module=service}
|
||||
domain
|
||||
{/translate}
|
||||
</option>
|
||||
{/if}
|
||||
{if $list->is_installed("db_mapping") || $list->is_installed("htaccess") }
|
||||
<option value="group">
|
||||
{translate module=service}
|
||||
group
|
||||
{/translate}
|
||||
</option>
|
||||
{/if}
|
||||
<option value="none">
|
||||
{translate module=service}
|
||||
none
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_queue
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="select" >
|
||||
<option value=""></option>
|
||||
<option value="new">
|
||||
{translate module=service}
|
||||
new
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="active">
|
||||
{translate module=service}
|
||||
active
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="inactive">
|
||||
{translate module=service}
|
||||
inactive
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="delete">
|
||||
{translate module=service}
|
||||
delete
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="edit">
|
||||
{translate module=service}
|
||||
edit
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="delete">
|
||||
{translate module=service}
|
||||
delete
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="queue_none">
|
||||
{translate module=service}
|
||||
queue_none
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_recur_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="service_recur_type" >
|
||||
<option value=""></option>
|
||||
<option value="0">
|
||||
{translate module=product}
|
||||
recurr_type_aniv
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1">
|
||||
{translate module=product}
|
||||
recurr_type_fixed
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_recur_schedule
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="service_recur_schedule" >
|
||||
<option value=""></option>
|
||||
<option value="0">
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="1">
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="2">
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="3">
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="4">
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="5">
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("service_date_orig", $VAR.service_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_date_last_invoice
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("service_date_last_invoice", $VAR.service_date_last_invoice, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_date_next_invoice
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("service_date_next_invoice", $VAR.service_date_next_invoice, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate}
|
||||
search_results_per
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="limit" size="5" value="{$service_limit}">
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate}
|
||||
search_order_by
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="order_by">
|
||||
{foreach from=$service item=record}
|
||||
<option value="{$record.field}">
|
||||
{$record.translate}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}search{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="core:search">
|
||||
<input type="hidden" name="_escape" value="Y">
|
||||
<input type="hidden" name="module" value="service">
|
||||
<input type="hidden" name="_next_page_one" value="view">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{if $list->is_installed('host_server') }
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_hosting
|
||||
{/translate}
|
||||
+
|
||||
{translate module=service}
|
||||
title_domain
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_server_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "service_host_server_id", "host_server", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_host_ip" value="{$VAR.service_host_ip}" {if $service_host_ip == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_host_username" value="{$VAR.service_host_username}" {if $service_host_username == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="service_domain_name" value="{$VAR.service_domain_name}" {if $service_domain_name == true}class="form_field_error"{/if}>
|
||||
.
|
||||
{ $list->menu("no", "service_domain_host_tld_id", "host_tld", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_type
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<select name="service_domain_type" >
|
||||
<option value=""></option>
|
||||
<option value="register">
|
||||
{translate module=cart}
|
||||
register
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="transfer">
|
||||
{translate module=cart}
|
||||
transfer
|
||||
{/translate}
|
||||
</option>
|
||||
<option value="park">
|
||||
{translate module=cart}
|
||||
park
|
||||
{/translate}
|
||||
</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_host_registrar_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "service_domain_host_registrar_id", "host_registrar_plugin", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_date_expire
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("service_domain_date_expire", $VAR.service_domain_date_expire, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Define the results per page -->
|
||||
<!-- Define the order by field per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit2" value="{translate}search{/translate}" class="form_button">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
<form id="search_form" 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">
|
||||
<td style="width: 35%;">{osb f=tf field=id}</td>
|
||||
<td style="width: 65%;"><input type="text" name="service_id" value="{$VAR.service_id}" {if $service_parent_id == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=invoice_id}</td>
|
||||
<td style="width: 65%;"><input type="text" name="service_invoice_id" value="{$VAR.service_invoice_id}" {if $service_invoice_id == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=sku}</td>
|
||||
<td style="width: 65%;"><input type="text" name="service_sku" value="{$VAR.service_sku}" {if $service_sku == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=account_id}</td>
|
||||
<td style="width: 65%;">{osb f=autoselect module=account return=id field=service_account_id default=$VAR.service_account_id}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=active}</td>
|
||||
<td style="width: 65%;">{$list->bool('service_active','all','form_field')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=type}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('servicetype','service_type','service_type','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=queue}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('servicequeue','select','select','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=recur_type}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('recur_type','service_recur_type','service_recur_type','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=recur_schedule}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('recur_schedule','service_recur_schedule','service_recur_schedule','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_orig}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('service_date_orig',$VAR.service_date_orig,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_last_invoice}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('service_date_last_invoice',$VAR.service_date_last_invoice,'form_field','')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=date_next_invoice}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('service_date_next_invoice',$VAR.service_date_next_invoice,'form_field','')}</td>
|
||||
</tr>
|
||||
{include file='file:../core/search_post.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{if $list->is_installed('host_server')}
|
||||
<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} + {t}Domain Details{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 65%;" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=host_server_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('no','service_host_server_id','host_server','name','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=host_ip}</td>
|
||||
<td style="width: 65%;"><input type="text" name="service_host_ip" value="{$VAR.service_host_ip}" {if $service_host_ip == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=host_username}</td>
|
||||
<td style="width: 65%;"><input type="text" name="service_host_username" value="{$VAR.service_host_username}" {if $service_host_username == true}class="form_field_error"{/if}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=domain_name}</td>
|
||||
<td style="width: 65%;">
|
||||
<input type="text" name="service_domain_name" value="{$VAR.service_domain_name}" {if $service_domain_name == true}class="form_field_error"{/if}/>
|
||||
.
|
||||
{$list->menu('no','service_domain_host_tld_id','host_tld','name','','form_menu',true)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=domain_type}</td>
|
||||
<td style="width: 65%;">{$list->menu_staticlist('domaintype','service_domain_type','service_domain_type','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=domain_host_registrar_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('','service_domain_host_registrar_id','host_registrar_plugin','name','','form_menu',true)}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=domain_date_expire}</td>
|
||||
<td style="width: 65%;">{$list->calender_search('service_domain_date_expire',$VAR.service_domain_date_expire,'form_field','')}</td>
|
||||
</tr>
|
||||
{include file='file:../core/search_post.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
</form>
|
||||
|
||||
{$block->display('core:saved_searches')}
|
||||
{$block->display('core:recent_searches')}
|
||||
{/if}
|
||||
|
@@ -1,169 +1,51 @@
|
||||
|
||||
{$method->exe("service","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}
|
||||
search_result_count
|
||||
{/translate}
|
||||
{else}
|
||||
{translate results=$results}
|
||||
search_results_count
|
||||
{/translate}
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/search_show_tr_record.tpl'}
|
||||
<td>{$record.last_name}, {$record.first_name}</td>
|
||||
<td>{$record.sku} >
|
||||
{if $record.type == 'domain'}
|
||||
<u>{$record.domain_name|upper|trim:16}.{$record.domain_tld|upper}</u>
|
||||
{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}
|
||||
</td>
|
||||
<td>
|
||||
{if $record.queue != '' && $record.queue!= 'none'}
|
||||
{t}{$record.queue}{/t}
|
||||
{else}
|
||||
{t}None{/t}
|
||||
{/if}
|
||||
</td>
|
||||
<td style="text-align: right;">{$list->format_currency_num($record.price,'')}</div></td>
|
||||
<td style="text-align: center;">
|
||||
{if $record.active == '1'}
|
||||
<img title=Active src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0"/>
|
||||
{else}
|
||||
<img title=Suspended/Inactive src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0"/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
||||
|
||||
{translate amount=$total_amount module=service}
|
||||
search_result_amount
|
||||
{/translate}
|
||||
<br>
|
||||
<BR>
|
||||
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'service';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/search.js"></SCRIPT>
|
||||
{/literal}
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="30" class="table_heading"> </td>
|
||||
<td width="191" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_account_id{/translate}{literal}','account_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="450" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_sku{/translate}{literal}','sku'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="155" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_queue{/translate}{literal}','queue'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="99" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_price{/translate}{literal}','price'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="42" class="table_heading" align="center"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$service item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=service:view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="30">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="191">
|
||||
{$record.last_name},
|
||||
{$record.first_name}
|
||||
</td>
|
||||
<td width="450">
|
||||
{$record.sku}
|
||||
>
|
||||
{if $record.type == 'domain'}
|
||||
<u>{$record.domain_name|upper|trim:16}.{$record.domain_tld|upper}</u>
|
||||
{elseif $record.type == 'host' || $record.type == 'host_group'}
|
||||
<i>{$record.server_name|trim:25}</i>
|
||||
{else}
|
||||
{translate module=service}
|
||||
{$record.type}
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="155">
|
||||
{if $record.queue != "" && $record.queue!= 'none' }
|
||||
{translate module=service}
|
||||
{$record.queue}
|
||||
{/translate}
|
||||
{else}
|
||||
{translate module=service}
|
||||
queue_none
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="99">
|
||||
<div align="right">
|
||||
{$list->format_currency_num($record.price,"")}
|
||||
</div>
|
||||
</td>
|
||||
<td width="42" align="center">
|
||||
{if $record.active == "1"}
|
||||
<img title=Active src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0">
|
||||
{else}
|
||||
<img title=Suspended/Inactive src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0">
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{if $VAR._print != TRUE}<br>
|
||||
<center>
|
||||
<input type="submit" name="Submit" value="{translate}view_edit{/translate}" onClick="mass_do('', module+':view', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}delete{/translate}" onClick="mass_do('delete', module+':search_show&search_id={$search_id}&page={$page}&order_by={$order}&{$sort}', limit, module);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}select_all{/translate}" onClick="all_select(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}deselect_all{/translate}" onClick="all_deselect(record_arr);" class="form_button">
|
||||
<input type="submit" name="Submit" value="{translate}range_select{/translate}" onClick="all_range_select(record_arr,limit);" class="form_button">
|
||||
<br>
|
||||
<br>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
|
||||
<tr>
|
||||
<td valign="middle" align="center">
|
||||
<a href="#" onClick="NewWindow('ExportWin','toolbar=no,status=no,width=300,height=300','?_page=core:export_search&module=service&_escape=1&search_id={$search_id}&page={$page}&order={$order}&sort={$sort}');"><img src="themes/{$THEME_NAME}/images//icons/exp_32.gif" alt="{translate}search_export_image{/translate}" border="0"></a>
|
||||
<a href="?_page=service:search_show&_print=true&order_by={$order}&search_id={$search_id}&limit={$limit}&page={$page}"><img src="themes/{$THEME_NAME}/images//icons/print_32.gif" border="0" alt="{translate}search_print_image{/translate}"></a>
|
||||
<a href="?_page=service:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}"></a>
|
||||
<a href="?_page=service:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=service}title_add{/translate}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,409 +1,235 @@
|
||||
{if $SESS_LOGGED == 1}
|
||||
{$method->exe("service", "user_modify")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Show the category drill-down -->
|
||||
{ if $VAR.id == "" }
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
|
||||
<tr valign="top">
|
||||
<td width="78%" >
|
||||
{translate module=service}
|
||||
modify_select
|
||||
{/translate}
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="row2" >
|
||||
<tr valign="top">
|
||||
<td width="23%" valign="top">
|
||||
<form name="form1" method="get" action="">
|
||||
<select name="id">
|
||||
{foreach from=$product_arr item=product}
|
||||
<option value="{$product.id}">
|
||||
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
-
|
||||
{$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}">
|
||||
<input type="hidden" name="_page" value="service:user_modify">
|
||||
<input type="hidden" name="service_id" value="{$VAR.service_id}">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $SESS_LOGGED != 1}
|
||||
{$block->display('account:user_login')}
|
||||
{else}
|
||||
{if $product_show}
|
||||
{ $method->exe("product","details") }
|
||||
{ if ($method->result == FALSE || !$product) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
{if $product}
|
||||
<form id="product_view" name="product_view" method="post" action="">
|
||||
<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="s" value="{$SESS}">
|
||||
{if $list->translate("product_translate","name,description_full", "product_id", $product.id, "translate_product")}
|
||||
{/if}
|
||||
<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 width="65%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_heading_cart">
|
||||
<tr valign="top">
|
||||
<td width="78%" >
|
||||
<p>
|
||||
{if $list->translate("product_translate","name,description_short,description_full","product_id", $product.id, "prod_translate") }
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td width="22%" valign="middle" align="right"> <b> </b> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="body" bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left" bgcolor="#FFFFFF">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
{if $product.thumbnail != ""}
|
||||
<img src="{$URL}{$smarty.const.URL_IMAGES}{$product.thumbnail}" hspace="5" border="0">
|
||||
{/if}
|
||||
{$translate_product.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="92%" align="left">
|
||||
{if $product.price_type == "1" }
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%"><b>
|
||||
{translate module=product}
|
||||
field_price_recurr_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<td width="50%">
|
||||
<select name="recurr_schedule" >
|
||||
{foreach from=$price item=price_recurr key=key}
|
||||
<option value="{$key}" {if $product.price_recurr_default == $key} selected{/if}>
|
||||
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
|
||||
{if $key == "0" }
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "1" }
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "2" }
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "3" }
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "4" }
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "5" }
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "6" }
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $waive_setup != 1}
|
||||
{if $price_recurr.setup > 0}
|
||||
+
|
||||
{$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
{if $attr_arr.type == "0"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked{/if} >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "1"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20" >
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "3"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0}
|
||||
+
|
||||
{/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{elseif $attr_arr.type == "2"}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td width="96%"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td width="70%" valign="middle"><b>
|
||||
{$attr_arr.name}
|
||||
</b></td>
|
||||
<td width="30%" valign="middle" align="right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td width="96%">
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0}
|
||||
+
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)}
|
||||
{translate module=product}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</option>
|
||||
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
{$attr_arr.description}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
|
||||
function addCart(addtype)
|
||||
{
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == "1")
|
||||
{
|
||||
}
|
||||
attrValidate(addtype);
|
||||
}
|
||||
function attrValidate(addtype)
|
||||
{
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++)
|
||||
{
|
||||
if(!document.getElementById(val_arr[ii][0]).value)
|
||||
{
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
doCart(addtype);
|
||||
}
|
||||
function doCart(addtype)
|
||||
{
|
||||
if(addtype == 'checkout')
|
||||
{
|
||||
document.getElementById('page').value = 'checkout:checkout';
|
||||
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
<!-- Show the category drill-down -->
|
||||
<form id="modify" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
{if $VAR.id == ''}
|
||||
<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>
|
||||
<td class="row1"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<select name="id">
|
||||
{foreach from=$product_arr item=product}
|
||||
<option value="{$product.id}">
|
||||
{if $list->translate('product_translate','name,description_short,description_full','product_id',$product.id,'prod_translate')}
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
- {$list->format_currency_num($product.price_base,$smarty.const.SESS_CURRENCY)}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type="submit" name="Submit" value="{t}Submit{/t}"/>
|
||||
<input type="hidden" name="_page" value="{$VAR._page}"/>
|
||||
<input type="hidden" name="service_id" value="{$VAR.service_id}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
{if $product_show}
|
||||
{$method->exe('product','details')}
|
||||
{if ($method->result == false || !$product)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $product}
|
||||
<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>
|
||||
<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')}
|
||||
{$prod_translate.name}
|
||||
{else}
|
||||
{$product.sku}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="body">
|
||||
<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}
|
||||
{$prod_translate.description_full}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td align="left">
|
||||
{if $product.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>
|
||||
</tr>
|
||||
<tr valign="top" class="body">
|
||||
<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}>
|
||||
{$list->format_currency_num($price_recurr.base,$smarty.const.SESS_CURRENCY)}
|
||||
{$list->menu_staticlist('recur_schedule','','',$key,'form_menu')}
|
||||
{if $waive_setup != 1}
|
||||
{if $price_recurr.setup > 0}
|
||||
+ {$list->format_currency_num($price_recurr.setup,$smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{if $attr}
|
||||
<br/>
|
||||
{foreach from=$attr item=attr_arr key=key}
|
||||
{assign var=attr_id value=$attr_arr.id}
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="body">
|
||||
<tr valign="middle" class="body">
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td style="width: 70%;" valign="middle"><b>{$attr_arr.name}</b></td>
|
||||
<td style="width: 30%;" valign="middle" align="right">
|
||||
{if $attr_arr.type == '0' || $attr_arr.type == '1' || $attr_arr.type == '3'}
|
||||
{if $attr_arr.price_base != 0}
|
||||
{$list->format_currency_num($attr_arr.price_base, $smarty.const.SESS_CURRENCY)}
|
||||
{/if}
|
||||
{if $attr_arr.price_setup != 0}
|
||||
{if $attr_arr.price_base != 0} + {/if}
|
||||
{$list->format_currency_num($attr_arr.price_setup, $smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
{elseif $attr_arr.type == '2'}
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{if $attr_arr.description}
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{if $attr_arr.type == '0'}
|
||||
<input type="checkbox" name="attr[{$attr_id}]" value="Yes" {if $VAR.attr[$attr_id] || $attr_arr.default}checked="checked"{/if}/> {$attr_arr.description}
|
||||
{elseif $attr_arr.type == '1'}
|
||||
<input type="text" id="attr_{$attr_id}" name="attr[{$attr_id}]" size="20"/> {$attr_arr.description}
|
||||
{elseif $attr_arr.type == '2'}
|
||||
<select id="attr_{$attr_id}" name="attr[{$attr_id}]" >
|
||||
{foreach from=$attr_arr.default item=attr_menu key=attr_key}
|
||||
<option value="{$attr_menu.name}">
|
||||
{$attr_menu.name}
|
||||
{if $attr_menu.base > 0}: {$list->format_currency_num($attr_menu.base, $smarty.const.SESS_CURRENCY)}{/if}
|
||||
{if $attr_menu.base > 0 && $attr_menu.setup > 0} +
|
||||
{elseif $attr_menu.base <= 0 && $attr_menu.setup > 0}:
|
||||
{/if}
|
||||
{if $attr_menu.setup > 0}
|
||||
{$list->format_currency_num($attr_menu.setup, $smarty.const.SESS_CURRENCY)} {t}Setup{/t}
|
||||
{/if}
|
||||
</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{$attr_arr.description}
|
||||
{elseif $attr_arr.type == '3'}
|
||||
<textarea id="attr_{$attr_id}" name="attr[{$attr_id}]2" cols="50" rows="3"></textarea> {$attr_arr.description}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
{/foreach}
|
||||
{/if}
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
{literal}
|
||||
function addCart(addtype) {
|
||||
var hosting = '{/literal}{$product.host}{literal}';
|
||||
if (hosting == '1') {}
|
||||
attrValidate(addtype);
|
||||
}
|
||||
|
||||
function attrValidate(addtype) {
|
||||
var val_arr = new Array(2);
|
||||
var i=0;
|
||||
{/literal} {foreach from=$attr item=attr_arr key=key} {assign var=attr_id value=$attr_arr.id}{if $attr_arr.required == "1"}
|
||||
val_arr[i] = new Array ('attr_{$attr_id}','{$attr_arr.name}','{$attr_arr.type}');
|
||||
i++;
|
||||
{/if}{/foreach} {literal}
|
||||
for(ii=0; ii < i; ii++) {
|
||||
if(!document.getElementById(val_arr[ii][0]).value) {
|
||||
document.getElementById(val_arr[ii][0]).focus();
|
||||
if(val_arr[ii][2] == "1") {
|
||||
alert("You must select an option for \""+val_arr[ii][1]+"\"");
|
||||
} else {
|
||||
alert("You must enter a value for the product option \""+val_arr[ii][1]+"\"")
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
doCart(addtype);
|
||||
}
|
||||
|
||||
function doCart(addtype) {
|
||||
if(addtype == 'checkout') {
|
||||
document.getElementById('page').value = 'checkout:checkout';
|
||||
document.getElementById('product_view').action = '{/literal}{$SSL_URL}{literal}';
|
||||
}
|
||||
document.product_view.submit();
|
||||
}
|
||||
{/literal}
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p style="text-align: center;">
|
||||
<input type="submit" onclick="addCart('checkout')" name="modify" value="{t}Modify Service{/t}" class="form_button"/>
|
||||
<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="s" value="{$SESS}"/>
|
||||
</p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</form>
|
||||
<p align="center">
|
||||
<input type="submit" onClick="addCart('checkout')" name="modify" value="{translate module=service}modify_submit{/translate}" class="form_button">
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
{$block->display("account:login")}
|
||||
{/if}
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
{/if}
|
||||
|
@@ -1,131 +1,51 @@
|
||||
{$method->exe("service","user_search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
{$method->exe('invoice','has_unpaid')}
|
||||
|
||||
{include file='file:../core/user_search_show_pre.tpl'}
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'service';
|
||||
{/literal}
|
||||
{if $VAR._print == TRUE}
|
||||
var p = '&_escape=y&_print=y';
|
||||
{else}
|
||||
var p = '';
|
||||
{/if}{literal}
|
||||
var IMAGE = '{/literal}{$NONSSL_IMAGE}{literal}';
|
||||
var order = '{/literal}{$order}{literal}';
|
||||
var sort1 = '{/literal}{$sort}{literal}';
|
||||
var search_id = '{/literal}{$search_id}{literal}';
|
||||
var page = {/literal}{$page}{literal};
|
||||
var pages = '{/literal}{$pages}{literal}';
|
||||
var results = '{/literal}{$results}{literal}';
|
||||
var limit = '{/literal}{$limit}{literal}';
|
||||
record_arr = new Array ({/literal}{$limit}{literal});
|
||||
var i = 0;
|
||||
// END -->
|
||||
</script>
|
||||
<SCRIPT SRC="themes/{/literal}{$THEME_NAME}{literal}/user_search.js"></SCRIPT>
|
||||
{/literal}
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/user_search_show_tr_record.tpl'}
|
||||
<td>{$list->date($record.date_orig)}</td>
|
||||
<td>{$record.sku} ({t}{$record.type}{/t})</td>
|
||||
<td>
|
||||
{if $record.queue != '' && $record.queue!= 'none'}
|
||||
{t}{$record.queue}{/t}
|
||||
{else}
|
||||
{t}queue_none{/t}
|
||||
{/if}
|
||||
</td>
|
||||
<td style="text-align: center">{$list->format_currency($record.price,'')}</td>
|
||||
<td style="text-align: center">
|
||||
{if $record.active == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Active" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Suspended/Inactive" style="border: 0px;"/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- SHOW THE SEARCH NAVIGATION MENU -->
|
||||
<center><script language="JavaScript">document.write(search_nav_top());</script></center>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<div id="search_results" onKeyPress="key_handler(event);">
|
||||
<table id="main1" width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form id="form1" name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<!-- DISPLAY THE SEARCH HEADING -->
|
||||
<tr valign="middle" align="center" class="table_heading">
|
||||
<td width="3%" class="table_heading"> </td>
|
||||
<td width="16%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_date_orig{/translate}{literal}','date_orig'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="24%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_sku{/translate}{literal}','sku'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="16%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_queue{/translate}{literal}','queue'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="15%" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=service}field_price{/translate}{literal}','price'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="9%" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$service item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1); window.location='?_page=service:user_view&id={$record.id},';" onMouseOver="row_mouseover('{$record.id}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.id}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="3%">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="20%">
|
||||
{$list->date($record.date_orig)}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{$record.sku}
|
||||
<font size="1">(
|
||||
{translate module=service}
|
||||
{$record.type}
|
||||
{/translate}
|
||||
) </font></td>
|
||||
<td width="25%">
|
||||
{if $record.queue != "" && $record.queue!= 'none' }
|
||||
{translate module=service}
|
||||
{$record.queue}
|
||||
{/translate}
|
||||
{else}
|
||||
{translate module=service}
|
||||
queue_none
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="20%">
|
||||
<div align="right">
|
||||
{$list->format_currency($record.price,"")}
|
||||
</div>
|
||||
</td>
|
||||
<td width="1%">
|
||||
{if $record.active == "1"}
|
||||
<img title=Active src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0">
|
||||
{else}
|
||||
<img title=Suspended/Inactive src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0">
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{literal}
|
||||
<script language="JavaScript">row_sel('{/literal}{$record.id}{literal}', 0, '{/literal}{$record._C}{literal}'); record_arr[i] = '{/literal}{$record.id}{literal}'; i++; </script>
|
||||
{/literal}
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
{/if}
|
||||
</div>
|
||||
<div>
|
||||
<br/>
|
||||
<input type="submit" name="Submit" value="{t}View{/t}" onclick="mass_do('',module+':user_view',limit,module);"/>
|
||||
</div>
|
||||
{/if}
|
||||
|
@@ -1,620 +1,303 @@
|
||||
{if $smarty.const.SESS_LOGGED == false}
|
||||
{$block->display("account:login")}
|
||||
{$block->display('account:user_login')}
|
||||
{else}
|
||||
{ $method->exe("service","user_view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$service item=service}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
{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'}
|
||||
|
||||
<!-- Display each record -->
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}title_view{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="40%"> <b>
|
||||
{translate module=service}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_invoice_id
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="30%">
|
||||
{$list->date_time($service.date_orig)}
|
||||
</td>
|
||||
<td width="40%">
|
||||
{$list->date_time($service.date_last)}
|
||||
</td>
|
||||
<td width="30%"> <a href="?_page=invoice:user_view&id={$service.invoice_id}">
|
||||
{$service.invoice_id}
|
||||
</a></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_active
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="40%"> <b>
|
||||
{translate module=service}
|
||||
field_sku
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
|
||||
<td width="30%">
|
||||
{if $service.active == 1}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="40%">
|
||||
{$service.sku}
|
||||
</td>
|
||||
<td width="30%">
|
||||
{translate module=service}
|
||||
{$service.type}
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_price
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="40%"> <b>
|
||||
{translate module=service}
|
||||
field_price_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_taxable
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="30%">
|
||||
{$list->format_currency_num($service.price, '')}
|
||||
</td>
|
||||
<td width="40%">
|
||||
{if $service.price_type == "0"}
|
||||
{translate module=product}
|
||||
price_type_one
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $service.price_type == "1"}
|
||||
{translate module=product}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
<td width="30%">
|
||||
{if $service.taxable == 1}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</tr>
|
||||
{if $service.account_billing_id > 0}
|
||||
<tr valign="top">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_account_billing_id
|
||||
{/translate}
|
||||
</b> </td>
|
||||
<td width="40%"><a href="{$SSL_URL}?_page=account_billing:user_view&id={$service.account_billing_id}">
|
||||
{translate}
|
||||
view
|
||||
{/translate}
|
||||
</a></td>
|
||||
<td width="30%"> </td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $service.prod_plugin_name eq "VOIP"}
|
||||
<tr valign="top">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_service_did
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="40%"> </td>
|
||||
<td width="30%"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="30%">{voip_did service_id=$service.id}</td>
|
||||
<td width="40%"> </td>
|
||||
<td width="30%"> </td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{if $service.active == 1 }
|
||||
{if $service.recur_modify == 1 && $service.suspend_billing != 1}<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_modify
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">
|
||||
{translate module=service id=$service.id}
|
||||
modify_explain
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
<form id="user_view" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
{if $service.date_next_invoice > 0 && $service.suspend_billing == 1 }
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_suspended_billing
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%">
|
||||
{translate module=service}
|
||||
suspended_billing_explain
|
||||
{/translate}{$list->date($service.date_next_invoice)}
|
||||
<a href="?_page=service:user_view&id={$service.id}&do[]=service:user_reactivate"><strong>{translate module=service}reactivate{/translate}</strong></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<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&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&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&id={$record.account_billing_id}">{t}View{/t}</a></td>
|
||||
<td style="width: 33%;"> </td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
{elseif $service.date_next_invoice > 0 && $service.suspend_billing != 1 }
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_recurring
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%"> <b>
|
||||
{translate module=service}
|
||||
field_date_last_invoice
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%"> <b>
|
||||
{translate module=service}
|
||||
field_date_next_invoice
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="50%">
|
||||
{$list->date($service.date_last_invoice)}
|
||||
</td>
|
||||
<td width="50%">
|
||||
{$list->date($service.date_next_invoice)}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="50%"> <b>
|
||||
{translate module=service}
|
||||
field_recur_schedule
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="50%"> <b> </b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
|
||||
<td width="50%">
|
||||
{if $recur_price }
|
||||
<select name="service_recur_schedule" {if $service.recur_schedule_change == "1"}onChange="if (confirm('{translate module=service}confirm_changeschedule{/translate}')) {literal}{ document.location='?_page=service:user_view&id={/literal}{$service.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 $service.recur_schedule == $key} selected{/if}>
|
||||
{$list->format_currency_num($price_recurr.base, $smarty.const.SESS_CURRENCY)}
|
||||
|
||||
{if $key == "0" }
|
||||
{translate module=cart}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "1" }
|
||||
{translate module=cart}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "2" }
|
||||
{translate module=cart}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "3" }
|
||||
{translate module=cart}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "4" }
|
||||
{translate module=cart}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "5" }
|
||||
{translate module=cart}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $key == "6" }
|
||||
{translate module=cart}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
</option>
|
||||
{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}
|
||||
{/foreach}
|
||||
</select>
|
||||
{else}
|
||||
|
||||
|
||||
{if $service.recur_schedule == "0"}
|
||||
{translate module=product}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "1"}
|
||||
{translate module=product}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "2"}
|
||||
{translate module=product}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "3"}
|
||||
{translate module=product}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "4"}
|
||||
{translate module=product}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "5"}
|
||||
{translate module=product}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{if $service.recur_schedule == "6"}
|
||||
{translate module=product}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
<td width="50%">
|
||||
{if $service.recur_cancel == 1}
|
||||
<input type="button" name="cancelservice" value="{translate module=service}cancel{/translate}" class="form_button" onClick="if (confirm('{translate module=service}confirm_cancel{/translate}')) {literal}{ document.location='?_page=service:user_view&id={/literal}{$service.id}{literal}&do[]=service:user_cancelservice'; }{/literal}">
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if $service.type == 'group' || $service.type == 'host_group'}
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_group
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="3" class="row1">
|
||||
<tr>
|
||||
<td width="98%" valign="top"> <b> </b>
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<input type="radio" name="service_group_type" value="0" {if $service.group_type == "0"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_limited
|
||||
{/translate}
|
||||
<input type="text" name="service_group_days" value="{$service.group_days}" size="3">
|
||||
<br>
|
||||
<input type="radio" name="service_group_type" value="1" {if $service.group_type == "1"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_subscription
|
||||
{/translate}
|
||||
<br>
|
||||
<input type="radio" name="service_group_type" value="2" {if $service.group_type == "2"}checked{/if}>
|
||||
{translate module=product}
|
||||
assoc_group_forever
|
||||
{/translate}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="2%" align="left" valign="top">
|
||||
{ $list->menu_multi($service.group_grant, "service_group_grant", "group", "name", "10", "", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if $service.type == 'domain' }
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_domain
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row1">
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_domain_name
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="40%"> <b>
|
||||
{translate module=service}
|
||||
field_domain_term
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="30%"> <b>
|
||||
{translate module=service}
|
||||
field_domain_date_expire
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="30%">
|
||||
{ $service.domain_name|upper }.{ $service.domain_tld|upper }
|
||||
<b> <a href="?_page=core:search&module=service&service_domain_name={$service.domain_name}&service_domain_tld={$service.domain_tld}"><img src="themes/{$THEME_NAME}/images/icons/zoomi_16.gif" border="0" width="16" height="16" alt="Resend Invoice"></a>
|
||||
</b> </td>
|
||||
<td width="40%">
|
||||
{ $service.domain_term }
|
||||
Year(s) <a href="?_page=service:user_view&id={$service.id}&do[]=service:user_renew_domain">
|
||||
{translate module=cart}
|
||||
renew
|
||||
{/translate}
|
||||
</a></td>
|
||||
<td width="30%">
|
||||
{ $list->calender_view("service_domain_date_expire", $service.domain_date_expire, "form_field", $service.id) }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top" class="row1">
|
||||
<td width="30%" height="22"> <b>
|
||||
{translate module=service}
|
||||
field_domain_type
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="40%" height="22"> <b>
|
||||
{translate module=service}
|
||||
field_domain_host_registrar_id
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="30%" height="22"> <b>
|
||||
{translate module=service}
|
||||
field_domain_host_tld_id
|
||||
{/translate}
|
||||
</b></td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="30%" height="27">
|
||||
{translate module=cart}{$service.domain_type}{/translate}
|
||||
</td>
|
||||
<td width="40%" height="27">
|
||||
{ $list->menu("", "service_domain_host_registrar_id", "host_registrar_plugin", "name", $service.domain_host_registrar_id, "form_menu") }
|
||||
</td>
|
||||
<td width="30%" height="27">
|
||||
{ $list->menu("", "service_domain_host_tld_id", "host_tld", "name", $service.domain_host_tld_id, "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{if $service.type == 'host' || $service.type == 'host_group' }
|
||||
<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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=service}
|
||||
title_hosting
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
{ if $service.domain_name != "" }
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%"> <b>
|
||||
{ $service.domain_name|upper }
|
||||
.
|
||||
{ $service.domain_tld|upper }
|
||||
</b> </td>
|
||||
</tr>
|
||||
{/if}
|
||||
{ if $service.host_ip != "" }
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_ip
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $service.host_ip }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_username
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%"> {$service.host_username} </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_host_password
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">{$service.host_password} </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{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)} <a href="?_page=service:user_view&id={$record.id}&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%;"> </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)} {$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> <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" 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&id={$record.id}&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%;"> </td>
|
||||
<td style="width: 33%;"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 33%;">{t}{$record.domain_type}{/t}</td>
|
||||
<td style="width: 33%;"> </td>
|
||||
<td style="width: 33%;"> </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}
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{/if}
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user