$post['status'] = get_status($item['status'], $need_check); $post['hits'] = $item['hits']; $post['username'] = $_username; if ($FD) { fields_check($post_fields); } if ($CP) { property_check($post_ppt); } if ($FD) { fields_update($post_fields, $table, $do->itemid); } if ($CP) { property_update($post_ppt, $moduleid, $post['catid'], $do->itemid); } $do->edit($post); set_cookie('dmsg', $L['success_edit']); dalert('', '', 'parent.window.location="' . $forward . '"'); } else { dalert($do->errmsg); } } else { extract($item); $totime = $totime ? timetodate($totime, 3) : ''; } break; case 'update': $do->_update($_username); dmsg($L['success_update'], $forward); break; case 'resume_show':