/** * 魔力视图单元撤消 */ public function cellCancle() { //快速专题、区块时不加权限 if ($this->input['bs'] == 'k' || $this->input['bs'] == 'q') { } else { if ($this->user['group_type'] > MAX_ADMIN_TYPE) { $action = $this->user['prms']['app_prms'][MOD_UNIQUEID]['action']; $action = empty($action) ? array() : $action; if (!in_array('manage', $action)) { $this->errorOutput("NO_PRIVILEGE"); } } } $strIds = $this->input['id']; if (!$strIds) { $this->errorOutput("请选择需要撤消的单元"); } if (!class_exists('Magic')) { include CUR_CONF_PATH . 'lib/magic.class.php'; } $objMagic = new Magic(); $arData = $objMagic->cellCancle($strIds); if (!$arData) { $this->errorOutput('撤销失败'); } $this->addItem($arData); $this->output(); }