Browse Source

关键词调整

tags/6.1.0^2
xushubieli 2 years ago
parent
commit
12004c74cb
59 changed files with 136 additions and 138 deletions
  1. +5
    -5
      src/admin/archives_do.php
  2. +4
    -4
      src/admin/article_keywords_main.php
  3. +11
    -11
      src/admin/article_keywords_make.php
  4. +1
    -1
      src/admin/content_list.php
  5. +1
    -1
      src/admin/inc/grouplist.txt
  6. +1
    -1
      src/admin/inc/inc_archives_functions.php
  7. +2
    -2
      src/admin/search_keywords_main.php
  8. +1
    -1
      src/admin/templets/ad_main.htm
  9. +8
    -2
      src/admin/templets/album_add.htm
  10. +1
    -1
      src/admin/templets/album_edit.htm
  11. +12
    -8
      src/admin/templets/archives_add.htm
  12. +1
    -1
      src/admin/templets/archives_edit.htm
  13. +1
    -1
      src/admin/templets/article_add.htm
  14. +1
    -1
      src/admin/templets/article_edit.htm
  15. +5
    -5
      src/admin/templets/article_keywords_main.htm
  16. +8
    -8
      src/admin/templets/article_keywords_make.htm
  17. +6
    -6
      src/admin/templets/article_keywords_select.htm
  18. +1
    -1
      src/admin/templets/catalog_add.htm
  19. +1
    -1
      src/admin/templets/catalog_edit.htm
  20. +1
    -1
      src/admin/templets/content_batch_up.htm
  21. +1
    -1
      src/admin/templets/content_i_list.htm
  22. +2
    -2
      src/admin/templets/content_list.htm
  23. +1
    -1
      src/admin/templets/content_s_list.htm
  24. +1
    -1
      src/admin/templets/content_select_list.htm
  25. +1
    -1
      src/admin/templets/content_sg_list.htm
  26. +1
    -1
      src/admin/templets/feedback_main.htm
  27. +2
    -2
      src/admin/templets/freelist_add.htm
  28. +2
    -2
      src/admin/templets/freelist_edit.htm
  29. +1
    -1
      src/admin/templets/friendlink_main.htm
  30. +1
    -1
      src/admin/templets/media_main.htm
  31. +1
    -1
      src/admin/templets/member_main.htm
  32. +1
    -1
      src/admin/templets/member_pm.htm
  33. +1
    -1
      src/admin/templets/member_pmall.htm
  34. +1
    -1
      src/admin/templets/member_pmone.htm
  35. +1
    -1
      src/admin/templets/mychannel_modifysearch.htm
  36. +1
    -1
      src/admin/templets/mytag_tag_guide.htm
  37. +2
    -2
      src/admin/templets/search_keywords_main.htm
  38. +12
    -7
      src/admin/templets/soft_add.htm
  39. +1
    -1
      src/admin/templets/soft_edit.htm
  40. +3
    -3
      src/admin/templets/spec_add.htm
  41. +3
    -3
      src/admin/templets/spec_edit.htm
  42. +1
    -1
      src/admin/templets/templets_one.htm
  43. +1
    -1
      src/admin/templets/templets_one_add.htm
  44. +1
    -1
      src/admin/templets/templets_one_edit.htm
  45. +3
    -20
      src/apps/search.php
  46. +2
    -2
      src/install/sql-dfdata.txt
  47. +4
    -4
      src/system/archive/searchview.class.php
  48. +1
    -1
      src/system/archive/taglist.class.php
  49. +1
    -1
      src/system/helpers/channelunit.helper.php
  50. +1
    -1
      src/system/taglib/arclist.lib.php
  51. +1
    -1
      src/system/taglib/channel/specialtopic.lib.php
  52. +1
    -1
      src/system/taglib/help/arclist.txt
  53. +1
    -1
      src/system/taglib/help/arclistsg.txt
  54. +1
    -1
      src/system/taglib/help/bookcontentlist.txt
  55. +1
    -1
      src/system/taglib/help/booklist.txt
  56. +1
    -1
      src/system/taglib/help/hotwords.txt
  57. +1
    -1
      src/system/taglib/hotwords.lib.php
  58. +1
    -1
      src/theme/plus/heightsearch.htm
  59. +1
    -1
      src/theme/templets/list_infos.htm

+ 5
- 5
src/admin/archives_do.php View File

