2009-08-03 04:10:16 +00:00
{ 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 }
<script type="text/javascript">
<!--
var module = ' { $meth.0 } ';
var locations = ' { $VAR.module_id } ';
var id = ' { $VAR.id } ';
var ids = ' { $VAR.ids } ';
var elements = new Array();
elements[0] = 'items';
elements[1] = 'billing';
elements[2] = 'affiliate';
{ literal }
function approveInvoice(id,status) {
2008-11-26 22:50:40 +00:00
if(status.value == '1') {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:approveInvoice';
} else {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:voidInvoice';
}
2009-08-03 04:10:16 +00:00
}
2008-11-26 22:50:40 +00:00
function printView(invoice_id) {
2009-08-03 04:10:16 +00:00
window.open('?_page=invoice:pdf&id='+invoice_id+'&_escape=1','pdf','');
document.forms.view.invoice_print_status.value = 1;
document.forms.view.submit();
2008-11-26 22:50:40 +00:00
}
2009-08-03 04:10:16 +00:00
function approveInvoice(id,status,ids) {
2008-11-26 22:50:40 +00:00
if(status == '1') {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:approveInvoice&ids='+ids;
} else {
document.location = '?_page=invoice:view&id='+id+'&do[]=invoice:voidInvoice&ids='+ids;
}
}
2009-08-03 04:10:16 +00:00
function displayArea() {
{ /literal }
{ if $VAR.area = = "" }
2008-11-26 22:50:40 +00:00
document.getElementById('items').style.display='block';
2009-08-03 04:10:16 +00:00
{ elseif $VAR.area = = "billing" }
2008-11-26 22:50:40 +00:00
document.getElementById('billing').style.display='block';
2009-08-03 04:10:16 +00:00
{ elseif $VAR.area = = "affiliate" }
document.getElementById('affiliate').style.display='block';
{ /if }
{ literal }
}
{ /literal }
//-->
</script>
<script type="text/javascript" src="themes/ { $THEME_NAME } /view.js"></script>
<script type="text/javascript" src="themes/ { $THEME_NAME } /view-advanced.js"></script>
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<!-- Display the field validation -->
{ if $form_validation }
{ $block - > display ( 'core:alert_fields' ) }
{ /if }
2008-11-26 22:50:40 +00:00
2009-08-03 04:10:16 +00:00
<!-- Display each record -->
<form id="view" 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 } { $record.id } </td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td>
<table width="100%" border="0" cellspacing="6" cellpadding="0" class="body">
<tr class="row1">
<td style="width: 33%; text-align: left;">
<select name="Jump" id="Jump" onchange="view_Jump(' { $record.account_id } ')">
<option value="">---- { t } QUICK ACTIONS { /t } ----</option>
<option value="refresh"> { t } Refresh View { /t } </option>
{ if $smarty.const.SESS_ACCOUNT ! = $record.id } <option value="become"> { t } Become User { /t } </option> { /if }
<option value="email"> { t } Send Email to User { /t } </option>
<option value="pdf"> { t } Print Invoice { /t } </option>
{ if $record.billing_status ! = 1 } <option value="bill_force"> { t } Attempt Auto-billing Now { /t } </option> { /if }
{ if $record.billed_amt > 0 } <option value="refund"> { t } Refund Invoice { /t } </option> { /if }
{ if $record.billed_amt < $record.total_amt } <option value="reconcile"> { t } Reconcile Invoice { /t } </option> { /if }
{ if $record.process_status = = 1 }
<option value="void"> { t } Void Invoice & Services { /t } </option>
{ elseif $record.billing_status = = 1 }
<option value="approve"> { t } Approve Invoice & Services { /t } </option>
{ /if }
</select>
</td>
<td style="width: 33%; text-align: center;">
<select name="JumpView" id="JumpView" onchange="view_JumpView(' { $record.account_id } ')">
<option value="">---- { t } QUICK VIEW { /t } ----</option>
<option value="invoice"> { t } Invoices { /t } </option>
<option value="service"> { t } Services { /t } </option>
<option value="login_log"> { t } Login Logs { /t } </option>
<option value="session"> { t } Sessions { /t } </option>
<option value="account_billing"> { t } Billing Details { /t } </option>
<option value="discount"> { t } Discounts { /t } </option>
</select>
</td>
<td style="width: 33%; text-align: right;">
<select name="JumpAdd" id="JumpAdd" onchange="view_JumpAdd(' { $record.account_id } ')">
<option value="">---- { t } QUICK ADD { /t } ----</option>
<option value="invoice"> { t } Invoice { /t } </option>
<option value="service"> { t } Service { /t } </option>
<option value="account_billing"> { t } Billing Details { /t } </option>
<option value="discount"> { t } Discount { /t } </option>
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td class="table_heading">
<a href="#" onclick="view_hideAll();document.getElementById('items').style.display='block';" style="color: #FFFFFF;"> { t } Items Purchased { /t } </a>
| <a href="#" onclick="view_hideAll();document.getElementById('billing').style.display='block';" style="color: #FFFFFF;"> { t } Billing Details { /t } </a>
| <a href="#" onclick="view_hideAll();showServices()" style="color: #FFFFFF;"> { t } Services { /t } </a>
{ if $list - > is_installed ( 'affiliate' ) }
| <a href="#" onclick="view_hideAll();document.getElementById('affiliate').style.display='block';" style="color: #FFFFFF;"> { t } Affiliate & Campaign Details { /t } </a>
2008-11-26 22:50:40 +00:00
{ /if }
2009-08-03 04:10:16 +00:00
| <a href="#" onclick="view_hideAll();view_Memos();" style="color: #FFFFFF;"> { t } Memos { /t } </a>
</td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td valign="top">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr>
<td colspan="2"><b> { osb f = tf field = total_amt } </b></td>
<td colspan="2"><b> { osb f = tf field = billing_status } </b></td>
<td colspan="2"><b> { osb f = tf field = billed_amt } </b></td>
</tr>
<tr>
<td style="width: 1%;"> </td>
<td style="width: 32%;"><div style="color: # { if $record.billing_status = = 1 } 000000 { else } CC0000 { /if } ;"> { $list - > format_currency_num ( $record.total_amt , $record.billed_currency_id ) } </div></td>
<td style="width: 1%;"> </td>
<td style="width: 32%;">
{ if $record.balance = = 0 }
{ t } Paid { /t }
{ else }
{ $list - > format_currency_num ( $record.balance , $record.billed_currency_id ) } (<a href="javascript:showReconcile(' { $record.balance } ');"> { t } Reconcile Invoice { /t } </a>)
{ /if }
</td>
<td style="width: 1%;"> </td>
<td style="width: 32%;">
{ if $record.billed_amt > 0 }
{ $list - > format_currency_num ( $record.billed_amt , $record.billed_currency_id ) } (<a href="javascript:showRefund(' { $record.billed_amt } ');"> { t } Refund Invoice { /t } </a>)
{ elseif $record.total_amt > 0 }
---
{ /if }
</td>
</tr>
<tr>
<td colspan="2"><b> { osb f = tf field = account_id } </b></td>
<td colspan="2"><b> { osb f = tf field = due_date } </b></td>
<td colspan="2"><b> { osb f = tf field = discount_amt } </b></td>
</tr>
<tr valign="top">
<td> </td>
<td> { osb f = html_select_account name = 'invoice_account_id' default = $record.account_id } </td>
<td> </td>
<td> { $list - > date ( $record.due_date ) } </td>
<td> </td>
<td>
{ if $record.discount_amt > 0 }
<div id="taxpanel1" style="display: none;"> { $record.discount_popup } </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 ( $record.discount_amt , $record.billed_currency_id ) } </a>
</div>
{ else }
---
{ /if }
</td>
</tr>
<tr>
<td colspan="2"><b> { osb f = tf field = date_orig } </b></td>
<td colspan="2"><b> { osb f = tf field = process_status } </b></td>
<td colspan="2"><b> { osb f = tf field = tax_amt } </b></td>
</tr>
<tr>
<td> </td>
<td> { $list - > date_time ( $record.date_orig ) } </td>
<td> </td>
<td>
{ if $record.process_status = = 1 }
Yes (<a href="javascript:approveInvoice(' { $record.id } ',0);"> { t } Void Invoice & Services { /t } </a>)
{ elseif $record.billing_status = = 1 }
No (<a href="javascript:approveInvoice(' { $record.id } ',1);"> { t } Approve Invoice & Services { /t } </a>)
{ else }
{ t } Pending Billing { /t }
{ /if }
</td>
<td> </td>
<td>
{ if $record.tax_amt > 0 }
{ $list - > format_currency_num ( $record.tax_amt , $record.billed_currency_id ) }
{ else }
---
{ /if }
</td>
</tr>
<tr>
<td colspan="2"><b> { osb f = tf field = date_last } </b></td>
<td colspan="2"><b> { osb f = tf field = print_status } </b></td>
<td colspan="2"><b> { osb f = tf field = tax_id } </b></td>
</tr>
<tr>
<td> </td>
<td> { $list - > date_time ( $record.date_last ) } <input type="hidden" name="invoice_date_last" value=" { $smarty.now } "/></td>
<td> </td>
<td>
{ $list - > bool ( '' , $record.print_status ) } (<a href="javascript:printView(' { $record.id } ');"> { t } Print Invoice { /t } </a>)
<input type="hidden" name="invoice_print_status" value=" { $record.print_status } "/>
</td>
<td> </td>
<td>
{ if $record.tax_amt > 0 }
{ foreach from = $record.tax_arr item = taxz }
{ $taxz.description } - { $list - > format_currency_num ( $taxz.amount , $record.billed_currency_id ) } <br/>
{ /foreach }
{ else } --- { /if }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="6" cellpadding="1" class="row1">
<tr>
<td style="width: 5%; text-align: left;"><input type="submit" name="Submit" value=" { t } Submit { /t } " class="form_button"/></td>
<td style="width: 5%; text-align: center;" valign="middle"><a href="javascript:view_Memos();"></a></td>
<td style="width: 5%; text-align: right;">
{ if $record.billing_status = = 0 | | $record.refund_status = = 1 | | $record.total_amt = = 0 }
<input type="button" name="delete" value=" { t } Delete { /t } " class="form_button" onclick="delete_record(' { $record.id } ',' { $VAR.ids } ');"/>
{ /if }
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="billing" { osb f = style_hide } >
<br/>
<!-- Billing Details -->
<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" class="table_background">
<td class="table_heading"> { translate module = invoice } title_billing { /translate } </td>
</tr>
<!-- billing details -->
{ * show checkout/payment plugin details * }
{ if $record.checkout_plugin_id ! = '0' }
{ assign var = sql1 value = " AND id='" }
{ assign var = sql2 value = "' " }
{ assign var = sql3 value = $record.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 class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 5%;"><b> { osb f = tf field = notice_count } </b></td>
<td style="width: 45%;" valign="middle">
{ $record.notice_count } <a href="?_page=invoice:view&account_id= { $record.account_id } &id= { $record.id } &ids= { $VAR.ids } &do[]=invoice:resend"><img src="themes/ { $THEME_NAME } /images/icons/mail_16.gif" alt="Resend Invoice" width="16" height="16" style="border: 0px;"/></a>
</td>
<td style="width: 5%;"><b> { osb f = tf field = due_date } </b></td>
<td style="width: 45%;"><b> { $list - > calender_view ( 'invoice_due_date' , $record.due_date , 'form_field' ) } </b></td>
</tr>
<tr valign="top">
<td><b> { osb f = tf field = notice_max } </b></td>
<td><input type="text" name="invoice_notice_max" value=" { $record.notice_max } " size="2"/></td>
<td><b> { osb f = tf field = notice_next_date } </b></td>
<td><b> { $list - > calender_view ( 'invoice_notice_next_date' , $record.notice_next_date , 'form_field' ) } </b></td>
</tr>
<tr valign="top">
<td><b> { osb f = tf field = grace_period } </b></td>
<td><input type="text" name="invoice_grace_period" value=" { $record.grace_period } " size="2"/></td>
<td><b> { osb f = tf field = suspend_billing } </b></td>
<td> { $list - > bool ( 'invoice_suspend_billing' , $record.suspend_billing , '" onchange="submit()' ) } </td>
</tr>
<tr valign="top">
<td><b> { osb f = tf field = checkout_plugin_id } </b></td>
<td><a href="?_page=checkout:view&id= { $record.checkout_plugin_id } "> { $record.checkout_plugin } </a></td>
<!-- Terms -->
<td rowspan="2"><b>Terms</b></td>
<td rowspan="2">
{ if $record.net_term_id }
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td> { osb f = html_select name = 'net_term_id' table = 'net_term' field = 'name' method = 'net_term' default = $record.net_term_id } </td>
</tr>
{ foreach from = $record.termdates item = td }
<tr>
<td><font color="# { if $td.date > time ( ) } 00CC00 { else } CC0000 { /if } "> { $list - > date ( $td.date ) } </font></td>
<td> { $td.desc } </td>
</tr>
{ /foreach }
</table>
{ else }
Not Defined
{ /if }
</td>
</tr>
<tr valign="top">
<td><b>IP Address</b></td>
<td> { $record.ip } </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="affiliate" { osb f = style_hide } >
<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" class="table_background">
<td class="table_heading"> { t } Affiliate & Campaign Details { /t } </td>
</tr>
<tr valign="top">
<td class="row1">
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr valign="top" class="row1">
<td style="width: 33%;">
<b>
{ if $record.affiliate_id ! = '' }
{ assign var = affiliate_details value = $record.affiliate_popup }
{ osb f = tf field = affiliate_id }
{ else }
{ osb f = tf field = affiliate_id }
{ /if }
</b>
</td>
<td style="width: 33%;"><b> { translate module = invoice } affiliate_commissions { /translate } </b></td>
<td style="width: 33%;"><b> { osb f = tf field = campaign_id } </b></td>
</tr>
<tr valign="top" class="row1">
<td style="width: 33%;"> { osb f = html_select_affiliate name = 'invoice_affiliate_id' default = $record.affiliate_id } </td>
<td style="width: 33%;">
{ if $record.affiliate_commissions > 0 }
{ $list - > format_currency ( $record.affiliate_commissions , '' ) }
{ else }
----
{ /if }
</td>
<td style="width: 33%;"> { $list - > menu ( 'no' , 'invoice_campaign_id' , 'campaign' , 'name' , $record.campaign_id , '" onchange="submit()' , true ) } </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div id="items" style="display: block;">
<br/>
<!-- Items purchased -->
<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" class="table_background">
<td class="table_heading"> { translate module = invoice } title_items { /translate } </td>
</tr>
<tr valign="top">
<td class="row1">
<!-- Loop through each invoice item record -->
{ foreach from = $cart item = cart }
<br/>
{ if $cart.item_type = = '2' }
<!-- Show domain -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td style="width: 70%;" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td width="67%" class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td><div style="font-weight: bold; text-decoration: underline;"> { $cart.domain_name | upper } . { $cart.domain_tld | upper } </div></td>
<td> </td>
<td style="width: 5%;"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="67%">
{ if $cart.sku = = 'DOMAIN-REGISTER' }
{ t } Register { /t }
{ elseif $cart.sku = = 'DOMAIN-TRANSFER' }
{ t } Transfer { /t }
{ elseif $cart.sku = = 'DOMAIN-PARK' }
{ t } Park { /t }
{ elseif $cart.sku = = 'DOMAIN-RENEW' }
{ t } Renew { /t }
{ /if }
</td>
</tr>
</table>
</td>
<td style="width: 30%;" class="row1" valign="top" align="right">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td style="width: 80%;"> { 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 ( $cart.price_base , $record.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="select2">
<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="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td style="width: 70%;" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td><div style="font-weight: bold; text-decoration: underline;"> { $cart.product_name } </div></td>
<td style="text-align: right;"><b><a href="?_page=product:view&id= { $cart.product_id } "> { $cart.sku } </a></b></td>
<td style="width: 5%; text-align: right;"><a href="?_page=product:details&id= { $cart_assoc.product_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" alt="Details" width="16" height="16" style="border: 0px;"/>
</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" alt="Details" width="16" height="16" style="border: 0px;"/>
</a>
</div>
{ /if }
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td> { t } One-time Charge { /t } </td>
</tr>
</table>
</td>
<td style="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 style="width: 70%;"> { t } Base Price { /t } </td>
<td style="width: 30%; text-align: right;">
<div id="def_base_price_ { $cart_assoc.id } ">
<div id="def_base_price_ { $cart.id } "> { $list - > format_currency ( $cart.price_base , $record.billed_currency_id ) } </div>
<div id="base_price_ { $cart.id } "></div>
</div>
<div id="base_price_ { $cart_assoc.id } "></div>
</td>
</tr>
<tr>
<td> { t } Quantity { /t } </td>
<td style="width: 30%; text-align: right;"> { $cart.quantity } </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
{ else }
<!-- Show product -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td style="width: 70%;" class="row1" valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0" class="row1">
<tr>
<td class="row1">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row1">
<tr>
<td><b> { if $list - > translate ( 'product_translate' , 'name' , 'product_id' , $cart.product_id , 'translate_product' ) } { /if } </b><div style="font-weight: bold; text-decoration: underline;"> { $translate_product.name } </div></td>
<td align="right">
{ if $record.type = = 1 | | $cart.service_id > 0 } <b><a href="?_page=service:view&id= { $cart.service_id } "> { $cart.service_id } </a></b> - { /if }
<b><a href="?_page=product:view&id= { $cart.product_id } "> { $cart.sku } </a></b>
{ if $cart.domain_name ! = '' } (<a href="?_page=service:view&id= { $cart.service_id } "> { $cart.domain_name } . { $cart.domain_tld } </a>) { /if }
</td>
<td style="width: 5%; text-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" alt="Details" width="16" height="16" style="border: 0px;"/>
</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" alt="Details" width="16" height="16" style="border: 0px;"/>
</a>
</div>
{ /if }
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
{ if $cart.range ! = '' }
{ $cart.range }
{ else }
{ $list - > menu_staticlist ( 'pricetype' , '' , '' , $cart.price_type , '' , '' ) }
{ /if }
</td>
</tr>
<tr>
<td>
{ if $cart.price_type = = '1' }
{ $list - > format_currency ( $cart.price_base , $record.billed_currency_id ) }
{ $list - > menu_staticlist ( 'recur_schedule' , '' , '' , $cart.recurring_schedule , '' , '' ) }
+ { $list - > format_currency ( $cart.price_setup , $record.billed_currency_id ) } { t } Setup { /t }
{ /if }
</td>
</tr>
{ if $record.type ! = '1' & & $cart.service_id > 0 }
<tr>
<td> { 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> { 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> { translate module = cart } host_type_ip { /translate } </td>
</tr>
{ /if }
{ /if }
</table>
</td>
<td style="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 style="width: 70%;"> { t } Base Price { /t } </td>
<td style="width: 30%; text-align: right;">
<div id="def_base_price_ { $cart.id } "> { $list - > format_currency ( $cart.price_base , $record.billed_currency_id ) } </div>
<div id="base_price_ { $cart.id } "></div>
</td>
</tr>
<tr>
<td> { t } Setup Price { /t } </td>
<td style="width: 30%; text-align: right;">
<div id="def_setup_price_ { $cart.id } "> { $list - > format_currency ( $cart.price_setup , $record.billed_currency_id ) } </div>
<div id="setup_price_ { $cart.id } "></div>
</td>
</tr>
<tr>
<td> { t } Quantity { /t } </td>
<td style="width: 30%; text-align: right;"> { $cart.quantity } </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
2008-11-26 22:50:40 +00:00
{ /if }
2009-08-03 04:10:16 +00:00
{ /foreach }
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
{ include file = 'file:../core/view_post.tpl' }
<div>
<input type="hidden" name="invoice_discount_arr" value="IGNORE-ARRAY-VALUE"/>
</div>
</form>
2008-11-26 22:50:40 +00:00
{ /if }
2009-08-03 04:10:16 +00:00
<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>
<script type="text/javascript">
<!--
displayArea();
var invoice_id = { $record.id } ;
var account_id = ' { $record.account_id } ';
{ literal }
function showServices() {
showIFrame('iframe',getPageWidth(600),350,'?_page=core:search_iframe&module=service&_escape=1&service_invoice_id='+invoice_id+
'&_escape_next=1&_next_page=iframe_search_show&_next_page_none=none&name_id1=service_invoice_id&val_id1='+invoice_id);
2008-11-26 22:50:40 +00:00
}
2009-08-03 04:10:16 +00:00
function showReconcile(amt) {
showIFrame('iframe',getPageWidth(600),200,'?_page=invoice:reconcile&id='+invoice_id+'&_escape=1&amount='+amt);
2008-11-26 22:50:40 +00:00
}
2009-08-03 04:10:16 +00:00
function showRefund(amt) {
showIFrame('iframe',getPageWidth(600),200,'?_page=invoice:refund&id='+invoice_id+'&_escape=1&amount='+amt);
2008-11-26 22:50:40 +00:00
}
2009-08-03 04:10:16 +00:00
{ /literal }
//-->
2008-11-26 22:50:40 +00:00
</script>