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); dmsg('修改成功', $forward); } else { msg($do->errmsg); } } else { $item = $do->get_one(); extract($item); $addtime = timetodate($addtime); $menuon = array('4', '3', '2', '1'); $menuid = $menuon[$status]; include tpl($action, $module); } break; case 'move': if ($submit) { $fromids or msg('请填写来源ID'); in_array($fromtype, array('gid', 'itemid')) or msg('请选择ID类型'); $tocatid = intval($tocatid); $GRP = get_group($tocatid); $GRP && $GRP['status'] == 3 or msg('目标商圈不存在'); if ($tocatid) {
extract($T); } break; case 'delete': $itemid && is_array($itemid) or message($L['my_choose_post']); $content = ''; if ($reason == $L['my_manage_reason']) { $reason = ''; } $reason = dhtmlspecialchars($reason); $message = isset($message) ? 1 : 0; require MD_ROOT . '/club.class.php'; $do = new club($moduleid); foreach ($itemid as $tid) { $do->itemid = $tid; $T = $do->get_one(); if (!$T || $T['status'] != 3 || $T['gid'] != $gid) { continue; } $do->recycle($tid); if ($message) { send_message($T['username'], lang($L['manage_msg_title'], array($L['my_manage_type_post'], dsubstr($T['title'], 20, '...'), $L['my_manage_type_del'])), lang($L['manage_msg_content'], array($MOD['linkurl'] . $T['linkurl'], nl2br($reason), $_username))); } $title = addslashes($T['title']); $db->query("INSERT INTO {$table}_manage (gid,tid,username,addtime,typeid,title,content,reason,message) VALUES ('{$gid}','{$tid}','{$_username}','{$DT_TIME}','1','{$title}','{$content}','{$reason}','{$message}')"); } dmsg($L['post_success_del'], $forward); break; case 'style': $itemid && is_array($itemid) or message($L['my_choose_post']); $STYLE = array('red' => '#FF0000', 'blue' => '#0000FF', 'orange' => '#FF6600');