BBSWeb/Scripts/Bbs/BbsList.js
(完整代码) 2KBsiteTracker.page = 1;
siteTracker.pagesize = 200000;
siteTracker.setTitle("版块列表");
var _ForumId = siteTracker.q.ForumId;
$("#mainList").jqGrid({
url: "",
datatype: "local",
colNames: ['编号', '状态', '版块名称', '版块描述', '创建者', '创建时间','最后回复'],
colModel: [
{ name: 'id', index: 'id', hidden: true },
{ name: 'isInUse', index: 'isInUse', formatter: transInUse, width: 40, align: "center", editable: true, edittype: "checkbox", editoptions: { value: "true:false"},hidden:true},
{ name: 'forumTitle', index: 'forumTitle',width:200, align: "center", editable: true },
{ name: 'forumInfo', index: 'forumInfo', width: 442, align: "center", editable: true, edittype: "textarea", editoptions: { rows: "3", cols: "30"} },
{ name: 'createUser', index: 'createUser', width: 120, align: "center" },
{ name: 'createTime', index: 'createTime', formatter: transTime, width: 100, align: "center" },
{ name: 'lastreplytime', index: 'lastreplytime', formatter: transTime, width: 100, align: "center" }
],
rowNum: siteTracker.pagesize,
hoverrows: true,
rownumbers: true,
rownumWidth: 40,
pager: "pager2",
rowList: [15, 20, 25, 30, 35, 40, 45, 50],
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption: siteTracker.title,
height: "100%", emptyrecords: "没有记录", forceFit: true, gridview: true, pginput: true,
prmNames: { sort: "sidx", order: "sord", search: "_search", nd: "nd", npage: null },
viewsortcols: [false, 'vertical', true],
editurl: "/Services/CommonModifyData.asmx/Update?action=Bbs&ForumId=" + _ForumId,
onSelectRow: function (c, r, o, e) {
location.href = "/Bbs/SubBbsList.aspx?BbsId=" + c.toString() + "&ForumId=" + _ForumId;
}
});
$("#mainList").jqGrid("refresh", { url: "/Services/CommonData.aspx?action=BbsList&ForumId=" + _ForumId });
$("#mainList").jqGrid('navGrid', '#pager2', { edit: false, add: false, del: false, search: true });
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。