<div class="info-wrapper"> <h3 class="title-main">Рестораны</h3> <?php echo getPlaceBlock(); ?> </div> <?php $scripts .= "\n<script>\n\t\tscrollLoader();\n</script>\n";
$table = $_GET["table"]; $sort = $_GET["sort"]; $type_id = $_GET["type_id"]; $skip_id = $_GET["skip_id"]; if (empty($skip_id)) { $skip_id = 0; } switch ($table) { case 'artists': $html = getArtistBlock($count, $count_next); break; case 'artists': $html = getArtistBlock($count, $count_next); break; case 'places': $html = getPlaceBlock($count, $count_next); break; case 'photographs': $html = getPhotographsBlock($count, $count_next, $sort, $skip_id); break; case 'videographs': $html = getVideographBlock($count, $count_next, $sort, $skip_id); break; case 'autos': $html = getAutoBlock($count, $count_next, 'autos', $type_id); //$html = $type_id; break; } echo json_encode($html); } exit;