function showTestSubjectGrid() {
$("#testSubjectGrid").jqGrid({
height: 215,
width: 480,
caption: "測驗科目",
scrollrows: false, // 是否顯示行捲軸
multiselect: true , // 是否顯示複選框
hidegrid: false, //取消Grid的收縮
postData: { colNames: ['', '測驗科目', '開始時間', '結束時間', '場次', ],
colModel: [
{
index: 'data',
hidden : true
}, {
name: 'display_content',
width: 100,
editable: true,
> }, {
name: 'exam_startTime',
width: 110,
editable: true,
name: 'exam_EndTime',
editable: true,
align: 'center'
align: 'center'
align: 'center'
: 'exam_turn',
index: 'exam_turn',
🎜> align: 'center'
}],
> root: "rows",
repeatitems: false, gridComplete: function () {
var testIds = $("#testSubjectGrid").j •IDs (var i = 0; i var cid = testIds[i];
] "' id='exam_begintime_" testIds[i] "'/ >" ;
var exam_endtime = "";
{ exam_startTime: exam_begintime });
jQuery("#testSubjectGrid").jqGrid(setRowData', cid, {exam_End:Grid ; jQuery("#testSubjectGrid") .jqGrid('setRowData', cid, { exam_turn: exam_turn });
$("#exam_begintime_" 'button',
🎜> $("#exam_endtime_" testIds[i]).datepicker({
buttonText: '選擇'
}
}
});
};
;