Theme Inspinia
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>INSPINIA | jqGrid</title>
  7. <link href="css/bootstrap.min.css" rel="stylesheet">
  8. <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
  9. <link href="css/animate.css" rel="stylesheet">
  10. <link href="css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css" rel="stylesheet">
  11. <link href="css/plugins/jqGrid/ui.jqgrid.css" rel="stylesheet">
  12. <link href="css/style.css" rel="stylesheet">
  13. <style>
  14. /* Additional style to fix warning dialog position */
  15. #alertmod_table_list_2
  16. top: 900px !important;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div id="wrapper">
  22. <nav class="navbar-default navbar-static-side" role="navigation">
  23. <div class="sidebar-collapse">
  24. <ul class="nav metismenu" id="side-menu">
  25. <li class="nav-header">
  26. <div class="dropdown profile-element"> <span>
  27. <img alt="image" class="img-circle" src="img/profile_small.jpg" />
  28. </span>
  29. <a data-toggle="dropdown" class="dropdown-toggle" href="#">
  30. <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">David Williams</strong>
  31. </span> <span class="text-muted text-xs block">Art Director <b class="caret"></b></span> </span> </a>
  32. <ul class="dropdown-menu animated fadeInRight m-t-xs">
  33. <li><a href="profile.html">Profile</a></li>
  34. <li><a href="contacts.html">Contacts</a></li>
  35. <li><a href="mailbox.html">Mailbox</a></li>
  36. <li class="divider"></li>
  37. <li><a href="login.html">Logout</a></li>
  38. </ul>
  39. </div>
  40. <div class="logo-element">
  41. IN+
  42. </div>
  43. </li>
  44. <li>
  45. <a href="index.html"><i class="fa fa-th-large"></i> <span class="nav-label">Dashboards</span> <span class="fa arrow"></span></a>
  46. <ul class="nav nav-second-level collapse">
  47. <li><a href="index.html">Dashboard v.1</a></li>
  48. <li><a href="dashboard_2.html">Dashboard v.2</a></li>
  49. <li><a href="dashboard_3.html">Dashboard v.3</a></li>
  50. <li><a href="dashboard_4_1.html">Dashboard v.4</a></li>
  51. <li><a href="dashboard_5.html">Dashboard v.5 <span class="label label-primary pull-right">NEW</span></a></li>
  52. </ul>
  53. </li>
  54. <li>
  55. <a href="layouts.html"><i class="fa fa-diamond"></i> <span class="nav-label">Layouts</span></a>
  56. </li>
  57. <li>
  58. <a href="#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">Graphs</span><span class="fa arrow"></span></a>
  59. <ul class="nav nav-second-level collapse">
  60. <li><a href="graph_flot.html">Flot Charts</a></li>
  61. <li><a href="graph_morris.html">Morris.js Charts</a></li>
  62. <li><a href="graph_rickshaw.html">Rickshaw Charts</a></li>
  63. <li><a href="graph_chartjs.html">Chart.js</a></li>
  64. <li><a href="graph_chartist.html">Chartist</a></li>
  65. <li><a href="c3.html">c3 charts</a></li>
  66. <li><a href="graph_peity.html">Peity Charts</a></li>
  67. <li><a href="graph_sparkline.html">Sparkline Charts</a></li>
  68. </ul>
  69. </li>
  70. <li>
  71. <a href="mailbox.html"><i class="fa fa-envelope"></i> <span class="nav-label">Mailbox </span><span class="label label-warning pull-right">16/24</span></a>
  72. <ul class="nav nav-second-level collapse">
  73. <li><a href="mailbox.html">Inbox</a></li>
  74. <li><a href="mail_detail.html">Email view</a></li>
  75. <li><a href="mail_compose.html">Compose email</a></li>
  76. <li><a href="email_template.html">Email templates</a></li>
  77. </ul>
  78. </li>
  79. <li>
  80. <a href="metrics.html"><i class="fa fa-pie-chart"></i> <span class="nav-label">Metrics</span> </a>
  81. </li>
  82. <li>
  83. <a href="widgets.html"><i class="fa fa-flask"></i> <span class="nav-label">Widgets</span></a>
  84. </li>
  85. <li>
  86. <a href="#"><i class="fa fa-edit"></i> <span class="nav-label">Forms</span><span class="fa arrow"></span></a>
  87. <ul class="nav nav-second-level collapse">
  88. <li><a href="form_basic.html">Basic form</a></li>
  89. <li><a href="form_advanced.html">Advanced Plugins</a></li>
  90. <li><a href="form_wizard.html">Wizard</a></li>
  91. <li><a href="form_file_upload.html">File Upload</a></li>
  92. <li><a href="form_editors.html">Text Editor</a></li>
  93. <li><a href="form_markdown.html">Markdown</a></li>
  94. </ul>
  95. </li>
  96. <li>
  97. <a href="#"><i class="fa fa-desktop"></i> <span class="nav-label">App Views</span> <span class="pull-right label label-primary">SPECIAL</span></a>
  98. <ul class="nav nav-second-level collapse">
  99. <li><a href="contacts.html">Contacts</a></li>
  100. <li><a href="profile.html">Profile</a></li>
  101. <li><a href="profile_2.html">Profile v.2</a></li>
  102. <li><a href="contacts_2.html">Contacts v.2</a></li>
  103. <li><a href="projects.html">Projects</a></li>
  104. <li><a href="project_detail.html">Project detail</a></li>
  105. <li><a href="teams_board.html">Teams board</a></li>
  106. <li><a href="social_feed.html">Social feed</a></li>
  107. <li><a href="clients.html">Clients</a></li>
  108. <li><a href="full_height.html">Outlook view</a></li>
  109. <li><a href="vote_list.html">Vote list</a></li>
  110. <li><a href="file_manager.html">File manager</a></li>
  111. <li><a href="calendar.html">Calendar</a></li>
  112. <li><a href="issue_tracker.html">Issue tracker</a></li>
  113. <li><a href="blog.html">Blog</a></li>
  114. <li><a href="article.html">Article</a></li>
  115. <li><a href="faq.html">FAQ</a></li>
  116. <li><a href="timeline.html">Timeline</a></li>
  117. <li><a href="pin_board.html">Pin board</a></li>
  118. </ul>
  119. </li>
  120. <li>
  121. <a href="#"><i class="fa fa-files-o"></i> <span class="nav-label">Other Pages</span><span class="fa arrow"></span></a>
  122. <ul class="nav nav-second-level collapse">
  123. <li><a href="search_results.html">Search results</a></li>
  124. <li><a href="lockscreen.html">Lockscreen</a></li>
  125. <li><a href="invoice.html">Invoice</a></li>
  126. <li><a href="login.html">Login</a></li>
  127. <li><a href="login_two_columns.html">Login v.2</a></li>
  128. <li><a href="forgot_password.html">Forget password</a></li>
  129. <li><a href="register.html">Register</a></li>
  130. <li><a href="404.html">404 Page</a></li>
  131. <li><a href="500.html">500 Page</a></li>
  132. <li><a href="empty_page.html">Empty page</a></li>
  133. </ul>
  134. </li>
  135. <li>
  136. <a href="#"><i class="fa fa-globe"></i> <span class="nav-label">Miscellaneous</span><span class="label label-info pull-right">NEW</span></a>
  137. <ul class="nav nav-second-level collapse">
  138. <li><a href="toastr_notifications.html">Notification</a></li>
  139. <li><a href="nestable_list.html">Nestable list</a></li>
  140. <li><a href="agile_board.html">Agile board</a></li>
  141. <li><a href="timeline_2.html">Timeline v.2</a></li>
  142. <li><a href="diff.html">Diff</a></li>
  143. <li><a href="i18support.html">i18 support</a></li>
  144. <li><a href="sweetalert.html">Sweet alert</a></li>
  145. <li><a href="idle_timer.html">Idle timer</a></li>
  146. <li><a href="truncate.html">Truncate</a></li>
  147. <li><a href="spinners.html">Spinners</a></li>
  148. <li><a href="tinycon.html">Live favicon</a></li>
  149. <li><a href="google_maps.html">Google maps</a></li>
  150. <li><a href="code_editor.html">Code editor</a></li>
  151. <li><a href="modal_window.html">Modal window</a></li>
  152. <li><a href="clipboard.html">Clipboard</a></li>
  153. <li><a href="forum_main.html">Forum view</a></li>
  154. <li><a href="validation.html">Validation</a></li>
  155. <li><a href="tree_view.html">Tree view</a></li>
  156. <li><a href="loading_buttons.html">Loading buttons</a></li>
  157. <li><a href="chat_view.html">Chat view</a></li>
  158. <li><a href="masonry.html">Masonry</a></li>
  159. <li><a href="tour.html">Tour</a></li>
  160. </ul>
  161. </li>
  162. <li>
  163. <a href="#"><i class="fa fa-flask"></i> <span class="nav-label">UI Elements</span><span class="fa arrow"></span></a>
  164. <ul class="nav nav-second-level collapse">
  165. <li><a href="typography.html">Typography</a></li>
  166. <li><a href="icons.html">Icons</a></li>
  167. <li><a href="draggable_panels.html">Draggable Panels</a></li> <li><a href="resizeable_panels.html">Resizeable Panels</a></li>
  168. <li><a href="buttons.html">Buttons</a></li>
  169. <li><a href="video.html">Video</a></li>
  170. <li><a href="tabs_panels.html">Panels</a></li>
  171. <li><a href="tabs.html">Tabs</a></li>
  172. <li><a href="notifications.html">Notifications & Tooltips</a></li>
  173. <li><a href="badges_labels.html">Badges, Labels, Progress</a></li>
  174. </ul>
  175. </li>
  176. <li>
  177. <a href="grid_options.html"><i class="fa fa-laptop"></i> <span class="nav-label">Grid options</span></a>
  178. </li>
  179. <li class="active">
  180. <a href="#"><i class="fa fa-table"></i> <span class="nav-label">Tables</span><span class="fa arrow"></span></a>
  181. <ul class="nav nav-second-level">
  182. <li><a href="table_basic.html">Static Tables</a></li>
  183. <li><a href="table_data_tables.html">Data Tables</a></li>
  184. <li><a href="table_foo_table.html">Foo Tables</a></li>
  185. <li class="active"><a href="jq_grid.html">jqGrid</a></li>
  186. </ul>
  187. </li>
  188. <li>
  189. <a href="#"><i class="fa fa-shopping-cart"></i> <span class="nav-label">E-commerce</span><span class="fa arrow"></span></a>
  190. <ul class="nav nav-second-level collapse">
  191. <li><a href="ecommerce_products_grid.html">Products grid</a></li>
  192. <li><a href="ecommerce_product_list.html">Products list</a></li>
  193. <li><a href="ecommerce_product.html">Product edit</a></li>
  194. <li><a href="ecommerce_product_detail.html">Product detail</a></li>
  195. <li><a href="ecommerce-cart.html">Cart</a></li>
  196. <li><a href="ecommerce-orders.html">Orders</a></li>
  197. <li><a href="ecommerce_payments.html">Credit Card form</a></li>
  198. </ul>
  199. </li>
  200. <li>
  201. <a href="#"><i class="fa fa-picture-o"></i> <span class="nav-label">Gallery</span><span class="fa arrow"></span></a>
  202. <ul class="nav nav-second-level collapse">
  203. <li><a href="basic_gallery.html">Lightbox Gallery</a></li>
  204. <li><a href="slick_carousel.html">Slick Carousel</a></li>
  205. <li><a href="carousel.html">Bootstrap Carousel</a></li>
  206. </ul>
  207. </li>
  208. <li>
  209. <a href="#"><i class="fa fa-sitemap"></i> <span class="nav-label">Menu Levels </span><span class="fa arrow"></span></a>
  210. <ul class="nav nav-second-level collapse">
  211. <li>
  212. <a href="#">Third Level <span class="fa arrow"></span></a>
  213. <ul class="nav nav-third-level">
  214. <li>
  215. <a href="#">Third Level Item</a>
  216. </li>
  217. <li>
  218. <a href="#">Third Level Item</a>
  219. </li>
  220. <li>
  221. <a href="#">Third Level Item</a>
  222. </li>
  223. </ul>
  224. </li>
  225. <li><a href="#">Second Level Item</a></li>
  226. <li>
  227. <a href="#">Second Level Item</a></li>
  228. <li>
  229. <a href="#">Second Level Item</a></li>
  230. </ul>
  231. </li>
  232. <li>
  233. <a href="css_animation.html"><i class="fa fa-magic"></i> <span class="nav-label">CSS Animations </span><span class="label label-info pull-right">62</span></a>
  234. </li>
  235. <li class="landing_link">
  236. <a target="_blank" href="landing.html"><i class="fa fa-star"></i> <span class="nav-label">Landing Page</span> <span class="label label-warning pull-right">NEW</span></a>
  237. </li>
  238. <li class="special_link">
  239. <a href="package.html"><i class="fa fa-database"></i> <span class="nav-label">Package</span></a>
  240. </li>
  241. </ul>
  242. </div>
  243. </nav>
  244. <div id="page-wrapper" class="gray-bg">
  245. <div class="row border-bottom">
  246. <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
  247. <div class="navbar-header">
  248. <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
  249. <form role="search" class="navbar-form-custom" action="search_results.html">
  250. <div class="form-group">
  251. <input type="text" placeholder="Search for something..." class="form-control" name="top-search" id="top-search">
  252. </div>
  253. </form>
  254. </div>
  255. <ul class="nav navbar-top-links navbar-right">
  256. <li>
  257. <span class="m-r-sm text-muted welcome-message">Welcome to INSPINIA+ Admin Theme.</span>
  258. </li>
  259. <li class="dropdown">
  260. <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
  261. <i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
  262. </a>
  263. <ul class="dropdown-menu dropdown-messages">
  264. <li>
  265. <div class="dropdown-messages-box">
  266. <a href="profile.html" class="pull-left">
  267. <img alt="image" class="img-circle" src="img/a7.jpg">
  268. </a>
  269. <div class="media-body">
  270. <small class="pull-right">46h ago</small>
  271. <strong>Mike Loreipsum</strong> started following <strong>Monica Smith</strong>. <br>
  272. <small class="text-muted">3 days ago at 7:58 pm - 10.06.2014</small>
  273. </div>
  274. </div>
  275. </li>
  276. <li class="divider"></li>
  277. <li>
  278. <div class="dropdown-messages-box">
  279. <a href="profile.html" class="pull-left">
  280. <img alt="image" class="img-circle" src="img/a4.jpg">
  281. </a>
  282. <div class="media-body ">
  283. <small class="pull-right text-navy">5h ago</small>
  284. <strong>Chris Johnatan Overtunk</strong> started following <strong>Monica Smith</strong>. <br>
  285. <small class="text-muted">Yesterday 1:21 pm - 11.06.2014</small>
  286. </div>
  287. </div>
  288. </li>
  289. <li class="divider"></li>
  290. <li>
  291. <div class="dropdown-messages-box">
  292. <a href="profile.html" class="pull-left">
  293. <img alt="image" class="img-circle" src="img/profile.jpg">
  294. </a>
  295. <div class="media-body ">
  296. <small class="pull-right">23h ago</small>
  297. <strong>Monica Smith</strong> love <strong>Kim Smith</strong>. <br>
  298. <small class="text-muted">2 days ago at 2:30 am - 11.06.2014</small>
  299. </div>
  300. </div>
  301. </li>
  302. <li class="divider"></li>
  303. <li>
  304. <div class="text-center link-block">
  305. <a href="mailbox.html">
  306. <i class="fa fa-envelope"></i> <strong>Read All Messages</strong>
  307. </a>
  308. </div>
  309. </li>
  310. </ul>
  311. </li>
  312. <li class="dropdown">
  313. <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
  314. <i class="fa fa-bell"></i> <span class="label label-primary">8</span>
  315. </a>
  316. <ul class="dropdown-menu dropdown-alerts">
  317. <li>
  318. <a href="mailbox.html">
  319. <div>
  320. <i class="fa fa-envelope fa-fw"></i> You have 16 messages
  321. <span class="pull-right text-muted small">4 minutes ago</span>
  322. </div>
  323. </a>
  324. </li>
  325. <li class="divider"></li>
  326. <li>
  327. <a href="profile.html">
  328. <div>
  329. <i class="fa fa-twitter fa-fw"></i> 3 New Followers
  330. <span class="pull-right text-muted small">12 minutes ago</span>
  331. </div>
  332. </a>
  333. </li>
  334. <li class="divider"></li>
  335. <li>
  336. <a href="grid_options.html">
  337. <div>
  338. <i class="fa fa-upload fa-fw"></i> Server Rebooted
  339. <span class="pull-right text-muted small">4 minutes ago</span>
  340. </div>
  341. </a>
  342. </li>
  343. <li class="divider"></li>
  344. <li>
  345. <div class="text-center link-block">
  346. <a href="notifications.html">
  347. <strong>See All Alerts</strong>
  348. <i class="fa fa-angle-right"></i>
  349. </a>
  350. </div>
  351. </li>
  352. </ul>
  353. </li>
  354. <li>
  355. <a href="login.html">
  356. <i class="fa fa-sign-out"></i> Log out
  357. </a>
  358. </li>
  359. </ul>
  360. </nav>
  361. </div>
  362. <div class="row wrapper border-bottom white-bg page-heading">
  363. <div class="col-lg-10">
  364. <h2>jqGrid</h2>
  365. <ol class="breadcrumb">
  366. <li>
  367. <a href="index.html">Home</a>
  368. </li>
  369. <li>
  370. <a>Tables</a>
  371. </li>
  372. <li class="active">
  373. <strong>jqGrid</strong>
  374. </li>
  375. </ol>
  376. </div>
  377. </div>
  378. <div class="wrapper wrapper-content animated fadeInRight">
  379. <div class="row">
  380. <div class="col-lg-12">
  381. <div class="ibox ">
  382. <div class="ibox-title">
  383. <h5>jQuery Grid Plugin – jqGrid</h5>
  384. </div>
  385. <div class="ibox-content">
  386. <p>
  387. <strong>jqGrid</strong> is an Ajax-enabled JavaScript control that provides solutions for representing and manipulating tabular data on the web. Since the grid is a client-side solution loading data dynamically through Ajax callbacks, it can be integrated with any server-side technology, including PHP, ASP, Java Servlets, JSP, ColdFusion, and Perl.
  388. jqGrid uses a jQuery Java Script Library and is written as plugin for that package. For more information on jQuery Grid, please refer to the <a target="_blank" href="http://www.trirand.com/blog/"> jqGrid web site.</a>
  389. </p>
  390. <h4>Basic example</h4>
  391. <div class="jqGrid_wrapper">
  392. <table id="table_list_1"></table>
  393. <div id="pager_list_1"></div>
  394. </div>
  395. <h4>Advanced example</h4>
  396. <p>
  397. </p>
  398. <div class="jqGrid_wrapper">
  399. <table id="table_list_2"></table>
  400. <div id="pager_list_2"></div>
  401. </div>
  402. </div>
  403. </div>
  404. </div>
  405. </div>
  406. </div>
  407. <div class="footer">
  408. <div class="pull-right">
  409. 10GB of <strong>250GB</strong> Free.
  410. </div>
  411. <div>
  412. <strong>Copyright</strong> Example Company &copy; 2014-2015
  413. </div>
  414. </div>
  415. </div>
  416. </div>
  417. <!-- Mainly scripts -->
  418. <script src="js/jquery-2.1.1.js"></script>
  419. <script src="js/bootstrap.min.js"></script>
  420. <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
  421. <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  422. <!-- Peity -->
  423. <script src="js/plugins/peity/jquery.peity.min.js"></script>
  424. <!-- jqGrid -->
  425. <script src="js/plugins/jqGrid/i18n/grid.locale-en.js"></script>
  426. <script src="js/plugins/jqGrid/jquery.jqGrid.min.js"></script>
  427. <!-- Custom and plugin javascript -->
  428. <script src="js/inspinia.js"></script>
  429. <script src="js/plugins/pace/pace.min.js"></script>
  430. <script src="js/plugins/jquery-ui/jquery-ui.min.js"></script>
  431. <script>
  432. $(document).ready(function () {
  433. // Examle data for jqGrid
  434. var mydata = [
  435. {id: "1", invdate: "2010-05-24", name: "test", note: "note", tax: "10.00", total: "2111.00"} ,
  436. {id: "2", invdate: "2010-05-25", name: "test2", note: "note2", tax: "20.00", total: "320.00"},
  437. {id: "3", invdate: "2007-09-01", name: "test3", note: "note3", tax: "30.00", total: "430.00"},
  438. {id: "4", invdate: "2007-10-04", name: "test", note: "note", tax: "10.00", total: "210.00"},
  439. {id: "5", invdate: "2007-10-05", name: "test2", note: "note2", tax: "20.00", total: "320.00"},
  440. {id: "6", invdate: "2007-09-06", name: "test3", note: "note3", tax: "30.00", total: "430.00"},
  441. {id: "7", invdate: "2007-10-04", name: "test", note: "note", tax: "10.00", total: "210.00"},
  442. {id: "8", invdate: "2007-10-03", name: "test2", note: "note2", amount: "300.00", tax: "21.00", total: "320.00"},
  443. {id: "9", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  444. {id: "11", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  445. {id: "12", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  446. {id: "13", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  447. {id: "14", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  448. {id: "15", invdate: "2007-10-05", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  449. {id: "16", invdate: "2007-09-06", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  450. {id: "17", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  451. {id: "18", invdate: "2007-10-03", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  452. {id: "19", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  453. {id: "21", invdate: "2007-10-01", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  454. {id: "22", invdate: "2007-10-02", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  455. {id: "23", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  456. {id: "24", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  457. {id: "25", invdate: "2007-10-05", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  458. {id: "26", invdate: "2007-09-06", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"},
  459. {id: "27", invdate: "2007-10-04", name: "test", note: "note", amount: "200.00", tax: "10.00", total: "210.00"},
  460. {id: "28", invdate: "2007-10-03", name: "test2", note: "note2", amount: "300.00", tax: "20.00", total: "320.00"},
  461. {id: "29", invdate: "2007-09-01", name: "test3", note: "note3", amount: "400.00", tax: "30.00", total: "430.00"}
  462. ];
  463. // Configuration for jqGrid Example 1
  464. $("#table_list_1").jqGrid({
  465. data: mydata,
  466. datatype: "local",
  467. height: 250,
  468. autowidth: true,
  469. shrinkToFit: true,
  470. rowNum: 14,
  471. rowList: [10, 20, 30],
  472. colNames: ['Inv No', 'Date', 'Client', 'Amount', 'Tax', 'Total', 'Notes'],
  473. colModel: [
  474. {name: 'id', index: 'id', width: 60, sorttype: "int"},
  475. {name: 'invdate', index: 'invdate', width: 90, sorttype: "date", formatter: "date"},
  476. {name: 'name', index: 'name', width: 100},
  477. {name: 'amount', index: 'amount', width: 80, align: "right", sorttype: "float", formatter: "number"},
  478. {name: 'tax', index: 'tax', width: 80, align: "right", sorttype: "float"},
  479. {name: 'total', index: 'total', width: 80, align: "right", sorttype: "float"},
  480. {name: 'note', index: 'note', width: 150, sortable: false}
  481. ],
  482. pager: "#pager_list_1",
  483. viewrecords: true,
  484. caption: "Example jqGrid 1",
  485. hidegrid: false
  486. });
  487. // Configuration for jqGrid Example 2
  488. $("#table_list_2").jqGrid({
  489. data: mydata,
  490. datatype: "local",
  491. height: 450,
  492. autowidth: true,
  493. shrinkToFit: true,
  494. rowNum: 20,
  495. rowList: [10, 20, 30],
  496. colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
  497. colModel:[
  498. {name:'id',index:'id', editable: true, width:60, sorttype:"int",search:true},
  499. {name:'invdate',index:'invdate', editable: true, width:90, sorttype:"date", formatter:"date"},
  500. {name:'name',index:'name', editable: true, width:100},
  501. {name:'amount',index:'amount', editable: true, width:80, align:"right",sorttype:"float", formatter:"number"},
  502. {name:'tax',index:'tax', editable: true, width:80, align:"right",sorttype:"float"},
  503. {name:'total',index:'total', editable: true, width:80,align:"right",sorttype:"float"},
  504. {name:'note',index:'note', editable: true, width:100, sortable:false}
  505. ],
  506. pager: "#pager_list_2",
  507. viewrecords: true,
  508. caption: "Example jqGrid 2",
  509. add: true,
  510. edit: true,
  511. addtext: 'Add',
  512. edittext: 'Edit',
  513. hidegrid: false
  514. });
  515. // Add selection
  516. $("#table_list_2").setSelection(4, true);
  517. // Setup buttons
  518. $("#table_list_2").jqGrid('navGrid', '#pager_list_2',
  519. {edit: true, add: true, del: true, search: true},
  520. {height: 200, reloadAfterSubmit: true}
  521. );
  522. // Add responsive to jqGrid
  523. $(window).bind('resize', function () {
  524. var width = $('.jqGrid_wrapper').width();
  525. $('#table_list_1').setGridWidth(width);
  526. $('#table_list_2').setGridWidth(width);
  527. });
  528. });
  529. </script>
  530. </body>
  531. </html>