rock_carm_list.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. {params};
  5. var modenum='carm';
  6. var a = $('#view_{rand}').bootstable({
  7. tablename:modenum,celleditor:true,modenum:modenum,fanye:true,
  8. columns:[{
  9. text:'',dataIndex:'caozuo'
  10. },{
  11. text:'车牌号',dataIndex:'carnum'
  12. },{
  13. text:'车辆品牌',dataIndex:'carbrand'
  14. },{
  15. text:'型号',dataIndex:'carmode'
  16. },{
  17. text:'车辆类型',dataIndex:'cartype'
  18. },{
  19. text:'购买日期',dataIndex:'buydt',sortable:true
  20. },{
  21. text:'状态',dataIndex:'state'
  22. },{
  23. text:'公开',dataIndex:'ispublic'
  24. },{
  25. text:'强险到期',dataIndex:'qxenddt',sortable:true
  26. },{
  27. text:'行驶证到期',dataIndex:'xszenddt',sortable:true
  28. },{
  29. text:'商业险到期',dataIndex:'syxenddt',sortable:true
  30. },{
  31. text:'年审截到期',dataIndex:'nsenddt',sortable:true
  32. }]
  33. });
  34. var c = {
  35. reload:function(){
  36. at.reload();
  37. },
  38. del:function(){
  39. a.del();
  40. },
  41. daochu:function(){
  42. a.exceldown();
  43. },
  44. adds:function(){
  45. openinput('车辆管理',modenum);
  46. },
  47. search:function(){
  48. var s=get('key_{rand}').value;
  49. a.setparams({key:s},true);
  50. }
  51. };
  52. js.initbtn(c);
  53. });
  54. </script>
  55. <div>
  56. <table width="100%"><tr>
  57. <td align="left" nowrap>
  58. <button class="btn btn-primary" click="adds" type="button"><i class="icon-plus"></i> 新增</button>&nbsp;
  59. </td>
  60. <td style="padding-left:10px">
  61. <input class="form-control" style="width:200px" id="key_{rand}" placeholder="车牌号">
  62. </td>
  63. <td style="padding-left:10px">
  64. <button class="btn btn-default" click="search" type="button">搜索</button>
  65. </td>
  66. <td width="90%">
  67. </td>
  68. <td align="right">
  69. <button class="btn btn-default" click="daochu" type="button">导出</button>
  70. </td>
  71. </tr></table>
  72. </div>
  73. <div class="blank10"></div>
  74. <div id="view_{rand}"></div>
粤ICP备19079148号