@@ -577,7 +577,7 @@ else if ($dopost == 'quickEdit') {
</td>
</tr>
<tr height='26'>
<td width="86" class='bline'>&nbsp;关键:</td>
<td width="86" class='bline'>&nbsp;关键:</td>
<td class='bline'><input name="keywords" type="text" id="keywords" value="<?php echo $arcRow['keywords']; ?>" style="width:320px"></td>
</tr>
<tr height='36'>
@@ -663,7 +663,7 @@ else if ($dopost == "makekw") {
$client->appid = $cfg_bizcore_appid;
$client->key = $cfg_bizcore_key;
while ($row = $dsql->GetArray()) {
//跳过已经有关键的内容
//跳过已经有关键的内容
if (trim($row['keywords']) != '') continue;
$aid = $row['id'];
$keywords = '';
@@ -676,7 +676,7 @@ else if ($dopost == "makekw") {
$description = str_replace('[', ' ', $description);
$description = str_replace(']', ' ', $description);
$description = preg_replace("#[ \t]{1,}#is", ' ', $description);
$description = str_replace('关键', '', $description);
$description = str_replace('关键', '', $description);
$description = str_replace('关键词', '', $description);
$description = addslashes($description);
$dsql->ExecuteNoneQuery(" UPDATE `#@__archives` SET `keywords`='$keywords',`description`='$description' WHERE id='{$aid}' ");
@@ -686,7 +686,7 @@ else if ($dopost == "makekw") {
include_once(DEDEINC.'/libraries/splitword.class.php');
$sp = new SplitWord($cfg_soft_lang, $cfg_soft_lang);
while ($row = $dsql->GetArray()) {
//跳过已经有关键的内容
//跳过已经有关键的内容
if (trim($row['keywords']) != '') continue;
$aid = $row['id'];
$keywords = '';
@@ -721,7 +721,7 @@ else if ($dopost == "makekw") {
$description = str_replace('[', ' ', $description);
$description = str_replace(']', ' ', $description);
$description = preg_replace("#[ \t]{1,}#is", ' ', $description);
$description = str_replace('关键', '', $description);
$description = str_replace('关键', '', $description);
$description = str_replace('关键词', '', $description);
$description = addslashes($description);
$dsql->ExecuteNoneQuery(" UPDATE `#@__archives` SET `keywords`='$keywords',`description`='$description' WHERE id='{$aid}' ");


+ 4
- 4
src/admin/article_keywords_main.php View File

@@ -49,23 +49,23 @@ if ($dopost == 'saveall') {
ShowMsg("完成指定的修改", $ENV_GOBACK_URL);
exit();
}
//增加关键
//增加关键
else if ($dopost == 'add') {
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "-1" : $_COOKIE['ENV_GOBACK_URL'];
$keyword = trim($keyword);
$rank = preg_replace("#[^0-9]#", '', $rank);
if ($keyword == '') {
ShowMsg("关键不能为空", -1);
ShowMsg("关键不能为空", -1);
exit();
}
$row = $dsql->GetOne("SELECT * FROM `#@__keywords` WHERE keyword LIKE '$keyword'");
if (is_array($row)) {
ShowMsg("关键已存在库中", "-1");
ShowMsg("关键已存在库中", "-1");
exit();
}
$inquery = "INSERT INTO `#@__keywords`(keyword,`rank`,sta,rpurl) VALUES ('$keyword','$rank','1','$rpurl');";
$dsql->ExecuteNoneQuery($inquery);
ShowMsg("成功增加一个关键", $ENV_GOBACK_URL);
ShowMsg("成功增加一个关键", $ENV_GOBACK_URL);
exit();
}
if (empty($keyword)) {


+ 11
- 11
src/admin/article_keywords_make.php View File

@@ -13,9 +13,9 @@
require_once(dirname(__FILE__).'/config.php');
CheckPurview('sys_Keyword');
if (empty($dopost)) $dopost = '';
//分析已存在的关键(适用于默认的文章模型)
//分析已存在的关键(适用于默认的文章模型)
if ($dopost == 'analyse') {
echo "正在读取关键数据库<br>\r\n";
echo "正在读取关键数据库<br>\r\n";
flush();
$ws = $wserr = $wsnew = "";
$dsql->SetQuery("SELECT * FROM `#@__keywords`");
@@ -24,9 +24,9 @@ if ($dopost == 'analyse') {
if ($row->sta == 1) $ws[$row->keyword] = 1;
else $wserr[$row->keyword] = 1;
}
echo "完成关键数据库的载入<br>\r\n";
echo "完成关键数据库的载入<br>\r\n";
flush();
echo "读取档案数据库,并对禁用的关键和生字进行处理<br>\r\n";
echo "读取档案数据库,并对禁用的关键和生字进行处理<br>\r\n";
flush();
$dsql->SetQuery("SELECT id,keywords FROM `#@__archives`");
$dsql->Execute();
@@ -57,10 +57,10 @@ if ($dopost == 'analyse') {
echo "完成档案数据库的处理<br>\r\n";
flush();
if (is_array($wsnew)) {
echo "对关键进行排序<br>\r\n";
echo "对关键进行排序<br>\r\n";
flush();
arsort($wsnew);
echo "把关键保存到数据库<br>\r\n";
echo "把关键保存到数据库<br>\r\n";
flush();
foreach ($wsnew as $k => $v) {
if (strlen($k) > 20) {
@@ -69,18 +69,18 @@ if ($dopost == 'analyse') {
$dsql->SetQuery("INSERT INTO `#@__keywords`(keyword,`rank`,sta,rpurl) VALUES('".addslashes($k)."','$v','1','')");
$dsql->Execute();
}
echo "完成关键的导入<br>\r\n";
echo "完成关键的导入<br>\r\n";
flush();
sleep(1);
} else {
echo "没发现任何新的关键<br>\r\n";
echo "没发现任何新的关键<br>\r\n";
flush();
sleep(1);
}
ShowMsg('完成所有操作,现在转到关键列表页', 'article_keywords_main.php');
ShowMsg('完成所有操作,现在转到关键列表页', 'article_keywords_main.php');
exit();
}
//自动获取关键(适用于默认的文章模型)
//自动获取关键(适用于默认的文章模型)
else if ($dopost == 'fetch') {
require_once(DEDEINC."/libraries/splitword.class.php");
if (empty($startdd)) {
@@ -99,7 +99,7 @@ else if ($dopost == 'fetch') {
$totalnum = $row['dd'];
}

//获取记录,并分析关键
//获取记录,并分析关键
if ($totalnum > $startdd + $pagesize) {
$limitSql = " LIMIT $startdd,$pagesize";
} else if (($totalnum - $startdd) > 0) {


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

@@ -42,7 +42,7 @@ $adminid = $cuserLogin->getUserID();
$maintable = '#@__archives';
setcookie('ENV_GOBACK_URL', $dedeNowurl, time() + 3600, '/');
$tl = new TypeLink($cid);
//在不指定排序条件和关键的情况下直接统计微表
//在不指定排序条件和关键的情况下直接统计微表
if (empty($totalresult) && empty($keyword) && empty($orderby) && empty($flag)) {
$tinyQuerys = array();
if (!empty($userCatalogSql)) {


+ 1
- 1
src/admin/inc/grouplist.txt View File

@@ -75,7 +75,7 @@
>sys_Source>新闻来源
>sys_Writer>作者管理
>sys_SoftConfig>软件频道参数
>sys_Keyword>关键管理
>sys_Keyword>关键管理
>sys_MakeHtml>更新HTML
>sys_Feedback>评论管理
>sys_Upload>管理任意上传


+ 1
- 1
src/admin/inc/inc_archives_functions.php View File

@@ -569,7 +569,7 @@ function AnalyseHtmlBody($body, &$description, &$litpic, &$keywords, $dtype = ''
if ($autolitpic == 1 && $litpic == '') {
$litpic = GetDDImgFromBody($body);
}
//自动获取关键
//自动获取关键
if ($autokey == 2 && $keywords == '') {
$subject = $title;
$message = $body;


+ 2
- 2
src/admin/search_keywords_main.php View File

@@ -53,7 +53,7 @@ if ($dopost == '') {
$totalRow = $row['dd'];
include(DEDEADMIN."/templets/search_keywords_main.htm");
}
//获得特定的关键列表
//获得特定的关键列表
function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid')
{
global $cfg_phpurl;
@@ -64,7 +64,7 @@ function GetKeywordList($dsql, $pageno, $pagesize, $orderby = 'aid')
<tr align='center' bgcolor='#FBFCE2' height='26'>
<td width='5%'>选择</td>
<td width='6%' height='26'><a href='#' onclick=\"ReloadPage('aid')\">ID</a></td>
<td width='20%'>关键</td>
<td width='20%'>关键</td>
<td width='30%'>分词结果</td>
<td width='6%'><a href='#' onclick=\"ReloadPage('count')\">频率</a></td>
<td width='6%'><a href='#' onclick=\"ReloadPage('result')\">结果</a></td>


+ 1
- 1
src/admin/templets/ad_main.htm View File

@@ -31,7 +31,7 @@
<?php echo $option;?>

</select></td>
<td width='71'> 关键:</td>
<td width='71'> 关键:</td>
<td width='185'><input type='text' name='keyword' style='width:150' /></td>
<td width="130">
<button type="submit" class="btn btn-success">搜索</button>


+ 8
- 2
src/admin/templets/album_add.htm View File

@@ -453,8 +453,14 @@ table{border-collapse:separate}
<td height="26" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;关键字:</td>
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value=""> <button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览</button></td>
<td width="90">&nbsp;关键词:</td>
<td>
<input type='text' name="keywords" id="keywords" style="width:290px" value="">
<button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览</button>
</td>
<td width="260">
<label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>&nbsp;自动获取,手动填写用","分开</label>
</td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/album_edit.htm View File

@@ -309,7 +309,7 @@ if($cfg_need_typeid2=='Y') {
<td height="26" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="50">&nbsp;关键:</td>
<td width="90" height="50">&nbsp;关键:</td>
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td>
</tr>
</table>


+ 12
- 8
src/admin/templets/archives_add.htm View File

@@ -315,10 +315,12 @@ table{border-collapse:separate}
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;发布时间:</td>
<td width="240"><?php
$nowtime = GetDateTimeMk(time());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
?> </td>
<td width="240">
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>";
?>
</td>
<td width="90">消费金币:</td>
<td width="380"><input name="money" type="text" id="money" value="0" size="10"></td>
</tr>
@@ -329,12 +331,14 @@ table{border-collapse:separate}
<td height="26" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;关键字:</td>
<td width="450"><input type='text' name="keywords" id="keywords" style="width:80%" value=""></td>
<td width="260"><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>
自动获取,手动填写用","分开</label><br>
<td width="90">&nbsp;关键词:</td>
<td>
<input type='text' name="keywords" id="keywords" style="width:290" value="">
<button type="button" name="Submit" value="" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button>
</td>
<td width="260">
<label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>&nbsp;自动获取,手动填写用","分开</label>
</td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/archives_edit.htm View File

@@ -322,7 +322,7 @@ table{border-collapse:separate}
<td height="26" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="50">&nbsp;关键:</td>
<td width="90" height="50">&nbsp;关键:</td>
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td>
</tr>
</table>


+ 1
- 1
src/admin/templets/article_add.htm View File

@@ -226,7 +226,7 @@ table{border-collapse:separate}
<td height="26" colspan="5" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;关键:</td>
<td width="90">&nbsp;关键:</td>
<td width="450">
<input type='text' name="keywords" id="keywords" style="width:80%" value="<?php echo $keywords; ?>">
<button type="button" name="Submit" style="width:56;height:20" onClick="SelectKeywords('form1.keywords');" class='btn btn-success btn-sm'>浏览</button>


+ 1
- 1
src/admin/templets/article_edit.htm View File

@@ -334,7 +334,7 @@ table{border-collapse:separate}
<td height="26" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="110" height="50">&nbsp;关键:</td>
<td width="110" height="50">&nbsp;关键:</td>
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow['keywords']?>"></td>
</tr>
</table>


+ 5
- 5
src/admin/templets/article_keywords_main.htm View File

@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>关键管理</title>
<title>关键管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/base.css">
@@ -40,10 +40,10 @@
<button type='submit' name='sb' value='' class="btn btn-success btn-sm">确定</button>
&nbsp;
<button class="btn btn-success btn-sm" name="n1" type="button" id="n1"
onClick="location='article_keywords_make.php';">分析系统内的关键</button>
onClick="location='article_keywords_make.php';">分析系统内的关键</button>
&nbsp;
<button class="btn btn-success btn-sm" name="n11" type="button" id="n11"
onClick="location='search_keywords_main.php';">管理搜索的关键</button>
onClick="location='search_keywords_main.php';">管理搜索的关键</button>
</td>
</form>
</tr>
@@ -56,7 +56,7 @@
<td width="100%" height="30" colspan="6">
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr>
<td width="100" align="center">新增关键:</td>
<td width="100" align="center">新增关键:</td>
<td width="140"><input name="keyword" type="text" id="keyword"/></td>
<td width="100">链接网址:</td>
<td width="140"><input name="rpurl" type="text" id="rpurl"/></td>
@@ -70,7 +70,7 @@
</form>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="8%">选择</td>
<td width="25%">关键</td>
<td width="25%">关键</td>
<td width="35%">链接网址</td>
<td width="10%">频率</td>
<td width="22%">管理</td>


+ 8
- 8
src/admin/templets/article_keywords_make.htm View File

@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>关键维护</title>
<title>关键维护</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/base.css">
@@ -13,24 +13,24 @@
<td height="26" background='images/tbg.gif'>
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
<tr>
<td width="30%" height="18" style="padding-left:10px"><strong>关键维护:</strong></td>
<td width="30%" height="18" style="padding-left:10px"><strong>关键维护:</strong></td>
<td width="70%" align="right">
<button class="btn btn-success btn-sm" name="kw" type="button" id="kw" onClick="location='article_keywords_main.php';">返回关键管理页</button>
<button class="btn btn-success btn-sm" name="kw" type="button" id="kw" onClick="location='article_keywords_main.php';">返回关键管理页</button>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="36" bgcolor="#FFFFFF">本向导帮助自动分析您系统内的关键字,并统计关键字的数量,对其进行排序,您可以清理掉错误的关键字或无意义的关键字,以提高文档关连和搜索的准确性,本分析器是直接在内存中对关键字进行分析排序后加入到数据库的,因此本操作比较占用内存,如果您的文档数量很大并且使用的又是虚拟主机,可能无法完成本操作<br>
本程序只分析文章频道的关键数据,其它频道或自定义频道请自行手工指定内容的关系字<br>
如果您的文章是采集回来的,请先用“自动获取关键字”的功能对未有关键字的文章进行分词索引,然后再检测关键字
<td height="36" bgcolor="#FFFFFF">本向导帮助自动分析您系统内的关键词,并统计关键词的数量,对其进行排序,您可以清理掉错误的关键词或无意义的关键词,以提高文档关连和搜索的准确性,本分析器是直接在内存中对关键词进行分析排序后加入到数据库的,因此本操作比较占用内存,如果您的文档数量很大并且使用的又是虚拟主机,可能无法完成本操作<br>
本程序只分析文章频道的关键数据,其它频道或自定义频道请自行手工指定内容的关系字<br>
如果您的文章是采集回来的,请先用“自动获取关键词”的功能对未有关键词的文章进行分词索引,然后再检测关键词
</td>
</tr>
<tr>
<td height="30" bgcolor="#ffffff" align="center">
<a href="article_keywords_make.php?dopost=analyse" target="stafrm" class="btn btn-success btn-sm">检测已有的关键</a>&nbsp;
<a href="article_keywords_make.php?dopost=fetch" target="stafrm" class="btn btn-success btn-sm">自动获取关键</a>
<a href="article_keywords_make.php?dopost=analyse" target="stafrm" class="btn btn-success btn-sm">检测已有的关键</a>&nbsp;
<a href="article_keywords_make.php?dopost=fetch" target="stafrm" class="btn btn-success btn-sm">自动获取关键</a>
</td>
</tr>
<tr bgcolor="#F9FCEF">


+ 6
- 6
src/admin/templets/article_keywords_select.htm View File

@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>关键管理</title>
<title>关键管理</title>
<script language="javascript">
//获得选中文件的文件名
function SelKw(kw)
@@ -49,7 +49,7 @@ function AddNewKw()
<td width="100%" height="26" colspan="2" align="center" bgcolor="#009900">
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr>
<td width="60" align="center">关键:</td>
<td width="60" align="center">关键:</td>
<td width="140"><input name="keyword" type="text" id="keyword" style="width:130px"></td>
<td width="40">链接:</td>
<td width="140"><input name="rpurl" type="text" id="rpurl" style="width:130px"></td>
@@ -66,10 +66,10 @@ function AddNewKw()
<td width="100%" height="26" colspan="2" background="images/tbg.gif">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless">
<tr>
<td width="31%"><strong>选择关键</strong></td>
<td width="31%"><strong>选择关键</strong></td>
<td width="69%" align="right">
<button class="btn btn-success btn-sm" type="button" name="kwa" onClick="AddNewKw()">新增关键</button>
<button class="btn btn-success btn-sm" type="button" name="kwm" onClick="location='article_keywords_main.php';">关键管理</button>
<button class="btn btn-success btn-sm" type="button" name="kwa" onClick="AddNewKw()">新增关键</button>
<button class="btn btn-success btn-sm" type="button" name="kwm" onClick="location='article_keywords_main.php';">关键管理</button>
</td>
</tr>
</table>
@@ -86,7 +86,7 @@ function AddNewKw()
<td height="26" bgcolor="#E4FAC7" style="line-height:180%">
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
<tr>
<td width="120">已选的关键:</td>
<td width="120">已选的关键:</td>
<td width="320"><input name="keywords" type="text" id="keywords" style="width:300" value="<?php echo $keywords?>"></td>
<td width="93"><button type="button" class="btn btn-success btn-sm" name="Submit" onClick="ReturnValue()"> 选用 </button></td>
</tr>


+ 1
- 1
src/admin/templets/catalog_add.htm View File

@@ -483,7 +483,7 @@ function CheckCross() {
<td><input name="seotitle" type="text" id="seotitle" size="40" class="alltxt">(栏目模板里用{dede:field.seotitle /}调用)</td>
</tr>
<tr>
<td height="60" style="padding-left:10px">关键:</td>
<td height="60" style="padding-left:10px">关键:</td>
<td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></textarea></td>
</tr>
<tr>


+ 1
- 1
src/admin/templets/catalog_edit.htm View File

@@ -407,7 +407,7 @@ function CheckCross() {
<td><input name="seotitle" type="text" id="seotitle" value="<?php echo $myrow['seotitle']?>" size="40" class="alltxt">(栏目模板里用{dede:field.seotitle /}调用)</td>
</tr>
<tr>
<td height="60" style="padding-left:10px">关键:</td>
<td height="60" style="padding-left:10px">关键:</td>
<td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"><?php echo $myrow['keywords']?></textarea></td>
</tr>
<tr>


+ 1
- 1
src/admin/templets/content_batch_up.htm View File

@@ -137,7 +137,7 @@
echo $typeOptions;
echo "</select>";
echo "<hr>";
echo "标题关键:<input id='movekeyword' type='text' name='keyword' value='' ></span>";
echo "标题关键:<input id='movekeyword' type='text' name='keyword' value='' ></span>";
?>
</td>
</tr>


+ 1
- 1
src/admin/templets/content_i_list.htm View File

@@ -50,7 +50,7 @@ img{margin-right:0}
{dede:global.optionarr/}
</select>
</td>
<td>关键:</td>
<td>关键:</td>
<td><input type="text" name="keyword" value="{dede:global.keyword/}" style="margin-right:10px;width:260px"></td>
<td>
<select name='orderby' style="margin-right:10px;width:160px">


+ 2
- 2
src/admin/templets/content_list.htm View File

@@ -48,7 +48,7 @@
{dede:global.optionarr/}
</select>
</td>
<td>关键:</td>
<td>关键:</td>
<td><input name="keyword" type="text" value="{dede:global.keyword/}" style="margin-right:10px;width:260px"></td>
<td>
<select name="orderby" style="margin-right:10px;width:160px">
@@ -122,7 +122,7 @@
<a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a>
<a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid)?0:$channelid); ?>)" class="btn btn-success btn-sm">移动</a>
<a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a>
<?php if($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键</a>"; ?>
<?php if($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键</a>"; ?>
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="btn btn-success btn-sm">增加属性</a>
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-danger btn-sm">删除属性</a>
</td>


+ 1
- 1
src/admin/templets/content_s_list.htm View File

@@ -131,7 +131,7 @@ function noSelAll() {
<?php echo $optionarr?>
</select>
</td>
<td>关键:</td>
<td>关键:</td>
<td><input type="text" name="keyword" value="<?php echo $keyword?>" style="margin-right:10px;width:260px"></td>
<td><button type="submit" class="btn btn-success btn-sm">搜索</button></td>
</tr>


+ 1
- 1
src/admin/templets/content_select_list.htm View File

@@ -114,7 +114,7 @@
</select>
</td>
<td width='100'>
关键
关键
</td>
<td width='160'>
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'>


+ 1
- 1
src/admin/templets/content_sg_list.htm View File

@@ -286,7 +286,7 @@
</select>
</td>
<td width='100'>
关键
关键
</td>
<td width='160'>
<input type='text' name='keyword' value='{dede:global.keyword/}'


+ 1
- 1
src/admin/templets/feedback_main.htm View File

@@ -75,7 +75,7 @@
</div>
<div style="float:right;padding-right:10px">
<form name='form1'>
关键
关键
<input type='text' size='15' name='keyword' style='width:150'>
<select name="typeid" style="width:180">
<option value="0">--请选择--</option>


+ 2
- 2
src/admin/templets/freelist_add.htm View File

@@ -132,7 +132,7 @@
content=&quot;&quot;&gt; 描述</td>
</tr>
<tr>
<td height="26" align="left">关键:</td>
<td height="26" align="left">关键:</td>
<td align="left"><input name="keywords" type="text" id="keywords" style="width:60%"></td>
</tr>
<tr>
@@ -236,7 +236,7 @@
<label><input name="types[]" type="checkbox" id="type2" value="commend">
推荐</label>
<label><input name="types[]" type="checkbox" id="type3" value="spec">
专题</label> 关键
专题</label> 关键
<input name="keywordarc" type="text" id="keywordarc">
(&quot;,&quot;逗号分开)</td>
</tr>


+ 2
- 2
src/admin/templets/freelist_edit.htm View File

@@ -125,7 +125,7 @@
content=&quot;&quot;&gt; 描述</td>
</tr>
<tr>
<td height="26" align="left">关键:</td>
<td height="26" align="left">关键:</td>
<td align="left"><input name="keywords" type="text" id="keywords" style="width:60%" value="<?php echo $row['keywords']; ?>"></td>
</tr>
<tr>
@@ -230,7 +230,7 @@
推荐</label>
<label><input name="types[]" type="checkbox" id="type3" value="spec" class="inputbut"
<?php if(preg_match("#spec#i", $setype)) echo ' checked';?>>
专题</label> 关键
专题</label> 关键
<input name="keywordarc" type="text" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">
(&quot;,&quot;逗号分开)
</td>


+ 1
- 1
src/admin/templets/friendlink_main.htm View File

@@ -53,7 +53,7 @@
<form action="friendlink_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless">
<tr>
<td>关键:</td>
<td>关键:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:250px" value="<?php echo $keyword; ?>"></td>
<td>
<select name="ischeck" id="ischeck">


+ 1
- 1
src/admin/templets/media_main.htm View File

@@ -81,7 +81,7 @@
<form name='forms' method='post' action='media_main.php'>
<tr>
<td width="10">&nbsp;</td>
<td width="100" align="center">关键:</td>
<td width="100" align="center">关键:</td>
<td width="100">
<input name="keyword" type="text" id="keyword" style="width:100" value="<?php echo $keyword?>">
</td>


+ 1
- 1
src/admin/templets/member_main.htm View File

@@ -24,7 +24,7 @@
<form action="member_main.php" name="form1" method="get">
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless" style="width: 790px;">
<tr>
<td>关键:</td>
<td>关键:</td>
<td><input name="keyword" type="text" id="keyword" size="12" style="width:120px" value="{dede:global name='keyword'/}"></td>
<td>&nbsp;排序:</td>
<td>


+ 1
- 1
src/admin/templets/member_pm.htm View File

@@ -35,7 +35,7 @@
<form action="member_pm.php" name="form1" method="get">
<table width="684" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="90">&nbsp;关键:</td>
<td width="90">&nbsp;关键:</td>
<td width="110" align="center">
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="{dede:global name='keyword'/}">
</td>


+ 1
- 1
src/admin/templets/member_pmall.htm View File

@@ -21,7 +21,7 @@
<form action="member_pm.php" name="form1" method="get">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="90">&nbsp;关键:</td>
<td width="90">&nbsp;关键:</td>
<td width="110" align="center"><input name="keyword" type="text" id="keyword" size="12" style="width:100px"></td>
<td width="86">&nbsp;用户:</td>
<td width="74"><input name="username" type="text" id="username" size="12" style="width:100px"></td>


+ 1
- 1
src/admin/templets/member_pmone.htm View File

@@ -21,7 +21,7 @@
<form action="member_pm.php" name="form1" method="get">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="90">&nbsp;关键:</td>
<td width="90">&nbsp;关键:</td>
<td width="110" align="center">
<input name="keyword" type="text" id="keyword" size="12" style="width:100px"></td>
<td width="86">&nbsp;用户:</td>


+ 1
- 1
src/admin/templets/mychannel_modifysearch.htm View File

@@ -60,7 +60,7 @@
?>
<tr>
<td align="left" bgcolor="#FFFFFF">主表可供自定义搜索的字段<br>
<span class="STYLE2" id="help2">标题、关键、摘要为默认选项,不用选择 </span></td>
<span class="STYLE2" id="help2">标题、关键、摘要为默认选项,不用选择 </span></td>
<td bgcolor="#FFFFFF">
<?php echo $mainfields; ?>
</td>


+ 1
- 1
src/admin/templets/mytag_tag_guide.htm View File

@@ -129,7 +129,7 @@
<label><input name="types[]" type="checkbox" id="type[]" value="commend" class="np">
推荐</label>
<label><input name="types[]" type="checkbox" id="type[]" value="spec" class="np">
专题</label> 关键
专题</label> 关键
<input name="keyword" type="text" id="keyword">
(&quot;,&quot;逗号分开) </td>
</tr>


+ 2
- 2
src/admin/templets/search_keywords_main.htm View File

@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>搜索关键管理</title>
<title>搜索关键管理</title>
<link rel="stylesheet" href="../static/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/base.css">
@@ -115,7 +115,7 @@ function ReloadPageNum(startnum) {
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#f6f6f6" class="table maintable table-bordered mt-3">
<tr>
<td width="30%" align="left" style="padding-left:10px"><strong>搜索关键词维护</strong></td>
<td align="right"><button class="btn btn-success btn-sm" name="n1" type="button" id="n1" onClick="location='article_keywords_main.php';">文档关键维护</button></td>
<td align="right"><button class="btn btn-success btn-sm" name="n1" type="button" id="n1" onClick="location='article_keywords_main.php';">文档关键维护</button></td>
</tr>
</table>
<span id="rslist">


+ 12
- 7
src/admin/templets/soft_add.htm View File

@@ -526,10 +526,10 @@ table{border-collapse:separate}
<tr>
<td width="90">&nbsp;发布时间:</td>
<td width="240">
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker' style=\"width:200;\" >";
?>
<?php
$nowtime = GetDateTimeMk(time());
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker' style=\"width:200;\" >";
?>
</td>
<td width="90">消费金币:</td>
<td width="380"><input name="money" type="hidden" id="money" value="0">(此项已经独立分离)</td>
@@ -541,9 +541,14 @@ table{border-collapse:separate}
<td height="26" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;关键字:</td>
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="">
<button type="button" name="Submit" class='btn btn-success btn-sm' onClick="SelectKeywords('form1.keywords');">浏览</button>&nbsp;&nbsp;<label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>&nbsp;自动获取,手动填写用","分开</label></td>
<td width="90">&nbsp;关键词:</td>
<td>
<input type='text' name="keywords" id="keywords" style="width:290px" value="">
<button type="button" name="Submit" class='btn btn-success btn-sm' onClick="SelectKeywords('form1.keywords');">浏览</button>
</td>
<td colspan="260">
<label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>>&nbsp;自动获取,手动填写用","分开</label>
</td>
</tr>
</table>
</td>


+ 1
- 1
src/admin/templets/soft_edit.htm View File

@@ -480,7 +480,7 @@ table{border-collapse:separate}
<td height="26" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="50">&nbsp;关键:</td>
<td width="90" height="50">&nbsp;关键:</td>
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td>
</tr>
</table>


+ 3
- 3
src/admin/templets/spec_add.htm View File

@@ -218,7 +218,7 @@ table{border-collapse:separate}
<td height="26" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90">&nbsp;关键:</td>
<td width="90">&nbsp;关键:</td>
<td width="450">
<input type='text' name="keywords" id="keywords" style="width:80%" value="">
<button type="button" name="Submit" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button>
@@ -304,7 +304,7 @@ table{border-collapse:separate}
1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br>
2、关于单条记录模板里的[field:fieldname /]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br>
3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表<br>
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键和栏目ID </td>
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键和栏目ID </td>
</tr>
<tr>
<td height="26" valign="top">
@@ -347,7 +347,7 @@ table{border-collapse:separate}
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np">
自动获取文档</label>
&nbsp;
<label>关键
<label>关键
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">
(逗号分开)</label>
栏目ID:


+ 3
- 3
src/admin/templets/spec_edit.htm View File

@@ -240,7 +240,7 @@ table{border-collapse:separate}
<td height="26" colspan="4" class="bline">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="90" height="50">&nbsp;关键:</td>
<td width="90" height="50">&nbsp;关键:</td>
<td><input type="text" name="keywords" rows="3" id="keywords" style="width:350px" value="<?php echo $arcRow['keywords']?>"></td>
</tr>
</table>
@@ -383,7 +383,7 @@ table{border-collapse:separate}
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np" <?php if($isauto==1) echo " checked";?>>
自动获取文档 </label>
&nbsp;
<label>关键
<label>关键
<input name="keywords<?php echo $i?>" type="text" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label>
<label>栏目ID:
<input name="typeid<?php echo $i?>" type="text" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label>
@@ -439,7 +439,7 @@ table{border-collapse:separate}
<label><input name="isauto<?php echo $i?>" type="radio" id="isauto<?php echo $i?>" value="1" class="np">
自动获取文档</label>
&nbsp;
<label>关键
<label>关键
<input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16">(空格分开)</label>
<label>栏目ID:
<input name="typeid<?php echo $i?>" type="text" id="_typeid<?php echo $i?>" value="0" size="4"></label>


+ 1
- 1
src/admin/templets/templets_one.htm View File

@@ -27,7 +27,7 @@
<td bgcolor="#F2F2F2" colspan="6" style="padding-left:10px">
<form action='templets_one.php' name='sss'>
<ul>
<li>关键:</li>
<li>关键:</li>
<li><input type='text' name='keyword' value="<?php if(!empty($keyword)) $keyword = ''; ?>"
style='width:160px' /></li>
<li>标识:</li>


+ 1
- 1
src/admin/templets/templets_one_add.htm View File

@@ -48,7 +48,7 @@
</td>
</tr>
<tr>
<td height="26" align="center">页面关键:</td>
<td height="26" align="center">页面关键:</td>
<td><input name="keywords" type="text" id="keywords" size="30">
(用&quot;,&quot;分开{dede:field name='keywords'/})</td>
</tr>


+ 1
- 1
src/admin/templets/templets_one_edit.htm View File

@@ -46,7 +46,7 @@ function checkSubmit()
<input name="title" type="text" id="title" size="30" value="<?php echo $row['title']; ?>"></td>
</tr>
<tr>
<td height="26" align="center">页面关键:</td>
<td height="26" align="center">页面关键:</td>
<td><input name="keywords" type="text" id="keywords" value="<?php echo $row['keywords']; ?>" size="30">
(用&quot;,&quot;分开) </td>
</tr>


+ 3
- 20
src/apps/search.php View File

@@ -11,28 +11,21 @@
*/
require_once(dirname(__FILE__)."/../system/common.inc.php");
require_once(DEDEINC."/archive/searchview.class.php");
$pagesize = (isset($pagesize) && is_numeric($pagesize)) ? $pagesize : 10;
$typeid = (isset($typeid) && is_numeric($typeid)) ? $typeid : 0;
$channeltype = (isset($channeltype) && is_numeric($channeltype)) ? $channeltype : 0;
$kwtype = (isset($kwtype) && is_numeric($kwtype)) ? $kwtype : 0;
$mid = (isset($mid) && is_numeric($mid)) ? $mid : 0;
unset($typeArr);
if (!isset($orderby)) $orderby = '';
else $orderby = preg_replace("#[^a-z]#i", '', $orderby);
if (!isset($searchtype)) $searchtype = 'titlekeyword';
else $searchtype = preg_replace("#[^a-z]#i", '', $searchtype);
if (!isset($keyword)) {
if (!isset($q)) $q = '';
$keyword = $q;
}
$oldkeyword = $keyword = FilterSearch(stripslashes($keyword));
//查找栏目信息
if (empty($typeid)) {
$typenameCacheFile = DEDEDATA.'/cache/typename.inc';
@@ -47,7 +40,7 @@ if (empty($typeid)) {
fwrite($fp, '?'.'>');
fclose($fp);
}
//引入栏目缓存并看关键是否有相关栏目内容
//引入栏目缓存并看关键是否有相关栏目内容
require_once($typenameCacheFile);
if (isset($typeArr) && is_array($typeArr)) {
foreach ($typeArr as $id => $typename) {
@@ -61,27 +54,20 @@ if (empty($typeid)) {
}
}
}
$keyword = addslashes(cn_substr($keyword, 30));
$typeid = intval($typeid);
if ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr."#i", $keyword)) {
ShowMsg("您的搜索关键中存在非法内容,被系统禁止", "-1");
ShowMsg("您的搜索关键中存在非法内容,被系统禁止", "-1");
exit();
}
if (($keyword == '' || strlen($keyword) < 2) && empty($typeid)) {
ShowMsg('关键不能小于2个字节', '-1');
ShowMsg('关键不能小于2个字节', '-1');
exit();
}
//检查搜索间隔时间
$ip = GetIP();
$now = time();
$row = $dsql->GetOne("SELECT * FROM `#@__search_limits` WHERE ip='{$ip}'");
if (is_array($row)) {
if (($now - $row['searchtime']) < $cfg_search_time) {
ShowMsg('管理员设定搜索时间间隔为'.$cfg_search_time.'秒,请稍后再试', '-1');
@@ -91,7 +77,6 @@ if (is_array($row)) {
} else {
$dsql->ExecuteNoneQuery("INSERT INTO `#@__search_limits` (`ip`, `searchtime`) VALUES ('{$ip}', '{$now}');");
}
//开始时间
if (empty($starttime)) $starttime = -1;
else {
@@ -101,9 +86,7 @@ else {
$starttime = time() - ($starttime * $dayst);
}
}
$t1 = ExecTime();
$sp = new SearchView($typeid, $keyword, $orderby, $channeltype, $searchtype, $starttime, $pagesize, $kwtype, $mid);
$keyword = $oldkeyword;
$sp->Display();

+ 2
- 2
src/install/sql-dfdata.txt View File

@@ -3962,7 +3962,7 @@ INSERT INTO `#@__sysconfig` VALUES('1','cfg_basehost','站点网址(http://域
('19','cfg_list_symbol','栏目位置的间隔符号','2','string',''),
('20','cfg_notallowstr','系统禁用词语,停止用户动作用“|”分开,但不要在结尾加“|”','5','bstring','神经病|废物'),
('21','cfg_feedbackcheck','是否需审核评论及留言','5','bool','Y'),
('22','cfg_keyword_replace','是否使用关键替换功能,开启影响文档生成速度','2','bool','Y'),
('22','cfg_keyword_replace','是否使用关键替换功能,开启影响文档生成速度','2','bool','Y'),
('23','cfg_fck_xhtml','是否使用富文本XHTML','1','bool','N'),
('24','cfg_df_style','网站模板默认风格','1','string','templets'),
('25','cfg_multi_site','是否支持多站点,开启此项后附件栏目连接arclist内容启用绝对网址','2','bool','N'),
@@ -4001,7 +4001,7 @@ INSERT INTO `#@__sysconfig` VALUES('1','cfg_basehost','站点网址(http://域
('56','cfg_makesign_cache','是否修改发布单个文档调用缓存','6','bool','N'),
('59','cfg_arc_dellink','删除非站内链接','7','bool','Y'),
('60','cfg_arc_autopic','提取第一张图片作为缩略图','7','bool','Y'),
('61','cfg_arc_autokeyword','自动提取关键','7','bool','N'),
('61','cfg_arc_autokeyword','自动提取关键','7','bool','N'),
('62','cfg_title_maxlen','文档标题最大长度,变量后需要手工修改数据表','7','number','250'),
('64','cfg_check_title','是否检测发布文档时重复标题','7','bool','Y'),
('65','cfg_album_row','图集多行多列样式默认行数','3','number','3'),


+ 4
- 4
src/system/archive/searchview.class.php View File

@@ -151,7 +151,7 @@ class SearchView
{
}
/**
* 获得关键的分词结果,并保存到数据库
* 获得关键的分词结果,并保存到数据库
*
* @access public
* @param string $keyword 关键词
@@ -210,7 +210,7 @@ class SearchView
return $keywords;
}
/**
* 获得关键SQL
* 获得关键SQL
*
* @access private
* @return string
@@ -251,7 +251,7 @@ class SearchView
}
}
/**
* 获得相关的关键
* 获得相关的关键
*
* @access public
* @param string $num 关键词数目
@@ -297,7 +297,7 @@ class SearchView
}
}
/**
* 加粗关键
* 加粗关键
*
* @access private
* @param string $fstr 关键词字符


+ 1
- 1
src/system/archive/taglist.class.php View File

@@ -69,7 +69,7 @@ class TagList
$this->TagInfos = $this->dsql->GetOne("Select * From `#@__tagindex` where tag like '{$this->Tag}' ");
if (!is_array($this->TagInfos)) {
$fullsearch = $GLOBALS['cfg_phpurl']."/search.php?keyword=".$this->Tag."&searchtype=titlekeyword";
$msg = "系统无此标签,可能已经移除<br><br>您还可以尝试通过搜索程序去搜索这个关键:<a href='$fullsearch'>前往搜索&gt;&gt;</a>";
$msg = "系统无此标签,可能已经移除<br><br>您还可以尝试通过搜索程序去搜索这个关键:<a href='$fullsearch'>前往搜索&gt;&gt;</a>";
ShowMsg($msg, "-1");
exit();
}


+ 1
- 1
src/system/helpers/channelunit.helper.php View File

@@ -578,7 +578,7 @@ function GetFreeListUrl($lid, $namerule, $listdir, $defaultpage, $nodefault)
return $okfile;
}
/**
* 获取网站搜索的热门关键
* 获取网站搜索的热门关键
*
* @param object $dsql
* @param string $num 获取数目


+ 1
- 1
src/system/taglib/arclist.lib.php View File

@@ -157,7 +157,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
$limitday = $ntime - ($subday * 24 * 3600);
$orwheres[] = " arc.senddate > $limitday ";
}
//关键条件
//关键条件
if ($keyword != '') {
$keyword = str_replace(',', '|', $keyword);
$orwheres[] = " CONCAT(arc.title,arc.keywords) REGEXP '$keyword' ";


+ 1
- 1
src/system/taglib/channel/specialtopic.lib.php View File

@@ -31,7 +31,7 @@ function ch_specialtopic($noteinfo, $arcTag, $refObj, $fname = '')
$keywords = '';
$stypeid = 0;
if (empty($rownum)) $rownum = 40;
//通过关键和栏目ID自动获取模式
//通过关键和栏目ID自动获取模式
if ($isauto == 1) {
$idlist = '';
$keywords = trim($ctag->GetAtt('keywords'));


+ 1
- 1
src/system/taglib/help/arclist.txt View File

@@ -21,7 +21,7 @@ orderby='sortrank' 文档排序方式
§ orderby=='scores' 按得分排序
§ orderby='id' 按文章ID排序
§ orderby='rand' 随机获得指定条件的文档列表
keyword='' 含有指定关键字的文档列表,多个关键字用","分
keyword='' 含有指定关键词的文档列表,多个关键词用","分
innertext = '' 单条记录样式
aid='' 指定文档ID
idlist ='' 提取特定文档(文档ID)


+ 1
- 1
src/system/taglib/help/arclistsg.txt View File

@@ -9,7 +9,7 @@ row='10' 返回文档列表总数
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
titlelen = '30' 标题长度 等同于titlelength
orderwey='desc'或'asc' 排序方向
keyword= 含有指定关键字的文档列表,多个关键字用","分
keyword= 含有指定关键词的文档列表,多个关键词用","分
innertext = "<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码)
arcid='' 指定文档ID
idlist ='' 提取特定文档(文档ID)


+ 1
- 1
src/system/taglib/help/bookcontentlist.txt View File

@@ -16,4 +16,4 @@ row='12' 调用记录条数
booktype='-1' 图书类型,0 图书、1 漫画,默认全部
orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书
author='' 作者
keyword='' 关键字(用 , 分开多个关键字
keyword='' 关键词(用 , 分开多个关键词

+ 1
- 1
src/system/taglib/help/booklist.txt View File

@@ -9,4 +9,4 @@ row='12' 调用记录条数
booktype='-1' 图书类型,0 图书、1 漫画,默认全部
orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书
author='' 作者
keyword='' 关键字(用 , 分开多个关键字
keyword='' 关键词(用 , 分开多个关键词

+ 1
- 1
src/system/taglib/help/hotwords.txt View File

@@ -1,4 +1,4 @@
获取网站搜索的热门关键
获取网站搜索的热门关键
>>dede>>
{dede:hotwords /}
>>dede>>


+ 1
- 1
src/system/taglib/hotwords.lib.php View File

@@ -1,6 +1,6 @@
<?php
/**
* 获取网站搜索的热门关键
* 获取网站搜索的热门关键
*
* @version $Id: hotwords.lib.php 1 9:29 2010年7月6日Z tianya $
* @package DedeBIZ.Taglib


+ 1
- 1
src/theme/plus/heightsearch.htm View File

@@ -72,7 +72,7 @@
<td height="30"><input name="pagesize" type="text" id="pagesize" value="10" size="4" class="form-control"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="center">关键模式:</td>
<td height="30" align="center">关键模式:</td>
<td height="30">
<label><input name="kwtype" type="radio" value="1" checked>
或</label>


+ 1
- 1
src/theme/templets/list_infos.htm View File

@@ -116,7 +116,7 @@
<input type='hidden' name='tid' value='[field:typeid /]' />
<input type='hidden' name='channelid' value='-8' />
<div class="form-group">
<label for="iptKeyword">关键</label>
<label for="iptKeyword">关键</label>
<input type="text" name="keyword" class="form-control" id="iptKeyword">
</div>
<button type='submit' class="btn btn-warning btn-sm">搜索信息</button>


Loading…
Cancel
Save