if($this->c->subcat == '') {
$this->showTitle(0,'');
$arr = array(
'img' => '/images/menu_trade_buses_thumb.jpg',
'url' => $loc[$lang]['link_trade_buses'],
'title' => $loc[$lang]['button_trade_buses'],
'font-size' => '1.2em',
'text-align' => 'center',
'hoverClass' => 'color_red'
);
?>
$places = $this->c->m->getRentPlaces('');
foreach ($places as $key => $value) {
echo '| ';
$this->imgBox(array_merge($arr,array(
'img' => '/images/'.$value['Picture'],
'url' => '/'.$lang.'/'.$value['Name'].'/'.$this->c->strtourl($value['Place']).'/'.$value['idRentPlace'].'/',
'title' => $value['Place']
)));
echo ' | ';
}
?>
Transporta pakalpojumi
E-pasts: travel@melatlux.lv
Tālr.: +371 64107970
Mob.tālr.: +371 29475547
} else {
if($this->c->subsubcat == '') {
// Buses
$i=0;
// All buses
$place = $this->c->m->getRentPlaces($this->c->subcat);
$this->showTitle(0,$place[0]['Place']);
$buses_count = $this->c->m->getRentBuses($this->c->subcat);
$arr = array();
?>
while(($row=$this->c->m->getData())!=NULL){
if($i % 3 == 0) echo '';
echo '';
$this->imgBox(array_merge($arr,array(
'img' => '/images/rentbuses/'.$row['idRentBus'].'/small/'.$row['Thumb'],
'url' => '/'.$lang.'/'.$place[0]['Name'].'/'.$this->c->strtourl($place[0]['Place']).'/'.$place[0]['idRentPlace'].'/'.$this->c->strtourl($row['Make'].' '.$row['Model']).'/'.$row['idRentBus'].'/',
'title' => $row['Make'].' '.$row['Model'],
'notes' => ''.$loc[$lang]['text_rent_seats'].': '.$row['Seats'].' '.
''.$loc[$lang]['text_rent_comfortlevel'].': '.($row['idRentBus'] == 2 ? $loc[$lang]['text_rent_rafcomfortlevel'] : $this->stars($row['Star'])),
'alt' => 'title_'.$row['idRentBus'],
'hoverClass' => 'color_red',
'img-style' => 'height:210px;'
)));
echo ' | ';
$i++;
if($i % 3 == 0) echo '
';
}
?>
} else {
// Bus
$row = $this->c->m->getRentBus($this->c->subsubcat);
$this->showTitle(1,$row['Make'].' '.$row['Model']);
?>
| |
| Apraksts: |
| Sēdvietas: |
- |
|
|
| Komforta līmenis: |
- |
|
|
if($row['Comment'] != '') {?>
| Papildus apraksts: |
|
} ?>
$c = count($options = $this->c->m->getRentBusOptions($this->c->subsubcat));
$e = floor(($c)/2)-($c+1)%2; // "half of c", if $c = 12 $e=5, if $c=13 $e=6
if($c != 0) {
?>
| Aprīkojums: |
for($i = 0; $i <= $e ; $i++) {
?>
|
•
|
if ($e+$i+1 <= ($c-1)){ ?>
•
} ?>
|
}
?>
| |
}?>
|
$i = 0;
$pics = $this->c->m->getRentBusPictures($this->c->subsubcat,false);
foreach($pics as $key=>$pic){
?>
|
$this->imgHover(array(
'img' => '/images/rentbuses/'.$this->c->subsubcat.'/small/'.$pic['Filename'],
'type' => 'zoom',
'url' => '/images/rentbuses/'.$this->c->subsubcat.'/big/'.$pic['Filename'],
'title' => ($i+1).' / '.(count($pics)),
'rel' => 'pics_group',
'style' => 'margin-top: 10px;'
));?>
|
$i++;
}
$schemes = $this->c->m->getRentBusSchemes($this->c->subsubcat,false);
foreach($schemes as $key=>$scheme){
?>
Atvērt autobusa shēmu PDF formātā
|
}
?>
|
}
}
?>