Changes to AgileBill
This commit is contained in:
@@ -1,182 +1,108 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
<!-- 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 id="add" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{osb f=tt}</td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=account_id}</td>
|
||||
<td style="width: 65%;">{osb f=autoselect module=account return=id field=invoice_account_id default=$VAR.invoice_account_id}</td>
|
||||
</tr>
|
||||
{if $list->is_installed('affiliate') == 1}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=affiliate_id}</td>
|
||||
<td style="width: 65%;">{osb f=html_select_affiliate name='aid' default=$VAR.aid}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $VAR.invoice_account_id}
|
||||
<tr valign="top">
|
||||
<td style="width: 35%;">{osb f=tf field=product_id}</td>
|
||||
<td style="width: 65%;">{$list->menu('no','invoice_product_id','product','sku','','" onchange="showProduct(this.value)',true)}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td style="width: 65%;" class="row1">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="body">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="javascript:addAdHoc();">{t}Add adhoc item to Invoice{/t}</a>
|
||||
{if $list->is_installed('host_tld')}
|
||||
| <a href="javascript:domainSearch();">{t}Add a Domain to Invoice{/t}</a>
|
||||
<input type="hidden" name="domain_name" id="domain_name"/>
|
||||
<input type="hidden" name="domain_tld" id="domain_tld"/>
|
||||
{/if}
|
||||
| <a href="javascript:showDiscount()">{t}Discount User{/t}</a>
|
||||
| <a href="javascript:showCart()">{t}View Items{/t}</a>
|
||||
| <a href="javascript:showCheckout()">{t}Finalise Invoice{/t}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr valign="top">
|
||||
<td> </td>
|
||||
{include file='file:../core/view_td_submit.tpl'}
|
||||
</tr>
|
||||
{/if}
|
||||
</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);
|
||||
}
|
||||
{if $VAR.invoice_account_id}
|
||||
<iframe name="iframe" id="iframe" style="border:0px; width:0px; height:0px;" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
||||
|
||||
function showDiscount() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=discount:add&discount_avail_account_id={/literal}{$VAR.invoice_account_id}{literal}');
|
||||
}
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var account_id = '{$VAR.invoice_account_id}';
|
||||
|
||||
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);
|
||||
}
|
||||
{literal}
|
||||
function showCart() {
|
||||
showIFrame('iframe',getPageWidth(600),500,'?_page=cart:admin_view&account_id='+account_id);
|
||||
}
|
||||
|
||||
function addAdHoc() {
|
||||
showIFrame('iframeInvoice',getPageWidth(600),500,'?_page=cart:ad_hoc&account_id='+account_id);
|
||||
}
|
||||
function showCheckout() {
|
||||
showIFrame('iframe',getPageWidth(600),500,'{/literal}{$SSL_URL}{literal}admin.php?_page=checkout:admin_checkout&account_id='+account_id+'&s='+SESS);
|
||||
}
|
||||
|
||||
function domainUpdate() {
|
||||
}
|
||||
|
||||
showCart();
|
||||
function showProduct(product_id) {
|
||||
showIFrame('iframe',getPageWidth(600),500,'?_page=product:admin_details&id='+product_id+'&account_id='+account_id);
|
||||
}
|
||||
|
||||
// END -->
|
||||
</script>
|
||||
{/literal}
|
||||
{/if}
|
||||
function showDiscount() {
|
||||
showIFrame('iframe',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('iframe',getPageWidth(600),500,'?_page=host_tld:admin_search&domain='+domain+'&account_id='+account_id);
|
||||
}
|
||||
|
||||
function addAdHoc() {
|
||||
showIFrame('iframe',getPageWidth(600),500,'?_page=cart:ad_hoc&account_id='+account_id);
|
||||
}
|
||||
|
||||
function domainUpdate() {
|
||||
}
|
||||
{/literal}
|
||||
|
||||
showCart();
|
||||
//-->
|
||||
</script>
|
||||
{/if}
|
||||
|
@@ -1,38 +1,39 @@
|
||||
{$method->exe("invoice","checkout_multiple_preview")}
|
||||
{$method->exe('invoice','tpl_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>
|
||||
<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 style="text-align: center;">
|
||||
<p>{t}The selected invoices total:{/t} <b>{$total}</b>.</p>
|
||||
<p>{t}To make payment, please select a payment option below.{/t}</p>
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
{/if}
|
||||
|
||||
<!-- Display checkout optoins -->
|
||||
{ $block->display("invoice:checkoutoptions") }
|
||||
<br>
|
||||
<br>
|
||||
<!-- Display checkout optoins -->
|
||||
{$block->display('invoice:checkoutoptions')}
|
||||
|
@@ -1,7 +1,9 @@
|
||||
{$method->exe("checkout","checkoutoption")}
|
||||
{if $plugin_template != false}
|
||||
{ $block->display($plugin_template) }
|
||||
{else}
|
||||
<p>Sorry, that checkout option is not valid.</p>
|
||||
{/if}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe('checkout','checkoutoption')}
|
||||
{if $plugin_template != false}
|
||||
{$block->display($plugin_template)}
|
||||
{else}
|
||||
<p>{t}Sorry, that checkout option is not valid.{/t}</p>
|
||||
{/if}
|
||||
|
@@ -1,63 +1,69 @@
|
||||
<script language="javascript">var confirmCheckoutMsg='{translate module=checkout}redirect{/translate}';</script>
|
||||
<script src="themes/default/blocks/checkout/ajax.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
var confirmCheckoutMsg='{t}Thank you! We will now finalize your purchase and forward you to the secure payment area.{/t}';
|
||||
//-->
|
||||
</script>
|
||||
<script type="text/javascript" src="themes/default/blocks/checkout/ajax.js"></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}
|
||||
{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 -->
|
||||
<p id="checkout_options_show" {osb f=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';">{t}View More Payment Options{/t}</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>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{t}Select Your Preferred Payment Option{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="4" cellpadding="3">
|
||||
{if $checkoutoptions}
|
||||
{foreach from=$checkoutoptions item=checkout key=key}
|
||||
<tr valign="top">
|
||||
<td style="width: 20%;"><a href="javascript:void(0);" onclick="changeCheckoutOption({$checkout.fields.id},'{if $VAR._page=='invoice:checkout_multiple'}multi{else}invoice{/if}','{$record.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 style="width: 80%;">{$checkout.fields.description} </td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr valign="top">
|
||||
<td>{t}Sorry, no online payment option is available for this order. Please contact us for order information and payment options.{/t}</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}
|
||||
{if $VAR.option== '' && $checkout_c == 1}
|
||||
<script type="text/javascript">changeCheckoutOption(last_checkout_id,{$invoice.id});</script>
|
||||
{elseif $VAR.option > 0}
|
||||
<script type="text/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}
|
||||
|
72
themes/default/blocks/invoice/invoicesoon.tpl
Normal file
72
themes/default/blocks/invoice/invoicesoon.tpl
Normal file
@@ -0,0 +1,72 @@
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
{translate amount=$total_amount module=invoice}search_result_amount{/translate}<br/>
|
||||
<br/>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table 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 class="table_heading">
|
||||
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_account_id{/translate}','account_id'));</script>
|
||||
</td>
|
||||
<td class="table_heading">
|
||||
<script type="text/javascript">document.write(search_heading('{translate module=service}field_id{/translate}','id'));</script>
|
||||
</td>
|
||||
<td class="table_heading">
|
||||
<script type="text/javascript">document.write(search_heading('{translate module=invoice}XXX{/translate}Next Invoice Date','date_orig'));</script>
|
||||
</td>
|
||||
<td class="table_heading">
|
||||
<script type="text/javascript">document.write(search_heading('{translate module=invoice}field_total_amt{/translate}','total_amt'));</script>
|
||||
</td>
|
||||
<td class="table_heading" style="width: 120px; text-align: right;"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- LOOP THROUGH EACH RECORD -->
|
||||
{foreach from=$invoice item=record}
|
||||
<tr id="row{$record.sid}" onClick="row_sel('{$record.sid}',1);" onDblClick="window.location='?_page=service:view&id={$record.sid},';" onMouseOver="row_mouseover('{$record.sid}', 'row_mouse_over_select', 'row_mouse_over');" onMouseOut="row_mouseout('{$record.sid}', '{$record._C}', 'row_select');" class="{$record._C}">
|
||||
<td align="center" width="25">
|
||||
<input type="checkbox" name="record{$record.sid}" value="{$record.sid}" onClick="row_sel('{$record.sid}',1,'{$record._C}');"/>
|
||||
<script type="text/javascript">row_sel('{$record.sid}',0,'{$record._C}'); record_arr[i] = '{$record.sid}'; i++;</script>
|
||||
</td>
|
||||
<td>{$record.last_name}, {$record.first_name}</td>
|
||||
<td>{$record.sid} ({$record.sku})</td>
|
||||
<td>{$record.invoice_date}</td>
|
||||
<td><div align="right">{$list->format_currency_num($record.price,$record.billed_currency_id)} </div></td>
|
||||
<td>
|
||||
<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.sid}"><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: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>
|
||||
{/foreach}
|
||||
<!-- END OF RESULT LOOP -->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
@@ -1,296 +1,142 @@
|
||||
{ $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") }
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
|
||||
<form id="search_form" method="post" action="" enctype="multipart/form-data">
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td 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}/> {t}"%" for partial match{/t}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice}field_account_id{/translate}</td>
|
||||
<td width="65%">{osb f=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%">{osb f=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','','form_menu',true)}</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')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice}field_refund_status{/translate}</td>
|
||||
<td width="65%">{$list->bool('invoice_refund_status','all')}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td width="35%">{translate module=invoice}paid{/translate}</td>
|
||||
<td width="65%">{$list->bool('invoice_billing_status','all')}</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')}</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','','form_menu',true)}</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','','form_menu',true)}</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}"/> {t}"%" for partial match{/t}</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"/> {t}"%" for partial match{/t}
|
||||
</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','','" onchange="showAttributes(this)',true)}
|
||||
{literal}
|
||||
<script type="text/javascript" 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>
|
||||
{include file='file:../core/search_post.tpl'}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
{$block->display('core:saved_searches')}
|
||||
{$block->display('core:recent_searches')}
|
||||
{/if}
|
||||
|
@@ -1,148 +1,45 @@
|
||||
{$method->exe("invoice","search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
{translate amount=$total_amount module=invoice}search_result_amount{/translate}
|
||||
<BR><br>
|
||||
{include file='file:../core/search_show_pre.tpl'}
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/search_show_tr_record.tpl'}
|
||||
<td>{$record.id}</td>
|
||||
<td>{$record.last_name}, {$record.first_name}</td>
|
||||
<td>{$list->date($record.date_orig)}</td>
|
||||
<td>{$list->date($record.due_date)}</td>
|
||||
<td style="text-align: right;">{$list->format_currency_num($record.total_amt, $record.billed_currency_id)}</td>
|
||||
<td style="text-align: center;">
|
||||
{if $record.billing_status == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="Status" title="Status" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" alt="Status" title="Status" style="border: 0px;"/>
|
||||
{/if}
|
||||
{if $record.process_status == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="Status" title="Process" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="Status" title="Process" style="border: 0px;"/>
|
||||
{/if}
|
||||
<a href="?_page=core:search&module=service&service_invoice_id={$record.id}"><img src="themes/{$THEME_NAME}/images/icons/tools_16.gif" alt="Services" title="Services" style="border: 0px;"/></a>
|
||||
<a href="?_page=account:view&id={$record.account_id}"><img src="themes/{$THEME_NAME}/images/icons/user_16.gif" alt="Account" title="Account" style="border: 0px;"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
{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>
|
||||
{include file='file:../core/search_show_post-1.tpl'}
|
||||
{include file='file:../core/search_show_post-2.tpl'}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,48 +1,30 @@
|
||||
<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>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr valign="top">
|
||||
<td class="table_heading">{translate module=invoice}thank_you{/translate}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td class="row1">
|
||||
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
||||
<tr valign="top">
|
||||
<td>{translate module=invoice}thank_you_text{/translate}</td>
|
||||
</tr>
|
||||
<tr valign="top">
|
||||
<td>
|
||||
{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><a href="?_page=account:account">{translate module="invoice"}account_link{/translate}</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -1,160 +1,70 @@
|
||||
{$method->exe("invoice","user_search_show")}
|
||||
{if ($method->result == FALSE)}
|
||||
{$block->display("core:method_error")}
|
||||
{assign var=meth value=':'|explode:$VAR._page}
|
||||
<!-- {$meth.0}:{$meth.1} -->
|
||||
|
||||
{$method->exe($meth.0,$meth.1)}
|
||||
{if ($method->result == false)}
|
||||
{$block->display('core:method_error')}
|
||||
{else}
|
||||
{if $results == 1}
|
||||
{translate results=$results}search_result_count{/translate}
|
||||
{else}
|
||||
{translate results=$results}search_results_count{/translate}
|
||||
{/if}
|
||||
<BR>
|
||||
{$method->exe('invoice','has_unpaid')}
|
||||
{if $has_unpaid}
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="body">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><div style="text-align: center;">{t}You presently have unpaid invoices totaling:{/t} <b>{$has_unpaid}</b>.</div></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
|
||||
{include file='file:../core/user_search_show_pre.tpl'}
|
||||
|
||||
{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}
|
||||
<!-- BEGIN THE RESULTS CONTENT AREA -->
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
{$method->exe_noauth($meth.0,'tpl_search_show')}
|
||||
{foreach from=$search_show item=record}
|
||||
{include file='file:../core/user_search_show_tr_record.tpl'}
|
||||
<td>{$record.id}</td>
|
||||
<td>{$list->date_time($record.date_orig)}</td>
|
||||
<td><div style="text-align: right">{$list->format_currency_num($record.total_amt, $record.actual_billed_currency_id)}</div></td>
|
||||
<td style="text-align: center">
|
||||
{if $record.billing_status == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/add_16.gif" alt="" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/remov_16.gif" alt="" style="border: 0px;"/>
|
||||
{/if}
|
||||
|
||||
{if $record.process_status == '1'}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/go_16.gif" alt="" style="border: 0px;"/>
|
||||
{else}
|
||||
<img src="themes/{$THEME_NAME}/images/icons/stop_16.gif" alt="" style="border: 0px;"/>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{$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>
|
||||
<div>
|
||||
<br/>
|
||||
{if $has_unpaid}<input value="{t}Pay Selected{/t}" type="button" onclick="mass_do('',module+':checkout_multiple',limit,module);"/>{/if}
|
||||
<input type="submit" name="Submit" value="{t}View{/t}" onclick="mass_do('',module+':user_view',limit,module);"/>
|
||||
</div>
|
||||
{/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}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user