Initial Commit of AgileBill Open Source

This commit is contained in:
unknown
2008-11-26 14:50:40 -08:00
parent ae5a0fc25e
commit 02306ccc47
2954 changed files with 410976 additions and 0 deletions

View File

@@ -0,0 +1,759 @@
<!-- Display the form validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
{$method->exe("service","add_tpl")}
{if ($method->result == FALSE)}
{$block->display("core:method_error")}
{else}
{literal}
<script language="javascript">
function hideServiceType(type) {
document.getElementById('service_'+type+'Tag').style.color='999999';
document.getElementById('service_'+type).checked=false;
document.getElementById('service_'+type).disabled=true;
}
function unhideServiceType(type) {
document.getElementById('service_'+type+'Tag').style.color='000000';
document.getElementById('service_'+type).disabled=false;
}
function updateTR() {
var a = new Array(5);
a[0] = 'none';
a[1] = 'group';
a[2] = 'product';
a[3] = 'hosting';
a[4] = 'domain';
for(i=0;i<5;i++) {
if(document.getElementById('service_'+a[i]).checked == true) {
document.getElementById(a[i]).style.display = 'block';
} else {
document.getElementById(a[i]).style.display = 'none';
}
}
// display recurring?
if( document.getElementById('billing_type1').checked == true) {
document.getElementById("recurring").style.display = 'block';
document.getElementById('vrecurring').value = '1';
} else {
document.getElementById("recurring").style.display = 'none';
document.getElementById('vrecurring').value = '0';
}
}
function ServiceType(type)
{
var service_type = 'service_'+type;
if(type == 'none') {
if(document.getElementById(service_type).checked == true) {
unhideServiceType(type);
hideServiceType('group');
hideServiceType('product');
hideServiceType('hosting');
hideServiceType('domain');
document.getElementById('billing_type1').checked = true;
document.getElementById('vnone').value='1';
} else {
unhideServiceType('group');
unhideServiceType('product');
unhideServiceType('hosting');
unhideServiceType('domain');
document.getElementById('vnone').value='0';
}
} else if (type == 'group') {
if(document.getElementById(service_type).checked == true) {
unhideServiceType(type);
hideServiceType('none');
hideServiceType('domain');
document.getElementById('vgroup').value='1';
} else {
if(document.getElementById('service_product').checked == false
&& document.getElementById('service_hosting').checked == false) {
unhideServiceType('none');
unhideServiceType('product');
unhideServiceType('hosting');
unhideServiceType('domain');
document.getElementById('vgroup').value='0';
}
}
} else if (type == 'product') {
if(document.getElementById(service_type).checked == true) {
unhideServiceType(type);
hideServiceType('none');
hideServiceType('hosting');
hideServiceType('domain');
document.getElementById('vproduct').value='1';
} else {
if(document.getElementById('service_group').checked == true) {
unhideServiceType('hosting');
} else {
unhideServiceType('none');
unhideServiceType('group');
unhideServiceType('hosting');
unhideServiceType('domain');
}
document.getElementById('vproduct').value='0';
}
} else if (type == 'hosting') {
if(document.getElementById(service_type).checked == true) {
unhideServiceType(type);
hideServiceType('none');
hideServiceType('product');
hideServiceType('domain');
document.getElementById('vhosting').value='1';
} else {
if(document.getElementById('service_group').checked == true) {
unhideServiceType('product');
} else {
unhideServiceType('none');
unhideServiceType('group');
unhideServiceType('product');
unhideServiceType('domain');
}
document.getElementById('vhosting').value='0';
}
} else if (type == 'domain') {
if(document.getElementById(service_type).checked == true) {
unhideServiceType(type);
hideServiceType('group');
hideServiceType('product');
hideServiceType('hosting');
hideServiceType('none');
document.getElementById('billing_type').style.color='999999';
document.getElementById('billing_type0').checked=true;
document.getElementById('billing_type0').disabled=true;
document.getElementById('billing_type1').checked=false;
document.getElementById('billing_type1').disabled=true;
document.getElementById('vdomain').value='0';
} else {
unhideServiceType('group');
unhideServiceType('product');
unhideServiceType('hosting');
unhideServiceType('none');
document.getElementById('billing_type').style.color='000000';
document.getElementById('billing_type0').disabled=false;
document.getElementById('billing_type1').disabled=false;
document.getElementById('vdomain').value='0';
}
}
updateTR();
}
function clearall()
{
document.getElementById('do').value='service:add_tpl';
document.getElementById('clearall').value='1';
document.getElementById('vgroup').value='0';
document.getElementById('vproduct').value='0';
document.getElementById('vhosting').value='0';
document.getElementById('vdomain').value='0';
document.forms.service_add.submit();
}
function domainUpdate(domain,tld,type)
{
document.forms.service_add.domain_name.value = domain;
document.forms.service_add.domain_tld.value = tld;
document.forms.service_add.domain_option.value = type;
}
</script>
{/literal}
<form id="service_add" name="service_add" 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 class="table_heading">
<center>
<input type="hidden" name="_page" value="invoice:add">
<input type="hidden" name="_page_current" value="invoice:add">
{translate module=service}
title_add
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="body">
<tr>
<td><b>
{translate module=service}
field_account_id
{/translate}
</b> </td>
</tr>
<tr>
<td>
{html_select_account name="service_account_id" default=$VAR.service_account_id}
</td>
</tr>
<tr>
<td><b>
{translate module=service}
field_product_id
{/translate}
</b></td>
</tr>
<tr>
<td>
<select name="product_id">
{foreach from=$prod_menu item=p}
<option value={$p.id}{if $VAR.product_id == $p.id} selected{/if}>
{$p.sku}
</option>
{/foreach}
</select>
<a href="javascript:document.getElementById('changeproduct').value='1'; javascript:document.getElementById('do').value='service:add_tpl'; javascript:document.getElementById('clearall').value=0; document.forms.service_add.submit()">Select
Product</a></td>
</tr>
<tr>
<td><b>
{translate module=service}
field_sku
{/translate}
</b></td>
</tr>
<tr>
<td>
{if $product.sku != ""}
<input type="text" name="service_sku" value="{$product.sku}" maxlength="32">
{else}
<input type="text" name="service_sku" value="{$VAR.service_sku}" maxlength="32">
{/if}
<a href="javascript:clearall()">Clear &amp; Configure Manually</a>
</td>
</tr>
<tr>
<td><b>
{translate module=service}
field_type
{/translate}
</b></td>
</tr>
<tr>
<td> <service_none id="service_noneTag">
<input type="checkbox" id="service_none" name="service_none" value="none" onChange="ServiceType(this.value);">
None </service_none> <service_group id="service_groupTag">
<input type="checkbox" id="service_group" name="service_group" value="group" onChange="ServiceType(this.value);">
Group Access </service_group> <service_product id="service_productTag">
<input type="checkbox" id="service_product" name="service_product" value="product" onChange="ServiceType(this.value);">
Product Plugin </service_product> <service_hosting id="service_hostingTag">
<input type="checkbox" id="service_hosting" name="service_hosting" value="hosting" onChange="ServiceType(this.value);">
Hosting <service_domain id="service_domainTag">
<input type="hidden" id="service_domain" name="service_domain" value="domain">
<!-- not ready for production
<input type="checkbox" id="service_domain" name="service_domain" value="domain" onChange="ServiceType(this.value);">
Domain </service_domain>
-->
</td>
</tr>
<tr>
<td><b>
{translate module=service}
field_price_type
{/translate}
</b></td>
</tr>
<tr>
<td>
<div id="billing_type">
<input type="radio" id="billing_type0" name="billing_type" value="0" onChange="updateTR()" checked>
{translate module=product}
price_type_one
{/translate}
<input type="radio" id="billing_type1" name="billing_type" value="1" onChange="updateTR()" {if $product.price_type == 1}checked{/if}>
{translate module=product}
price_type_recurr
{/translate}
</div>
</td>
</tr>
<tr>
<td valign="middle" align="center"> <b><a href="javascript:document.getElementById('do').value='service:add'; javascript:document.getElementById('page').value='service:add'; document.forms.service_add.submit();">
{translate}
submit
{/translate}
</a></b>
<input type="hidden" id="do" name="do[]" value="service:add_tpl">
<input type="hidden" id="page" name="_page" value="service:add">
<input type="hidden" name="_page_current" value="service:add">
<input type="hidden" id="changeproduct" name="changeproduct" value="0">
<input type="hidden" id="clearall" name="clearall" value="0">
<input type="hidden" id="vnone" name="vnone" value="0">
<input type="hidden" id="vhosting" name="vhosting" value="0">
<input type="hidden" id="vproduct" name="vproduct" value="0">
<input type="hidden" id="vgroup" name="vgroup" value="0">
<input type="hidden" id="vdomain" name="vdomain" value="0">
<input type="hidden" id="vrecurring" name="vrecurring" value="0">
<input type="hidden" id="domain_name" name="domain_name" value="0">
<input type="hidden" id="domain_tld" name="domain_tld" value="0">
<input type="hidden" id="domain_option" name="domain_option" value="0">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<div id="recurring" {style_hide}>
<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="49%"><b>
{translate module=product}
field_price_base
{/translate}
</b></td>
<td width="51%">
<input type="text" name="product_price_base" value="{$product.price_base}" size="5">
{$list->currency_iso("")}
</td>
</tr>
<tr valign="top" class="row1">
<td width="49%"><b>
{translate module=service}
field_date_last_invoice
{/translate}
</b></td>
<td width="51%">
{ $list->calender_view("date_last_invoice", 0, "form_field", $service.id) }
</td>
</tr>
<tr valign="top" class="row1">
<td width="49%"><b>
{translate module=product}
field_price_recurr_default
{/translate}
</b></td>
<td width="51%">
<select name="product_price_recurr_default" >
<option value="0" {if $product.price_recurr_default == "0"} selected{/if}>
{translate module=product}
recurr_week
{/translate}
</option>
<option value="1" {if $product.price_recurr_default == "1"} selected{/if}>
{translate module=product}
recurr_month
{/translate}
</option>
<option value="2" {if $product.price_recurr_default == "2"} selected{/if}>
{translate module=product}
recurr_quarter
{/translate}
</option>
<option value="3" {if $product.price_recurr_default == "3"} selected{/if}>
{translate module=product}
recurr_semianual
{/translate}
</option>
<option value="4" {if $product.price_recurr_default == "4"} selected{/if}>
{translate module=product}
recurr_anual
{/translate}
</option>
<option value="5" {if $product.price_recurr_default == "5"} selected{/if}>
{translate module=product}
recurr_twoyear
{/translate}
</option>
<option value="6" {if $product.price_recurr_default == "6"} selected{/if}>
{translate module=product}
recurr_threeyear
{/translate}
</option>
</select>
</td>
</tr>
<tr valign="top" class="row1">
<td width="49%"><b>
{translate module=product}
field_taxable
{/translate}
</b></td>
<td width="51%">
{ $list->bool("product_taxable", $product.taxable, "form_menu") }
</td>
</tr>
<tr valign="top" class="row1">
<td width="49%"><b>
{translate module=product}
field_price_recurr_type
{/translate}
</b></td>
<td width="51%"><b>
{translate module=product}
user_options
{/translate}
</b></td>
</tr>
<tr valign="top" class="row1">
<td width="49%">
<input type="radio" id="recurr_type0" name="product_price_recurr_type" value="0" {if $product.price_recurr_type == "0" || $product.price_recurr_type == ""}checked{/if} onClick="document.getElementById('billing_weekday').style.display = 'none'">
{translate module=product}
recurr_type_aniv
{/translate}
<br>
<input type="radio" id="recurr_type1" name="product_price_recurr_type" value="1" {if $product.price_recurr_type == "1"}checked{/if} onClick="document.getElementById('billing_weekday').style.display='block'">
{translate module=product}
recurr_type_fixed
{/translate}
<br>
<div id="billing_weekday" style="dispay:none">
{translate module=product}
field_price_recurr_weekday
{/translate}
<input type="text" name="product_price_recurr_weekday" value="{if $product.price_recurr_weekday != ""}{$product.price_recurr_weekday}{else}{$smarty.const.BILLING_WEEKDAY}{/if}" size="2" maxlength="2">
(1-28)
</div>
<script language=javascript>
if(document.getElementById('recurr_type0').checked == true) document.getElementById('billing_weekday').style.display='none';
</script>
</td>
<td width="51%">
{ $list->bool("product_price_recurr_schedule", $product.price_recurr_schedule, "form_menu") }
{translate module=product}
field_price_recurr_schedule
{/translate}
<br>
{ $list->bool("product_price_recurr_cancel", $product.price_recurr_cancel, "form_menu") }
{translate module=product}
field_price_recurr_cancel
{/translate}
<br>
{ $list->bool("product_price_recurr_modify", $product.price_recurr_modify, "form_menu") }
{translate module=product}
field_price_recurr_modify
{/translate}
</td>
</tr>
<tr valign="top" class="row1">
<td width="49%"><b>
{translate module=service}
field_account_billing_id
{/translate}
</b> </td>
<td width="51%">
{ $list->menu_cc_admin("account_billing_id", $VAR.service_account_id, $VAR.ccnum, "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</div>
<div id="group" {style_hide}>
<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="product_assoc_grant_group_type" value="0" {if $product.assoc_grant_group_type == "0" || $product.assoc_grant_group_type == ""}checked{/if}>
{translate module=product}
assoc_group_limited
{/translate}
<input type="text" name="product_assoc_grant_group_days" value="{$product.assoc_grant_group_days}" size="3">
<br>
<input type="radio" name="product_assoc_grant_group_type" value="1" {if $product.assoc_grant_group_type == "1"}checked{/if}>
{translate module=product}
assoc_group_subscription
{/translate}
<br>
<input type="radio" name="product_assoc_grant_group_type" value="2" {if $product.assoc_grant_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($product.assoc_grant_group, "product_assoc_grant_group", "group", "name", "10", "", "form_menu") }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</div>
<div id="hosting" {style_hide}>
{if $list->is_installed('host_server')}
<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" height="55">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="50%">
{translate module=product}
field_host_server_id
{/translate}
</td>
<td width="50%">
{ $list->menu("no", "product_host_server_id", "host_server", "name", $product.host_server_id, "\" onchange=\"submit();") }
<a href="javascript:document.forms.service_add.submit()">Configure</a>
</td>
</tr>
<tr>
<td width="50%">
{translate module=service}
field_domain_name
{/translate}
</td>
<td width="50%">
<input type="text" name="host_domain_name" value="{$VAR.host_domain_name}">
.
<input type="text" name="host_domain_tld" size="5" value="{$VAR.host_domain_tld}">
</td>
</tr>
<tr>
<td width="50%">
{translate module=service}
field_host_ip
{/translate}
</td>
<td width="50%">
<input type="text" name="host_ip" value="{$VAR.host_ip}">
</td>
</tr>
<tr>
<td width="50%">
{translate module=service}
field_host_username
{/translate}
</td>
<td width="50%">
<input type="text" name="host_username" value="{$VAR.host_username}">
</td>
</tr>
<tr>
<td width="50%">
{translate module=service}
field_host_password
{/translate}
</td>
<td width="50%">
<input type="text" name="host_password" value="{$VAR.host_password}">
</td>
</tr>
</table>
</td>
</tr>
{ if ($list->smarty_array("host_server","provision_plugin", "", "plugin")) }
{foreach from=$plugin item=arr}
{if $product.host_server_id == $arr.id}
<tr valign="top">
<td width="65%" class="row1">
{assign var="afile" value=$arr.provision_plugin}
{assign var="ablock" value="host_provision_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
<iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
</td>
</tr>
{/if}
{/foreach}
{/if}
</table>
</td>
</tr>
</table>
<br>
{/if}
</div>
<div id="product" {style_hide}>
<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_product
{/translate}
</center>
</td>
</tr>
<tr valign="top">
<td width="65%" class="row1">
<table width="100%" border="0" cellspacing="2" cellpadding="1" class="row1">
<tr>
<td width="50%"> Plugin to Enable</td>
<td width="50%">
{ $list->menu_files("", "product_prod_plugin_file", $product.prod_plugin_file, "product", "", ".php", "\" onchange=\"document.product_view.submit();") }
<a href="javascript:document.forms.service_add.submit()">Configure</a>
</td>
</tr>
</table>
</td>
</tr>
{ if $product.prod_plugin_file != ""}
<tr valign="top">
<td width="65%" class="row1">
{assign var="afile" value=$product.prod_plugin_file}
{assign var="ablock" value="product_plugin:plugin_prod_"}
{assign var="blockfile" value="$ablock$afile"}
{ $block->display($blockfile) }
</td>
</tr>
{/if}
</table>
</td>
</tr>
</table>
<br>
</div>
<div id="domain" {style_hide}>
{if $list->is_installed('host_tld')}
<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="2" cellpadding="1" class="row1">
<tr>
<td width="29%" bgcolor="#FFFFFF">
<p>
<input type="radio" id="register" name="domain_type" value="register" onClick="domainUpdate('0','0','register'); showIFrame('iframeDomainDetails',480,95,'?_page=host_tld:iframe_register&_escape=1');">
{translate module=product}
domain_register
{/translate}
<br>
<input type="radio" id="transfer" name="domain_type" value="transfer" onClick="domainUpdate('0','0','transfer'); showIFrame('iframeDomainDetails',480,110,'?_page=host_tld:iframe_transfer&_escape=1');">
{translate module=product}
domain_transfer
{/translate}
{/if}
<br>
<input type="radio" id="ns_transfer" name="domain_type" value="ns_transfer" onClick="domainUpdate('0','0','ns_transfer'); showIFrame('iframeDomainDetails',480,70,'?_page=host_tld:iframe_ns_transfer&_escape=1');">
{translate module=product}
domain_ns_transfer
{/translate}
{if $product.host_allow_host_only}
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
{/if}
<br>
</div>
<center> <iframe name="iframeDomainDetails" id="iframeDomainDetails" style="border:0px; width:100%; height:0px;" scrolling="no" width="100%" allowtransparency="false" frameborder="0" class="body" SRC="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"><br></iframe> </center>
<div id="none" style="display:none"></div>
</form>
{/if}
<script language=javascript>
{if $VAR.vnone == 1}
document.getElementById('service_none').checked = true;
ServiceType('none');
{elseif $product.group || $VAR.vgroup == 1}
document.getElementById('service_group').checked = true;
ServiceType('group');
{/if}
{if $product.host == 1 || $VAR.vhosting == 1}
document.getElementById('service_hosting').checked = true;
ServiceType('hosting');
{elseif $product.prod_plugin == 1 || $VAR.vproduct == 1}
document.getElementById('service_product').checked = true;
ServiceType('product');
{/if}
{if $VAR.vrecurring == 1}
document.getElementById('billing_type1').checked = true;
{/if}
updateTR();
</script>

View File

@@ -0,0 +1,99 @@
{ $block->display("core:top_clean") }
{$method->exe("service","search_show")}
{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>
{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 -->
<!-- LOOP THROUGH EACH RECORD -->
{foreach from=$service item=record}
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1); parent.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="5%" height="20">
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
</td>
<td width="29%" height="20">&nbsp;
{$list->date_time($record.date_orig)}
</td>
<td width="54%" height="20">&nbsp;
{$record.sku}
&gt;
{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="12%" height="20" valign="middle">
{if $record.active == "1"}
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0">
{else}
<img 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>

View File

@@ -0,0 +1,413 @@
{if $SESS_LOGGED == 1}
{$method->exe("service", "modify")}
<!-- 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)}
&nbsp;
{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}
&nbsp; + &nbsp;
{$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} >
&nbsp;
{$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" >
&nbsp;
{$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>
&nbsp;
{$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>
&nbsp;
{$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}

View File

@@ -0,0 +1,2 @@
{ $block->display("core:top_clean") } <br>
<div align="center"><b>{translate module=service}none{/translate}</b></div>

View File

@@ -0,0 +1,454 @@
{ $method->exe("service","search_form") }
{ 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}>
&nbsp;&nbsp;
{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}>
&nbsp;&nbsp;
{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}>
&nbsp;&nbsp;
{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>
&nbsp;&nbsp; </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}>
&nbsp;&nbsp;
{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}>
&nbsp;&nbsp;
{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") }
{/if}

View File

@@ -0,0 +1,169 @@
{$method->exe("service","search_show")}
{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}
{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">&nbsp;</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">&nbsp;</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">&nbsp;
{$record.last_name},
{$record.first_name}
</td>
<td width="450"> &nbsp;
{$record.sku}
&gt;
{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"> &nbsp;
{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,"")}
&nbsp; </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>

View File

@@ -0,0 +1,409 @@
{if $SESS_LOGGED == 1}
{$method->exe("service", "user_modify")}
<!-- 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>
{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)}
&nbsp;
{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}
&nbsp; + &nbsp;
{$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} >
&nbsp;
{$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" >
&nbsp;
{$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>
&nbsp;
{$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>
&nbsp;
{$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}
{/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}

View File

@@ -0,0 +1,131 @@
{$method->exe("service","user_search_show")}
{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>
{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}
<!-- 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="3%" class="table_heading">&nbsp;</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">&nbsp;</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%">&nbsp;
{$list->date($record.date_orig)}
</td>
<td width="30%">&nbsp;
{$record.sku}
<font size="1">(
{translate module=service}
{$record.type}
{/translate}
) </font></td>
<td width="25%"> &nbsp;
{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,"")}
&nbsp; </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>

View File

@@ -0,0 +1,620 @@
{if $smarty.const.SESS_LOGGED == false}
{$block->display("account: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}
<!-- Display the field validation -->
{if $form_validation}
{ $block->display("core:alert_fields") }
{/if}
<!-- 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%">&nbsp; </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%">&nbsp; </td>
<td width="30%">&nbsp; </td>
</tr>
<tr valign="top">
<td width="30%">{voip_did service_id=$service.id}</td>
<td width="40%">&nbsp; </td>
<td width="30%">&nbsp; </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}
{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)} &nbsp; &nbsp;
<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>
{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)}
&nbsp;&nbsp;
{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}
{/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>&nbsp; <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}
{/if}
{/foreach}
{/if}
{/if}

File diff suppressed because it is too large Load Diff