From 26530d3c2baab2354c517fb9e02b19f15832a93f Mon Sep 17 00:00:00 2001 From: xushubieli Date: Thu, 12 May 2022 10:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96sql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/catalog_add.php | 6 +++--- src/admin/catalog_edit.php | 4 ++-- src/admin/templets/catalog_add.htm | 8 ++++---- src/admin/templets/catalog_edit.htm | 8 ++++---- src/install/v57sp2_to_v6.txt | 8 +++++++- 5 files changed, 20 insertions(+), 14 deletions(-) diff --git a/src/admin/catalog_add.php b/src/admin/catalog_add.php index 5e4a419a..04d806c5 100644 --- a/src/admin/catalog_add.php +++ b/src/admin/catalog_add.php @@ -50,7 +50,7 @@ else if ($dopost == 'savequick') { $tempindex = "{style}/index_{$nid}.htm"; $templist = "{style}/list_{$nid}.htm"; $temparticle = "{style}/article_{$nid}.htm"; - $queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) + $queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,cnoverview,enname,enoverview,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) VALUES('~reid~','~topid~','~rank~','~typename~','','','','','','~typedir~','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','0','0','','','~typename~','0','','','0','0','0','','')"; if (empty($savetype)) { foreach ($_POST as $k => $v) { @@ -176,8 +176,8 @@ else if ($dopost == 'save') { exit(); } } - $in_query = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) - VALUES('$reid','$topid','$sortrank','$typename','$namegk','$enname','$ennamegk','$bigpic','$litimg','$typedir','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','$ispart','$corank','$description','$keywords','$seotitle','$moresite','$siteurl','$sitepath','$ishidden','$cross','$crossid','$content','$smalltypes')"; + $in_query = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,cnoverview,enname,enoverview,bigpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) + VALUES('$reid','$topid','$sortrank','$typename','$cnoverview','$enname','$enoverview','$bigpic','$litimg','$typedir','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','$ispart','$corank','$description','$keywords','$seotitle','$moresite','$siteurl','$sitepath','$ishidden','$cross','$crossid','$content','$smalltypes')"; if (!$dsql->ExecuteNoneQuery($in_query)) { ShowMsg("保存目录数据时失败,请检查您的输入资料是否存在问题", "-1"); exit(); diff --git a/src/admin/catalog_edit.php b/src/admin/catalog_edit.php index e87f10ae..6c02da8a 100644 --- a/src/admin/catalog_edit.php +++ b/src/admin/catalog_edit.php @@ -33,9 +33,9 @@ if ($dopost == "save") { issend='$issend', sortrank='$sortrank', typename='$typename', - namegk='$namegk', + cnoverview='$cnoverview', enname='$enname', - ennamegk='$ennamegk', + enoverview='$enoverview', bigpic='$bigpic', litimg='$litimg', typedir='$typedir', diff --git a/src/admin/templets/catalog_add.htm b/src/admin/templets/catalog_add.htm index d9f82b64..00c91c9a 100644 --- a/src/admin/templets/catalog_add.htm +++ b/src/admin/templets/catalog_add.htm @@ -217,16 +217,16 @@ - 中文概况: - + 中文概述: + 英文名称: - 英文概况: - + 英文概述: + 栏目大图: diff --git a/src/admin/templets/catalog_edit.htm b/src/admin/templets/catalog_edit.htm index 96c10ae9..c9959ca1 100644 --- a/src/admin/templets/catalog_edit.htm +++ b/src/admin/templets/catalog_edit.htm @@ -194,16 +194,16 @@ - 中文概况: - + 中文概述: + 英文名称: - 英文概况: - + 英文概述: + 栏目大图: diff --git a/src/install/v57sp2_to_v6.txt b/src/install/v57sp2_to_v6.txt index dcca0f18..9f3a957f 100644 --- a/src/install/v57sp2_to_v6.txt +++ b/src/install/v57sp2_to_v6.txt @@ -1,3 +1,9 @@ +-- 6.1.10 +ALTER TABLE `#@__arctype` CHANGE `namegk` `cnoverview` CHAR(255) NOT NULL DEFAULT ''; +ALTER TABLE `#@__arctype` CHANGE `ennamegk` `enoverview` CHAR(255) NOT NULL DEFAULT ''; +DELETE FROM `#@__sysconfig` WHERE `#@__sysconfig`.`varname` = 'cfg_disable_funs'; +DELETE FROM `#@__sysconfig` WHERE `#@__sysconfig`.`varname` = 'cfg_disable_tags'; + -- 6.1.9 ALTER TABLE `#@__archives` MODIFY COLUMN `title` varchar(255) NOT NULL DEFAULT '' AFTER `money`; ALTER TABLE `#@__arctype` MODIFY COLUMN `typename` varchar(255) NOT NULL DEFAULT '' AFTER `sortrank`; @@ -53,7 +59,7 @@ ALTER TABLE `#@__log` MODIFY COLUMN `cip` char(46) NOT NULL DEFAULT '' AFTER `qu ALTER TABLE `#@__member` MODIFY COLUMN `joinip` char(46) NOT NULL DEFAULT '' AFTER `jointime`,MODIFY COLUMN `loginip` char(46) NOT NULL DEFAULT '' AFTER `logintime`; ALTER TABLE `#@__shops_orders` MODIFY COLUMN `ip` char(46) NOT NULL DEFAULT '' AFTER `state`; ALTER TABLE `#@__dl_log` MODIFY COLUMN `ip` char(46) NOT NULL AFTER `id`; -ALTER TABLE `#@__arctype` CHANGE COLUMN `litpic` `bigpic` char(255) NOT NULL DEFAULT '' AFTER `ennamegk`; +ALTER TABLE `#@__arctype` CHANGE `litpic` `bigpic` CHAR(255) NOT NULL DEFAULT ''; ALTER TABLE `#@__addoninfos` MODIFY COLUMN `nativeplace` char(20) NOT NULL DEFAULT 0 AFTER `badpost`; -- 6.1.0