PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | admin/views/orders/view.html.php +8 -2 1.6.4 → 1.8.16 View file →
@@ -19,8 +19,12 @@
19 19 {
20 20 // Set the toolbar
21 21 $this->addToolBar();
22 22
23 + if (!JFactory::getUser()->authorise('core.vbo.bookings', 'com_vikbooking')) {
24 + VBOHttpDocument::getInstance()->close(403, JText::translate('JERROR_ALERTNOAUTHOR'));
25 + }
26 +
23 27 $rows = "";
24 28 $navbut = "";
25 29 $app = JFactory::getApplication();
26 30 $dbo = JFactory::getDbo();
@@ -74,12 +78,14 @@
74 78 break;
75 79 default:
76 80 break;
77 81 }
78 - } elseif ($pstatus == 'request' || $pstatus == 'inquiry') {
82 + } elseif (in_array($pstatus, ['request', 'inquiry', 'overbooking'])) {
79 83 $status_filter = "`o`.`type`=" . $dbo->quote($pstatus);
80 84 } elseif ($pstatus == 'split_stay') {
81 85 $status_filter = "`o`.`split_stay`=1";
86 + } elseif ($pstatus == 'quote') {
87 + $status_filter = "`o`.`idquote` IS NOT NULL";
82 88 }
83 89 }
84 90 $pidpayment = $app->getUserStateFromRequest("vbo.orders.idpayment", 'idpayment', 0, 'int');
85 91 $payment_filter = '';
@@ -164,9 +170,9 @@
164 170 }
165 171
166 172 $ordersfound = true;
167 173 jimport('joomla.html.pagination');
168 - $pageNav = new JPagination( $dbo->loadResult(), $lim0, $lim );
174 + $pageNav = new JPagination( $totres, $lim0, $lim );
169 175 $navbut = "<table align=\"center\"><tr><td>".$pageNav->getListFooter()."</td></tr></table>";
170 176 }
171 177 }
172 178