In the page data list <d:table>
</d:table> Add code
<D:colstyle= "Width:45"class= "Display_leftalign"title= "Select <input type=\"checkbox\ "id=\ "Checkall\"/>"><inputtype= "checkbox"name= "Id"ID= "Id"class= "Checkitem"value= "${row.id}"/> </D:col>
Realization of JS full-selection effect
$ (document). Ready (function() { var chk_options = {all :' #checkAll ' , item:'. Checkitem ' }; $ (this). Chk_init (chk_options); });
functioninputs (ID) {/*var strchk= ""; var chkobj = $ ("input[@type =checkbox]:checked"); $.each (Chkobj, function (I,item) {if (item). val ()! = ' on ' && $ (item). val () = ") { Strchk + = ($ (item). val () + ","); } }); if ($ ("input[@type =checkbox]:checked"). Size () ==0) {Top.easyalert (' hint info ', ' Please tick the record to send OA! ', ' info '); }else{top.easyconfirm (' hint ', ' OK send? ', function (r) {if (R) {$ (' #queryForm '). attr ("Action", "Report-apple!commitallreport.acti On "); $ (' #queryForm '). Submit (); } }); } */ if($ ("input[@type =checkbox]:checked"). Size () ==0) {Top.easyalert (' Hint message ', ' Please tick the record to send OA! ', ' info '); return; } if($ ("input[@type =checkbox]:checked"). Size () >1) {Top.easyalert (' Cue message ', ' only tick a record! ', ' info '); return; } $(' #queryForm '). attr ("Action", "Report-apple!commitallreport.action")); $(' #queryForm '). Submit ();}
The background accepts the ID, or id[] array to
JS Easyui The implementation of the full selection of the front desk