Esempio n. 1
0
 public function display($tpl = null)
 {
     global $context;
     $model = $this->getModel('opsearch');
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $order_function = new order_functions();
     $document->addStyleSheet('components/com_redshop/assets/css/search.css');
     $document->addScript('components/com_redshop/assets/js/search.js');
     $document->setTitle(JText::_('COM_REDSHOP_PRODUCT_ORDER_SEARCH_BY_CUSTOMER'));
     JToolBarHelper::title(JText::_('COM_REDSHOP_PRODUCT_ORDER_SEARCH_BY_CUSTOMER'), 'redshop_order48');
     $lists['order'] = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', 'order_item_name');
     $lists['order_Dir'] = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', '');
     $filter_user = $app->getUserStateFromRequest($context . 'filter_user', 'filter_user', 0);
     $filter_status = $app->getUserStateFromRequest($context . 'filter_status', 'filter_status', 0);
     $products = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $lists['filter_user'] = $model->getuserlist('filter_user', $filter_user, 'class="inputbox" size="1" onchange="document.adminForm.submit();"');
     $lists['filter_status'] = $order_function->getstatuslist('filter_status', $filter_status, 'class="inputbox" size="1" onchange="document.adminForm.submit();"');
     $this->lists = $lists;
     $this->products = $products;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Esempio n. 2
0
 public function display($tpl = null)
 {
     $context = 'order_id';
     require_once JPATH_COMPONENT . '/helpers/order.php';
     $order_function = new order_functions();
     $uri = JFactory::getURI();
     $app = JFactory::getApplication();
     $document = JFactory::getDocument();
     $document->setTitle(JText::_('COM_REDSHOP_ORDER'));
     $model = $this->getModel('order');
     $layout = JRequest::getVar('layout');
     if ($layout == 'previewlog') {
         $this->setLayout($layout);
     } elseif ($layout == 'labellisting') {
         JToolBarHelper::title(JText::_('COM_REDSHOP_DOWNLOAD_LABEL'), 'redshop_order48');
         $this->setLayout('labellisting');
         JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
     } else {
         JToolBarHelper::custom('multiprint_order', 'print_f2.png', 'print_f2.png', JText::_('COM_REDSHOP_MULTI_PRINT_ORDER_LBL'), true);
         JToolBarHelper::title(JText::_('COM_REDSHOP_ORDER_MANAGEMENT'), 'redshop_order48');
         JToolBarHelper::addNewX();
         JToolBarHelper::custom('allstatus', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_CHANGE_STATUS_TO_ALL_LBL'), true);
         JToolBarHelper::custom('export_data', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_EXPORT_DATA_LBL'), false);
         JToolBarHelper::custom('export_fullorder_data', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_EXPORT_FULL_DATA_LBL'), false);
         JToolBarHelper::custom('gls_export', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_EXPORT_GLS_LBL'), false);
         JToolBarHelper::custom('business_gls_export', 'save.png', 'save_f2.png', JText::_('COM_REDSHOP_EXPORT_GLS_BUSINESS_LBL'), false);
         JToolBarHelper::deleteList();
     }
     $filter_order = $app->getUserStateFromRequest($context . 'filter_order', 'filter_order', ' o.order_id ');
     $filter_order_Dir = $app->getUserStateFromRequest($context . 'filter_order_Dir', 'filter_order_Dir', 'DESC');
     $filter_by = $app->getUserStateFromRequest($context . 'filter_by', 'filter_by', '', '');
     $filter_status = $app->getUserStateFromRequest($context . 'filter_status', 'filter_status', '', 'string');
     $filter_payment_status = $app->getUserStateFromRequest($context . 'filter_payment_status', 'filter_payment_status', '', '');
     $lists['order'] = $filter_order;
     $lists['order_Dir'] = $filter_order_Dir;
     $orders = $this->get('Data');
     $total = $this->get('Total');
     $pagination = $this->get('Pagination');
     $lists['filter_by'] = $order_function->getFilterbyList('filter_by', $filter_by, 'class="inputbox" size="1"');
     $lists['filter_status'] = $order_function->getstatuslist('filter_status', $filter_status, 'class="inputbox" size="1" onchange="document.adminForm.submit();"');
     $lists['filter_payment_status'] = $order_function->getpaymentstatuslist('filter_payment_status', $filter_payment_status, 'class="inputbox" size="1" onchange="document.adminForm.submit();" ');
     $this->user = JFactory::getUser();
     $this->lists = $lists;
     $this->orders = $orders;
     $this->pagination = $pagination;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Esempio n. 3
0
				<?php 
//}
?>
				<tr>
					<td><?php 
echo JText::_('COM_REDSHOP_ORDER_STATUS');
?>
:</td>
					<td>
						<?php 
$send_mail_to_customer = 0;
if (SEND_MAIL_TO_CUSTOMER) {
    $send_mail_to_customer = "checked";
}
$linkupdate = JRoute::_('index.php?option=' . $option . '&view=order&task=update_status&return=order_detail&order_id[]=' . $order_id);
echo $order_functions->getstatuslist('status', $this->detail->order_status, "class=\"inputbox\" size=\"1\" ");
echo "&nbsp";
echo $order_functions->getpaymentstatuslist('order_paymentstatus', $this->detail->order_payment_status, "class=\"inputbox\" size=\"1\" ");
?>
						<?php 
if ($tmpl) {
    ?>
							<input type="hidden" name="tmpl" value="<?php 
    echo $tmpl;
    ?>
">
						<?php 
}
?>
						<input type="checkbox" <?php 
echo $send_mail_to_customer;
Esempio n. 4
0
    echo JText::_('COM_REDSHOP_REQUISITION_NUMBER');
    ?>
</td>
					<td><input name="requisition_number" id="requisition_number" value=""/></td>
				</tr>
				<?php 
    //}
    ?>
				<tr>
					<td><?php 
    echo JText::_('COM_REDSHOP_ORDER_STATUS');
    ?>
</td>
					<td><?php 
    //					$linkupdate = JRoute::_( 'index.php?option='.$option.'&view=order&task=update_status&return=order_detail&order_id[]='. $this->detail->order_id );
    echo $order_functions->getstatuslist('order_status', "", "class=\"inputbox\" size=\"1\" ");
    echo "&nbsp";
    echo $order_functions->getpaymentstatuslist('order_payment_status', "", "class=\"inputbox\" size=\"1\" ");
    ?>
					</td>
				</tr>
				<tr>
					<td><?php 
    echo JText::_('COM_REDSHOP_ORDER_PAYMENT_METHOD');
    ?>
</td>
					<td id="tdPayment">
				</tr>
				<tr>
					<td><?php 
    echo JText::_('COM_REDSHOP_SHIPPING_METHOD');
Esempio n. 5
0
 public function display($tpl = null)
 {
     $app = JFactory::getApplication();
     JToolBarHelper::title(JText::_('COM_REDSHOP_TEMPLATES_MANAGEMET'), 'redshop_templates48');
     $uri = JFactory::getURI();
     jimport('joomla.html.pane');
     $pane = JPane::getInstance('sliders');
     $this->pane = $pane;
     $model = $this->getModel('template_detail');
     $user = JFactory::getUser();
     $redtemplate = new Redtemplate();
     // 	fail if checked out not by 'me'
     if ($model->isCheckedOut($user->get('id'))) {
         $msg = JText::sprintf('DESCBEINGEDITTED', JText::_('COM_REDSHOP_THE_DETAIL'), $detail->title);
         $app->redirect('index.php?option=com_redshop&view=template', $msg);
     }
     $this->setLayout('default');
     $lists = array();
     $detail = $this->get('data');
     $isNew = $detail->template_id < 1;
     $text = $isNew ? JText::_('COM_REDSHOP_NEW') : JText::_('COM_REDSHOP_EDIT');
     JToolBarHelper::title(JText::_('COM_REDSHOP_TEMPLATES') . ': <small><small>[ ' . $text . ' ]</small></small>', 'redshop_templates48');
     JToolBarHelper::apply();
     JToolBarHelper::save();
     if ($isNew) {
         JToolBarHelper::cancel();
     } else {
         // EDIT - check out the item
         $model->checkout($user->get('id'));
         JToolBarHelper::cancel('cancel', JText::_('JTOOLBAR_CLOSE'));
     }
     // TEMPLATE MOVE DB TO FILE
     $post = JRequest::get('post');
     if ($isNew && (isset($post['template_name']) && $post['template_name'] != "")) {
         $detail->template_name = $post['template_name'];
         $detail->template_section = $post['template_section'];
         $template_desc = JRequest::getVar('template_desc', '', 'post', 'string', JREQUEST_ALLOWRAW);
         $detail->template_desc = $template_desc;
         $detail->published = $post['published'];
         $detail->msg = JText::_('PLEASE_CHANGE_FILE_NAME_IT_IS_ALREADY_EXISTS');
     }
     // TEMPLATE MOVE DB TO FILE END
     // Section can be added from here
     $optionsection = $redtemplate->getTemplateSections();
     $lists['section'] = JHTML::_('select.genericlist', $optionsection, 'template_section', 'class="inputbox" size="1"  onchange="showclicktellbox();"', 'value', 'text', $detail->template_section);
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox" ', $detail->published);
     $order_functions = new order_functions();
     $paymentMethod = $order_functions->getPaymentMethodInfo();
     $payment_methods = explode(',', $detail->payment_methods);
     $tmp = new stdClass();
     $tmp = @array_merge($tmp, $payment_methods);
     $lists['payment_methods'] = JHTML::_('select.genericlist', $paymentMethod, 'payment_methods[]', 'class="inputbox" multiple="multiple" size="4" ', 'element', 'name', $payment_methods);
     $shippingMethod = $order_functions->getShippingMethodInfo();
     $shipping_methods = explode(',', $detail->shipping_methods);
     $tmp = new stdClass();
     $tmp = @array_merge($tmp, $shipping_methods);
     $lists['shipping_methods'] = JHTML::_('select.genericlist', $shippingMethod, 'shipping_methods[]', 'class="inputbox" multiple="multiple" size="4" ', 'element', 'name', $shipping_methods);
     $lists['order_status'] = $order_functions->getstatuslist('order_status', $detail->order_status, 'class="inputbox" multiple="multiple"');
     $this->lists = $lists;
     $this->detail = $detail;
     $this->request_url = $uri->toString();
     parent::display($tpl);
 }
Esempio n. 6
0
?>
">
		<label for="name">
			<?php 
echo JText::_('COM_REDSHOP_ECONOMIC_CHOICE_OF_BOOK_INVOICE_LBL');
?>
		</label></span></td>
		<td><?php 
echo $this->lists['economic_invoice_draft'];
?>
&nbsp;&nbsp;<span id="booking_order_status"
		                                                                               style="display: <?php 
echo $style;
?>
;"><?php 
echo $order_functions->getstatuslist('booking_order_status', BOOKING_ORDER_STATUS, "class=\"inputbox\" size=\"1\" ");
?>
</span>
		</td>
	</tr>
	<tr>
		<td width="100" align="right" class="key">
		<span class="editlinktip hasTip"
		      title="<?php 
echo JText::_('COM_REDSHOP_ECONOMIC_BOOK_INVOICE_NUMBER_LBL');
?>
::<?php 
echo JText::_('COM_REDSHOP_TOOLTIP_ECONOMIC_BOOK_INVOICE_NUMBER_LBL');
?>
">
		<label for="name"><?php 
Esempio n. 7
0
		document.adminForm.submit();
	}
</script>

<form action="<?php 
echo JRoute::_('index.php?option=' . $option . '&view=order');
?>
" method="post" name="adminForm" id="adminForm">
<div id="editcell">
<table class="adminlist" width="100%">
	<tr>
		<td><?php 
echo JText::_('COM_REDSHOP_NEW_STATUS');
?>
			: <?php 
echo $order_function->getstatuslist('order_status_all', '', "class=\"inputbox\" size=\"1\" ");
?>
		</td>

		<td>
			<?php 
echo JText::_('COM_REDSHOP_FILTER');
?>
:
			<input type="text" name="filter" id="filter" value="<?php 
echo $filter;
?>
"/>
			<?php 
echo $lists['filter_by'];
?>