style_list.tpl.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');
  4. ?>
  5. <div class="pad-lr-10">
  6. <div class="table-list">
  7. <form action="?m=template&c=style&a=updatename" method="post">
  8. <table width="100%" cellspacing="0">
  9. <thead>
  10. <tr>
  11. <th width="80"><?php echo L("style_identity")?></th>
  12. <th><?php echo L("style_chinese_name")?></th>
  13. <th><?php echo L("author")?></th>
  14. <th><?php echo L("style_version")?></th>
  15. <th><?php echo L("status")?></th>
  16. <th width="150"><?php echo L('operations_manage')?></th>
  17. </tr>
  18. </thead>
  19. <tbody>
  20. <?php
  21. if(is_array($list)):
  22. foreach($list as $v):
  23. ?>
  24. <tr>
  25. <td width="80" align="center"><?php echo $v['dirname']?></td>
  26. <td align="center"><input type="text" name="name[<?php echo $v['dirname']?>]" value="<?php echo $v['name']?>" /></td>
  27. <td align="center"><?php if($v['homepage']) {echo '<a href="'.$v['homepage'].'" target="_blank">';}?><?php echo $v['author']?><?php if($v['homepage']) {echo '</a>';}?></td>
  28. <td align="center"><?php echo $v['version']?></td>
  29. <td align="center"><?php if($v['disable']){echo L('icon_locked');}else{echo L("icon_unlock");}?></td>
  30. <td align="center" width="150"><a href="?m=template&c=style&a=disable&style=<?php echo $v['dirname']?>"><?php if($v['disable']){echo L("enable");}else{echo L('disable');}?></a> | <a href="?m=template&c=file&a=init&style=<?php echo $v['dirname']?>"><?php echo L("detail")?></a> | <a href="?m=template&c=style&a=export&style=<?php echo $v['dirname']?>"><?php echo L('export')?></a></td>
  31. </tr>
  32. <?php
  33. endforeach;
  34. endif;
  35. ?>
  36. </tbody>
  37. </table>
  38. <div class="btn"><input type="submit" class="button" name="dosubmit" value="<?php echo L('submit')?>" /></div>
  39. </form>
  40. </div>
  41. </div>
  42. <div id="pages"><?php echo $pages?></div>
  43. </body>
  44. </html>