Browse Source

后台搜索样式调整

tags/6.2.11
tianya 8 months ago
parent
commit
7799016886
11 changed files with 38 additions and 8 deletions
  1. +10
    -0
      docs/changelog.md
  2. +6
    -2
      src/admin/actionsearch_class.php
  3. +3
    -3
      src/admin/inc/inc_action_info.php
  4. +3
    -0
      src/admin/mychannel_add.php
  5. +3
    -0
      src/admin/mychannel_edit.php
  6. +3
    -0
      src/admin/mychannel_field_add.php
  7. +3
    -0
      src/admin/mychannel_field_edit.php
  8. +3
    -0
      src/admin/mychannel_main.php
  9. +1
    -1
      src/admin/sys_data.php
  10. +2
    -1
      src/admin/templets/action_search.htm
  11. +1
    -1
      src/system/common.inc.php

+ 10
- 0
docs/changelog.md View File

@@ -1,6 +1,16 @@
# 更新记录
通过访问 https://www.dedebiz.com/git 获取完整更新记录

# V6.2.11
- 增加商业版扩展DedeBIZ Search;
- 增加用户中心个人主页功能;
- 修正联动模型调用错误;
- 修正软件模型会员发布器缺失的错误;
- 修正TAG为空无法删除的错误;
- 修正TAG生成目录错误;
- 移除FTP的支持;
- 其他常规问题修复;
-
# V6.2.10
- DedeBIZ基于自由软件基金会发行的GPL v2许可证发布
- 修正后台功能说明提示;


+ 6
- 2
src/admin/actionsearch_class.php View File

@@ -76,11 +76,15 @@ class ActionSearch
foreach ($text as $key => $value) {
if ($key == 'title' || $key == 'description') {
//仅对title,description进行数组替换
$text[$key] = str_replace($this->keyword, '<span class="text-primary">'.$this->keyword.'</span>', $text[$key]);
if ($key == 'description') {
$text[$key] = str_replace($this->keyword, '<span class="text-primary"><small>'.$this->keyword.'</small></span>', $text[$key]);
} else {
$text[$key] = str_replace($this->keyword, '<span class="text-primary">'.$this->keyword.'</span>', $text[$key]);
}
}
}
} else {
$text = str_replace($this->keyword, '<span class="text-primary">'.$this->keyword.'</span>', $text);
$text = str_replace($this->keyword, '<span class="text-primary"><small>'.$this->keyword.'</small></span>', $text);
}
return $text;
}


+ 3
- 3
src/admin/inc/inc_action_info.php View File

@@ -87,7 +87,7 @@ $actionSearch[3] = array(
'title' => '文档模型',
'description' => '所有文档模型管理',
'soniterm' => array(
0 => array(
0 => DEDEBIZ_SAFE_MODE? null : array(
'title' => '文档模型管理',
'description' => '网站文档、图片、软件、专题、分类等模型管理',
'purview' => 'c_List',
@@ -159,7 +159,7 @@ $actionSearch[4] = array(
'purview' => 'sys_Keyword',
'linkurl' => 'article_description_main.php'
),
6 => array(
6 => DEDEBIZ_SAFE_MODE? null : array(
'title' => '数据库字段替换',
'description' => '网站数据库字段批量替换',
'purview' => 'sys_ArcBatch',
@@ -363,7 +363,7 @@ $actionSearch[9] = array(
'purview' => 'sys_StringMix',
'linkurl' => 'article_string_mix.php'
),
8 => array(
8 => DEDEBIZ_SAFE_MODE? null : array(
'title' => '数据库备份还原',
'description' => '数据库备份和还原数据备份',
'purview' => 'sys_data',


+ 3
- 0
src/admin/mychannel_add.php View File

@@ -9,6 +9,9 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
CheckPurview('c_New');
require_once(DEDEINC."/dedetag.class.php");
if (empty($ismake)) $ismake = 0;


+ 3
- 0
src/admin/mychannel_edit.php View File

@@ -9,6 +9,9 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
CheckPurview('c_Edit');
require_once(DEDEINC."/dedetag.class.php");
require_once(DEDEINC."/libraries/oxwindow.class.php");


+ 3
- 0
src/admin/mychannel_field_add.php View File

@@ -9,6 +9,9 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
CheckPurview('c_New');
require_once(DEDEADMIN."/inc/inc_admin_channel.php");
require_once(DEDEINC."/dedetag.class.php");


+ 3
- 0
src/admin/mychannel_field_edit.php View File

@@ -9,6 +9,9 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
CheckPurview('c_New');
require_once(DEDEINC."/dedetag.class.php");
require_once(dirname(__FILE__)."/inc/inc_admin_channel.php");


+ 3
- 0
src/admin/mychannel_main.php View File

@@ -9,6 +9,9 @@
* @link https://www.dedebiz.com
*/
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
CheckPurview('c_List');
require_once(DEDEINC.'/datalistcp.class.php');
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/");


+ 1
- 1
src/admin/sys_data.php View File

@@ -11,7 +11,7 @@
require_once(dirname(__FILE__)."/config.php");
if (DEDEBIZ_SAFE_MODE) {
die(DedeAlert("系统已启用安全模式,无法使用当前功能",ALERT_DANGER));
}
}
CheckPurview('sys_Data');
if (empty($dopost)) $dopost = '';
if ($cfg_dbtype == 'sqlite') {


+ 2
- 1
src/admin/templets/action_search.htm View File

@@ -19,7 +19,8 @@
</tr>
<?php foreach ($row['soniterm'] as $rows) {?>
<tr>
<td><a href="<?php echo $rows['linkurl'] ?>" target="main"><?php echo $rows['title'] ?></a><?php echo $rows['description'] ?></td>
<td><a href="<?php echo $rows['linkurl'] ?>" target="main"><?php echo $rows['title'] ?></a>
<p class="text-secondary"><small><?php echo $rows['description'] ?></small></p></td>
</tr>
<?php }?>
<?php }?>


+ 1
- 1
src/system/common.inc.php View File

@@ -7,7 +7,7 @@
* @link https://www.dedebiz.com
*/
//系统默认运行模式为安全模式,模板管理、标签管理、数据库管理、模块管理等功能已暂停,如果您需要这些功能,DEDEBIZ_SAFE_MODE后面值`TRUE`改为`FALSE`恢复使用
define('DEDEBIZ_SAFE_MODE', FALSE);
define('DEDEBIZ_SAFE_MODE', TRUE);
//生产环境使用`production`,如果采用`dev`模式,会有一些php的报错信息提示,用于开发调试
if (!defined('DEDE_ENVIRONMENT')) {
define('DEDE_ENVIRONMENT', 'production');


Loading…
Cancel
Save