} else { extract($item); list($byear, $bmonth, $bday) = explode('-', $birthday); } break; case 'delete': $MG['delete'] or message(); $itemid or message(); $itemids = is_array($itemid) ? $itemid : array($itemid); foreach ($itemids as $itemid) { $do->itemid = $itemid; $item = $do->get_one(); if (!$item || $item['username'] != $_username) { message(); } $do->recycle($itemid); } dmsg($L['success_delete'], $forward); break; case 'update': $do->_update($_username); dmsg($L['success_update'], $forward); break; case 'apply_delete': $itemid or message(); $apply = $db->get_one("SELECT * FROM {$DT_PRE}job_apply WHERE applyid='{$itemid}' AND apply_username='******'"); if ($apply) { if ($apply['status'] > 0) { $db->query("UPDATE {$DT_PRE}job SET apply=apply-1 WHERE itemid='{$apply['jobid']}'"); } $db->query("DELETE FROM {$DT_PRE}job_apply WHERE applyid='{$itemid}'");
} else { $itemid = $itemid ? implode(',', $itemid) : ''; $menuid = 5; include tpl($action, $module); } break; case 'update': is_array($itemid) or msg('请选择简历'); foreach ($itemid as $v) { $do->update($v); } dmsg('更新成功', $forward); break; case 'delete': $itemid or msg('请选择简历'); isset($recycle) ? $do->recycle($itemid) : $do->delete($itemid); dmsg('删除成功', $forward); break; case 'restore': $itemid or msg('请选择简历'); $do->restore($itemid); dmsg('还原成功', $forward); break; case 'refresh': $itemid or msg('请选择简历'); $do->refresh($itemid); dmsg('刷新成功', $forward); break; case 'clear': $do->clear(); dmsg('清空成功', $forward);