<?php // +---------------------------------------------------------------------- // | Demila [ Beautiful Digital Content Trading System ] // +---------------------------------------------------------------------- // | Copyright (c) 2015 http://demila.org All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Email author@demila.org // +---------------------------------------------------------------------- _setView(__FILE__); _setTitle($langArray['contacts']); $cms = new contacts(); $data = $cms->getAll(START, LIMIT); abr('data', $data); $p = paging("?m=" . $_GET['m'] . "&c=list&p=", "", PAGE, LIMIT, $cms->foundRows); abr('paging', $p); require_once ROOT_PATH . '/apps/lists/leftlist_admin.php';
require_once ROOT_PATH . '/apps/users/models/deposit.class.php'; $depositClass = new deposit(); $withdraw['no'] = $depositClass->getWithdrawCount(" `paid` = 'false' AND `datetime` > '" . date('Y-m') . "-01 00:00:00' "); $withdraw['paid'] = $depositClass->getWithdrawCount(" `paid` = 'true' AND `paid_datetime` > '" . date('Y-m') . "-01 00:00:00' "); abr('withdraw', $withdraw); #LOAD THEMES require_once ROOT_PATH . '/apps/items/models/items.class.php'; $itemsClass = new items(); $items = $itemsClass->getAll(0, 10, " `status` = 'queue' "); abr('items', $items); $updated_items = $itemsClass->getAllForUpdate(0, 10); abr('updated_items', $updated_items); #LOAD LAST REQUEST require_once ROOT_PATH . '/apps/contacts/models/contacts.class.php'; $contactsClass = new contacts(); $lastContact = $contactsClass->getAll(0, 10, " `answer` = '' "); abr('lastContact', $lastContact); #CHECK FOR ATTRIBUTES require_once ROOT_PATH . '/apps/attributes/models/categories.class.php'; $categoriesClass = new categories(); $attributes = $categoriesClass->getAll(); if (!is_array($attributes)) { abr('notHaveAttributes', 'true'); } require_once ROOT_PATH . '/apps/reports/models/javascript.class.php'; $referal_sum = $ordersClass->getSalesStatusByDay(" AND `datetime` > '" . date('Y-m') . "-01 00:00:00' ", 'referal'); $sales_sum = $ordersClass->getSalesStatusByDay(" AND `datetime` > '" . date('Y-m') . "-01 00:00:00' "); $referal_money = array(); $sales_money = array(); $user_money = array(); $win_money = array();