function shopView(){
global $core;
$shop = mysql_query("SELECT * FROM services ORDER BY id DESC");
$return = '<article>';
if($shop){
while ($row = mysql_fetch_array($shop)) {
$return .= '<h4>'.$row['nazwa'].'</h4><a href="/go.html?url=index.php?view=buy&service='.$row['id'].'" class="button">Kup za '.$row['koszt'].' zl (+vat)</a>';
}
}
else{
$return .= 'Niestety coś poszło nie tak ;/';
}
$return .= '</article>';
return $return;
}
function shopView(){
global $core;