BBSWeb/Scripts/manage/Bbs/BbsList.js

(开头部分) 5KB

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

siteTracker.page = 1;
siteTracker.pagesize = 200000;
siteTracker.setTitle("版块列表");
var _ForumId = siteTracker.q.ForumId;

//重写编辑框
var editOptions = {
    top: '250', left: "500", width: '400', closeAfterEdit: true, afterSubmit: function (response, postdata) {
        var json = response.responseText;
        if ($(json).text() == "Success")
            alert("修改成功"); //显示返回值
    }
}
$("#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"} },
   		{ name: 'forumTitle', index: 'forumTitle',width:230, align: "center", editable: true },
        { name: 'forumInfo', index: 'forumInfo', width: 472, align: "center", editable: true, edittype: "textarea", editoptions: { rows: "3", cols: "30"} },
   		{ name: 'createUser', index: 'createUser', width: 120, align: "center" },
   		{ name: 'createTime', index: 'createTime', formatter: transDate, 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,
    ondblClickRow: function (c, r, o, e) {
        location.href = "/manage/Bbs/SubBbsList.aspx?BbsId=" + c.toString() + "&ForumId=" + _ForumId;
    }
});
$("#mainList").jqGrid("refresh", { url: "/Services/CommonData.aspx?action=BbsList&ForumId=" + _ForumId });
$("#mainList").jqGrid('navGrid', '#pager2', { edit: true, add: true, del: true, search: false }, editOptions, {}, {}, {}, { multipleSearch: true });

//$("#mainList").setGridWidth(1002);

//function showBbsData(id) {
//    CreateWin('winBbsModify', '修改版块', 'winBbsAdd', 430, 360, function open() {
//        $("#txtBbsAddTitle").keyup(function () {
//            $.get("/Services/Bbs/S_Bbs.asmx/QueryExists", { BbsTitle: $("#txtBbsAddTitle").val() }, function (t) {
//                var BbsAddIsExists = $(t).find("int").text();
//                if (BbsAddIsExists == "-1") {
//                    location.href = "/Login.aspx";

//                }
//                else if (BbsAddIsExists == "0") {
//                    $("#txtFroumAddExists").text("允许修改。").css("color", "green");
//                }
后面还有 54 行代码,购买后查看完整代码

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

AI 解读 AI

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

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