rock_seal_list.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. var a = $('#view_{rand}').bootstable({
  5. tablename:'seal',celleditor:true,fanye:true,dir:'asc',sort:'sort',
  6. columns:[{
  7. text:'电子章图片',dataIndex:'sealimg',renderer:function(v){
  8. var s='&nbsp;';
  9. if(!isempt(v))s='<img src="'+v+'" width="80">';
  10. return s;
  11. }
  12. },{
  13. text:'印章名称',dataIndex:'name',align:'left'
  14. },{
  15. text:'印章类型',dataIndex:'type'
  16. },{
  17. text:'保管人',dataIndex:'bgname'
  18. },{
  19. text:'排序号',dataIndex:'sort',editor:true
  20. },{
  21. text:'说明',dataIndex:'explain'
  22. },{
  23. text:'',dataIndex:'caozuo'
  24. }]
  25. });
  26. var c = {
  27. clickwin:function(){
  28. openinput('印章','seal');
  29. }
  30. };
  31. bootstableobj['seal']=a;
  32. js.initbtn(c);
  33. });
  34. </script>
  35. <div>
  36. <table width="100%"><tr>
  37. <td style="padding-right:10px">
  38. <button class="btn btn-primary" click="clickwin,0" type="button"><i class="icon-plus"></i> 新增</button>
  39. </td>
  40. <td style="padding-left:10px">
  41. </td>
  42. <td width="80%"></td>
  43. <td align="right" nowrap>
  44. </td>
  45. </tr></table>
  46. </div>
  47. <div class="blank10"></div>
  48. <div id="view_{rand}"></div>
粤ICP备19079148号