special_list.tpl.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. <form name="myform" action="?m=special&c=special&a=listorder" method="post">
  7. <table width="100%" cellspacing="0" class="table-list nHover">
  8. <thead>
  9. <tr>
  10. <th width="40"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
  11. <th width="40" align="center">ID</th>
  12. <th width="80" align="center"><?php echo L('listorder')?></th>
  13. <th ><?php echo L('special_info')?></th>
  14. <th width="160"><?php echo L('operations_manage')?></th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <?php
  19. if(is_array($infos)){
  20. foreach($infos as $info){
  21. ?>
  22. <tr>
  23. <td align="center" width="40"><input class="inputcheckbox" name="id[]" value="<?php echo $info['id'];?>" type="checkbox"></td>
  24. <td width="40" align="center"><?php echo $info['id']?></td>
  25. <td width="80" align="center"><input type='text' name='listorder[<?php echo $info['id']?>]' value="<?php echo $info['listorder']?>" class="input-text-c" size="4"></td>
  26. <td>
  27. <div class="col-left mr10" style="width:146px; height:112px"><?php if ($info['thumb']) {?>
  28. <a href="<?php echo $info['url']?>" target="_blank"><img src="<?php echo $info['thumb']?>" width="146" height="112" style="border:1px solid #eee" align="left"></a><?php }?>
  29. </div>
  30. <div class="col-auto">
  31. <h2 class="title-1 f14 lh28 mb6 blue"><a href="<?php echo $info['url']?>" target="_blank"><?php echo $info['title']?></a></h2>
  32. <div class="lh22"><?php echo $info['description']?></div>
  33. <p class="gray4"><?php echo L('create_man')?>:<a href="#" class="blue"><?php echo $info['username']?></a>, <?php echo L('create_time')?>:<?php echo format::date($info['createtime'], 1)?></p>
  34. </div>
  35. </td>
  36. <td align="center"><span style="height:22"><a href='?m=special&c=content&a=init&specialid=<?php echo $info['id']?>' onclick="javascript:openwinx('?m=special&c=content&a=add&specialid=<?php echo $info['id']?>&pc_hash=<?php echo $_SESSION['pc_hash']?>','')"><?php echo L('add_news')?></a></span> |
  37. <span style="height:22"><a href='javascript:import_c(<?php echo $info['id']?>);void(0);'><?php echo L('import_news')?></a></span><br />
  38. <span style="height:22"><a href='?m=special&c=content&a=init&specialid=<?php echo $info['id']?>'><?php echo L('manage_news')?></a></span> |
  39. <span style="height:22"><a href='?m=special&c=template&specialid=<?php echo $info['id']?>' style="color:red" target="_blank"><?php echo L('template_manage')?></a></span><br/>
  40. <span style="height:22"><a href='?m=special&c=special&a=elite&value=<?php if($info['elite']==0) {?>1<?php } elseif($info['elite']==1) { ?>0<?php }?>&id=<?php echo $info['id']?>'><?php if($info['elite']==0) { echo L('elite_special'); } else {?><font color="red"><?php echo L('remove_elite')?></font><?php }?></a></span> |
  41. <span style="height:22"><a href="javascript:comment('<?php echo id_encode('special', $info['id'], $this->get_siteid())?>', '<?php echo addslashes(new_html_special_chars($info['title']))?>');void(0);"><?php echo L('special_comment')?></a></span><br/>
  42. <span style="height:22"><a href="?m=special&c=special&a=edit&specialid=<?php echo $info['id']?>&menuid=<?php echo $_GET['menuid']?>"><?php echo L('edit_special')?></a></span> |
  43. <span style="height:22"><a href="?m=special&c=special&a=delete&id=<?php echo $info['id']?>" onclick="return confirm('<?php echo L('confirm', array('message'=>addslashes(new_html_special_chars($info['title']))))?>')"><?php echo L('del_special')?></a></span></td>
  44. </tr>
  45. <?php
  46. }
  47. }
  48. ?>
  49. </tbody>
  50. </table>
  51. <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>
  52. <input name='dosubmit' type='submit' class="button" value='<?php echo L('listorder')?>'>&nbsp;
  53. <input type="submit" class="button" value="<?php echo L('delete')?>" onclick="if(confirm('<?php echo L('confirm', array('message' => L('selected')))?>')){document.myform.action='?m=special&c=special&a=delete';}else{return false;}"/>
  54. &nbsp;<input type="submit" class="button" value="<?php echo L('update')?>html" onclick="document.myform.action='?m=special&c=special&a=html'"/></div>
  55. <div id="pages"><?php echo $this->db->pages;?></div><script>window.top.$("#display_center_id").css("display","none");</script>
  56. </form>
  57. </div>
  58. </body>
  59. </html>
  60. <script type="text/javascript">
  61. <!--
  62. function edit(id, name) {
  63. window.top.art.dialog({id:'edit'}).close();
  64. window.top.art.dialog({title:'<?php echo L('edit_special')?>--'+name, id:'edit', iframe:'?m=special&c=special&a=edit&specialid='+id ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;// 使用内置接口获取iframe对象
  65. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  66. }
  67. function comment(id, name) {
  68. window.top.art.dialog({id:'comment'}).close();
  69. window.top.art.dialog({title:'<?php echo L('see_comment')?>:'+name, id:'comment', iframe:'?m=comment&c=comment_admin&a=lists&show_center_id=1&commentid='+id ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;// 使用内置接口获取iframe对象
  70. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
  71. }
  72. function import_c(id) {
  73. window.top.art.dialog({id:'import'}).close();
  74. window.top.art.dialog({title:'<?php echo L('import_news')?>--', id:'import', iframe:'?m=special&c=special&a=import&specialid='+id ,width:'700px',height:'500px'}, function(){var d = window.top.art.dialog({id:'import'}).data.iframe;// 使用内置接口获取iframe对象
  75. var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'import'}).close()});
  76. }
  77. </script>