@@ -35,5 +35,5 @@ if ($action == "search") { | |||||
echo json_encode($result); | echo json_encode($result); | ||||
exit; | exit; | ||||
} | } | ||||
include DedeInclude('templets/makehtml_taglist.htm'); | |||||
include DedeInclude('templets/makehtml_tag_list.htm'); | |||||
?> | ?> |
@@ -53,7 +53,7 @@ $tag = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE id='$ctagid' LIMIT 0,1; | |||||
$tagsDir = str_replace("{cmspath}", "", $cfg_tags_dir); | $tagsDir = str_replace("{cmspath}", "", $cfg_tags_dir); | ||||
MkdirAll($cfg_basedir.$tagsDir, $cfg_dir_purview); | MkdirAll($cfg_basedir.$tagsDir, $cfg_dir_purview); | ||||
if (is_array($tag) && count($tag) > 0) { | if (is_array($tag) && count($tag) > 0) { | ||||
$dlist = new TagList($tag['id'], 'taglist.htm'); | |||||
$dlist = new TagList($tag['id'], 'tag_list.htm'); | |||||
$dlist->CountRecord(); | $dlist->CountRecord(); | ||||
$dlist->SetTagsDir($tagsdir); | $dlist->SetTagsDir($tagsdir); | ||||
$ntotalpage = $dlist->TotalPage; | $ntotalpage = $dlist->TotalPage; | ||||
@@ -16,7 +16,7 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<div class="alert alert-info mb-0">生成静态文件后,浏览动态文件则直接跳转静态文件,如果需要动态浏览,删除对应文件即可。标签首页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag.htm 标签列表页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/taglist.htm</div> | |||||
<div class="alert alert-info mb-0">生成静态文件后,浏览动态文件则直接跳转静态文件,如果需要动态浏览,删除对应文件即可。标签首页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag.htm 标签列表页模板:<?php echo $cfg_templets_dir;?>/<?php echo $cfg_df_style?>/tag_list.htm</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<?php if ($tagid > 0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?> | <?php if ($tagid > 0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?> |
@@ -22,7 +22,7 @@ if (isset($_SERVER['QUERY_STRING'])) { | |||||
$tag = FilterSearch(urldecode($tag)); | $tag = FilterSearch(urldecode($tag)); | ||||
if ($tag != addslashes($tag)) $tag = ''; | if ($tag != addslashes($tag)) $tag = ''; | ||||
if ($tag == '') $dlist = new TagList($tag, 'tag.htm'); | if ($tag == '') $dlist = new TagList($tag, 'tag.htm'); | ||||
else $dlist = new TagList($tag, 'taglist.htm'); | |||||
else $dlist = new TagList($tag, 'tag_list.htm'); | |||||
$dlist->Display(); | $dlist->Display(); | ||||
exit(); | exit(); | ||||
?> | ?> |
@@ -279,7 +279,7 @@ class SearchView | |||||
} else { | } else { | ||||
$style = ''; | $style = ''; | ||||
} | } | ||||
$likeword .= " <a href='search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'".$style.">".$row['keyword']."</a> "; | |||||
$likeword .= "<a href='search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'".$style.">".$row['keyword']."</a> "; | |||||
} | } | ||||
return $likeword; | return $likeword; | ||||
} | } | ||||
@@ -600,7 +600,7 @@ function GetHotKeywords(&$dsql, $num = 8, $nday = 365, $klen = 16, $orderby = 'c | |||||
$dsql->Execute('hw'); | $dsql->Execute('hw'); | ||||
$hotword = ''; | $hotword = ''; | ||||
while ($row = $dsql->GetArray('hw')) { | while ($row = $dsql->GetArray('hw')) { | ||||
$hotword .= " <a href='".$cfg_phpurl."/search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'>".$row['keyword']."</a> "; | |||||
$hotword .= "<a href='".$cfg_phpurl."/search.php?keyword=".urlencode($row['keyword'])."&searchtype=titlekeyword'>".$row['keyword']."</a> "; | |||||
} | } | ||||
return $hotword; | return $hotword; | ||||
} | } | ||||
@@ -297,7 +297,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||||
$dsql->SetQuery($query); | $dsql->SetQuery($query); | ||||
$dsql->Execute('al'); | $dsql->Execute('al'); | ||||
$artlist = ''; | $artlist = ''; | ||||
if ($pagesize > 0) $artlist .= "<div id='{$tagid}'>\r\n"; | |||||
if ($pagesize > 0) $artlist .= "<div id='{$tagid}'>\r\n"; | |||||
if ($col > 1) $artlist = "<table width='$tablewidth'>\r\n"; | if ($col > 1) $artlist = "<table width='$tablewidth'>\r\n"; | ||||
$dtp2 = new DedeTagParse(); | $dtp2 = new DedeTagParse(); | ||||
$dtp2->SetNameSpace('field', '[', ']'); | $dtp2->SetNameSpace('field', '[', ']'); | ||||
@@ -24,7 +24,7 @@ list_soft.htm,软件列表模板 | |||||
list_spec.htm,专题列表模板 | list_spec.htm,专题列表模板 | ||||
search.htm,搜索模板 | search.htm,搜索模板 | ||||
tag.htm,标签首页模板 | tag.htm,标签首页模板 | ||||
taglist.htm,标签文档列表模板 | |||||
tag_list.htm,标签文档列表模板 | |||||
widget_article_feedback.htm,小部件评论模板 | widget_article_feedback.htm,小部件评论模板 | ||||
widget_article_likes.htm,小部件点赞模板 | widget_article_likes.htm,小部件点赞模板 | ||||
widget_hot.htm,小部件头条文档模板 | widget_hot.htm,小部件头条文档模板 | ||||