Edit D:\xinhaisoft\crisis_new\Scripts\jquery.jtable.js
??/* * ???????????? * ?????(QQ33080907) * ????????2016.11.17 * ?????????????????????????????????? */ /* ????SS ????????TML??able?????lass????????????????? table.tb_list { border-bottom: 2px solid #69F; width: 100%; border-collapse: collapse; } table.tb_list th, table.tb_list td { border: 1px solid #FFF; padding: 3px; } table.tb_list th { color: #FFFFFF; background-color: #69F; border-bottom: 1px solid #036; } table.tb_list th[colspan] { border-bottom: 1px solid #FFF; } table.tb_list th a { color: #fff; text-decoration: underline; } table.tb_list th a:hover { text-decoration: none; } table.tb_list tr:not(:last-child):nth-child(2n+1) { background-color: #EDF2FC; } table.tb_list tr:not(:last-child):not(.selected):hover { background-color: #C5E0FA; } table.tb_list tr.selected td { background-color: #B4D0E9; } table.tb_list tr:last-child {border-top: 2px solid #69F; } */ ; (function ($) { "use strict"; $.fn.jTable = function (options) { //??????????? var defaults = { selected: "selected", //??????????? checkboxname: "idlist", //?????????????????????????????????? rownum: false //???????????????? }; //?????????????????? var opts = $.extend(defaults, options); //???????????? var table = this; //??????????????????????????????????? var tr = $("tr", table).not(":first"); //?????????????? if (opts.rownum) { tr.each(function (index) { $(this).children('td').first().text(index + 1).css('text-align', 'center'); }); } //??????????????????????????????????????????????????????????????????????? tr.has("input:checkbox[name='" + opts.checkboxname + "']").on('click', function () { var tf = $(this).hasClass(opts.selected); $(this)[tf ? "removeClass" : "addClass"](opts.selected).find("input:checkbox[name='" + opts.checkboxname + "']").prop("checked", !tf); getChecked(); }); //?????????????????????????????? tr.has("input:checkbox:checked[name='" + opts.checkboxname + "']").addClass(opts.selected); getChecked(); //????? $("#checkall,input.checkall").on('click', function () { var checked = $(this).prop("checked"); if (checked) { tr.has("input:checkbox[name='" + opts.checkboxname + "']").addClass(opts.selected).find("input:checkbox[name='" + opts.checkboxname + "']").prop("checked", true); } else { tr.has("input:checkbox[name='" + opts.checkboxname + "']").removeClass(opts.selected).find("input:checkbox[name='" + opts.checkboxname + "']").prop("checked", false); } getChecked(); }); //?????????????????????????? tr.find("a").click(function (e) { e.stopPropagation(); }); //???this????????? return table; //???????????????table????? function getChecked() { var str = ""; $("input:checkbox:checked[name='" + opts.checkboxname + "']", table).each(function (i) { var v = $(this).val(); if (i === 0) { str = v; } //?????? else if ((',' + str + ',').indexOf(',' + v + ',') < 0) { str += "," + v; } }); table.data("checked", str); } }; })(jQuery);
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de