$i=0;
global $eur_price,$tax;
if($this->c->subsubcat == '') {
?>
$this->showTitle(0,'');
// All buses
$buses_count = $this->c->m->getTradeBuses();
?>
while(($row=$this->c->m->getData())!=NULL){
$i++;
?>
|
if($row['Thumb'] != ''){
$this->imgHover(array(
'img' => '/images/tradebuses/'.$row['idTradeBus'].'/small/'.$row['Thumb'],
'url' => $loc[$lang]['link_trade_buses'].$this->c->strtourl($row['Make'].' '.$row['Model'].($row['Sold'] == 1 ? ' ('.$loc[$lang]['text_sold'].')' : '')).'/'.$row['idTradeBus'].'/',
'alt' => 'title_buses_'.$row['idTradeBus'],
'hoverClass' => 'color_red',
'img-style' => 'height: 100px;'
));
}
?>
|
|
if($row['Sold'] != 1) { ?>
} ?>
|
Reģistrācija: -
Dzinēja jauda: -
Pārnesumkārba: -
|
Tahogrāfs: -
Sēdvietas: -
|
}
?>
} else {
// Bus
$this->showTitle(1,'');
$row = $this->c->m->getTradeBus($this->c->subsubcat);
?>
| |
| Tehniskie dati: |
| Reģistrācija: |
- |
Sēdvietas: |
- |
| Dzinējs: |
- |
Stāvvietas: |
- |
| Dzinēja jauda: |
- |
Tehniskā apskate: |
- |
| Degviela: |
- |
Šasijas numurs: |
- |
| Pārnesumkārba: |
- |
Krāsa: |
- |
| Tahogrāfs: |
- |
|
|
| |
if($row['Sold'] != 1) { ?>
} ?>
| Aprīkojums: |
$c = count($options = $this->c->m->getTradeBusOptions($this->c->subsubcat));
$e = floor(($c)/2)-($c+1)%2; // "half of c", if $c = 12 $e=5, if $c=13 $e=6
for($i = 0; $i <= $e ; $i++) {
?>
|
•
|
if ($e+$i+1 <= ($c-1)){ ?>
•
} ?>
|
}
?>
| |
|
$i = 0;
$pics = $this->c->m->getTradeBusPictures($this->c->subsubcat,false);
foreach($pics as $key=>$pic){
?>
|
$this->imgHover(array(
'img' => '/images/tradebuses/'.$this->c->subsubcat.'/small/'.$pic['Filename'],
'type' => 'zoom',
'url' => '/images/tradebuses/'.$this->c->subsubcat.'/big/'.$pic['Filename'],
'title' => ($i+1).' / '.(count($pics)),
'rel' => 'pics_group',
'style' => 'margin-top: 10px;'
));?>
|
$i++;
}
?>
|
}
?>