| @@ -577,7 +577,7 @@ else if ($dopost == 'quickEdit') { | |||
| </td> | |||
| </tr> | |||
| <tr height='26'> | |||
| <td width="86" class='bline'> 关键字:</td> | |||
| <td width="86" class='bline'> 关键词:</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}' "); | |||
| @@ -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)) { | |||
| @@ -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) { | |||
| @@ -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)) { | |||
| @@ -75,7 +75,7 @@ | |||
| >sys_Source>新闻来源 | |||
| >sys_Writer>作者管理 | |||
| >sys_SoftConfig>软件频道参数 | |||
| >sys_Keyword>关键字管理 | |||
| >sys_Keyword>关键词管理 | |||
| >sys_MakeHtml>更新HTML | |||
| >sys_Feedback>评论管理 | |||
| >sys_Upload>管理任意上传 | |||
| @@ -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; | |||
| @@ -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> | |||
| @@ -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> | |||
| @@ -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"> 关键字:</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"> 关键词:</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'; ?>> 自动获取,手动填写用","分开</label> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| </td> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90" height="50"> 关键词:</td> | |||
| <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td> | |||
| </tr> | |||
| </table> | |||
| @@ -315,10 +315,12 @@ table{border-collapse:separate} | |||
| <table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
| <tr> | |||
| <td width="90"> 发布时间:</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"> 关键字:</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"> 关键词:</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'; ?>> 自动获取,手动填写用","分开</label> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| </td> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90" height="50"> 关键词:</td> | |||
| <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td> | |||
| </tr> | |||
| </table> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90"> 关键词:</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> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="110" height="50"> 关键词:</td> | |||
| <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow['keywords']?>"></td> | |||
| </tr> | |||
| </table> | |||
| @@ -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> | |||
| | |||
| <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> | |||
| | |||
| <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> | |||
| @@ -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> | |||
| <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> | |||
| <a href="article_keywords_make.php?dopost=fetch" target="stafrm" class="btn btn-success btn-sm">自动获取关键词</a> | |||
| </td> | |||
| </tr> | |||
| <tr bgcolor="#F9FCEF"> | |||
| @@ -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> | |||
| @@ -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> | |||
| @@ -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> | |||
| @@ -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> | |||
| @@ -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"> | |||
| @@ -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> | |||
| @@ -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> | |||
| @@ -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'> | |||
| @@ -286,7 +286,7 @@ | |||
| </select> | |||
| </td> | |||
| <td width='100'> | |||
| 关键字: | |||
| 关键词: | |||
| </td> | |||
| <td width='160'> | |||
| <input type='text' name='keyword' value='{dede:global.keyword/}' | |||
| @@ -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> | |||
| @@ -132,7 +132,7 @@ | |||
| content=""> 描述</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"> | |||
| (","逗号分开)</td> | |||
| </tr> | |||
| @@ -125,7 +125,7 @@ | |||
| content=""> 描述</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')?>"> | |||
| (","逗号分开) | |||
| </td> | |||
| @@ -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"> | |||
| @@ -81,7 +81,7 @@ | |||
| <form name='forms' method='post' action='media_main.php'> | |||
| <tr> | |||
| <td width="10"> </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> | |||
| @@ -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> 排序:</td> | |||
| <td> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90"> 关键词:</td> | |||
| <td width="110" align="center"> | |||
| <input name="keyword" type="text" id="keyword" size="12" style="width:100" value="{dede:global name='keyword'/}"> | |||
| </td> | |||
| @@ -21,7 +21,7 @@ | |||
| <form action="member_pm.php" name="form1" method="get"> | |||
| <table border="0" cellpadding="0" cellspacing="0"> | |||
| <tr> | |||
| <td width="90"> 关键字:</td> | |||
| <td width="90"> 关键词:</td> | |||
| <td width="110" align="center"><input name="keyword" type="text" id="keyword" size="12" style="width:100px"></td> | |||
| <td width="86"> 用户:</td> | |||
| <td width="74"><input name="username" type="text" id="username" size="12" style="width:100px"></td> | |||
| @@ -21,7 +21,7 @@ | |||
| <form action="member_pm.php" name="form1" method="get"> | |||
| <table border="0" cellpadding="0" cellspacing="0"> | |||
| <tr> | |||
| <td width="90"> 关键字:</td> | |||
| <td width="90"> 关键词:</td> | |||
| <td width="110" align="center"> | |||
| <input name="keyword" type="text" id="keyword" size="12" style="width:100px"></td> | |||
| <td width="86"> 用户:</td> | |||
| @@ -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> | |||
| @@ -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"> | |||
| (","逗号分开) </td> | |||
| </tr> | |||
| @@ -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"> | |||
| @@ -526,10 +526,10 @@ table{border-collapse:separate} | |||
| <tr> | |||
| <td width="90"> 发布时间:</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"> 关键字:</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> <label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> 自动获取,手动填写用","分开</label></td> | |||
| <td width="90"> 关键词:</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'; ?>> 自动获取,手动填写用","分开</label> | |||
| </td> | |||
| </tr> | |||
| </table> | |||
| </td> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90" height="50"> 关键词:</td> | |||
| <td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>"></td> | |||
| </tr> | |||
| </table> | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90"> 关键词:</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> | |||
| | |||
| <label>关键字: | |||
| <label>关键词: | |||
| <input name="keywords<?php echo $i?>" type="text" id="keywords<?php echo $i?>" value="" size="16"> | |||
| (逗号分开)</label> | |||
| 栏目ID: | |||
| @@ -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"> 关键字:</td> | |||
| <td width="90" height="50"> 关键词:</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> | |||
| | |||
| <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> | |||
| | |||
| <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> | |||
| @@ -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> | |||
| @@ -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"> | |||
| (用","分开{dede:field name='keywords'/})</td> | |||
| </tr> | |||
| @@ -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"> | |||
| (用","分开) </td> | |||
| </tr> | |||
| @@ -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(); | |||
| @@ -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'), | |||
| @@ -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 关键词字符 | |||
| @@ -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'>前往搜索>></a>"; | |||
| $msg = "系统无此标签,可能已经移除<br><br>您还可以尝试通过搜索程序去搜索这个关键词:<a href='$fullsearch'>前往搜索>></a>"; | |||
| ShowMsg($msg, "-1"); | |||
| exit(); | |||
| } | |||
| @@ -578,7 +578,7 @@ function GetFreeListUrl($lid, $namerule, $listdir, $defaultpage, $nodefault) | |||
| return $okfile; | |||
| } | |||
| /** | |||
| * 获取网站搜索的热门关键字 | |||
| * 获取网站搜索的热门关键词 | |||
| * | |||
| * @param object $dsql | |||
| * @param string $num 获取数目 | |||
| @@ -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' "; | |||
| @@ -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')); | |||
| @@ -21,7 +21,7 @@ orderby='sortrank' 文档排序方式 | |||
| § orderby=='scores' 按得分排序 | |||
| § orderby='id' 按文章ID排序 | |||
| § orderby='rand' 随机获得指定条件的文档列表 | |||
| keyword='' 含有指定关键字的文档列表,多个关键字用","分 | |||
| keyword='' 含有指定关键词的文档列表,多个关键词用","分 | |||
| innertext = '' 单条记录样式 | |||
| aid='' 指定文档ID | |||
| idlist ='' 提取特定文档(文档ID) | |||
| @@ -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) | |||
| @@ -16,4 +16,4 @@ row='12' 调用记录条数 | |||
| booktype='-1' 图书类型,0 图书、1 漫画,默认全部 | |||
| orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书 | |||
| author='' 作者 | |||
| keyword='' 关键字(用 , 分开多个关键字) | |||
| keyword='' 关键词(用 , 分开多个关键词) | |||
| @@ -9,4 +9,4 @@ row='12' 调用记录条数 | |||
| booktype='-1' 图书类型,0 图书、1 漫画,默认全部 | |||
| orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书 | |||
| author='' 作者 | |||
| keyword='' 关键字(用 , 分开多个关键字) | |||
| keyword='' 关键词(用 , 分开多个关键词) | |||
| @@ -1,4 +1,4 @@ | |||
| 获取网站搜索的热门关键字 | |||
| 获取网站搜索的热门关键词 | |||
| >>dede>> | |||
| {dede:hotwords /} | |||
| >>dede>> | |||
| @@ -1,6 +1,6 @@ | |||
| <?php | |||
| /** | |||
| * 获取网站搜索的热门关键字 | |||
| * 获取网站搜索的热门关键词 | |||
| * | |||
| * @version $Id: hotwords.lib.php 1 9:29 2010年7月6日Z tianya $ | |||
| * @package DedeBIZ.Taglib | |||
| @@ -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> | |||
| @@ -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> | |||