| @@ -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(); |
| @@ -78,8 +82,10 @@ | ||
| 78 | 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 | |