MODEL('coupon'); if($_POST['submit']){ $return = $couponM->addCouponList($_POST); if($return['errcode']=='9'){ $this->ACT_layer_msg($return['msg'],$return['errcode'],$_SERVER['HTTP_REFERER'],2,1); }else{ $this->ACT_layer_msg($return['msg'],$return['errcode']); } } $coupon = $couponM->getList(); $this->yunset("coupon",$coupon); $this->siteadmin_tpl(array('admin_coupon_gift')); } } ?>