JumboTCMS_src/JumboTCMS.WebFile/search/default.aspx.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/*
 * 程序名称: JumboTCMS(将博内容管理系统通用版)
 * 
 * 程序版本: 7.x
 * 
 * 程序作者: 子木将博 (QQ:791104444@qq.com,仅限商业合作)
 * 
 * 版权申明: http://www.jumbotcms.net/about/copyright.html
 * 
 * 技术答疑: http://forum.jumbotcms.net/
 * 
 */

using System;
using System.Data;
using System.Web;
using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace JumboTCMS.WebFile.Search
{
    public partial class _index : JumboTCMS.UI.FrontHtml
    {
        public string Keywords, Keywords_Fen, ChannelType, ChannelId, ClassId, Year, Mode, SearchType = "all", PageBarHTML = "";
        public int CurrentPage = 1, PageSize = 10, TotalCount = 0;
        public double EventTime = 0;
        public List<JumboTCMS.Utils.LuceneHelp.SearchItem> SearchResult = null;
        public Dictionary<string, int> channelAggregate = new Dictionary<string, int>();
        public Dictionary<string, int> classAggregate = new Dictionary<string, int>();
        public Dictionary<string, int> yearAggregate = new Dictionary<string, int>();
        public string LeftMenuTitle1 = "全部", LeftMenuTitle2 = "全部", LeftMenuBody1, LeftMenuBody2 = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            Server.ScriptTimeout = 8;//脚本过期时间
            CurrentPage = Int_ThisPage();
            string _switch = q("switch");
            Keywords = JumboTCMS.Utils.Strings.FilterSymbol(q("k"));
            Mode = q("mode");
            Year = Str2Str(q("year"));
            ChannelId = Str2Str(q("channelid"));
            ClassId = "0";
            SearchType = q("type");
            if (!ModuleIsOK(SearchType))
                SearchType = "all";
            string IndexType = (SearchType == "all") ? JumboTCMS.Utils.XmlCOM.ReadConfig("~/_data/config/site", "ModuleList") : SearchType;

            int PSize = Str2Int(q("pagesize"), 10);
            if (Keywords.Length > 2)
                Keywords = System.Text.RegularExpressions.Regex.Replace(Keywords, "\\s{2,}", " ");
            Keywords_Fen = Keywords.Length < 2 ? Keywords : JumboTCMS.Utils.WordSpliter.GetKeyword(Keywords);//分词
            if (_switch != "tag")
            {
                if (Mode == "1") Keywords = Keywords_Fen;//自动分词
            }
            else//表示统计标签检索
            {
                if (ModuleIsOK(SearchType))
                {
                    new JumboTCMS.DAL.Normal_TagDAL().AddClickTimes(ChannelId, Keywords);
                }
后面还有 85 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。