Blame view

addons/zh_cjdianc/inc/web/groupteam.inc.php 851 Bytes
4d84a934   曹明   初始代码提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
global $_GPC, $_W;
$storeid = $_COOKIE["storeid"];
$cur_store = $this->getStoreById($storeid);
$GLOBALS['frames'] = $this->getMainMenu2();

$where = " where uniacid=:uniacid and store_id=:store_id";
$data[':uniacid'] = $_W['uniacid'];
$data[':store_id'] = $_COOKIE["storeid"];
$groupId = $_GPC['id'];
$sql = " select a.*,b.name as nick_name,b.img from".tablename('cjdc_group')." a left join ".tablename('cjdc_user')." b on a.user_id=b.id where a.id=:id";
$group = pdo_fetch($sql,array(':id'=> $groupId));
$sql2 = " select a.*,b.name as nick_name from".tablename('cjdc_grouporder')." a left join ".tablename('cjdc_user')." b on a.user_id=b.id where a.group_id=:id and a.state in (2,3)";
$order = pdo_fetchall($sql2,array(':id'=> $groupId));

$store = pdo_get('cjdc_store', ['id' => $group['store_id']]);

include $this->template('web/groupteam');