1
0

rock_email_coguser.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. var a = $('#admin_{rand}').bootstable({
  5. tablename:'admin',modenum:'user',celleditor:true,sort:'sort',dir:'asc',fanye:true,
  6. storebeforeaction:'coguserbeforeshow',storeafteraction:'coguseraftershow',modedir:'{mode}:{dir}',params:{atype:'all'},
  7. columns:[{
  8. text:'头像',dataIndex:'face',renderer:function(v,d){
  9. if(isempt(v))v='images/noface.png';
  10. return '<img src="'+v+'" height="24" width="24">';
  11. }
  12. },{
  13. text:'部门',dataIndex:'deptallname',align:'left'
  14. },{
  15. text:'姓名',dataIndex:'name',sortable:true
  16. },{
  17. text:'用户名',dataIndex:'user'
  18. },{
  19. text:'职位',dataIndex:'ranking'
  20. },{
  21. text:'邮箱',dataIndex:'email',editor:true
  22. },{
  23. text:'邮箱密码',dataIndex:'emailpass',editor:!ISDEMO
  24. },{
  25. text:'状态',dataIndex:'status',type:'checkbox',editor:true,sortable:true
  26. },{
  27. text:'ID',dataIndex:'id'
  28. }]
  29. });
  30. var c = {
  31. search:function(){
  32. var s=get('key_{rand}').value;
  33. a.setparams({key:s},true);
  34. }
  35. };
  36. js.initbtn(c);
  37. });
  38. </script>
  39. <div>
  40. <table width="100%"><tr>
  41. <td>
  42. <div class="input-group" style="width:250px">
  43. <input class="form-control" id="key_{rand}" placeholder="姓名/部门/职位/用户名">
  44. <span class="input-group-btn">
  45. <button class="btn btn-default" click="search" type="button"><i class="icon-search"></i></button>
  46. </span>
  47. </div>
  48. </td>
  49. <td width="80%"></td>
  50. <td align="right" nowrap>
  51. <a class="btn btn-default" href="<?=URLY?>view_email.html" target="_blank">?查看邮件帮助</a>
  52. </td>
  53. </tr>
  54. </table>
  55. </div>
  56. <div class="blank10"></div>
  57. <div id="admin_{rand}"></div>
  58. <div class="tishi">此功能设置每个用户收发邮件的邮箱帐号密码,添加用户到用户管理那添加。</div>
粤ICP备19079148号