urlrule_list.tpl.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <table width="100%" cellspacing="0" >
  7. <thead>
  8. <tr>
  9. <th width="60">ID</th>
  10. <th><?php echo L('respective_modules');?></th>
  11. <th><?php echo L('rulename');?></th>
  12. <th><?php echo L('urlrule_ishtml');?></th>
  13. <th><?php echo L('urlrule_example');?></th>
  14. <th><?php echo L('urlrule_url');?></th>
  15. <th width="100"><?php echo L('operations_manage');?></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <?php foreach($infos as $r) { ?>
  20. <tr>
  21. <td align='center'><?php echo $r['urlruleid'];?></td>
  22. <td align="center"><?php echo $r['module'];?></td>
  23. <td align="center"><?php echo $r['file'];?></td>
  24. <td align="center"><?php echo $r['ishtml'] ? L('icon_unlock') : L('icon_locked');?></td>
  25. <td><?php echo $r['example'];?></td>
  26. <td><?php echo $r['urlrule'];?></td>
  27. <td align='center' ><a href="javascript:edit('<?php echo $r['urlruleid']?>')"><?php echo L('edit');?></a> | <a href="javascript:confirmurl('?m=admin&c=urlrule&a=delete&urlruleid=<?php echo $r['urlruleid'];?>&menuid=<?php echo $_GET['menuid'];?>','<?php echo L('confirm',array('message'=>$r['urlruleid']));?>')"><?php echo L('delete');?></a> </td>
  28. </tr>
  29. <?php } ?>
  30. </tbody>
  31. </table>
  32. <div id="pages"><?php echo $pages;?></div>
  33. </div>
  34. </div>
  35. <script type="text/javascript">
  36. <!--
  37. function edit(id) {
  38. window.top.art.dialog({id:'edit'}).close();
  39. window.top.art.dialog({title:'<?php echo L('edit_urlrule');?>《'+id+'》',id:'edit',iframe:'?m=admin&c=urlrule&a=edit&urlruleid='+id,width:'750',height:'300'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;d.document.getElementById('dosubmit').click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  40. }
  41. //-->
  42. </script>
  43. </body>
  44. </html>