JumboTCMS_src/JumboTCMS.WebFile/ajax/specialcontent.aspx.cs
(完整代码) 1KB/*
* 程序名称: 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 JumboTCMS.Utils;
using JumboTCMS.Common;
namespace JumboTCMS.WebFile.Ajax
{
public partial class _specialcontent : JumboTCMS.UI.FrontAjax
{
private string _operType = string.Empty;
private string _response = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
Server.ScriptTimeout = 8;//脚本过期时间
this._operType = q("oper");
switch (this._operType)
{
case "ajaxGetList":
ajaxGetList();
break;
default:
DefaultResponse();
break;
}
Response.Write(this._response);
}
private void DefaultResponse()
{
this._response = JsonResult(0, "未知操作");
}
private void ajaxGetList()
{
string sId = Str2Str(q("sid"));
int page = Int_ThisPage();
int PSize = Str2Int(q("pagesize"), 20);
string joinStr = "A.[ChannelId]=B.Id";
string whereStr1 = "A.[sId]=" + sId;//外围条件(带A.)
string whereStr2 = "[sId]=" + sId;//分页条件(不带A.)
string jsonStr = string.Empty;
new JumboTCMS.DAL.Normal_SpecialContentDAL().GetListJSON(page, PSize, joinStr, whereStr1, whereStr2, ref jsonStr);
this._response = jsonStr;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。