Esempio n. 1
0
        ?>
							</td>

							<td><?php 
        echo CurrencyHelper::formatprice($subject->total);
        ?>
</td>

							<td><?php 
        echo PayStatus::format($subject->pay_status);
        ?>
							</td>


							<td><?php 
        echo OrderStatus::format($subject->order_status);
        ?>
							</td>

							<td><?php 
        echo JFactory::getDate($subject->created)->format(DateHelper::getConvertDateFormat('P'));
        ?>
							</td>

						</tr>
						<?php 
    }
} else {
    ?>
						<tr>
							<td colspan="6"><?php 
Esempio n. 2
0
        echo JHtml::link(JURI::root() . 'index.php?option=com_bookpro&view=orderdetail&order_number=' . $order->order_number . '&email=' . $customer->email, $order->order_number, 'class="cancelbt"');
        ?>
					</td>
					
					<td style="border: 1px #ccc solid;">
						<?php 
        echo PayStatus::format($order->pay_status);
        ?>
						<br>
						 <label class="label"><?php 
        echo $order->pay_method;
        ?>
</label>
					</td>
					<td style="border: 1px #ccc solid;"><?php 
        echo OrderStatus::format($order->order_status);
        ?>
					</td>
					<td style="border: 1px #ccc solid;"><?php 
        echo CurrencyHelper::formatprice($order->subtotal);
        ?>
					</td>
					
					<td style="border: 1px #ccc solid;"><?php 
        echo CurrencyHelper::formatprice($order->deposit);
        ?>
					</td>
					
					<td style="border: 1px #ccc solid;"><?php 
        echo CurrencyHelper::formatprice($order->tax);
        ?>
<?php

/**
 * @package 	Bookpro
 * @author 		Ngo Van Quan
 * @link 		http://joombooking.com
 * @copyright 	Copyright (C) 2011 - 2012 Ngo Van Quan
 * @license 	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 * @version 	$Id$
 **/
defined('_JEXEC') or die('Restricted access');
//$export = JUri::root () . 'index.php?option=com_bookpro&controller=order&task=exportpdf&order_id=' . $this->order->id;
//$print = JUri::root () . 'index.php?option=com_bookpro&controller=order&task=exportpdf&order_id=' . $this->order->id;
$sendemail = JUri::root() . 'index.php?option=com_bookpro&controller=order&task=sendemail&order_id=' . $this->order->id;
$order_status = OrderStatus::format($this->order->order_status);
$isModal = JFactory::getApplication()->input->getInt('print');
$receipt = "#";
if ($isModal) {
    $print = "#";
    echo '<script type="text/javascript">window.onload = function() { window.print(); }</script>';
} else {
    $print = 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no';
    $print = "window.open(this.href,'win2','" . $print . "'); return false;";
    $print = '"index.php?option=com_bookpro&view=orderdetail&tmpl=component&print=1&order_number=' . $this->order->order_number . '&email=' . $this->customer->email . '" ' . $print;
    $receipt = '"index.php?option=com_bookpro&view=orderdetail&layout=receipt&tmpl=component&print=1&order_number=' . $this->order->order_number . '&email=' . $this->customer->email . '" ' . $print;
}
?>
<div class="well well-small">
	<div class="well well-small wellwhite">
		<div class="row-fluid">
			<h3>