コード例 #1
0
ファイル: artists.php プロジェクト: ealipkin/atevent
<div class="info-wrapper artist-page">
	<h3>Артисты</h3>
	<?php 
echo getArtistBlock();
?>
</div>

<?php 
$scripts .= "\n<script>\n    (function(){\n        scrollLoader();\n    })();\n</script>\n";
コード例 #2
0
ファイル: jscroll.php プロジェクト: ealipkin/atevent
if (is_get() && is_ajax()) {
    $count = (int) $_GET["count"];
    $count_next = (int) $_GET["count_next"];
    $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;
    }