示例#1
0
 protected function getInput()
 {
     jimport('joomla.filesystem.folder');
     $bar = JToolBar::getInstance('toolbar_image');
     $bar->addButtonPath(JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'toolbar');
     /* @var $bar JToolBar */
     $bar->appendButton('Popup', 'new1', 'Add', ARoute::view(VIEW_IMAGES, null, null, array('tmpl' => 'component', 'type' => '1')), 800, 600);
     $bar->appendButton('ALink', 'delete', 'Delete', 'javascript:AImages.removeMain()', 'imageMainRemove');
     $html[] = $bar->render();
     $thumb = AImage::thumb(BookProHelper::getIPath($this->image), null, ADMIN_SET_IMAGES_WIDTH);
     $html[] = '<img src="' . $thumb . '" alt="" id="imageMainSource" class="thumb' . $thumb ? '' : ' blind' . '" />';
     if (!$thumb) {
         $html[] = ADocument::addDomreadyEvent('AImages.hideRemoveMain()');
     }
     $html[] = '<input type="hidden" name="image" id="imageMainHidden" value="' . $this->escape($this->image) . '" />';
     return implode("\n", $html);
 }
示例#2
0
    static function startAdminArea($backEnd = true)
    {
        $doc = JFactory::getDocument();
        $doc->addStyleSheet('components/com_bookpro/assets/css/jbtransport.css');
        $uri = (string) JUri::getInstance();
        $return = urlencode(base64_encode($uri));
        $configRoute['route'] = 'index.php?option=com_config&view=component&component=' . OPTION . '&return=' . $return;
        $configRoute['params'] = array();
        echo '<div id="j-sidebar-container" class="span2">';
        JHtmlSidebar::addEntry(JText::_('COM_BOOKPRO_CPANEL'), 'index.php?option=com_bookpro');
        echo JHtmlSidebar::render();
        echo ' <div class="sidebar-nav">';
        echo ' <ul class="nav nav-list" style="margin:0px;">';
        echo self::listLink(JText::_('COM_BOOKPRO_BOOKINGS'), JRoute::_(ARoute::view('orders')));
        echo self::listLink(JText::_('COM_BOOKPRO_TRANSPORT_ROUTE'), JRoute::_(ARoute::view('transports')));
        echo '</ul>';
        echo '</div>';
        //submenu price
        echo ' <div class="sidebar-nav">';
        echo ' <ul class="nav nav-list" style="margin:0px;">';
        echo ' <li class="dropdown-submenu"><a class="" data-toggle="dropdown" href="#">' . JText::_(JText::_('COM_BOOKPRO_TRANSPORT_RATE'), 'index.php?option=com_bookpro&view=prices') . '</a>
					<ul class="dropdown-menu">';
        echo self::listLink(JText::_('COM_BOOKPRO_PRICE_DAY'), 'index.php?option=com_bookpro&view=prices&layout=date');
        echo self::listLink(JText::_('COM_BOOKPRO_PRICE_WEEK'), 'index.php?option=com_bookpro&view=prices&layout=week');
        echo self::listLink(JText::_('COM_BOOKPRO_PRICE_DAYOFF'), 'index.php?option=com_bookpro&view=prices&layout=dayoff');
        echo self::listLink(JText::_('Private ride close'), 'index.php?option=com_bookpro&view=transportdayoffs');
        echo '</ul>
				</li>';
        echo '  </ul>';
        echo ' </div>';
        //end submenu
        echo ' <div class="sidebar-nav">';
        echo ' <ul class="nav nav-list" style="margin:0px;">';
        echo self::listLink(JText::_('COM_BOOKPRO_TRANSPORT_REPORT'), JRoute::_(ARoute::view('transportreports')));
        echo self::listLink(JText::_('COM_BOOKPRO_CATEGORIES'), JRoute::_(ARoute::view('categories')));
        echo self::listLink(JText::_('COM_BOOKPRO_TOURS'), JRoute::_(ARoute::view('tours')));
        echo self::listLink(JText::_('COM_BOOKPRO_TOUR_REPORT'), JRoute::_(ARoute::view('passengers')));
        echo '</ul>';
        echo '</div>';
        echo ' <div class="sidebar-nav">';
        echo ' <ul class="nav nav-list" style="margin:0px;">';
        echo ' <li class="dropdown-submenu"><a class="" data-toggle="dropdown" href="#">' . JText::_(JText::_('Customer/Agent'), 'index.php?option=com_bookpro&view=customers') . '</a>
					<ul class="dropdown-menu">';
        echo self::listLink(JText::_('COM_BOOKPRO_CUSTOMER'), JRoute::_(ARoute::view('customers')));
        echo self::listLink(JText::_('COM_BOOKPRO_AGENT'), JRoute::_(ARoute::view('agents')));
        echo '</ul>
				</li>';
        echo ' <li class="dropdown-submenu"><a class="" data-toggle="dropdown" href="#">' . JText::_('More >>') . '</a>
					<ul class="dropdown-menu">';
        echo self::listLink(JText::_('COM_BOOKPRO_EMAIL_SETTING'), JRoute::_(ARoute::view('applications')));
        echo self::listLink(JText::_('COM_BOOKPRO_VEHICLE'), JRoute::_(ARoute::view('vehicles')));
        echo self::listLink(JText::_('COM_BOOKPRO_COUPONS'), JRoute::_(ARoute::view('coupons')));
        echo self::listLink(JText::_('COM_BOOKPRO_DESTINATION'), JRoute::_(ARoute::view('airports')));
        echo self::listLink(JText::_('COM_BOOKPRO_ADDONS'), ARoute::view('addons'));
        echo self::listLink(JText::_('Languages'), JRoute::_(ARoute::view('languages')));
        echo self::listLink(JText::_('COM_BOOKPRO_COUNTRIES'), JRoute::_('index.php?option=com_bookpro&view=countries', false));
        echo '</ul>
				</li>';
        echo '  </ul>';
        echo ' </div>';
        echo '</div>';
    }
示例#3
0
    echo JText::_('COM_BOOKPRO_MANAGE');
    ?>
 </a>	
						</div>
					</td>

					<td>
						
					<a
						href="<?php 
    echo JRoute::_('index.php?option=com_bookpro&view=itineraries&tour_id=' . $subject->id);
    ?>
"
						class="btn btn-small">Lists</a> <a
						href="<?php 
    echo JRoute::_(ARoute::view('itinerary', null, null, array('layout' => 'edit', 'tour_id' => $subject->id)));
    ?>
"
						class="btn btn-small">Add</a>
						
						<br/>
						<?php 
    echo TourHelper::getTourDestination($subject->id);
    ?>
						</td>
				
					
					
				</tr>
				<?php 
}