Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
firma_statistic_back.php
Содержимое
<?php require_once (__DIR__ . '/../autoloader.php'); /** * Просмотр списка фотографий организации. */ $title = 'Статистика компании'; use app\organizations\Organizations; // Проверяем, принадлежит ли нам организация if (App::$request->get('id_firm') == null || Organizations::isMyOrganization(App::$request->get('id_firm')) == false) { header('Location: /'); exit; } require_once (__DIR__ . '/../inc/top_new.inc'); $organization = Organizations::getMyOrganizations(null, App::$request->get('id_firm'))[0]; /* App::$view ->render('user/organizations/statistics/index', [ 'organization' => $organization ]); require_once (__DIR__ . '/../inc/bottom_new.inc'); $base_url="../"; $menu_page="people"; require_once $base_url."config_lang.php"; require_once($base_url.'func.php'); $l=db_connect(); require($base_url."inc/top.inc"); ?> <?php $_GET['id_firm'] = (int) $_GET['id_firm']; $firma = sqlval("select t1.*, t2.* from firma_superuser t1, firma t2 where t1.user_id={$id_user_sess} and t1.firma_id = t2.id and t1.firma_id='{$_GET['id_firm']}'"); ?> <?php require_once($base_url."template/user_my_firm_top.php"); ?> <?php if ( $firma['firma_id'] != '' ) : ?> <div class="Profile"> <div class="ProfZag"><a href="/firma.php?id=<?php echo $firma['firma_id']; ?>" target="_blank" style="float:right; color:#666666"> смотреть</a> <h4 class="biger"><?php echo $firma['name']; ?></a></h4> </div> </div> <div class="PrifInfo"> <?php $sit = sqlval("select count(id) as cnt from firma_site where id_firma='{$firma['firma_id']}'");?> <?php if(($firma['registr']>0 and $firma['registr_price']>0) or $firma['template_for_buy']!='' or $sit['cnt']>0):?> <p style="width: 470px;margin: 0 auto;padding-bottom: 20px;"><b>Просмотр статистики за:</b> <label for="today">Сегодня</label><input type="radio" id="today" name="group" value="today" <?php if($_GET['period']=='today'){echo "checked";}?>> <label for="ytoday">Вчера</label><input type="radio" id="ytoday" name="group" value="ytoday" <?php if($_GET['period']=='ytoday'){echo "checked";}?>> <label for="week">Неделю</label><input type="radio" id="week" name="group" value="week" <?php if($_GET['period']=='week'){echo "checked";}?>> <label for="month">Месяц</label><input type="radio" id="month" name="group" value="month" <?php if($_GET['period']=='month'){echo "checked";}?>> </p> <?php else:?> <table width="70%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto;"> <tr><td><b>Просмотров визитки (за время размещения визитки):</b></td><td><?php echo $firma['views'];?></td></tr> </table> <?php endif;?> <script type="text/javascript"> $(document).ready(function(){ $("input[name=group]").click(function(){ var arr = new Array(4,"ytoday","month","week","today"); var period = $(this).val(); if($.inArray(period, arr)){ document.location = "firma_statistic.php?id_firm=<?php echo $_GET['id_firm']?>&period=" + period; } }); }); </script> <?php if($_SERVER['REQUEST_METHOD'] == "GET" and isset($_GET['period']) and in_array($_GET['period'],array('today','ytoday','week','month'))):?> <?php switch($_GET['period']){ case 'today': $time_query = " and DATE(date) = curdate()"; break; case 'ytoday': $time_query = " and DATE(date) = DATE_SUB(curdate(),INTERVAL 1 DAY)"; break; case 'week': $time_query = " and (DATE(date) >= DATE_SUB(curdate(),INTERVAL 7 DAY) AND DATE(date) <= curdate())"; break; case 'month': $time_query = " and (DATE(date) >= DATE_SUB(curdate(),INTERVAL 1 MONTH) AND DATE(date) <= curdate())";break; default: $time_query = " and DATE(date) = curdate()"; break; } ?> <table width="70%" border="0" cellspacing="0" cellpadding="0" style="margin: 0 auto;"> <tr><td><b>Просмотров визитки (за время размещения визитки):</b></td><td><?php echo $firma['views'];?></td></tr> <?php $sites = fetchAll("select * from firma_site where id_firma='{$firma['firma_id']}'"); if($sites and count($sites)>0):?> <tr><td><b>Переходов по ссылке на сайт компании:</b></td><td><?php $goto = sqlval("SELECT count(id) as cnt FROM stat_private_company WHERE type='go_site' and id_firm={$firma['firma_id']} {$time_query}");echo $goto['cnt'];?></td></tr> <?php endif;?> <?php if($firma['registr']>0 and $firma['registr_price']>0):?> <tr><td><b>Просмотров товаров:</b></td><td><?php $view_t = sqlval("SELECT count(id) as cnt FROM stat_private_company WHERE type='view_t' and id_firm={$firma['firma_id']} {$time_query}");echo $view_t['cnt'];?></td></tr> <?php endif;?> <?php if($firma['template_for_buy']!=''):?> <tr><td><b>Переходов по кнопке «Купить»:</b></td><td><?php $buy = sqlval("SELECT count(id) as cnt FROM stat_private_company WHERE type='buy' and id_firm={$firma['firma_id']} {$time_query}");echo $buy['cnt'];?></td></tr> <?php endif;?> </table> <?php endif;?> </div> <?php endif;?> <?php require_once "bottom_firma.inc.php";?> ?>*/
/firma/
Имя
Дата
Размер
..
2026-10-02
ckeditor
2015-11-03
images
2015-04-04
inc
2020-04-06
js
2015-12-02
swf
2014-10-30
JSON.php
2010-05-13
1 кб.
action.php
2016-01-19
35 кб.
action_restoran.php
2013-02-05
1 кб.
application.js
2012-07-06
2 кб.
bottom_firma.inc
2011-10-28
446 байт
bottom_firma.inc.php
2011-10-28
456 байт
comments_act.php
2013-12-17
1 кб.
comments_action.php
2013-12-17
449 байт
delete_news.php
2023-12-21
650 байт
delete_news.php~
2017-03-20
579 байт
firma_comment.php
2017-09-04
4 кб.
firma_comment_rss.php
2017-06-22
2 кб.
firma_contact.php
2017-03-09
21 кб.
firma_delete_product.php
2020-04-06
438 байт
firma_edit_delivery.php
2020-04-06
480 байт
firma_edit_news.php
2023-12-21
2 кб.
firma_edit_news.php~
2019-01-22
2 кб.
firma_edit_product.php
2020-04-06
1 кб.
firma_file.php
2017-04-04
7 кб.
firma_info.php
2017-03-24
1 кб.
firma_my.php
2017-03-06
497 байт
firma_news.php
2020-04-17
945 байт
firma_photo.php
2019-08-12
3 кб.
firma_product.php
2020-04-06
15 кб.
firma_profile.inc.php
2011-12-26
1 кб.
firma_slider.php
2019-08-13
3 кб.
firma_stat.inc.php
2013-08-30
518 байт
firma_stat.php
2013-08-30
6 кб.
firma_statistic.php
2019-04-01
7 кб.
firma_statistic_back.php
2019-03-28
5 кб.
firma_video.php
2012-09-25
6 кб.
index.php
2021-01-14
22 кб.
restoran_comment.php
2015-09-29
9 кб.
restoran_my.php
2014-11-26
1 кб.
restoran_stat.php
2014-11-26
3 кб.
sprav.php
2017-03-09
627 байт
style.css
2011-11-07
8 кб.
upload.php
2015-11-03
609 байт
/firma
Загрузить файлы
Файл 1
Файл 2
Файл 3