dlvoucher.inc.php 613 Bytes
<?php
global $_GPC, $_W;
$action = 'start';
//$GLOBALS['frames'] = $this->getMainMenu2();
$uid=$_COOKIE["uid"];
$storeid=$_COOKIE["storeid"];
$cur_store = $this->getStoreById($storeid);
$GLOBALS['frames'] = $this->getNaveMenu($storeid, $action,$uid);
$list=pdo_getall('wpdc_voucher',array('uniacid' => $_W['uniacid'],'store_id'=>$storeid));
if($_GPC['id']){
	$result = pdo_delete('wpdc_voucher', array('id'=>$_GPC['id']));
		if($result){
			message('删除成功',$this->createWebUrl2('dlvoucher',array()),'success');
		}else{
			message('删除失败','','error');
		}
}
include $this->template('web/dlvoucher');