member_verify.tpl.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php defined('IN_ADMIN') or exit('No permission resources.');?>
  2. <?php include $this->admin_tpl('header', 'admin');?>
  3. <form name="myform" action="?m=member&c=member_verify&a=delete" method="post" onsubmit="checkuid();return false;">
  4. <div class="pad-lr-10">
  5. <div class="table-list">
  6. <table width="100%" cellspacing="0">
  7. <thead>
  8. <tr>
  9. <th align="left" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('userid[]');"></th>
  10. <th align="left"><?php echo L('username')?></th>
  11. <th align="left"><?php echo L('email')?></th>
  12. <th align="left"><?php echo L('regtime')?></th>
  13. <th align="left"><?php echo L('model_name')?></th>
  14. <th align="left"><?php echo L('verify_message')?></th>
  15. <th align="left"><?php echo L('verify_status')?></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <?php
  20. foreach($memberlist as $k=>$v) {
  21. ?>
  22. <tr>
  23. <td align="left"><input type="checkbox" value="<?php echo $v['userid']?>" name="userid[]"></td>
  24. <td align="left"><?php echo $v['username']?></td>
  25. <td align="left"><?php echo $v['email']?></td>
  26. <td align="left" title="<?php echo $v['regip']?>"><?php echo format::date($v['regdate'], 1);?></td>
  27. <td align="left"><a href="javascript:member_verify(<?php echo $v['userid']?>, '<?php echo $v['modelid']?>', '')"><?php echo $member_model[$v['modelid']]['name']?><img src="<?php echo IMG_PATH?>admin_img/detail.png"></a></td>
  28. <td align="left"><?php echo $v['message']?></td>
  29. <td align="left"><?php $verify_status = array('5'=>L('nerver_pass'), '4'=>L('reject'), '3'=>L('delete'), '2'=>L('ignore'), '0'=>L('need_verify'), '1'=>L('pass')); echo $verify_status[$v['status']]?></td>
  30. </tr>
  31. <?php
  32. }
  33. ?>
  34. </tbody>
  35. </table>
  36. <div class="btn">
  37. <label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label>
  38. <input type="submit" class="button" name="dosubmit" value="<?php echo L('verify_pass')?>" onclick="document.myform.action='?m=member&c=member_verify&a=pass'"/>
  39. <input type="submit" class="button" name="dosubmit" value="<?php echo L('reject')?>" onclick="document.myform.action='?m=member&c=member_verify&a=reject'"/>
  40. <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>" onclick="return confirm('<?php echo L('sure_delete')?>');"/>
  41. <input type="submit" class="button" name="dosubmit" value="<?php echo L('ignore')?>" onclick="document.myform.action='?m=member&c=member_verify&a=ignore'"/>
  42. <?php echo L('verify_message')?>:<input type="text" name="message"><input type="checkbox" value=1 name="sendemail" checked/><?php echo L('sendemail')?>
  43. </div>
  44. <div id="pages"><?php echo $pages?></div>
  45. </div>
  46. </div>
  47. </form>
  48. <script type="text/javascript">
  49. <!--
  50. function checkuid() {
  51. var ids='';
  52. $("input[name='userid[]']:checked").each(function(i, n){
  53. ids += $(n).val() + ',';
  54. });
  55. if(ids=='') {
  56. window.top.art.dialog({content:'<?php echo L('plsease_select').L('member')?>',lock:true,width:'200',height:'50',time:1.5},function(){});
  57. return false;
  58. } else {
  59. myform.submit();
  60. }
  61. }
  62. function member_verify(userid, modelid, name) {
  63. window.top.art.dialog({id:'modelinfo'}).close();
  64. window.top.art.dialog({title:'<?php echo L('member_verify')?>',id:'modelinfo',iframe:'?m=member&c=member_verify&a=modelinfo&userid='+userid+'&modelid='+modelid,width:'700',height:'500'}, function(){var d = window.top.art.dialog({id:'modelinfo'}).data.iframe;d.document.getElementById('dosubmit').click();return false;}, function(){window.top.art.dialog({id:'modelinfo'}).close()});
  65. }
  66. //-->
  67. </script>
  68. </body>
  69. </html>