template_bak_list.tpl.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header', 'admin');
  4. ?>
  5. <div class="bk15"></div>
  6. <div class="pad_10">
  7. <div class="table-list">
  8. <table width="100%" cellspacing="0">
  9. <thead>
  10. <tr>
  11. <th><?php echo L('time')?></th>
  12. <th><?php echo L('who')?></th>
  13. <th width="150"><?php echo L('operations_manage')?></th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. <?php
  18. if(is_array($list)):
  19. foreach($list as $v):
  20. ?>
  21. <tr>
  22. <td align="center"><?php echo format::date($v['creat_at'], 1)?></td>
  23. <td align="center"><?php echo $v['username']?></td>
  24. <td align="center"><a href="?m=template&c=template_bak&a=restore&id=<?php echo $v['id']?>&style=<?php echo $this->style?>&dir=<?php echo $this->dir?>&filename=<?php echo $this->filename?>" onclick="return confirm('<?php echo L('are_you_sure_you_want_to_restore')?>')"><?php echo L('restore')?></a> | <a href="?m=template&c=template_bak&a=del&id=<?php echo $v['id']?>&style=<?php echo $this->style?>&dir=<?php echo $this->dir?>&filename=<?php echo $this->filename?>" onclick="return confirm('<?php echo L('confirm', array('message'=>format::date($v['creat_at'], 1)))?>')"><?php echo L('delete')?></a></td>
  25. </tr>
  26. <?php
  27. endforeach;
  28. endif;
  29. ?>
  30. </tbody>
  31. </table>
  32. </from>
  33. </div>
  34. </div>
  35. <div id="pages"><?php echo $pages?></div>
  36. </body>
  37. </html>