Initial Commit of AgileBill Open Source
This commit is contained in:
182
themes/default/blocks/invoice/add.tpl
Normal file
182
themes/default/blocks/invoice/add.tpl
Normal file
@@ -0,0 +1,182 @@
|
||||
<!-- Display the form to collect the input values -->
|
||||
{if $VAR.invoice_account_id == "" }
|
||||
<form id="invoice_add" name="invoice_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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=invoice}title_add{/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=invoice}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="invoice_account_id" default=$VAR.invoice_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
{ if $list->is_installed('affiliate') == 1 }
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_affiliate name="aid" default=$VAR.aid}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%"></td>
|
||||
<td width="65%">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
<input type="hidden" name="_page" value="invoice:add">
|
||||
<input type="hidden" name="_page_current" value="invoice:add">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{else}
|
||||
<form id="invoice_add" name="invoice_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 width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=invoice}
|
||||
title_add
|
||||
{/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=invoice}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="invoice_account_id" default=$VAR.invoice_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
add_product
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "invoice_product_id", "product", "sku", "all", "\" onchange=\"showProduct(this.value)\"") }
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td align="center"> <a href="javascript:addAdHoc();">
|
||||
{translate module=invoice}
|
||||
add_ad_hoc
|
||||
{/translate}</a> |
|
||||
{if $list->is_installed('host_tld')}
|
||||
<a href="javascript:domainSearch();">
|
||||
{translate module=invoice}
|
||||
add_domain
|
||||
{/translate}
|
||||
</a>
|
||||
<input type="hidden" name="domain_name" id="domain_name">
|
||||
<input type="hidden" name="domain_tld" id="domain_tld">
|
||||
{/if} |
|
||||
<a href="javascript:showDiscount()">
|
||||
{translate module=invoice}
|
||||
add_discount
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showCart()">
|
||||
{translate module=invoice}
|
||||
add_view_items
|
||||
{/translate}
|
||||
</a> | <a href="javascript:showCheckout()">
|
||||
{translate module=invoice}
|
||||
add_finalize
|
||||
{/translate}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{literal}
|
||||
<center>
|
||||
<BR>
|
||||
<iframe name="iframeInvoice" id="iframeInvoice" style="border:0px; width:0px; height:0px;" scrolling="auto" ALLOWTRANSPARENCY="true" frameborder="0" SRC="themes/{/literal}{$THEME_NAME}{literal}/IEFrameWarningBypass.htm"></iframe>
|
||||
</center>
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
|
||||
var account_id = '{/literal}{$VAR.invoice_account_id}{literal}';
|
||||
|
||||
function showCart() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=cart:admin_view&_escape=1&account_id='+account_id);
|
||||
}
|
||||
|
||||
function showCheckout() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'{/literal}{$SSL_URL}{literal}admin.php?_page=checkout:admin_checkout&_escape=1&account_id='+account_id+'&s='+SESS);
|
||||
}
|
||||
|
||||
function showProduct(product_id) {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=product:admin_details&_escape=1&id='+product_id+'&account_id='+account_id);
|
||||
}
|
||||
|
||||
function showDiscount() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=discount:add&discount_avail_account_id={/literal}{$VAR.invoice_account_id}{literal}');
|
||||
}
|
||||
|
||||
function domainSearch() {
|
||||
var domain = document.getElementById('domain_name').value;
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=host_tld:admin_search&domain='+domain+'&account_id='+account_id);
|
||||
}
|
||||
|
||||
function addAdHoc() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=cart:ad_hoc&account_id='+account_id);
|
||||
}
|
||||
|
||||
function domainUpdate() {
|
||||
}
|
||||
|
||||
showCart();
|
||||
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
38
themes/default/blocks/invoice/checkout_multiple.tpl
Normal file
38
themes/default/blocks/invoice/checkout_multiple.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{$method->exe("invoice","checkout_multiple_preview")}
|
||||
{if $total}
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td valign="top" align="center" width="35%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="74%"><div align="center">{translate module=invoice total=$total}due_invoices_pay{/translate}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
{/if}
|
||||
|
||||
<!-- Display checkout optoins -->
|
||||
{ $block->display("invoice:checkoutoptions") }
|
||||
<br>
|
||||
<br>
|
7
themes/default/blocks/invoice/checkoutoption.tpl
Normal file
7
themes/default/blocks/invoice/checkoutoption.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
{$method->exe("checkout","checkoutoption")}
|
||||
{if $plugin_template != false}
|
||||
{ $block->display($plugin_template) }
|
||||
{else}
|
||||
<p>Sorry, that checkout option is not valid.</p>
|
||||
{/if}
|
||||
|
63
themes/default/blocks/invoice/checkoutoptions.tpl
Normal file
63
themes/default/blocks/invoice/checkoutoptions.tpl
Normal file
@@ -0,0 +1,63 @@
|
||||
<script language="javascript">var confirmCheckoutMsg='{translate module=checkout}redirect{/translate}';</script>
|
||||
<script src="themes/default/blocks/checkout/ajax.js" type="text/javascript"></script>
|
||||
|
||||
<!-- CHECKOUT CONFIRM -->
|
||||
<div id="checkout_confirm_div">
|
||||
{if $VAR.option!=''}{$method->exe("checkout","checkoutoption")}{if $plugin_template != false}{$block->display($plugin_template)}{/if}{/if}
|
||||
</div>
|
||||
|
||||
<p id="checkout_options_show" {style_hide}>
|
||||
<a href="#" onClick="document.getElementById('checkout_confirm_div').style.display='none';document.getElementById('checkout_options_show').style.display='none';document.getElementById('checkout_options').style.display='block';">View More Payment Options</a>
|
||||
</p>
|
||||
|
||||
<!-- CHECKOUT OPTIONS -->
|
||||
<div id="checkout_options">
|
||||
<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">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{translate module=invoice}pay_invoice{/translate}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="4" cellpadding="3" bgcolor="#FFFFFF">
|
||||
{if $checkoutoptions}
|
||||
{foreach from=$checkoutoptions item=checkout key=key}
|
||||
<tr valign="top">
|
||||
<td width="20%"><a href="javascript:void(0);" onClick="changeCheckoutOption({$checkout.fields.id},'{if $VAR._page=='invoice:checkout_multiple'}multi{else}invoice{/if}','{$invoice.id}',0)">{if $checkout.fields.graphic_url==''}{$checkout.fields.name}{else}<img src="{$checkout.fields.graphic_url}" alt="{$checkout.fields.name}" border="0">{/if}</a></td>
|
||||
<td width="80%">{$checkout.fields.description} </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr valign="top">
|
||||
<td>{translate module=cart}no_checkout_options{/translate}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<!-- SINGLE CHECKOUT OPTIONS -->
|
||||
{if $VAR.option=='' && $checkout_c == 1}
|
||||
<script language=javascript>changeCheckoutOption(last_checkout_id,{$invoice.id});</script>
|
||||
{elseif $VAR.option>0}
|
||||
<script language=javascript>
|
||||
{literal}
|
||||
try { document.getElementById('checkout_options_show').style.display='block'; } catch(e) {}
|
||||
try { document.getElementById('checkout_options').style.display='none'; } catch(e) {}
|
||||
{/literal}
|
||||
</script>
|
||||
{/if}
|
73
themes/default/blocks/invoice/invoice.tpl
Normal file
73
themes/default/blocks/invoice/invoice.tpl
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
<table width="200" border="0" cellspacing="0" cellpadding="0" class="body">
|
||||
<tr>
|
||||
<td valign="top" align="center" width="35%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<form name="form1" method="post" action="">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td width="65%" class="table_heading">
|
||||
<div align="center">
|
||||
{translate module=invoice}
|
||||
menu
|
||||
{/translate}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="74%">
|
||||
{translate module=invoice}
|
||||
{/translate}
|
||||
Due Invoices</td>
|
||||
<td width="26%" align="right"> <a href="?_page=core:user_search&module=invoice&_next_page=user_search_show&invoice_billing_status=0">
|
||||
{translate module=invoice}
|
||||
menu_view
|
||||
{/translate}
|
||||
</a> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="74%">
|
||||
{translate module=invoice}
|
||||
{/translate}
|
||||
Paid Invoices</td>
|
||||
<td width="26%" align="right"> <a href="?_page=core:user_search&module=invoice&_next_page=user_search_show&invoice_billing_status=1">
|
||||
{translate module=invoice}
|
||||
menu_view
|
||||
{/translate}
|
||||
</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="74%">
|
||||
{translate module=invoice}
|
||||
{/translate}
|
||||
All Invoices</td>
|
||||
<td width="26%" align="right"> <a href="?_page=core:user_search&module=invoice&_next_page=user_search_show">
|
||||
{translate module=invoice}
|
||||
menu_view
|
||||
{/translate}
|
||||
</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
1
themes/default/blocks/invoice/pdf.tpl
Normal file
1
themes/default/blocks/invoice/pdf.tpl
Normal file
@@ -0,0 +1 @@
|
||||
{ $method->exe("invoice","pdf") }{ if ($method->result == FALSE) }{ $block->display("core:method_error") }{else}{/if}
|
72
themes/default/blocks/invoice/reconcile.tpl
Normal file
72
themes/default/blocks/invoice/reconcile.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="reconcile" 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>
|
||||
<b>
|
||||
{translate module=invoice}
|
||||
title_reconcile
|
||||
{/translate}
|
||||
{$VAR.id}
|
||||
</b>
|
||||
</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=invoice}
|
||||
rec_amt
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input id="focus" type="text" name="amount" value="{$VAR.amount}" size="5">
|
||||
{ $list->currency_iso('') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
memo
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="memo" cols="60" rows="2">{$VAR.memo}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
<div align="left">
|
||||
<input type="hidden" name="_page" value="invoice:reconcile">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" name="do[]" value="invoice:reconcile">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" name="_escape" value="1">
|
||||
<input type="hidden" name="redirect" value="?_page=invoice:view&id={$VAR.id}">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</div>
|
||||
</td>
|
||||
<td width="65%">
|
||||
<div align="right"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<script language="JavaScript">
|
||||
document.getElementById('focus').focus();
|
||||
</script>
|
72
themes/default/blocks/invoice/refund.tpl
Normal file
72
themes/default/blocks/invoice/refund.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{ $block->display("core:top_clean") }
|
||||
|
||||
<!-- Display each record -->
|
||||
<form name="reconcile" 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>
|
||||
<b>
|
||||
{translate module=invoice}
|
||||
title_refund
|
||||
{/translate}
|
||||
{$VAR.id}
|
||||
</b>
|
||||
</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=invoice}
|
||||
ref_amt
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input id="focus" type="text" name="amount" value="{$VAR.amount}" size="5">
|
||||
{ $list->currency_iso('') }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
memo
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<textarea name="memo" cols="60" rows="2">{$VAR.memo}</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
<div align="left">
|
||||
<input type="hidden" name="_page" value="invoice:refund">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" name="do[]" value="invoice:refund">
|
||||
<input type="hidden" name="id" value="{$VAR.id}">
|
||||
<input type="hidden" name="_escape" value="1">
|
||||
<input type="hidden" name="redirect" value="?_page=invoice:view&id={$VAR.id}">
|
||||
<input type="submit" name="Submit" value="{translate}submit{/translate}" class="form_button">
|
||||
</div>
|
||||
</td>
|
||||
<td width="65%">
|
||||
<div align="right"> </div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<script language="JavaScript">
|
||||
document.getElementById('focus').focus();
|
||||
</script>
|
296
themes/default/blocks/invoice/search_form.tpl
Normal file
296
themes/default/blocks/invoice/search_form.tpl
Normal file
@@ -0,0 +1,296 @@
|
||||
{ $method->exe("invoice","search_form") }
|
||||
{ if ($method->result == FALSE) }
|
||||
{ $block->display("core:method_error") }
|
||||
{else}
|
||||
<form name="invoice_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=invoice}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=invoice}
|
||||
field_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="invoice_id" value="{$VAR.invoice_id}" {if $invoice_id == true}class="form_field_error"{/if}>
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_account_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_account name="invoice_account_id" default=$VAR.invoice_account_id}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{if $list->is_installed('affiliate')}
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_affiliate_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{html_select_affiliate name="invoice_affiliate_id" default=$VAR.invoice_affiliate_id}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
{if $list->is_installed('campaign')}
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_campaign_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("no", "invoice_campaign_id", "campaign", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_process_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_process_status", "all", "form_menu") }
|
||||
</td>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_refund_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_refund_status", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
paid
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_billing_status", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_print_status
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->bool("invoice_print_status", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_checkout_plugin_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "invoice_checkout_plugin_id", "checkout", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_billed_currency_id
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "invoice_billed_currency_id", "currency", "name", "all", "form_menu") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("invoice_date_orig", $VAR.invoice_date_orig, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_due_date
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("invoice_due_date", $VAR.invoice_due_date, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
field_notice_next_date
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->calender_search("invoice_notice_next_date", $VAR.invoice_notice_next_date, "form_field", "") }
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=invoice}
|
||||
search_memo
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="join_memo_text" value="{$VAR.join_memo_text}">
|
||||
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
{if $list->is_installed('host_server') }
|
||||
<tr valign="top">
|
||||
<td width="35%">
|
||||
{translate module=service}
|
||||
field_domain_name
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
<input type="text" name="join_domain_name" value="{$VAR.join_domain_name}">
|
||||
.
|
||||
<input type="text" name="join_domain_tld" value="{$VAR.join_domain_tld}" size="6">
|
||||
{translate}
|
||||
search_partial
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
|
||||
<!-- Define the results per page -->
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
{translate module=product}
|
||||
field_sku
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="65%">
|
||||
{ $list->menu("", "join_product_id", "product", "sku", "all", "\" onchange=\"showAttributes(this)") }
|
||||
{literal}<script language="javascript">
|
||||
function showAttributes(obj)
|
||||
{
|
||||
if(obj.value == '')
|
||||
{
|
||||
document.getElementById("attributes1").style.display='none';
|
||||
document.getElementById("attributes2").style.display='none';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("attributes1").style.display='block';
|
||||
document.getElementById("attributes2").style.display='block';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="row1" valign="top">
|
||||
<td width="35%">
|
||||
<DIV id="attributes1" style="display:none">
|
||||
{translate module=product}
|
||||
attributes
|
||||
{/translate}
|
||||
</DIV>
|
||||
</td>
|
||||
<td width="65%">
|
||||
<DIV id="attributes2" style="display:none">
|
||||
<input type="text" name="item_attributes[0][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[0][1]" class=form_field size="16"> <br>
|
||||
<input type="text" name="item_attributes[1][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[1][1]" class=form_field size="16"> <br>
|
||||
<input type="text" name="item_attributes[2][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[2][1]" class=form_field size="16"> <br>
|
||||
<input type="text" name="item_attributes[3][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[3][1]" class=form_field size="16"> <br>
|
||||
<input type="text" name="item_attributes[4][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[4][1]" class=form_field size="16"> <br>
|
||||
<input type="text" name="item_attributes[5][0]" class=form_field size="16"> =
|
||||
<input type="text" name="item_attributes[5][1]" class=form_field size="16">
|
||||
</DIV>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<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="{$invoice_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=$invoice 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="invoice">
|
||||
<input type="hidden" name="_next_page_one" value="view">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{ $block->display("core:saved_searches") }
|
||||
{ $block->display("core:recent_searches") }
|
||||
{/if}
|
148
themes/default/blocks/invoice/search_show.tpl
Normal file
148
themes/default/blocks/invoice/search_show.tpl
Normal file
@@ -0,0 +1,148 @@
|
||||
{$method->exe("invoice","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=invoice}search_result_amount{/translate}
|
||||
<BR><br>
|
||||
|
||||
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'invoice';
|
||||
{/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="25" class="table_heading"> </td>
|
||||
<td width="166" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_id{/translate}{literal}','id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="256" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_account_id{/translate}{literal}','account_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="233" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_date_orig{/translate}{literal}','date_orig'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="120" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_total_amt{/translate}{literal}','total_amt'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="167" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice: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="25">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="166">
|
||||
{ $record.id}
|
||||
</td>
|
||||
<td width="256">
|
||||
{$record.last_name},
|
||||
{$record.first_name}
|
||||
</td>
|
||||
<td width="233">
|
||||
{$list->date_time($record.date_orig)}
|
||||
</td>
|
||||
<td width="120">
|
||||
<div align="right">
|
||||
{$list->format_currency_num($record.total_amt, $record.billed_currency_id)}
|
||||
</div>
|
||||
</td>
|
||||
<td width="167">
|
||||
<center>
|
||||
{if $record.billing_status == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" border="0" vspace="2" hspace="2">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" border="0" vspace="2" hspace="2">
|
||||
{/if}
|
||||
{if $record.process_status == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" border="0" vspace="2" hspace="2">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" border="0" vspace="2" hspace="2">
|
||||
{/if}
|
||||
<a href="?_page=core:search&module=service&service_invoice_id={$record.id}"><img title=Services src="themes/{$THEME_NAME}/images/icons/tools_16.gif" border="0" alt="Services" vspace="2" hspace="2"></a><a href="?_page=account_admin:view&id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" border="0" vspace="2" hspace="2"></a>
|
||||
</center>
|
||||
</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="javascript:all_select(record_arr);" onClick="NewWindow('ExportWin','toolbar=no,status=no,width=300,height=300','?_page=core:export_search&module=invoice&_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=invoice: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=invoice:search_form">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}"></a> <a href="?_page=invoice:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=invoice}title_add{/translate}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
48
themes/default/blocks/invoice/thankyou.tpl
Normal file
48
themes/default/blocks/invoice/thankyou.tpl
Normal file
@@ -0,0 +1,48 @@
|
||||
<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=invoice}
|
||||
thank_you
|
||||
{/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="65%">
|
||||
{translate module=invoice}
|
||||
thank_you_text
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%">
|
||||
{if $VAR.id != ""}
|
||||
<a href="?id={$VAR.id}&_page={if $VAR._next_page != ""}{$VAR._next_page}{else}invoice:user_view{/if}">
|
||||
{translate module="invoice"}
|
||||
invoice_link
|
||||
{/translate}
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%"><a href="?_page=account:account">
|
||||
{translate module="invoice"}
|
||||
account_link
|
||||
{/translate}
|
||||
</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
160
themes/default/blocks/invoice/user_list.tpl
Normal file
160
themes/default/blocks/invoice/user_list.tpl
Normal file
@@ -0,0 +1,160 @@
|
||||
|
||||
|
||||
{$method->exe("invoice","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 = 'invoice';
|
||||
{/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="54" class="table_heading"> </td>
|
||||
<td width="143" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_id{/translate}{literal}','id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="155" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_account_id{/translate}{literal}','account_id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="196" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_date_orig{/translate}{literal}','date_orig'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="111" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_process_status{/translate}{literal}','process_status'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="152" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_total_amt{/translate}{literal}','total_amt'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="148" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_billed_amt{/translate}{literal}','billed_amt'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice: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="54">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="143">
|
||||
{ $record.id}
|
||||
</td>
|
||||
<td width="155">
|
||||
{$record.account_id}
|
||||
</td>
|
||||
<td width="196">
|
||||
{$list->date_time($record.date_orig)}
|
||||
</td>
|
||||
<td width="111">
|
||||
{if $record.process_status == "1"}
|
||||
{translate}
|
||||
true
|
||||
{/translate}
|
||||
{else}
|
||||
{translate}
|
||||
false
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="152">
|
||||
{$list->format_currency($record.total_amt, $record.billed_currency_id)}
|
||||
</td>
|
||||
<td width="148">
|
||||
{$list->format_currency($record.billed_amt, $record.billed_currency_id)}
|
||||
</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=invoice&_escape=&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=invoice:search_show&_print=true&_escape=true&order_by={$order}&search_id={$search_id}&limit={$limit}&page={$page}" target="_blank"><img src="themes/{$THEME_NAME}/images//icons/print_32.gif" border="0" alt="{translate}search_print_image{/translate}"></a>
|
||||
<a href="?_page=invoice:search_form"><img src="themes/{$THEME_NAME}/images/icons/srch_32.gif" border="0" alt="{translate}search_new_image{/translate}"></a>
|
||||
<a href="?_page=invoice:add"><img src="themes/{$THEME_NAME}/images/icons/add_32.gif" border="0" alt="{translate module=invoice}title_add{/translate}"></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
160
themes/default/blocks/invoice/user_search_show.tpl
Normal file
160
themes/default/blocks/invoice/user_search_show.tpl
Normal file
@@ -0,0 +1,160 @@
|
||||
{$method->exe("invoice","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 = 'invoice';
|
||||
{/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}
|
||||
|
||||
|
||||
{$method->exe("invoice","has_unpaid")}
|
||||
{if $has_unpaid}
|
||||
<br>
|
||||
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td valign="top" align="center" width="35%">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<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="row1">
|
||||
<table width="100%" border="0" cellspacing="5" cellpadding="1" class="row1">
|
||||
<tr>
|
||||
<td width="74%"> <div align="center">{translate module=invoice total=$has_unpaid}due_invoices_notice{/translate}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br><br>
|
||||
{/if}
|
||||
|
||||
|
||||
<!-- 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="53" class="table_heading"> </td>
|
||||
<td width="201" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_id{/translate}{literal}','id'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="256" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_date_orig{/translate}{literal}','date_orig'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="228" class="table_heading">
|
||||
{literal}
|
||||
<script language="JavaScript">
|
||||
document.write(search_heading('{/literal}{translate module=invoice}field_total_amt{/translate}{literal}','total_amt'));
|
||||
</script>
|
||||
{/literal}
|
||||
</td>
|
||||
<td width="114" class="table_heading"> </td>
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice item=record}
|
||||
<tr id="row{$record.id}" onClick="row_sel('{$record.id}',1);" onDblClick="window.location='?_page=invoice: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="53">
|
||||
<input type="checkbox" name="record{$record.id}" value="{$record.id}" onClick="row_sel('{$record.id}',1,'{$record._C}');">
|
||||
</td>
|
||||
<td width="201">
|
||||
{ $record.id}
|
||||
</td>
|
||||
<td width="256">
|
||||
{$list->date_time($record.date_orig)}
|
||||
</td>
|
||||
<td width="228">
|
||||
<div align="right">
|
||||
{$list->format_currency_num($record.total_amt, $record.actual_billed_currency_id)}
|
||||
</div>
|
||||
</td>
|
||||
<td width="114">
|
||||
<center>
|
||||
|
||||
{if $record.billing_status == "1"}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" border="0">
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" border="0">
|
||||
{/if}
|
||||
|
||||
{if $record.process_status == "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}
|
||||
</center>
|
||||
</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>
|
||||
<br>
|
||||
{if $has_unpaid}
|
||||
<input value="{translate module=invoice}pay_selected{/translate}" type="button" onClick="mass_do('', module+':checkout_multiple', limit, module);">
|
||||
{/if}
|
||||
<input type="submit" name="Submit" value="{translate}view{/translate}" onClick="mass_do('', module+':user_view', limit, module);" >
|
||||
{/if}
|
686
themes/default/blocks/invoice/user_view.tpl
Normal file
686
themes/default/blocks/invoice/user_view.tpl
Normal file
@@ -0,0 +1,686 @@
|
||||
{if $smarty.const.SESS_LOGGED == false}
|
||||
{$block->display("account:login")}
|
||||
{else}
|
||||
{if $SESS_LOGGED == "1" }
|
||||
{ $method->exe("invoice","user_view") } { if ($method->result == FALSE) } { $block->display("core:method_error") } {else}
|
||||
|
||||
<!-- prototype -->
|
||||
<script src="includes/javascript/prototype.js" type="text/javascript"></script>
|
||||
<script src="includes/javascript/effects.js" type="text/javascript"></script>
|
||||
<script src="includes/javascript/dragdrop.js" type="text/javascript"></script>
|
||||
<script src="includes/javascript/controls.js" type="text/javascript"></script>
|
||||
|
||||
{literal}
|
||||
<!-- Define the update delete function -->
|
||||
<script language="JavaScript">
|
||||
<!-- START
|
||||
var module = 'invoice';
|
||||
var locations = '{/literal}{$VAR.module_id}{literal}';
|
||||
if (locations != "")
|
||||
{
|
||||
refresh(0,'#'+locations)
|
||||
}
|
||||
// Mass update, view, and delete controller
|
||||
function delete_record(id,ids)
|
||||
{
|
||||
temp = window.confirm("{/literal}{translate}alert_delete{/translate}{literal}");
|
||||
if(temp == false) return;
|
||||
|
||||
var replace_id = id + ",";
|
||||
ids = ids.replace(replace_id, '');
|
||||
if(ids == '') {
|
||||
var url = '?_page=core:search&module=' + module + '&do[]=' + module + ':delete&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
return;
|
||||
} else {
|
||||
var page = 'view&id=' +ids;
|
||||
}
|
||||
|
||||
var doit = 'delete';
|
||||
var url = '?_page='+ module +':'+ page +'&do[]=' + module + ':' + doit + '&delete_id=' + id + COOKIE_URL;
|
||||
window.location = url;
|
||||
}
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
|
||||
<!-- Loop through each record -->
|
||||
{foreach from=$invoice item=invoice}
|
||||
|
||||
<!-- Display the field validation -->
|
||||
{if $form_validation}
|
||||
{ $block->display("core:alert_fields") }
|
||||
{/if}
|
||||
|
||||
<!-- checkout options -->
|
||||
{ if $invoice.billing_status == "0" }
|
||||
{ $block->display("invoice:checkoutoptions") }
|
||||
{/if}
|
||||
|
||||
|
||||
<form name="invoice_view" 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=invoice}
|
||||
title_view
|
||||
{/translate}
|
||||
{ $invoice.id }
|
||||
</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="row2">
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_date_orig
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_date_last
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_due_date
|
||||
{/translate}
|
||||
</b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="33%">
|
||||
{$list->date_time($invoice.date_orig)}
|
||||
</td>
|
||||
<td width="33%">
|
||||
{$list->date_time($invoice.date_last)}
|
||||
<input type="hidden" name="invoice_date_last" value="{$smarty.now}">
|
||||
</td>
|
||||
<td width="33%">
|
||||
{$list->date($invoice.due_date)}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</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="row2">
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_process_status
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%"> <b> <font color="#990000">
|
||||
{translate module=invoice}
|
||||
field_billing_status
|
||||
{/translate}
|
||||
</font></b></td>
|
||||
<td width="33%"> <b> <a href="?_page=invoice:pdf&id={$invoice.id}&_escape=true" target="_blank">
|
||||
{translate module=invoice}
|
||||
print_invoice
|
||||
{/translate}
|
||||
</a> </b> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="33%">
|
||||
{if $invoice.process_status == 1}
|
||||
{translate}true{/translate}
|
||||
{else}
|
||||
{translate}false{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
<td width="33%"> <b>
|
||||
{if $invoice.balance == 0}
|
||||
{translate module=invoice}
|
||||
paid
|
||||
{/translate}
|
||||
{else}
|
||||
{$list->format_currency_num($invoice.balance,$invoice.actual_billed_currency_id)}
|
||||
{/if}
|
||||
</b> </td>
|
||||
<td width="33%"> <a href="?_page=invoice:pdf&id={$invoice.id}&_escape=true" target="_blank"><img src="themes/{$THEME_NAME}/images/icons/print_16.gif" border="0" alt="E-mail User"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{* show discount details *}
|
||||
{if $invoice.discount_arr != '' && $invoice.discount_amt > 0}
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_discount_amt
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%">
|
||||
{assign var=discount_details value=$invoice.discount_popup}
|
||||
<a href="#" {popup capcolor="ffffff" textcolor="333333" bgcolor="506DC7" fgcolor="FFFFFF" sticky=false width="250" caption="Discount Details" text="$discount_details" snapx=1 snapy=1 sticky=1}>
|
||||
{$list->format_currency_num($invoice.discount_amt, $invoice.actual_billed_currency_id)}
|
||||
</a> </td>
|
||||
<td width="33%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<!-- billing details -->
|
||||
{assign var=cc_user value=true}
|
||||
{* show checkout/payment plugin details *}
|
||||
{if $invoice.checkout_plugin_id != '0'}
|
||||
{assign var=sql1 value=" AND id='"}
|
||||
{assign var=sql2 value="' "}
|
||||
{assign var=sql3 value=$invoice.checkout_plugin_id}
|
||||
{assign var=sql value=$sql1$sql3$sql2}
|
||||
{if $list->smarty_array("checkout", "checkout_plugin", $sql, "checkout") }
|
||||
{assign var=checkout_plugin value=$checkout[0].checkout_plugin}
|
||||
{assign var="ablock" value="checkout_plugin:plugin_inv_"}
|
||||
{assign var="blockfile" value="$ablock$checkout_plugin"}
|
||||
{$block->display($blockfile)}
|
||||
{/if}
|
||||
{/if}
|
||||
<!-- end billing details -->
|
||||
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1" height="49">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top" class="row2">
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_tax_amt
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="34%"><b>{translate module=invoice} field_discount_amt {/translate}
|
||||
</b></td>
|
||||
<td width="33%"><b>{translate module=invoice} field_tax_id {/translate} </b></td>
|
||||
</tr>
|
||||
<tr valign="top" class="row2">
|
||||
<td width="33%">
|
||||
{$list->format_currency_num($invoice.tax_amt, $invoice.actual_billed_currency_id)}
|
||||
</td>
|
||||
<td width="34%">{if $invoice.discount_amt > 0}
|
||||
<div id="taxpanel1" style="display:none"> {$invoice.discount_popup_user} </div>
|
||||
<div id="taxpanel"> <a href="#" onclick="{literal} new Effect.Fade('taxpanel', {duration: 0} ); new Effect.Appear('taxpanel1', {duration: .5}); return false;" {/literal}>{$list->format_currency_num($invoice.discount_amt, $invoice.actual_billed_currency_id)}</a> </div>
|
||||
{else}---{/if}
|
||||
</td>
|
||||
<td width="33%">{if $invoice.tax_amt > 0} {foreach from=$invoice.tax_arr item=taxz} {$taxz.description} - {$list->format_currency_num($taxz.amount, $invoice.actual_billed_currency_id)}<br>
|
||||
{/foreach} {else}---{/if} </td>
|
||||
</tr>
|
||||
</table>
|
||||
</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="row2">
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_total_amt
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%"> <b>
|
||||
{translate module=invoice}
|
||||
field_billed_amt
|
||||
{/translate}
|
||||
</b></td>
|
||||
<td width="33%"> </td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="33%">
|
||||
{$list->format_currency_num($invoice.total_amt, $invoice.actual_billed_currency_id)}
|
||||
</td>
|
||||
<td width="33%">
|
||||
{$list->format_currency_num($invoice.billed_amt, $invoice.actual_billed_currency_id)}
|
||||
</td>
|
||||
<td width="33%"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top" class="table_background">
|
||||
<td width="65%" class="table_heading">
|
||||
<center>
|
||||
{translate module=invoice}
|
||||
products_ordered
|
||||
{/translate}
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="65%" class="row1">
|
||||
<!-- Loop through each invoice item record -->
|
||||
{foreach from=$cart item=cart}
|
||||
<br>
|
||||
{if $cart.item_type == "2"}
|
||||
<!-- Show domain -->
|
||||
<table width="97%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<tr>
|
||||
<td width="70%" class="row2" valign="top">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="67%" class="row2"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="51%"><b> <u>
|
||||
{$cart.domain_name|upper}
|
||||
.
|
||||
{$cart.domain_tld|upper}
|
||||
</u> </b></td>
|
||||
<td width="37%"> </td>
|
||||
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a><a href="?_page=product:details&id={$cart.product_id}">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="67%"> <b> </b>
|
||||
{if $cart.sku == "DOMAIN-REGISTER"}
|
||||
{translate module=cart}
|
||||
register
|
||||
{/translate}
|
||||
{elseif $cart.sku == "DOMAIN-TRANSFER"}
|
||||
{translate module=cart}
|
||||
transfer
|
||||
{/translate}
|
||||
{elseif $cart.sku == "DOMAIN-PARK"}
|
||||
{translate module=cart}
|
||||
park
|
||||
{/translate}
|
||||
{elseif $cart.sku == "DOMAIN-RENEW"}
|
||||
{translate module=cart}
|
||||
renew
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $cart.cart_type == "1"}
|
||||
{if $cart.host_type == "ns_transfer"}
|
||||
{/if}
|
||||
{if $cart.host_type == "ip"}
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
<td width="30%" class="row1" valign="top" align="right">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
base_price
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
<div id="def_base_price_{$cart_assoc.id}">
|
||||
<div id="def_base_price_{$cart.id}">
|
||||
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
|
||||
</div>
|
||||
<div id="base_price_{$cart.id}"></div>
|
||||
</div>
|
||||
<div id="base_price_{$cart_assoc.id}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{if $cart.sku != 'DOMAIN-PARK'}
|
||||
<select id="quantity_{$cart.id}" disabled name="select">
|
||||
<option value="">
|
||||
{$cart.domain_term}
|
||||
Year</option>
|
||||
</select>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{elseif $cart.item_type == "3"}
|
||||
<!-- Show ad-hoc -->
|
||||
<table width="97%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<tr>
|
||||
<td width="70%" class="row2" valign="top">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="67%" class="row2"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="44%"><b> <u>
|
||||
{$cart.product_name}
|
||||
</u> </b></td>
|
||||
<td width="44%" align="right">(
|
||||
{$cart.sku}
|
||||
)</td>
|
||||
<td width="12%" align="right"><a href="?_page=product:details&id={$cart_assoc.product_id}">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a><a href="?_page=product:details&id={$cart.product_id}">
|
||||
</a><a href="javascript:deleteCart('{$cart.id}');">
|
||||
</a>
|
||||
{if $cart.attribute_popup != ""}
|
||||
<div id="attr_panell_1_{$cart.id}" style="display:none">
|
||||
<a href="#" onclick=" new Effect.Fade('attr_panel_1_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Fade('attr_panell_1_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Appear('attr_panel_2_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
new Effect.Appear('attr_panell_2_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
return false;">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="attr_panell_2_{$cart.id}" >
|
||||
<a href="#" onclick=" new Effect.Fade('attr_panel_2_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Fade('attr_panell_2_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Appear('attr_panel_1_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
new Effect.Appear('attr_panell_1_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
return false;">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="67%"> <b> </b>
|
||||
{translate module=cart}
|
||||
price_type_one
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
{if $cart.cart_type == "1"}
|
||||
{if $cart.host_type == "ns_transfer"}
|
||||
{/if}
|
||||
{if $cart.host_type == "ip"}
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
<td width="30%" class="row1" valign="top" align="right">
|
||||
<div id="attr_panel_1_{$cart.id}" style="display:none">
|
||||
{$cart.attribute_popup}
|
||||
</div>
|
||||
<div id="attr_panel_2_{$cart.id}">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
base_price
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
<div id="def_base_price_{$cart_assoc.id}">
|
||||
<div id="def_base_price_{$cart.id}">
|
||||
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
|
||||
</div>
|
||||
<div id="base_price_{$cart.id}"></div>
|
||||
</div>
|
||||
<div id="base_price_{$cart_assoc.id}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
quantity
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
{$cart.quantity}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{else}
|
||||
<!-- Show product -->
|
||||
<table width="97%" border="0" cellspacing="0" cellpadding="0" class="table_background" align="center">
|
||||
<tr>
|
||||
<td>
|
||||
<table id="main2" width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<tr>
|
||||
<td width="70%" class="row2" valign="top">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="67%" class="row2"><b> </b>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row2">
|
||||
<tr>
|
||||
<td width="51%"><b>
|
||||
{if $list->translate("product_translate","name", "product_id", $cart.product_id, "translate_product")}
|
||||
{/if}
|
||||
<u>
|
||||
{$translate_product.name}
|
||||
</u> </b></td>
|
||||
<td width="35%"><b> </b>( <a href="?_page=product:details&id={$cart.product_id}">
|
||||
{$cart.sku}
|
||||
</a> ) </td>
|
||||
<td width="14%" align="right">
|
||||
{if $cart.attribute_popup != ""}
|
||||
<div id="attr_panell_1_{$cart.id}" style="display:none">
|
||||
<a href="#" onclick=" new Effect.Fade('attr_panel_1_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Fade('attr_panell_1_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Appear('attr_panel_2_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
new Effect.Appear('attr_panell_2_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
return false;">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="attr_panell_2_{$cart.id}" >
|
||||
<a href="#" onclick=" new Effect.Fade('attr_panel_2_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Fade('attr_panell_2_{$cart.id}', {literal}{duration: 0}{/literal} );
|
||||
new Effect.Appear('attr_panel_1_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
new Effect.Appear('attr_panell_1_{$cart.id}', {literal}{duration: .5}{/literal});
|
||||
return false;">
|
||||
<img src="themes/{$THEME_NAME}/images/icons/edit_16.gif" border="0" width="16" height="16">
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="67%">
|
||||
{if $cart.range != ""}
|
||||
{$cart.range}
|
||||
{else}
|
||||
{if $cart.price_type == "0"}
|
||||
{translate module=cart}
|
||||
price_type_one
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.price_type == "1"}
|
||||
{translate module=cart}
|
||||
price_type_recurr
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.price_type == "2"}
|
||||
{translate module=cart}
|
||||
price_type_trial
|
||||
{/translate}
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="67%">
|
||||
{if $cart.price_type == "1"}
|
||||
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
|
||||
{if $cart.recurring_schedule == "0" }
|
||||
{translate module=cart}
|
||||
recurr_week
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "1" }
|
||||
{translate module=cart}
|
||||
recurr_month
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "2" }
|
||||
{translate module=cart}
|
||||
recurr_quarter
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "3" }
|
||||
{translate module=cart}
|
||||
recurr_semianual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "4" }
|
||||
{translate module=cart}
|
||||
recurr_anual
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "5" }
|
||||
{translate module=cart}
|
||||
recurr_twoyear
|
||||
{/translate}
|
||||
{/if}
|
||||
{if $cart.recurring_schedule == "6" }
|
||||
{translate module=cart}
|
||||
recurr_threeyear
|
||||
{/translate}
|
||||
{/if}
|
||||
+
|
||||
{$list->format_currency_num($cart.price_setup, $invoice.actual_billed_currency_id)}
|
||||
{translate module=cart}
|
||||
setup
|
||||
{/translate}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $invoice.type != "1" && $cart.service_id > 0}
|
||||
<tr>
|
||||
<td width="67%">
|
||||
{translate module=cart service=$cart.service_id}
|
||||
service_upgrade
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $cart.item_type == "1"}
|
||||
{if $cart.domain_type == "ns_transfer"}
|
||||
<tr>
|
||||
<td width="67%">
|
||||
{translate module=cart}
|
||||
host_type_domain
|
||||
{/translate}
|
||||
- <u>
|
||||
{$cart.domain_name}
|
||||
.
|
||||
{$cart.domain_tld}
|
||||
</u> </td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $cart.domain_type == "ip"}
|
||||
<tr>
|
||||
<td width="67%">
|
||||
{translate module=cart}
|
||||
host_type_ip
|
||||
{/translate}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
</table>
|
||||
</td>
|
||||
<td width="30%" class="row1" valign="top">
|
||||
<div id="attr_panel_1_{$cart.id}" style="display:none">
|
||||
{$cart.attribute_popup}
|
||||
</div>
|
||||
<div id="attr_panel_2_{$cart.id}">
|
||||
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
base_price
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
<div id="def_base_price_{$cart.id}">
|
||||
{$list->format_currency_num($cart.price_base, $invoice.actual_billed_currency_id)}
|
||||
</div>
|
||||
<div id="base_price_{$cart.id}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
setup_price
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
<div id="def_setup_price_{$cart.id}">
|
||||
{$list->format_currency_num($cart.price_setup, $invoice.actual_billed_currency_id)}
|
||||
</div>
|
||||
<div id="setup_price_{$cart.id}"></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="43%">
|
||||
{translate module=cart}
|
||||
quantity
|
||||
{/translate}
|
||||
</td>
|
||||
<td width="57%" valign="middle" align="right">
|
||||
{$cart.quantity}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<center>
|
||||
</center>
|
||||
</form>
|
||||
|
||||
{/foreach}
|
||||
{/if}
|
||||
{else}
|
||||
{ $block->display("account:login") }
|
||||
{/if}
|
||||
|
||||
<!-- custom tracking code -->
|
||||
{ $method->exe("invoice","custom_tracking") }
|
||||
{/if}
|
1231
themes/default/blocks/invoice/view.tpl
Normal file
1231
themes/default/blocks/invoice/view.tpl
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user