yellowtype2.inc.php 717 B

1234567891011121314151617181920212223242526
  1. <?php
  2. global $_GPC, $_W;
  3. $GLOBALS['frames'] = $this->getMainMenu();
  4. // $list = pdo_getall('zhtc_storetype2',array('uniacid' => $_W['uniacid']));
  5. $sql="select a.* ,b.type_name from " . tablename("zhtc_storetype2") . " a" . " left join " . tablename("zhtc_storetype") . " b on b.id=a.type_id where a.uniacid=:uniacid ORDER BY num asc";
  6. $list=pdo_fetchall($sql,array(':uniacid'=>$_W['uniacid']));
  7. if($_GPC['id']){
  8. $res=pdo_delete('zhtc_storetype2',array('id'=>$_GPC['id']));
  9. if($res){
  10. message('删除成功',$this->createWebUrl('storetype2',array()),'success');
  11. }else{
  12. message('删除失败','','error');
  13. }
  14. }
  15. include $this->template('web/storetype2');