BBSWeb/Scripts/Bbs/ForumList.js

(完整代码) 2KB

siteTracker.page = 1;
siteTracker.pagesize = 20;
siteTracker.setTitle("版块设置");
function initForumsData() {
    $("#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: 450, align: "center", editable: true, edittype: "textarea", editoptions: { rows: "3", cols: "30"} },
   		{ name: 'createTime', index: 'createTime', formatter: transTime, width: 120, align: "center" },
        { name: 'lastreplytime', index: 'lastreplytime', formatter: transTime, width: 120, 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: "",
        caption: siteTracker.title,
        height: "100%", emptyrecords: "没有记录", forceFit: true, gridview: true, pginput: true,
        prmNames: { page: "page", rows: "rows", sort: "sidx", order: "sord", search: "_search", nd: "nd", npage: null },
        viewsortcols: [false, 'vertical', true],
        //editurl: "/Services/CommonModifyData.asmx/Update?action=Forum",
        onSelectRow: function (c, r, o, e) {
            location.href="/Bbs/BbsList.aspx?ForumId=" + c.toString();
        }
    });
    $("#mainList").jqGrid("refresh", { url: "/Services/CommonData.aspx?action=ForumList" });
    $("#mainList").jqGrid('navGrid', '#pager2', { edit: false, add: false, del: false, search: true });
    $("#mainList").setGridWidth(1002);
}
initForumsData();

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

AI 解读 AI

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

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