<?php
/**
 * [UQcms System] Copyright uqcms.com
 * QQ: 2200631718
 * Author: gj.name
 * This is NOT a freeware
*/
defined('IN_UQ') or exit('Access Denied'); class member_uqcms extends control { function __construct(){ $this->uid = @$_SESSION['user']['uid']; $this->wchat_uid = @$_SESSION['wchat']['uid']; parent::__construct(); } function index(){ $urow = $this->module('user')->get_one($this->uid); $this->assign('urow',$urow); $sRow1 = $this->db->get_one("select count(id) as total from ".table('order_info')." where uid = ".$this->uid." and order_status = 1"); $sRow2 = $this->db->get_one("select count(id) as total from ".table('order_info')." where uid = ".$this->uid." and order_status = 2"); $sRow3 = $this->db->get_one("select count(id) as total from ".table('order_info')." where uid = ".$this->uid." and order_status = 3"); $sRow4 = $this->db->get_one("select count(id) as total from ".table('order_info')." where uid = ".$this->uid." and order_status = 4"); $status['1'] = $sRow1['total']; $status['2'] = $sRow2['total']; $status['3'] = $sRow3['total']; $status['4'] = $sRow4['total']; $this->assign('orderNum',$status); $cNumShop = $this->db->get_one("select count(id) as total from ".table('collect_shop')." where uid = ".$this->uid); $cNumGoods = $this->db->get_one("select count(id) as total from ".table('collect_goods')." where uid = ".$this->uid); $this->assign('cNumShop',$cNumShop['total']); $this->assign('cNumGoods',$cNumGoods['total']); $view = @$_COOKIE['goodsView']; $view_num = count($view); $this->assign('cNumView',$view_num); $this->display(); } }