Esempio n. 1
0
 function Draw($groups, $catalog, $vehicle_id, $ssd)
 {
     $this->catalog = $catalog;
     $this->vehicleid = $vehicle_id;
     $this->ssd = $ssd;
     $this->AppendCSS(dirname(__FILE__) . '/groups.css');
     $this->AppendJavaScript(dirname(__FILE__) . '/groups.js');
     $this->groups = $groups->row;
     GuayaquilToolbar::AddButton($this->GetLocalizedString('VehicleLink'), $this->FormatLink('vehicle', null, $this->catalog));
     $html = $this->drawtoolbar ? GuayaquilToolbar::Draw() : '';
     $html .= $this->DrawSearchPanel();
     $html .= '<div id="qgTree" onclick="tree_toggle(arguments[0])"><ul class="qgContainer">';
     if (count($this->groups) == 1) {
         $index = 1;
         $amount = count($groups->row);
         foreach ($this->groups->row as $subgroup) {
             $html .= $this->DrawTreeNode($subgroup, 1, $index++ == $amount);
         }
     } else {
         foreach ($this->groups as $group) {
             $html .= $this->DrawTreeNode($group, 1);
         }
     }
     $html .= '</ul></div>';
     $html .= '<div style="visibility: visible; display: block; height: 20px; text-align: right;"><a href="http://dev.laximo.ru" rel="follow" style="visibility: visible; display: inline; font-size: 10px; font-weight: normal; text-decoration: none;">guayaquil</a></div>';
     return $html;
 }
Esempio n. 2
0
 public static function AddButton($title, $url, $onclick = null, $alt = null, $img = null, $id = null)
 {
     if (!self::$toolbar) {
         self::$toolbar = new GuayaquilToolbar();
     }
     self::$toolbar->buttons[] = array('title' => $title, 'url' => $url, 'onclick' => $onclick, 'alt' => $alt, 'img' => $img, 'id' => $id);
 }
Esempio n. 3
0
 function Draw($catalog, $categories, $vehicleid, $selectedcategoryid, $ssd, $cataloginfo = null)
 {
     $this->catalog = $catalog;
     $this->categories = $this->MakeHierarchy($categories->row);
     $this->vehicleid = $vehicleid;
     $this->selectedcategoryid = $selectedcategoryid;
     $this->ssd = $ssd;
     $this->cataloginfo = $cataloginfo;
     if ((string) $this->cataloginfo['supportquickgroups'] == 'true') {
         GuayaquilToolbar::AddButton($this->GetLocalizedString('QuickGroupsLink'), $this->FormatLink('quickgroup', null, $this->catalog));
     }
     $html = $this->drawtoolbar ? GuayaquilToolbar::Draw() : '';
     $html .= $this->DrawBox($selectedcategoryid);
     return $html;
 }
Esempio n. 4
0
 function Draw($details, $catalog, $vehicle_id, $ssd)
 {
     $this->catalog = $catalog;
     $this->vehicleid = $vehicle_id;
     $this->ssd = $ssd;
     GuayaquilToolbar::AddButton($this->GetLocalizedString('VehicleLink'), $this->FormatLink('vehicle', null, $this->catalog));
     $html = $this->drawtoolbar ? GuayaquilToolbar::Draw() : '';
     foreach ($details->Category as $category) {
         $html .= $this->DrawCategory($category);
     }
     if (!$this->foundunit) {
         $html .= $this->DrawEmptySet();
     }
     $html .= '<div style="visibility: visible; display: block; height: 20px; text-align: right;"><a href="http://dev.laximo.ru" rel="follow" style="visibility: visible; display: inline; font-size: 10px; font-weight: normal; text-decoration: none;">guayaquil</a></div>';
     return $html;
 }
Esempio n. 5
0
 function Draw($catalog, $unit, $imagemap, $details, $replacements, $cataloginfo, $prices = array(), $availability = array())
 {
     $this->catalog = $catalog;
     $this->ConfigureUnitImageRenderer($this->unitimagerenderer);
     $this->ConfigureDetailListRenderer($this->detaillistrenderer);
     if ((string) $cataloginfo['supportquickgroups'] == 'true') {
         GuayaquilToolbar::AddButton($this->GetLocalizedString('QuickGroupsLink'), $this->FormatLink('quickgroup', null, $this->catalog));
     }
     $unit['note'] = '';
     foreach ($unit->attribute as $attr) {
         $unit['note'] .= '<b>' . (string) $attr->attributes()->name . '</b>: ' . (string) $attr->attributes()->value . '<br/>';
     }
     $note = $this->GetNote($unit['note']);
     if ($note) {
         echo '<p class="guayaquil_unit_note">' . $note . '</p>';
     }
     $html = $this->drawtoolbar ? GuayaquilToolbar::Draw() : '';
     $html .= $this->DrawContainer($catalog, $unit, $imagemap, $details, $replacements, $prices, $availability);
     if ($this->drawlegend) {
         $html .= $this->DrawLegend();
     }
     $html .= '<div style="visibility: visible; display: block; height: 20px; text-align: right;"><a href="http://dev.laximo.ru" rel="follow" style="visibility: visible; display: inline; font-size: 10px; font-weight: normal; text-decoration: none;">guayaquil</a></div>';
     return $html;
 }