Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
afisha2.php
Содержимое
<?php use app\core\helpers\RuDate; /** * Блок реализует афишу на главной */ if ($_SERVER['HTTP_HOST'] == '2015.infoorel.ru') { $count = 8; } $pdo = (App::getAfishaPdo()); $sth = $pdo->prepare(" SELECT DISTINCT c.id, a.id nid, a.name, a.note_small, a.image, a.image_big, b.name as gname, c.id_org, date_format(c.date_ot,'%Y-%m-%d') as data, date_format(c.date_do,'%Y-%m-%d') as data_do,date_format(date_ot,'%m') as month,date_format(date_do,'%m') as month_do, c.begin, c.price, d.name as org_name FROM infostrana.afisha_event a, infostrana.afisha_groups b, infoorel.afisha_new c, infoorel.firma d WHERE ( c.date_ot>=CURDATE() OR c.date_do>=CURDATE() ) AND a.id_grp=b.id AND a.id=c.id_activity AND c.id_org=d.id AND a.image<>'' GROUP BY a.id ORDER BY RAND() LIMIT 0, {$count} "); $sth->execute(); $items = $sth->fetchAll(); ?> <div class="uk-block uk-padding-top-remove uk-margin-large-bottom uk-block-muted uk-padding-top uk-padding-bottom"> <section> <div class="uk-container uk-container-center"> <div class="uk-width-large-1-1 uk-width-small-1-1"> <div class="section-header-inner"> <h2 class="header-h2 uk-margin-top uk-margin-large-bottom"> <a href="/afisha/"><span class="orange">Афиша</span> Орла</a> </h2> <div class="header-slider-btn"> <span class="ion-ios-arrow-left аfisha-swiper-left"></span> <span class="ion-ios-arrow-right afisha-swiper-right"></span> </div> </div> </div> </div> </section> <div class="uk-container uk-container-center"> <?php if (count($items) > 0) { ?> <div class=""> <!-- Swiper --> <div class="swiper-container afisha-index"> <div class=" swiper-wrapper"> <?php foreach ($items as $item) { ?> <div class="swiper-slide"> <article class="afisha-index-item"> <a href="/afisha/index.php?id=<?=$item['nid'];?>" class="_preview"> <figure class="afisha-index-item-img uk-top-cover-background" style="height:175px; background-image:url(<?=App::getStaticDomain();?>/<?=$item['image_big'];?>);" > </figure> </a> <div class="afisha-index-article-body"> <header class="afisha-index-article-info"> <a href="/afisha/index.php?id_org=<?=$item['id_org'];?>"><?=$item['org_name'];?></a> </header> <h3 style=" position: relative; height: 70px; overflow: hidden;"> <a href="/afisha/index.php?id=<?=$item['nid'];?>"><?=$item['name'];?></a> <div class="index-news-shadow" style="height: 60px;"></div> </h3> <footer class="afisha-index-article-info"> <time datetime="<?=date('Y-m-d', strtotime($item['data']));?>"> <?php if ($item['data'] != $item['data_do']) { ?> с <?=RuDate::getDate($item['data'], 'd MMMM');?> по <?=RuDate::getDate($item['data_do'], 'd MMMM');?> <?php } else { ?> <?=RuDate::getDate($item['data'], 'd MMMM');?> <?php } ?> </time> </footer> </div> </article> </div> <?php } ?> </div> </div> </div> <?php } ?> </div> </div> <script type="text/javascript"> (function() { new Swiper('.afisha-index', { slidesPerView: 5, paginationClickable: true, spaceBetween: 30, nextButton: '.afisha-swiper-right', prevButton: '.аfisha-swiper-left', preventClicks: false, breakpoints: { 1219: { slidesPerView: 3, spaceBetween: 40 }, 1024: { slidesPerView: 3, spaceBetween: 40 }, 768: { slidesPerView: 2, spaceBetween: 30 }, 640: { slidesPerView: 2, spaceBetween: 20 }, 320: { slidesPerView: 1, spaceBetween: 10 } } }); })(); </script>
/template/2.0/section_blocks/index/
Имя
Дата
Размер
..
2019-05-20
afisha2.php
2017-06-16
5 кб.
blog.php
2022-12-05
4 кб.
blog.php~
2018-03-14
4 кб.
firma_comment.php
2017-02-03
3 кб.
news_company.php
2023-09-07
4 кб.
news_company.php~
2017-06-19
4 кб.
news_svodki.php
2017-06-19
2 кб.
photo_konk.php
2016-12-01
2 кб.
rabota.php
2017-02-08
1 кб.
realty2.php
2017-02-03
3 кб.
restoran_comment.php
2017-02-01
3 кб.
restoran_news_main.php
2017-02-07
2 кб.
/template/2.0/section_blocks/index
Загрузить файлы
Файл 1
Файл 2
Файл 3