BBSWeb/Scripts/manage/Bbs/SubBbsList.js
(完整代码) 2KBvar _BbsId = siteTracker.q.BbsId;
var _ForumId = siteTracker.q.ForumId;
siteTracker.page = 1;
siteTracker.pagesize = 200000;
siteTracker.setTitle("项目列表");
//重写编辑框
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: 50, align: "center", editable: true, edittype: "checkbox", editoptions: { value: "true:false"} },
{ name: 'forumTitle', index: 'forumTitle', width: 200, align: "center", editable: true },
{ name: 'forumInfo', index: 'forumInfo', width: 420, align: "center", editable: true, edittype: "textarea", editoptions: { rows: "3", cols: "30"} },
{ name: 'createUser', index: 'createUser', width: 90, align: "center" },
{ name: 'createTime', index: 'createTime', formatter: transDate, width: 120, align: "center" },
{ name: 'postCount', index: 'postCount', width: 80, align: "center" }
],
rowNum: siteTracker.pagesize,
hoverrows: true,
rownumbers: true,
rownumWidth: 40,
pager: "pager2",
rowList: [15, 20, 25, 30, 35, 40, 45, 50],
sortname: 'createTime',
viewrecords: true,
sortorder: "desc",
caption: siteTracker.title,
height: "100%", emptyrecords: "没有记录", forceFit: true, gridview: true, pginput: true,
viewsortcols: [false, 'vertical', true],
editurl: "/Services/CommonModifyData.asmx/Update?action=SubBbs&ForumId=" + _ForumId+"&BbsId=" + _BbsId ,
ondblClickRow: function (c, r, o, e) {
location.href = "/manage/Bbs/SubBbsList.aspx?BbsId=" + _BbsId + "&ForumId=" + _ForumId + "&SubBbsId=" + c;
}
});
$("#mainList").jqGrid("refresh", { url: "/Services/CommonData.aspx?action=SubBbsList&isUser=1&BbsId=" + _BbsId });
$("#mainList").jqGrid('navGrid', '#pager2', { edit: true, add: true, del: true, search: false },editOptions,{},{},{},{multipleSearch:true});
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。