?> </th><th><?php echo JText::_('COM_SEMINARMAN_AMOUNT'); ?> </th><th><?php echo JText::_('COM_SEMINARMAN_BOOKED'); ?> </th></tr> </thead> <?php foreach ($this->bookingrules as $bookingrule) { $bookingrule_detail = json_decode($bookingrule->rule_text); $query = "SELECT title FROM #__seminarman_categories WHERE id=" . $bookingrule_detail->category; $db->setQuery($query); $cat_name = $db->loadResult(); $booked_amount = JHTMLSeminarman::get_user_booking_total_in_category_rule($bookingrule_detail->category, $user_id, $bookingrule_detail->start_date, $bookingrule_detail->finish_date); echo "<tr>" . "<td>" . $bookingrule->title . "</td>" . "<td>" . $cat_name . "</td>" . "<td>" . JHtml::_('date', $bookingrule_detail->start_date, JText::_('COM_SEMINARMAN_DATE_FORMAT1')) . "</td>" . "<td>" . JHtml::_('date', $bookingrule_detail->finish_date, JText::_('COM_SEMINARMAN_DATE_FORMAT1')) . "</td>" . "<td>" . $bookingrule_detail->amount . "</td>" . "<td>" . $booked_amount . "</td>" . "</tr>"; } ?> </table> <h2 class="seminarman bookings"> <?php echo JText::_('COM_SEMINARMAN_BOOKED_COURSES') . ': '; ?> </h2> <?php if (!count($this->courses)) { ?> <div class="note">
if (!is_null($module) && $params->get('enable_loginform') == 1) { echo JModuleHelper::renderModule($module); } switch ($params->get('enable_bookings')) { case 3: echo $this->loadTemplate('applicationform'); break; case 2: echo $this->loadTemplate('applicationform'); break; case 1: if ($this->user->get('guest')) { echo JText::_('COM_SEMINARMAN_PLEASE_LOGIN_FIRST') . '.'; } else { if ($this->params->get('user_booking_rules') == 1) { $course_booking_permission = JHTMLSeminarman::check_booking_permission($this->course->id, $this->user->id); } else { $course_booking_permission = true; } if ($course_booking_permission) { echo $this->loadTemplate('applicationform'); } else { echo JText::_('COM_SEMINARMAN_BOOKING_NOT_ALLOWED'); } } break; default: echo JText::_('COM_SEMINARMAN_BOOKINGS_DISABLED') . '.'; } ?> </div>
<?php /** * * @Copyright Copyright (C) 2010 www.profinvent.com. All rights reserved. * Copyright (C) 2011-2014 Open Source Group GmbH www.osg-gmbh.de * @website http://www.profinvent.com * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ $html_prices = JHTMLSeminarman::get_price_view($this->course->id, '', $this->vmlink); if ($this->params->get('enable_payment_overview') == 1) { if ($this->params->get('trigger_virtuemart') == 1 && !is_null($this->vmlink)) { $next_action = 'save'; } else { $next_action = 'cart'; } } else { $next_action = 'save'; } ?> <form action="<?php echo $this->action; ?> " method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data"> <h5><?php echo JText::_('COM_SEMINARMAN_PRICE_SINGLE'); ?> </h5> <label for="jformprice">* <?php