comment.tpl.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <? include mymps_tpl('inc_head');?>
  2. <script type="text/javascript" src="/template/global/messagebox.js"></script>
  3. <div class="ccc2">
  4. <ul>
  5. <form action="?" method="get">
  6. <input name="part" value="<?=$part?>" type="hidden">
  7. 关键字
  8. <input name="keywords" type="text" class="text" size="40" value="<?php echo $keywords; ?>">
  9. <label for="c0"><input name="comment_level" class="radio" type="radio" value="0" <?php if($_GET[comment_level]==0){echo "checked";}?> id=c0>待审 </label>
  10. <label for="c1"><input name="comment_level" class="radio" type="radio" value="1" <?php if($_GET[comment_level]==1){echo "checked";}?> id=c1>正常 </label>
  11. <input type="submit" class="gray mini" value="检索评论">
  12. </form>
  13. </ul>
  14. </div>
  15. <form name='form1' method='post' action='?part=<?=$part?>' onSubmit='return checkSubmit();'>
  16. <input name="url" type="hidden" value="<?=GetUrl()?>">
  17. <input name="action" type="hidden" value="delall" />
  18. <div id="<?=MPS_SOFTNAME?>">
  19. <table border="0" cellspacing="0" cellpadding="0" class="vbm">
  20. <tr class="firstr">
  21. <td width="30">选择</td>
  22. <td width="30">编号</td>
  23. <td>评论人</td>
  24. <td>评论对象</td>
  25. <td>评论内容</td>
  26. <td width="150">评论时间</td>
  27. <td width="30">状态</td>
  28. <td width="60">删除评论</td>
  29. </tr>
  30. <tbody onmouseover="addMouseEvent(this);">
  31. <?php foreach($comment AS $v){?>
  32. <tr align="center" bgcolor="white">
  33. <td><input type='checkbox' name='id[]' value='<?=$v[id]?>' class='checkbox' id="<?=$v[id]?>"></td>
  34. <td><?=$v[id]?></td>
  35. <td><?=$v[userid]?></td>
  36. <td><?=$v[title]?>&nbsp;</td>
  37. <td><?=$v[content]?>&nbsp;</td>
  38. <td><?=$v[pubtime]?></td>
  39. <td><?=$v[comment_level]?></td>
  40. <td><a href="?part=<?=$part?>&action=del&id=<?=$v[id]?>" onClick="return confirm('您确定要删除吗,如不确定请点取消')">删除</a></td>
  41. </tr>
  42. <?php }?>
  43. </tbody>
  44. <tr bgcolor="#ffffff" height="28">
  45. <td align="center" style="border-right:1px #fff solid;"><input name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)" class="checkbox"/></td>
  46. <td colspan="10">
  47. <label for="delall"><input class="radio" type="radio" value="delall" id="delall" name="action">批量删除</label>
  48. <label for="level0"><input class="radio" type="radio" value="level0" id="level0" name="action">转为待审</label>
  49. <label for="level1"><input class="radio" type="radio" value="level1" id="level1"name="action">转为正常</label>
  50. </td>
  51. </tr>
  52. </table>
  53. </div>
  54. <center>
  55. <input type="submit" onClick="if(!confirm('确定要操作吗?'))return false;" value="提 交" class="mymps large"/></center>
  56. </form>
  57. <div class="pagination"><?=page2()?></div>
  58. <?=mymps_admin_tpl_global_foot();?>