From c44f0fa941e1ae5b4d9547c1acd5ec27f072edaa Mon Sep 17 00:00:00 2001 From: ycc Date: Tue, 20 Apr 2021 16:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E4=BF=A1=E6=81=AF=E6=8E=A8?= =?UTF-8?q?=E8=8D=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third_party/recommend/views/bind.php | 4 +++ application/views/bootstrap3/header.php | 28 +++++++++++++++++++ .../views/bootstrap3/information_edit.php | 24 ---------------- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/application/third_party/recommend/views/bind.php b/application/third_party/recommend/views/bind.php index 011d5baf..3a1cf2ef 100644 --- a/application/third_party/recommend/views/bind.php +++ b/application/third_party/recommend/views/bind.php @@ -152,6 +152,10 @@ diff --git a/application/views/bootstrap3/information_edit.php b/application/views/bootstrap3/information_edit.php index bd273347..6e089893 100644 --- a/application/views/bootstrap3/information_edit.php +++ b/application/views/bootstrap3/information_edit.php @@ -241,31 +241,7 @@ $("#ic_photo_img").attr("src", '/css/images/uploadPic.jpg'); } - //选择内容图片 - function openKCFinder_Content() { - var site_url = 'config->item('site_url') ?>'; - var weburl = encodeURI(site_url + $("#ic_url").val()); - window.CallBack = openKCFinder_Content_callback; - window.open('/media/popselectpicture.php?site_code=config->item('site_code'); ?>&site_lgc=config->item('site_lgc'); ?>&WebUrl=' + weburl, 'kcfinder_textbox', 'status=0, toolbar=0, location=0, menubar=0, directories=0,resizable=1, scrollbars=0, width=800, height=600'); - } - function openKCFinder_Content_callback(result) { - var site_image_url = 'config->item('media_image_url') ?>'; - var use_pictures = $("#use_pictures").val(); - if (result != null) { - for (var key in result.Pinfo) { - if ('config->item('site_code') ?>' == 'cht') { - editor.insertHtml('
' + result.Pinfo[key].Sinfo + '' + result.Pinfo[key].Sinfo + '
'); - } else if ('config->item('site_code') ?>' == 'ch') { - editor.insertHtml('
' + result.Pinfo[key].Sinfo + '' + result.Pinfo[key].Sinfo + '
'); - } else { - editor.insertHtml('' + result.Pinfo[key].PName + ''); - } - use_pictures = use_pictures + result.Pinfo[key].ID + ':' + result.Pinfo[key].PUrl + ':' + result.Pinfo[key].wh + ','; - } - $("#use_pictures").val(use_pictures); - } - } //搜索产品列表 function select_product_list(product_type, product_name) {