admin_list.tpl.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header');?>
  4. <div class="pad_10">
  5. <div class="table-list">
  6. <form name="myform" action="?m=admin&c=role&a=listorder" method="post">
  7. <table width="100%" cellspacing="0">
  8. <thead>
  9. <tr>
  10. <th width="10%"><?php echo L('userid')?></th>
  11. <th width="10%" align="left" ><?php echo L('username')?></th>
  12. <th width="10%" align="left" ><?php echo L('userinrole')?></th>
  13. <th width="10%" align="left" ><?php echo L('lastloginip')?></th>
  14. <th width="20%" align="left" ><?php echo L('lastlogintime')?></th>
  15. <th width="15%" align="left" ><?php echo L('email')?></th>
  16. <th width="10%"><?php echo L('realname')?></th>
  17. <th width="15%" ><?php echo L('operations_manage')?></th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <?php $admin_founders = explode(',',pc_base::load_config('system','admin_founders'));?>
  22. <?php
  23. if(is_array($infos)){
  24. foreach($infos as $info){
  25. ?>
  26. <tr>
  27. <td width="10%" align="center"><?php echo $info['userid']?></td>
  28. <td width="10%" ><?php echo $info['username']?></td>
  29. <td width="10%" ><?php echo $roles[$info['roleid']]?></td>
  30. <td width="10%" ><?php echo $info['lastloginip']?></td>
  31. <td width="20%" ><?php echo $info['lastlogintime'] ? date('Y-m-d H:i:s',$info['lastlogintime']) : ''?></td>
  32. <td width="15%"><?php echo $info['email']?></td>
  33. <td width="10%" align="center"><?php echo $info['realname']?></td>
  34. <td width="15%" align="center">
  35. <a href="javascript:edit(<?php echo $info['userid']?>, '<?php echo new_addslashes($info['username'])?>')"><?php echo L('edit')?></a> |
  36. <?php if(!in_array($info['userid'],$admin_founders)) {?>
  37. <a href="javascript:confirmurl('?m=admin&c=admin_manage&a=delete&userid=<?php echo $info['userid']?>', '<?php echo L('admin_del_cofirm')?>')"><?php echo L('delete')?></a>
  38. <?php } else {?>
  39. <font color="#cccccc"><?php echo L('delete')?></font>
  40. <?php } ?> | <a href="javascript:void(0)" onclick="card(<?php echo $info['userid']?>)"><?php echo L('ht_card')?></a>
  41. </td>
  42. </tr>
  43. <?php
  44. }
  45. }
  46. ?>
  47. </tbody>
  48. </table>
  49. <div id="pages"> <?php echo $pages?></div>
  50. </form>
  51. </div>
  52. </div>
  53. </body>
  54. </html>
  55. <script type="text/javascript">
  56. <!--
  57. function edit(id, name) {
  58. window.top.art.dialog({title:'<?php echo L('edit')?>--'+name, id:'edit', iframe:'?m=admin&c=admin_manage&a=edit&userid='+id ,width:'500px',height:'400px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
  59. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  60. }
  61. function card(id) {
  62. window.top.art.dialog({title:'<?php echo L('the_password_card')?>', id:'edit', iframe:'?m=admin&c=admin_manage&a=card&userid='+id ,width:'500px',height:'400px'}, '', function(){window.top.art.dialog({id:'edit'}).close()});
  63. }
  64. //-->
  65. </script>