$delcat = Tools_Http::Get('delcat',true); if ($delcat) { $car = $DB->getRow('goods_cars',$delcat); $DB -> exec("DELETE FROM goods_cars WHERE id = ".$delcat); if ($car['icon']) { $dest = WEBPATH.'images/cars/'; unlink($dest.$car['icon']); } } $items = $DB -> getArray("SELECT * FROM goods_cars ORDER BY title ASC"); ?>
if (!empty($items)) { ?>ID | =$L->Str('Markas nosaukums')?> | =$L->Str('Iespējas')?> |
---|---|---|
=$item['id']?> | =$item['title']?> |