} /** * 经销商查询更新 * */ if ($_REQUEST['act'] == 'update_jxscx') { /* 权限判断 */ admin_priv('03_ssj_jxscx'); /*检查文章名是否相同*/ $is_only = $exc->is_only('title', $_POST['title'], $_POST['id'], "cat_id = '{$_POST['article_cat']}'"); if (!$is_only) { sys_msg(sprintf($_LANG['title_exist'], stripslashes($_POST['title'])), 1); } if (empty($_POST['cat_id'])) { $_POST['cat_id'] = 0; } if ($exc->edit0("ssj_name='{$_POST['ssj_name']}', cat_id='经销商', address='{$_POST['address']}', telphone='{$_POST['telphone']}',ssj_area='{$_POST['ssj_area']}',content='{$_POST['FCKeditor1']}'", $_POST['id'])) { $link[0]['text'] = $_LANG['back_list']; $link[0]['href'] = 'article.php?act=list_jxscx&' . list_link_postfix(); $note = sprintf($_LANG['articleedit_succeed'], stripslashes($_POST['title'])); admin_log($_POST['title'], 'edit', 'article'); clear_cache_files(); sys_msg($note, 0, $link); } else { die($db->error()); } } /** * 直销店招商更新 * */ if ($_REQUEST['act'] == 'update_zxdzs') { /* 权限判断 */