0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: orders.tar
tmpl/index.html 0000666 00000000000 15137216744 0007521 0 ustar 00 tmpl/order_print.php 0000666 00000001463 15137216744 0010602 0 ustar 00 <?php /** * Print orderdetails * * @package VirtueMart * @subpackage Orders * @author Oscar van Eijk * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: order_print.php 6043 2012-05-21 21:40:56Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); echo 'Wrong call, shouldnt be used, deprecated layout'; return; tmpl/order_editstatus.php 0000666 00000007214 15137216744 0011637 0 ustar 00 <?php /** * Popup form to edit the formstatus * * @package VirtueMart * @subpackage Orders * @author Oscar van Eijk * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: order_editstatus.php 6468 2012-09-18 22:00:43Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $document = JFactory::getDocument(); $document->addScriptDeclaration ( " function cancelOrderStatFormEdit(e) { jQuery('#orderStatForm').each(function(){ this.reset(); }); jQuery('#order_items_status') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); jQuery('div#updateOrderStatus').hide(); e.preventDefault(); } "); ?> <form action="index.php" method="post" name="orderStatForm" id="orderStatForm"> <fieldset> <table class="admintable" width="100%"> <tr> <td align="center" colspan="2"> <h1><?php echo JText::_('COM_VIRTUEMART_ORDER_UPDATE_STATUS') ?></h1> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_STATUS') ?></td> <td><?php echo $this->orderStatSelect; ?> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_COMMENT') ?></td> <td><textarea rows="6" cols="35" name="comments"></textarea> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_ORDER_LIST_NOTIFY') ?></td> <td><?php echo VmHTML::checkbox('customer_notified', true); ?> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_ORDER_HISTORY_INCLUDE_COMMENT') ?></td> <td><br /> <?php echo VmHTML::checkbox('include_comment', true); ?> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_ORDER_UPDATE_LINESTATUS') ?></td> <td><br /> <?php echo VmHTML::checkbox('orders['.$this->orderID.'][update_lines]', true); ?> </td> </tr> <tr> <td colspan="2" align="center" class="key"> <a href="#" class="orderStatFormSubmit" > <span class="icon-nofloat vmicon vmicon-16-save"></span> <?php echo JText::_('COM_VIRTUEMART_SAVE'); ?></a> <a href="#" title="<?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?>" onClick="javascript:cancelOrderStatFormEdit(event);" class="show_element[updateOrderStatus]"> <span class="icon-nofloat vmicon vmicon-16-remove"></span> <?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></a> </td> <!-- <input type="submit" value="<?php echo JText::_('COM_VIRTUEMART_SAVE');?>" style="font-size: 10px" /> <input type="button" onclick="javascript: window.parent.document.getElementById( 'sbox-window' ).close();" value="<?php echo JText::_('COM_VIRTUEMART_CANCEL');?>" style="font-size: 10px" /></td> --> </tr> </table> </fieldset> <!-- Hidden Fields --> <input type="hidden" name="task" value="updatestatus" /> <input type="hidden" name="last_task" value="updatestatus" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="view" value="orders" /> <input type="hidden" name="coupon_code" value="<?php echo $this->orderbt->coupon_code; ?>" /> <input type="hidden" name="current_order_status" value="<?php echo $this->currentOrderStat; ?>" /> <input type="hidden" name="virtuemart_order_id" value="<?php echo $this->orderID; ?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form> tmpl/order.php 0000666 00000110040 15137216744 0007356 0 ustar 00 <?php /** * Display form details * * @package VirtueMart * @subpackage Orders * @author Oscar van Eijk * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: order.php 6395 2012-09-05 07:57:05Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); AdminUIHelper::startAdminArea($this); AdminUIHelper::imitateTabs('start','COM_VIRTUEMART_ORDER_PRINT_PO_LBL'); // Get the plugins JPluginHelper::importPlugin('vmshipment'); JPluginHelper::importPlugin('vmshopper'); JPluginHelper::importPlugin('vmpayment'); $document = JFactory::getDocument(); $document->addScriptDeclaration ( " jQuery( function($) { $('.orderedit').hide(); $('.ordereditI').show(); $('.orderedit').css('backgroundColor', 'lightgray'); jQuery('.updateOrderItemStatus').click(function() { document.orderItemForm.task.value = 'updateOrderItemStatus'; document.orderItemForm.submit(); return false }); jQuery('select#virtuemart_paymentmethod_id').change(function(){ jQuery('span#delete_old_payment').show(); jQuery('input#delete_old_payment').attr('checked','checked'); }); }); function enableEdit(e) { jQuery('.orderedit').each( function() { var d = jQuery(this).css('visibility')=='visible'; jQuery(this).toggle(); jQuery('.orderedit').css('backgroundColor', d ? 'white' : 'lightgray'); jQuery('.orderedit').css('color', d ? 'blue' : 'black'); }); jQuery('.ordereditI').each( function() { jQuery(this).toggle(); }); e.preventDefault(); }; function addNewLine(e,i) { var row = jQuery('#itemTable').find('tbody tr:first').html(); var needle = 'item_id['+i+']'; //var needle = new RegExp('item_id['+i+']','igm'); while (row.contains(needle)){ row = row.replace(needle,'item_id[0]'); } //alert(needle); jQuery('#itemTable').find('tbody').prepend('<tr>'+row+'</tr>'); e.preventDefault(); }; function cancelEdit(e) { jQuery('#orderItemForm').each(function(){ this.reset(); }); jQuery('.selectItemStatusCode') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); jQuery('.orderedit').hide(); jQuery('.ordereditI').show(); e.preventDefault(); } function resetOrderHead(e) { jQuery('#orderForm').each(function(){ this.reset(); }); jQuery('select#virtuemart_paymentmethod_id') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); jQuery('select#virtuemart_shipmentmethod_id') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); e.preventDefault(); } "); ?> <form name='adminForm' id="adminForm"> <input type="hidden" name="task" value="" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="view" value="orders" /> <input type="hidden" name="virtuemart_order_id" value="<?php echo $this->orderID; ?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form> <table class="adminlist" width="100%"> <thead> <tr> <th> <a class="updateOrder" href="#"><span class="icon-nofloat vmicon vmicon-16-save"></span> <?php echo JText::_('COM_VIRTUEMART_ORDER_SAVE_USER_INFO'); ?></a> <a href="#" onClick="javascript:resetOrderHead(event);" ><span class="icon-nofloat vmicon vmicon-16-cancel"></span> <?php echo JText::_('COM_VIRTUEMART_ORDER_RESET'); ?></a> <!-- <a class="createOrder" href="#"><span class="icon-nofloat vmicon vmicon-16-new"></span> <?php echo JText::_('COM_VIRTUEMART_ORDER_CREATE'); ?></a> --> </th> </tr> </thead> </table> <table class="adminlist" style="table-layout: fixed;"> <tr> <td valign="top"> <table class="adminlist" cellspacing="0" cellpadding="0"> <tr> <th colspan="2"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_LBL') ?></th> </tr> <?php $print_url = juri::root().'index.php?option=com_virtuemart&view=invoice&layout=invoice&tmpl=component&virtuemart_order_id=' . $this->orderbt->virtuemart_order_id . '&order_number=' .$this->orderbt->order_number. '&order_pass=' .$this->orderbt->order_pass; $print_link = "<a title=\"".JText::_('COM_VIRTUEMART_PRINT')."\" href=\"javascript:void window.open('$print_url', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');\" >"; $print_link .= $this->orderbt->order_number . ' </a>'; ?> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_NUMBER') ?></strong></td> <td><?php echo $print_link;?></td> </tr> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_PASS') ?></strong></td> <td><?php echo $this->orderbt->order_pass;?></td> </tr> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_DATE') ?></strong></td> <td><?php echo vmJsApi::date($this->orderbt->created_on,'LC2',true); ?></td> </tr> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_STATUS') ?></strong></td> <td><?php echo $this->orderstatuslist[$this->orderbt->order_status]; ?></td> </tr> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_NAME') ?></strong></td> <td><?php $username=$this->orderbt->company ? $this->orderbt->company." ":""; $username.=$this->orderbt->first_name." ".$this->orderbt->last_name." "; if ($this->orderbt->virtuemart_user_id) { $userlink = JROUTE::_ ('index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=' . $this->orderbt->virtuemart_user_id); echo JHTML::_ ('link', JRoute::_ ($userlink), $username, array('title' => JText::_ ('COM_VIRTUEMART_ORDER_EDIT_USER') . ' ' . $username)); } else { echo $this->orderbt->first_name.' '.$this->orderbt->last_name; } ?> </td> </tr> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_IPADDRESS') ?></strong></td> <td><?php echo $this->orderbt->ip_address; ?></td> </tr> <?php if ($this->orderbt->coupon_code) { ?> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_COUPON_CODE') ?></strong></td> <td><?php echo $this->orderbt->coupon_code; ?></td> </tr> <?php } ?> <?php if ($this->orderbt->invoiceNumber and !shopFunctions::InvoiceNumberReserved($this->orderbt->invoiceNumber) ) { $invoice_url = juri::root().'index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=' . $this->orderbt->virtuemart_order_id . '&order_number=' .$this->orderbt->order_number. '&order_pass=' .$this->orderbt->order_pass; $invoice_link = "<a title=\"".JText::_('COM_VIRTUEMART_INVOICE_PRINT')."\" href=\"javascript:void window.open('$invoice_url', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');\" >"; $invoice_link .= $this->orderbt->invoiceNumber . '</a>';?> <tr> <td class="key"><strong><?php echo JText::_('COM_VIRTUEMART_INVOICE') ?></strong></td> <td><?php echo $invoice_link; ?></td> </tr> <?php } ?> </table> </td> <td valign="top"> <table class="adminlist" cellspacing="0" cellpadding="0"> <thead> <tr> <th><?php echo JText::_('COM_VIRTUEMART_ORDER_HISTORY_DATE_ADDED') ?></th> <th><?php echo JText::_('COM_VIRTUEMART_ORDER_HISTORY_CUSTOMER_NOTIFIED') ?></th> <th><?php echo JText::_('COM_VIRTUEMART_ORDER_LIST_STATUS') ?></th> <th><?php echo JText::_('COM_VIRTUEMART_COMMENT') ?></th> </tr> </thead> <?php foreach ($this->orderdetails['history'] as $this->orderbt_event ) { echo "<tr>"; echo "<td>". vmJsApi::date($this->orderbt_event->created_on,'LC2',true) ."</td>\n"; if ($this->orderbt_event->customer_notified == 1) { echo '<td align="center">'.JText::_('COM_VIRTUEMART_YES').'</td>'; } else { echo '<td align="center">'.JText::_('COM_VIRTUEMART_NO').'</td>'; } if(!isset($this->orderstatuslist[$this->orderbt_event->order_status_code])){ if(empty($this->orderbt_event->order_status_code)){ $this->orderbt_event->order_status_code = 'unknown'; } $_orderStatusList[$this->orderbt_event->order_status_code] = JText::_('COM_VIRTUEMART_UNKNOWN_ORDER_STATUS'); } echo '<td align="center">'.$this->orderstatuslist[$this->orderbt_event->order_status_code].'</td>'; echo "<td>".$this->orderbt_event->comments."</td>\n"; echo "</tr>\n"; } ?> <tr> <td colspan="4"> <a href="#" class="show_element"><span class="vmicon vmicon-16-editadd"></span><?php echo JText::_('COM_VIRTUEMART_ORDER_UPDATE_STATUS') ?></a> <div style="display: none; background: white; z-index: 100;" class="element-hidden vm-absolute" id="updateOrderStatus"><?php echo $this->loadTemplate('editstatus'); ?> </div> </td> </tr> <?php // Load additional plugins $_dispatcher = JDispatcher::getInstance(); $_returnValues1 = $_dispatcher->trigger('plgVmOnUpdateOrderBEPayment',array($this->orderID)); $_returnValues2 = $_dispatcher->trigger('plgVmOnUpdateOrderBEShipment',array( $this->orderID)); $_returnValues = array_merge($_returnValues1, $_returnValues2); $_plg = ''; foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { $_plg .= (' <td colspan="4">' . $_returnValue . "</td>\n"); } } if ($_plg !== '') { echo "<tr>\n$_plg</tr>\n"; } ?> </table> </td> </tr> </table> <form action="index.php" method="post" name="orderForm" id="orderForm"><!-- Update order head form --> <table width="100%"> <?php if ($this->orderbt->customer_note || true) { ?> <tr> <td valign="top" width="50%"> <table class="adminlist" cellspacing="0" cellpadding="0"> <thead> <tr> <th><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_CUSTOMER_NOTE') ?></th> </tr> </thead> <tr> <td valign="top" align="left" width="50%"> <textarea rows="4" cols="50" name="customer_note"><?php echo $this->orderbt->customer_note; ?></textarea> </td> </tr> </table> </td> <td valign="top" width="50%"> <table class="adminlist" cellspacing="0" cellpadding="0"> <thead> <tr> <th colspan="2"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT_SHIPMENT') ?></th> </tr> </thead> <tr> <td><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT_LBL') ?></td> <?php $model = VmModel::getModel('paymentmethod'); $payments = $model->getPayments(); $model = VmModel::getModel('shipmentmethod'); $shipments = $model->getShipments(); ?> <td> <input type="hidden" size="10" name="virtuemart_paymentmethod_id" value="<?php echo $this->orderbt->virtuemart_paymentmethod_id; ?>"/> <!-- <? echo VmHTML::select("virtuemart_paymentmethod_id", $payments, $this->orderbt->virtuemart_paymentmethod_id, '', "virtuemart_paymentmethod_id", "payment_name"); ?> <span id="delete_old_payment" style="display: none;"><br /> <input id="delete_old_payment" type="checkbox" name="delete_old_payment" value="1" /> <label class='' for="" title="<?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT_DELETE_DESC'); ?>"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT_DELETE'); ?></label> </span> --> <?php foreach($payments as $payment) { if($payment->virtuemart_paymentmethod_id == $this->orderbt->virtuemart_paymentmethod_id) echo $payment->payment_name; } ?> </td> </tr> <tr> <td><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPMENT_LBL') ?></td> <td> <input type="hidden" size="10" name="virtuemart_shipmentmethod_id" value="<?php echo $this->orderbt->virtuemart_shipmentmethod_id; ?>"/> <!-- <? echo VmHTML::select("virtuemart_shipmentmethod_id", $shipments, $this->orderbt->virtuemart_shipmentmethod_id, '', "virtuemart_shipmentmethod_id", "shipment_name"); ?> <span id="delete_old_shipment" style="display: none;"><br /> <input id="delete_old_shipment" type="checkbox" name="delete_old_shipment" value="1" /> <label class='' for=""><?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_CALCULATE'); ?></label> </span> --> <?php foreach($shipments as $shipment) { if($shipment->virtuemart_shipmentmethod_id == $this->orderbt->virtuemart_shipmentmethod_id) echo $shipment->shipment_name; } ?> </td> </tr> <tr> <td class="key"><?php echo JText::_('COM_VIRTUEMART_DELIVERY_DATE') ?></td> <td><input type="text" maxlength="190" class="required" value="<?php echo $this->orderbt->delivery_date; ?>" size="30" name="delivery_date" id="delivery_date_field"></td> </tr> </table> </td> </tr> <?php } ?> </table> <table width="100%"> <tr> <td width="50%" valign="top"> <table class="adminlist" width="100%"> <thead> <tr> <th style="text-align: center;" colspan="2"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_BILL_TO_LBL') ?></th> </tr> </thead> <?php foreach ($this->userfields['fields'] as $_field ) { echo ' <tr>'."\n"; echo ' <td class="key">'."\n"; echo ' <label for="'.$_field['name'].'_field">'."\n"; echo ' '.$_field['title'] . ($_field['required']?' *': '')."\n"; echo ' </label>'."\n"; echo ' </td>'."\n"; echo ' <td>'."\n"; echo ' '.$_field['formcode']."\n"; echo ' </td>'."\n"; echo ' </tr>'."\n"; //*/ /* $fn = $_field['name']; $fv = $_field['value']; $ft = $_field['title']; echo ' <tr>'."\n"; echo ' <td class="key">'."\n"; echo ' '.$ft."\n"; echo ' </td>'."\n"; echo ' <td>'."\n"; echo " <input name='BT_$fn' id='$fn' value='$fv' size='50'>\n"; echo ' </td>'."\n"; echo ' </tr>'."\n";*/ } ?> </table> </td> <td width="50%" valign="top"> <table class="adminlist" width="100%"> <thead> <tr> <th style="text-align: center;" colspan="2"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIP_TO_LBL') ?></th> </tr> </thead> <?php foreach ($this->shipmentfields['fields'] as $_field ) { echo ' <tr>'."\n"; echo ' <td class="key">'."\n"; echo ' <label for="'.$_field['name'].'_field">'."\n"; echo ' '.$_field['title'] . ($_field['required']?' *': '')."\n"; echo ' </label>'."\n"; echo ' </td>'."\n"; echo ' <td>'."\n"; echo ' '.$_field['formcode']."\n"; echo ' </td>'."\n"; echo ' </tr>'."\n"; } ?> </table> </td> </tr> </table> <input type="hidden" name="task" value="updateOrderHead" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="view" value="orders" /> <input type="hidden" name="virtuemart_order_id" value="<?php echo $this->orderID; ?>" /> <input type="hidden" name="old_virtuemart_paymentmethod_id" value="<?php echo $this->orderbt->virtuemart_paymentmethod_id; ?>" /> <input type="hidden" name="old_virtuemart_shipmentmethod_id" value="<?php echo $this->orderbt->virtuemart_shipmentmethod_id; ?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form> <table width="100%"> <tr> <td colspan="2"> <form action="index.php" method="post" name="orderItemForm" id="orderItemForm"><!-- Update linestatus form --> <table class="adminlist" cellspacing="0" cellpadding="0" id="itemTable" > <thead> <tr> <!--<th class="title" width="5%" align="left"><?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_ACTIONS') ?></th> --> <th class="title" width="3" align="left">#</th> <th class="title" width="47" align="left"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_QUANTITY') ?></th> <th class="title" width="*" align="left"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_NAME') ?></th> <th class="title" width="10%" align="left"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SKU') ?></th> <th class="title" width="10%"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_ITEM_STATUS') ?></th> <th class="title" width="50"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_NET') ?></th> <th class="title" width="50"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_BASEWITHTAX') ?></th> <th class="title" width="50"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_GROSS') ?></th> <th class="title" width="50"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_TAX') ?></th> <th class="title" width="50"> <?php echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PRICE_DISCOUNT') ?></th> <th class="title" width="5%"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></th> </tr> </thead> <?php $i=1; foreach ($this->orderdetails['items'] as $item) { ?> <!-- Display the order item --> <tr valign="top" ><?php /*id="showItem_<?php echo $item->virtuemart_order_item_id; ?>" data-itemid="<?php echo $item->virtuemart_order_item_id; ?>">*/ ?> <!--<td> <?php $removeLineLink=JRoute::_('index.php?option=com_virtuemart&view=orders&orderId='.$this->orderbt->virtuemart_order_id.'&orderLineId='.$item->virtuemart_order_item_id.'&task=removeOrderItem'); ?> <a class="vmicon vmicon-16-bug" title="<?php echo JText::_('remove'); ?>" onclick="javascript:confirmation('<?php echo $removeLineLink; ?>');"></a> <a href="javascript:enableItemEdit(<?php echo $item->virtuemart_order_item_id; ?>)"> <?php echo JHTML::_('image', 'administrator/components/com_virtuemart/assets/images/icon_16/icon-16-category.png', "Edit", NULL, "Edit"); ?></a> </td> --> <td> <?php echo ($i++)?> </td> <td> <span class='ordereditI'><?php echo $item->product_quantity; ?></span> <input class='orderedit' type="text" size="3" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_quantity]" value="<?php echo $item->product_quantity; ?>"/> </td> <td> <span class='ordereditI'><?php echo $item->order_item_name; ?></span> <input class='orderedit' type="text" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][order_item_name]" value="<?php echo $item->order_item_name; ?>"/><?php //echo $item->order_item_name; if (!empty($item->product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'BE'); echo '<div>'.$product_attribute.'</div>'; } $_dispatcher = JDispatcher::getInstance(); $_returnValues = $_dispatcher->trigger('plgVmOnShowOrderLineBEShipment',array( $this->orderID,$item->virtuemart_order_item_id)); $_plg = ''; foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { $_plg .= $_returnValue; } } if ($_plg !== '') { echo '<table border="0" celspacing="0" celpadding="0">' . '<tr>' . '<td width="8px"></td>' // Indent . '<td>'.$_plg.'</td>' . '</tr>' . '</table>'; } ?> <?php if(empty($item->virtuemart_product_id)) { ?> <span class='orderedit'>Product ID:</span> <input class='orderedit' type="text" size="10" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][virtuemart_product_id]" value="<?php echo $item->virtuemart_product_id; ?>"/> <?php } ?> </td> <td> <span class='ordereditI'><?php echo $item->order_item_sku; ?></span> <input class='orderedit' type="text" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][order_item_sku]" value="<?php echo $item->order_item_sku; ?>"/> </td> <td align="center"> <!--<?php echo $this->orderstatuslist[$item->order_status]; ?><br />--> <?php echo $this->itemstatusupdatefields[$item->virtuemart_order_item_id]; ?> </td> <td align="right" style="padding-right: 5px;"> <?php $item->product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax; if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) { echo '<span style="text-decoration:line-through">'.$this->currency->priceDisplay($item->product_item_price) .'</span><br />'; echo '<span >'.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax) .'</span><br />'; } else { echo '<span >'.$this->currency->priceDisplay($item->product_item_price) .'</span><br />'; } ?> <input class='orderedit' type="text" size="8" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_item_price]" value="<?php echo $item->product_item_price; ?>"/> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($item->product_basePriceWithTax); ?> <input class='orderedit' type="text" size="8" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_basePriceWithTax]" value="<?php echo $item->product_basePriceWithTax; ?>"/> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($item->product_final_price); ?> <input class='orderedit' type="text" size="8" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_final_price]" value="<?php echo $item->product_final_price; ?>"/> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay( $item->product_tax); ?> <input class='orderedit' type="text" size="12" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_tax]" value="<?php echo $item->product_tax; ?>"/> <span style="display: block; font-size: 80%;" title="<?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_CALCULATE_DESC'); ?>"> <input class='orderedit' type="checkbox" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][calculate_product_tax]" value="1" /> <label class='orderedit' for="calculate_product_tax"><?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_CALCULATE'); ?></label> </span> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay( $item->product_subtotal_discount); ?> <input class='orderedit' type="text" size="8" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_subtotal_discount]" value="<?php echo $item->product_subtotal_discount; ?>"/> </td> <td align="right" style="padding-right: 5px;"> <?php $item->product_basePriceWithTax = (float) $item->product_basePriceWithTax; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo '<span style="text-decoration:line-through" >'.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$item->product_quantity) .'</span><br />' ; } elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) { echo '<span style="text-decoration:line-through">' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$item->product_quantity) . '</span><br />'; } echo $this->currency->priceDisplay($item->product_subtotal_with_tax); ?> <input class='orderedit' type="hidden" size="8" name="item_id[<?php echo $item->virtuemart_order_item_id; ?>][product_subtotal_with_tax]" value="<?php echo $item->product_subtotal_with_tax; ?>"/> </td> </tr> <?php } ?> <tr id="updateOrderItemStatus"> <td colspan="5"> <!-- <a class="newOrderItem" href="#"><span class="icon-nofloat vmicon vmicon-16-new"></span><?php echo JText::_('COM_VIRTUEMART_NEW_ITEM'); ?></a> --> <a class="updateOrderItemStatus" href="#"><span class="icon-nofloat vmicon vmicon-16-save"></span><?php echo JText::_('COM_VIRTUEMART_SAVE'); ?></a> <a href="#" onClick="javascript:cancelEdit(event);" ><span class="icon-nofloat vmicon vmicon-16-remove"></span><?php echo ' '. JText::_('COM_VIRTUEMART_CANCEL'); ?></a> <a href="#" onClick="javascript:enableEdit(event);"><span class="icon-nofloat vmicon vmicon-16-edit"></span><?php echo ' '. JText::_('COM_VIRTUEMART_EDIT'); ?></a> <a href="#" onClick="javascript:addNewLine(event,<?php echo $this->orderdetails['items'][0]->virtuemart_order_item_id ?>);"><span class="icon-nofloat vmicon vmicon-16-new"></span><?php echo ' '. JText::_('JTOOLBAR_NEW'); ?></a> </td> <td colspan="6"> <?php // echo JHTML::_('image', 'administrator/components/com_virtuemart/assets/images/vm_witharrow.png', 'With selected'); $this->orderStatSelect; ?> </td> </tr> <!--/table --> <input type="hidden" name="task" value="" /> <input type="hidden" name="option" value="com_virtuemart" /> <input type="hidden" name="view" value="orders" /> <input type="hidden" name="virtuemart_order_id" value="<?php echo $this->orderID; ?>" /> <input type="hidden" name="virtuemart_paymentmethod_id" value="<?php echo $this->orderbt->virtuemart_paymentmethod_id; ?>" /> <input type="hidden" name="virtuemart_shipmentmethod_id" value="<?php echo $this->orderbt->virtuemart_shipmentmethod_id; ?>" /> <input type="hidden" name="order_total" value="<?php echo $this->orderbt->order_total; ?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form> <!-- Update linestatus form --> <!--table class="adminlist" cellspacing="0" cellpadding="0" --> <tr> <td align="left" colspan="1"><?php $editLineLink=JRoute::_('index.php?option=com_virtuemart&view=orders&orderId='.$this->orderbt->virtuemart_order_id.'&orderLineId=0&tmpl=component&task=editOrderItem'); ?> <!-- <a href="<?php echo $editLineLink; ?>" class="modal"> <?php echo JHTML::_('image', 'administrator/components/com_virtuemart/assets/images/icon_16/icon-16-editadd.png', "New Item"); ?> New Item </a>--></td> <td align="right" colspan="4"> <div align="right"><strong> <?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL') ?>: </strong></div> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_subtotal); ?></td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_tax); ?></td> <td align="right"> <?php echo $this->currency->priceDisplay($this->orderbt->order_discountAmount); ?></td> <td width="15%" align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_salesPrice); ?></td> </tr> <?php /* COUPON DISCOUNT */ //if (VmConfig::get('coupons_enable') == '1') { if ($this->orderbt->coupon_discount > 0 || $this->orderbt->coupon_discount < 0) { ?> <tr> <td align="right" colspan="5"><strong><?php echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT') ?></strong></td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->coupon_discount); ?></td> </tr> <?php //} }?> <?php foreach($this->orderdetails['calc_rules'] as $rule){ if ($rule->calc_kind == 'DBTaxRulesBill') { ?> <tr > <td colspan="5" align="right" ><?php echo $rule->calc_rule_name ?> </td> <td align="right" colspan="3" > </td> <td align="right"> <!-- <?php echo $this->currency->priceDisplay($rule->calc_amount);?> <input class='orderedit' type="text" size="8" name="calc_rules[<?php echo $rule->calc_kind ?>][<?php echo $rule->virtuemart_order_calc_rule_id ?>][calc_tax]" value="<?php echo $rule->calc_amount; ?>"/> --> </td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?></td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($rule->calc_amount);?> <input class='orderedit' type="text" size="8" name="calc_rules[<?php echo $rule->calc_kind ?>][<?php echo $rule->virtuemart_order_calc_rule_id ?>]" value="<?php echo $rule->calc_amount; ?>"/> </td> </tr> <?php } elseif ($rule->calc_kind == 'taxRulesBill') { ?> <tr > <td colspan="5" align="right" ><?php echo $rule->calc_rule_name ?> </td> <td align="right" colspan="3" > </td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?></td> <td align="right"> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($rule->calc_amount); ?> <input class='orderedit' type="text" size="8" name="calc_rules[<?php echo $rule->calc_kind ?>][<?php echo $rule->virtuemart_order_calc_rule_id ?>]" value="<?php echo $rule->calc_amount; ?>"/> </td> </tr> <?php } elseif ($rule->calc_kind == 'DATaxRulesBill') { ?> <tr > <td colspan="5" align="right" ><?php echo $rule->calc_rule_name ?> </td> <td align="right" colspan="3" > </td> <td align="right"> </td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount); ?></td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($rule->calc_amount); ?> <input class='orderedit' type="text" size="8" name="calc_rules[<?php echo $rule->calc_kind ?>][<?php echo $rule->virtuemart_order_calc_rule_id ?>]" value="<?php echo $rule->calc_amount; ?>"/> </td> </tr> <?php } } ?> <tr> <td align="right" colspan="5"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPPING') ?>:</strong></td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_shipment); ?> <input class='orderedit' type="text" size="8" name="order_shipment" value="<?php echo $this->orderbt->order_shipment; ?>"/> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_shipment_tax); ?> <input class='orderedit' type="text" size="12" name="order_shipment_tax" value="<?php echo $this->orderbt->order_shipment_tax; ?>"/> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_shipment+$this->orderbt->order_shipment_tax); ?></td> </tr> <tr> <td align="right" colspan="5"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT') ?>:</strong></td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_payment); ?> <input class='orderedit' type="text" size="8" name="order_payment" value="<?php echo $this->orderbt->order_payment; ?>"/> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_payment_tax); ?> <input class='orderedit' type="text" size="12" name="order_payment_tax" value="<?php echo $this->orderbt->order_payment_tax; ?>"/> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><?php echo $this->currency->priceDisplay($this->orderbt->order_payment+$this->orderbt->order_payment_tax); ?></td> </tr> <tr> <td align="right" colspan="5"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?>:</strong></td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> <?php echo $this->currency->priceDisplay($this->orderbt->order_billTaxAmount); ?> <input class='orderedit' type="text" size="12" name="order_billTaxAmount" value="<?php echo $this->orderbt->order_billTaxAmount; ?>"/> <span style="display: block; font-size: 80%;" title="<?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_CALCULATE_DESC'); ?>"> <input class='orderedit' type="checkbox" name="calculate_billTaxAmount" value="1" checked /> <label class='orderedit' for="calculate_billTaxAmount"><?php echo JText::_('COM_VIRTUEMART_ORDER_EDIT_CALCULATE'); ?></label> </span> </td> <td align="right" style="padding-right: 5px;"><strong><?php echo $this->currency->priceDisplay($this->orderbt->order_billDiscountAmount); ?></strong></td> <td align="right" style="padding-right: 5px;"><strong><?php echo $this->currency->priceDisplay($this->orderbt->order_total); ?></strong> </td> </tr> <?php if ($this->orderbt->user_currency_rate != 1.0) { ?> <tr> <td align="right" colspan="5"><em><?php echo JText::_('COM_VIRTUEMART_ORDER_USER_CURRENCY_RATE') ?>:</em></td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"> </td> <td align="right" style="padding-right: 5px;"><em><?php echo $this->orderbt->user_currency_rate ?></em></td> </tr> <?php } ?> </table> </td> </tr> </table> <table width="100%"> <tr> <td valign="top" width="50%"><?php JPluginHelper::importPlugin('vmshipment'); $_dispatcher = JDispatcher::getInstance(); $returnValues = $_dispatcher->trigger('plgVmOnShowOrderBEShipment',array( $this->orderID,$this->orderbt->virtuemart_shipmentmethod_id, $this->orderdetails)); foreach ($returnValues as $returnValue) { if ($returnValue !== null) { echo $returnValue; } } ?> </td> <td valign="top"><?php JPluginHelper::importPlugin('vmpayment'); $_dispatcher = JDispatcher::getInstance(); $_returnValues = $_dispatcher->trigger('plgVmOnShowOrderBEPayment',array( $this->orderID,$this->orderbt->virtuemart_paymentmethod_id, $this->orderdetails)); foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { echo $_returnValue; } } ?></td> </tr> </table> <?php AdminUIHelper::imitateTabs('end'); AdminUIHelper::endAdminArea(); ?> <script type="text/javascript"> jQuery('.show_element').click(function() { jQuery('.element-hidden').toggle(); return false; }); // jQuery('select#order_items_status').change(function() { ////selectItemStatusCode // var statusCode = this.value; // jQuery('.selectItemStatusCode').val(statusCode); // return false // }); jQuery('.updateOrderItemStatus').click(function() { document.orderItemForm.task.value = 'updateOrderItemStatus'; document.orderItemForm.submit(); return false; }); jQuery('.updateOrder').click(function() { document.orderForm.submit(); return false; }); jQuery('.createOrder').click(function() { document.orderForm.task.value = 'CreateOrderHead'; document.orderForm.submit(); return false; }); jQuery('.newOrderItem').click(function() { document.orderItemForm.task.value = 'newOrderItem'; document.orderItemForm.submit(); return false; }); function confirmation(destnUrl) { var answer = confirm("<?php echo addslashes( JText::_('COM_VIRTUEMART_ORDER_DELETE_ITEM_JS') ); ?>"); if (answer) { window.location = destnUrl; } } /* JS for editstatus */ jQuery('.orderStatFormSubmit').click(function() { //document.orderStatForm.task.value = 'updateOrderItemStatus'; document.orderStatForm.submit(); return false; }); var editingItem = 0; </script> tmpl/orders.php 0000666 00000023662 15137216744 0007556 0 ustar 00 <?php /** * * Description * * @package VirtueMart * @subpackage * @author * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id$ */ // Check to ensure this file is included in Joomla! defined ('_JEXEC') or die('Restricted access'); AdminUIHelper::startAdminArea ($this); ?> <form action="index.php" method="post" name="adminForm" id="adminForm"> <div id="header"> <div id="filterbox"> <table> <tr> <td align="left" width="100%"> <?php echo $this->displayDefaultViewSearch ('COM_VIRTUEMART_ORDER_PRINT_NAME'); ?> <?php echo JText::_ ('COM_VIRTUEMART_ORDERSTATUS') . ':' . $this->lists['state_list']; ?> </td> </tr> </table> </div> <div id="resultscounter"><?php echo $this->pagination->getResultsCounter (); ?></div> </div> <table class="adminlist" cellspacing="0" cellpadding="0"> <thead> <tr> <th><input type="checkbox" name="toggle" value="" onclick="checkAll('<?php echo count ($this->orderslist); ?>')"/></th> <th><?php echo $this->sort ('order_number', 'COM_VIRTUEMART_ORDER_LIST_NUMBER') ?></th> <th><?php echo $this->sort ('order_name', 'COM_VIRTUEMART_ORDER_PRINT_NAME') ?></th> <th><?php echo $this->sort ('order_email', 'COM_VIRTUEMART_EMAIL') ?></th> <th><?php echo $this->sort ('payment_method', 'COM_VIRTUEMART_ORDER_PRINT_PAYMENT_LBL') ?></th> <th><?php echo JText::_ ('COM_VIRTUEMART_PRINT_VIEW'); ?></th> <th><?php echo $this->sort ('created_on', 'COM_VIRTUEMART_ORDER_CDATE') ?></th> <th><?php echo $this->sort ('modified_on', 'COM_VIRTUEMART_ORDER_LIST_MDATE') ?></th> <th><?php echo $this->sort ('order_status', 'COM_VIRTUEMART_STATUS') ?></th> <th><?php echo JText::_ ('COM_VIRTUEMART_ORDER_LIST_NOTIFY'); ?></th> <th><?php echo $this->sort ('order_total', 'COM_VIRTUEMART_TOTAL') ?></th> <th><?php echo $this->sort ('virtuemart_order_id', 'COM_VIRTUEMART_ORDER_LIST_ID') ?></th> </tr> </thead> <tbody> <?php if (count ($this->orderslist) > 0) { $i = 0; $k = 0; $keyword = JRequest::getWord ('keyword'); foreach ($this->orderslist as $key => $order) { $checked = JHTML::_ ('grid.id', $i, $order->virtuemart_order_id); ?> <tr class="row<?php echo $k; ?>"> <!-- Checkbox --> <td><?php echo $checked; ?></td> <!-- Order id --> <?php $link = 'index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id=' . $order->virtuemart_order_id; ?> <td><?php echo JHTML::_ ('link', JRoute::_ ($link, FALSE), $order->order_number, array('title' => JText::_ ('COM_VIRTUEMART_ORDER_EDIT_ORDER_NUMBER') . ' ' . $order->order_number)); ?></td> <td> <?php if ($order->virtuemart_user_id) { $userlink = JROUTE::_ ('index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=' . $order->virtuemart_user_id, FALSE); echo JHTML::_ ('link', JRoute::_ ($userlink, FALSE), $order->order_name, array('title' => JText::_ ('COM_VIRTUEMART_ORDER_EDIT_USER') . ' ' . $order->order_name)); } else { echo $order->order_name; } ?> </td> <td> <?php echo $order->order_email; ?> </td> <!-- Payment method --> <td><?php echo $order->payment_method; ?></td> <!-- Print view --> <?php /* Print view URL */ $print_url = juri::root () . 'index.php?option=com_virtuemart&view=invoice&layout=invoice&tmpl=component&virtuemart_order_id=' . $order->virtuemart_order_id . '&order_number=' . $order->order_number . '&order_pass=' . $order->order_pass; $print_link = "<a href=\"javascript:void window.open('$print_url', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');\" >"; $print_link .= '<span class="hasTip print_32" title="' . JText::_ ('COM_VIRTUEMART_PRINT') . '"> </span></a>'; $invoice_link = ''; $deliverynote_link = ''; if (!$order->invoiceNumber) { $invoice_url = juri::root () . 'index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=' . $order->virtuemart_order_id . '&order_number=' . $order->order_number . '&order_pass=' . $order->order_pass . '&create_invoice=1'; $invoice_link .= "<a href=\"$invoice_url\" >".'<span class="hasTip invoicenew_32" title="' . JText::_ ('COM_VIRTUEMART_INVOICE_CREATE') . '"></span></a>'; } elseif (!shopFunctions::InvoiceNumberReserved ($order->invoiceNumber)) { $invoice_url = juri::root () . 'index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=' . $order->virtuemart_order_id . '&order_number=' . $order->order_number . '&order_pass=' . $order->order_pass; $invoice_link = "<a href=\"$invoice_url\" >" . '<span class="hasTip invoice_32" title="' . JText::_ ('COM_VIRTUEMART_INVOICE') . '"></span></a>'; } if (!$order->invoiceNumber) { $deliverynote_url = juri::root () . 'index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=' . $order->virtuemart_order_id . '&order_number=' . $order->order_number . '&order_pass=' . $order->order_pass . '&create_invoice=1'; $deliverynote_link = "<a href=\"$deliverynote_url\" >" . '<span class="hasTip deliverynotenew_32" title="' . JText::_ ('COM_VIRTUEMART_DELIVERYNOTE_CREATE') . '"></span></a>'; } elseif (!shopFunctions::InvoiceNumberReserved ($order->invoiceNumber)) { $deliverynote_url = juri::root () . 'index.php?option=com_virtuemart&view=invoice&layout=deliverynote&format=pdf&tmpl=component&virtuemart_order_id=' . $order->virtuemart_order_id . '&order_number=' . $order->order_number . '&order_pass=' . $order->order_pass; $deliverynote_link = "<a href=\"$deliverynote_url\" >" . '<span class="hasTip deliverynote_32" title="' . JText::_ ('COM_VIRTUEMART_DELIVERYNOTE') . '"></span></a>'; } ?> <td><?php echo $print_link; echo $deliverynote_link; echo $invoice_link; ?></td> <!-- Order date --> <td><?php echo vmJsApi::date ($order->created_on, 'LC2', TRUE); ?></td> <!-- Last modified --> <td><?php echo vmJsApi::date ($order->modified_on, 'LC2', TRUE); ?></td> <!-- Status --> <td style="position:relative;"> <?php echo JHTML::_ ('select.genericlist', $this->orderstatuses, "orders[" . $order->virtuemart_order_id . "][order_status]", 'class="orderstatus_select"', 'order_status_code', 'order_status_name', $order->order_status, 'order_status' . $i, TRUE); ?> <input type="hidden" name="orders[<?php echo $order->virtuemart_order_id; ?>][current_order_status]" value="<?php echo $order->order_status; ?>"/> <input type="hidden" name="orders[<?php echo $order->virtuemart_order_id; ?>][coupon_code]" value="<?php echo $order->coupon_code; ?>"/> <br/> <textarea class="element-hidden vm-order_comment vm-showable" name="orders[<?php echo $order->virtuemart_order_id; ?>][comments]" cols="5" rows="5"></textarea> <?php echo JHTML::_ ('link', '#', JText::_ ('COM_VIRTUEMART_ADD_COMMENT'), array('class' => 'show_comment')); ?> </td> <!-- Update --> <td><?php echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][customer_notified]', 0) . JText::_ ('COM_VIRTUEMART_ORDER_LIST_NOTIFY'); ?> <br/> <?php echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][customer_send_comment]', 1) . JText::_ ('COM_VIRTUEMART_ORDER_HISTORY_INCLUDE_COMMENT'); ?> <br/> <?php echo VmHTML::checkbox ('orders[' . $order->virtuemart_order_id . '][update_lines]', 1) . JText::_ ('COM_VIRTUEMART_ORDER_UPDATE_LINESTATUS'); ?> </td> <!-- Total --> <td><?php echo $order->order_total; ?></td> <td><?php echo JHTML::_ ('link', JRoute::_ ($link, FALSE), $order->virtuemart_order_id, array('title' => JText::_ ('COM_VIRTUEMART_ORDER_EDIT_ORDER_ID') . ' ' . $order->virtuemart_order_id)); ?></td> </tr> <?php $k = 1 - $k; $i++; } } ?> </tbody> <tfoot> <tr> <td colspan="12"> <?php echo $this->pagination->getListFooter (); ?> </td> </tr> </tfoot> </table> <!-- Hidden Fields --> <?php echo $this->addStandardHiddenToForm (); ?> </form> <?php AdminUIHelper::endAdminArea (); ?> <script type="text/javascript"> <!-- jQuery('.show_comment').click(function() { jQuery(this).prev('.element-hidden').show(); return false }); jQuery('.element-hidden').mouseleave(function() { jQuery(this).hide(); }); jQuery('.element-hidden').mouseout(function() { jQuery(this).hide(); }); --> </script> <script> jQuery(document).ready(function() { jQuery('.orderstatus_select').change( function() { var name = jQuery(this).attr('name'); var brindex = name.indexOf("orders["); if ( brindex >= 0){ //yeh, yeh, maybe not the most elegant way, but it does, what it should var s = name.indexOf("[")+1; var e = name.indexOf("]"); var id = name.substring(s,e); <?php $orderstatusForShopperEmail = VmConfig::get('email_os_s',array('U','C','S','R','X')); if(!is_array($orderstatusForShopperEmail)) $orderstatusForShopperEmail = array($orderstatusForShopperEmail); $jsOrderStatusShopperEmail = json_encode($orderstatusForShopperEmail); ?> var orderstatus = <?php echo $jsOrderStatusShopperEmail ?>; var selected = jQuery(this).val(); var selStr = '[name="orders['+id+'][customer_notified]"]'; var elem = jQuery(selStr); if(jQuery.inArray(selected, orderstatus)!=-1){ elem.attr("checked",true); // for the checkbox jQuery(this).parent().parent().find('input[name="cid[]"]').attr("checked",true); } else { elem.attr("checked",false); } } }); }); </script>