groupteam.inc.php 598 B

1234567891011
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. $sql=" select a.*,b.name as nick_name,b.img,c.store_name from".tablename('zhtc_group')." a left join ".tablename('zhtc_user')." b on a.user_id=b.id left join ".tablename('zhtc_store')." c on a.store_id=c.id where a.id=:id";
  5. $group=pdo_fetch($sql,array(':id'=>$_GPC['id']));
  6. $sql2=" select a.*,b.name as nick_name from".tablename('zhtc_grouporder')." a left join ".tablename('zhtc_user')." b on a.user_id=b.id where a.group_id=:id";
  7. $order=pdo_fetchall($sql2,array(':id'=>$_GPC['id']));
  8. include $this->template('web/groupteam');