REDROOM
PHP 5.6.40
Path:
Logout
Edit File
Size: 2.53 KB
Close
/home/urbanman/roadkaraja.in/admin/dist/js/jsgrid.script.js
Text
Base64
(function ($) { "use strict"; $("#jsGrid").jsGrid({ height: "500px", width: "100%", filtering: true, editing: true, inserting: true, sorting: true, paging: true, autoload: true, pageSize: 50, pageButtonCount: 5, deleteConfirm: "Do you really want to delete the client?", controller: db, fields: [ {name: "Name", type: "text", width: 150}, {name: "Age", type: "number", width: 50}, {name: "Address", type: "text", width: 200}, {name: "Country", type: "select", items: db.countries, valueField: "Id", textField: "Name"}, {name: "Married", type: "checkbox", title: "Is Married", sorting: false}, {type: "control"} ] }); $("#jsGridSorting").jsGrid({ height: "80%", width: "100%", autoload: true, selecting: false, controller: db, fields: [ {name: "Name", type: "text", width: 150}, {name: "Age", type: "number", width: 50}, {name: "Address", type: "text", width: 200}, {name: "Country", type: "select", items: db.countries, valueField: "Id", textField: "Name"}, {name: "Married", type: "checkbox", title: "Is Married"} ] }); $("#sort").click(function () { var field = $("#sortingField").val(); $("#jsGridSorting").jsGrid("sort", field); }); $("#jsGridSortpage").jsGrid({ height: "80%", width: "100%", autoload: true, paging: true, pageLoading: true, pageSize: 50, pageIndex: 2, controller: { loadData: function(filter) { var startIndex = (filter.pageIndex - 1) * filter.pageSize; return { data: db.clients.slice(startIndex, startIndex + filter.pageSize), itemsCount: db.clients.length }; } }, fields: [ { name: "Name", type: "text", width: 150 }, { name: "Age", type: "number", width: 50 }, { name: "Address", type: "text", width: 200 }, { name: "Country", type: "select", items: db.countries, valueField: "Id", textField: "Name" }, { name: "Married", type: "checkbox", title: "Is Married" } ] }); $("#pager").on("change", function() { var page = parseInt($(this).val(), 10); $("#jsGridSortpage").jsGrid("openPage", page); }); })(jQuery);
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
exit.html
0 B
lrw-r--r--
2026-07-14 06:23:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
jsgrid.script.js
2.53 KB
lrw-rw-rw-
2026-07-06 10:38:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).