while ($list = $db->fetch_array($result)) { $paravalue[] = $list; } foreach ($paravalue as $key => $val) { } metsave($backurl, '', $depth, $htmjs); } else { $message_contents = $db->get_one("select * from {$met_config} where lang='{$lang}' and name='met_message_fd_content'"); $message_content = $db->get_one("select * from {$met_parameter} where lang='{$lang}' and id='{$message_contents['value']}' and module='7'"); $message_content1 = $db->get_one("select * from {$met_mlist} where lang='{$lang}' and module='7' and listid='{$id}' and imgname='{$message_content['name']}'"); $query1 = "SELECT * FROM {$met_mlist} WHERE lang='{$lang}' and module='7' and listid='{$id}' and paraid!='{$message_content1['paraid']}' order by id"; $result1 = $db->query($query1); while ($list1 = $db->fetch_array($result1)) { $para_list[] = $list1; } $message_list = $db->get_one("select * from {$met_message} where id='{$id}'"); $message_list['customerid'] = metidtype($message_list['customerid']); if (!$message_list) { metsave('-1', $lang_dataerror, $depth); } $lev = $met_module[7][0][access]; $list_access['access'] = $message_list['access']; require '../access.php'; $met_readok = $message_list[readok] ? "checked='checked'" : ""; $css_url = $depth . "../templates/" . $met_skin . "/css"; $img_url = $depth . "../templates/" . $met_skin . "/images"; include template('content/message/editor'); footer(); } # This program is an open source system, commercial use, please consciously to purchase commercial license. # Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
if ($action == "editor") { $query = "update {$met_feedback} SET\n\t\t\t\t\t\t useinfo = '{$useinfo}',\n\t\t\t\t\t\t class1 = '{$class1}',\n\t\t\t\t\t\t readok = '1'\n\t\t\t\t\t\t where id='{$id}'"; $db->query($query); metsave($backurl, '', $depth); } else { if (!$class1) { $feedback_list = $db->get_one("select * from {$met_feedback} where id='{$id}'"); $class1 = $feedback_list['class1']; } $query = "update {$met_feedback} SET\n\t\t\t\t\t\t class1 = '{$class1}',\n\t\t\t\t\t\t readok = '1'\n\t\t\t\t\t\t where id='{$id}'"; $db->query($query); $feedback_list = $db->get_one("select * from {$met_feedback} where id='{$id}' and class1 = '{$class1}'"); if (!$feedback_list) { metsave('-1', $lang_dataerror, $depth); } $feedback_list['customerid'] = metidtype($feedback_list['customerid']); $query = "SELECT * FROM {$met_parameter} where module=8 and lang='{$lang}' and class1='{$class1}' order by no_order"; $result = $db->query($query); while ($list = $db->fetch_array($result)) { $info_list = $db->get_one("select * from {$met_flist} where listid='{$id}' and paraid='{$list['id']}' and lang='{$lang}'"); $list[content] = $list[type] == 5 ? $info_list[info] != '../upload/file/' ? "<a href='../../" . $info_list[info] . "' target='_blank'>{$lang_clickview}</a>" : $lang_filenomor : $info_list[info]; $feedback_para[] = $list; } $fnam = $db->get_one("SELECT * FROM {$met_column} WHERE id='{$class1}' and lang='{$lang}'"); foreach ($settings_arr as $key => $val) { if ($val['columnid'] == $fnam['id']) { ${$val}['name'] = $val['value']; } } $css_url = $depth . "../templates/css"; $img_url = $depth . "../templates/images";