content_checkall.tpl.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. defined('IN_ADMIN') or exit('No permission resources.');
  3. include $this->admin_tpl('header','admin');?>
  4. <div class="subnav">
  5. <div class="content-menu ib-a blue line-x">
  6. <?php if($super_admin) {?>
  7. <a href='?m=content&c=content&a=public_checkall&menuid=822' class="on"><em><?php echo L('all_check_list');?></em></a>
  8. <?php } else {
  9. echo L('check_status');
  10. }
  11. for ($j=0;$j<5;$j++) {
  12. ?>
  13. <span>|</span><a href='?m=content&c=content&a=public_checkall&menuid=822&status=<?php echo $j;?>' class="<?php if($status==$j) echo 'on';?>"><em><?php echo L('workflow_'.$j);?></em></a>
  14. <?php }?>
  15. </div>
  16. </div>
  17. <div class="pad-10">
  18. <form name="myform" id="myform" action="" method="post" >
  19. <div class="table-list">
  20. <table width="100%">
  21. <thead>
  22. <tr>
  23. <th width="60">ID</th>
  24. <th><?php echo L('title');?></th>
  25. <th><?php echo L('select_model_name');?></th>
  26. <th width="90"><?php echo L('current_steps');?></th>
  27. <th width="50"><?php echo L('steps');?></th>
  28. <th width="90"><?php echo L('belong_category');?></th>
  29. <th width="118"><?php echo L('contribute_time');?></th>
  30. <th width="130"><?php echo L('username');?></th>
  31. <th width="50"><?php echo L('operations_manage');?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php
  36. $model_cache = getcache('model','commons');
  37. foreach ($datas as $r) {
  38. $arr_checkid = explode('-',$r['checkid']);
  39. $workflowid = $this->categorys[$r['catid']]['workflowid'];
  40. if($stepid = $workflows[$workflowid]['steps']) {
  41. $stepname = L('steps_'.$stepid);
  42. } else {
  43. $stepname = '';
  44. }
  45. $modelname = $model_cache[$arr_checkid[2]]['name'];
  46. $flowname = L('workflow_'.$r['status']);
  47. ?>
  48. <tr>
  49. <td align='center' ><?php echo $arr_checkid[1];?></td>
  50. <td align='left' ><a href="javascript:;" onclick='change_color(this);window.open("?m=content&c=content&a=public_preview&steps=<?php echo $r['status']?>&catid=<?php echo $r['catid'];?>&id=<?php echo $arr_checkid[1];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>","manage")'><?php echo $r['title'];?></a></td>
  51. <td align='center' ><?php echo $modelname;?></td>
  52. <td align='center' ><?php echo $flowname;?></td>
  53. <td align='center' ><?php echo $stepname;?></td>
  54. <td align='center' ><a href="?m=content&c=content&a=init&menuid=822&catid=<?php echo $r['catid'];?>"><?php echo $this->categorys[$r['catid']]['catname'];?></a></td>
  55. <td align='center' ><?php echo format::date($r['inputtime'],1);?></td>
  56. <td align='center'>
  57. <?php
  58. if($r['sysadd']==0) {
  59. echo "<a href='?m=member&c=member&a=memberinfo&username=".urlencode($r['username'])."' >".$r['username']."</a>";
  60. echo '<img src="'.IMG_PATH.'icon/contribute.png" title="'.L('member_contribute').'">';
  61. } else {
  62. echo $r['username'];
  63. }
  64. ?></td>
  65. <td align='center' ><a href="javascript:;" onclick='change_color(this);window.open("?m=content&c=content&a=public_preview&steps=<?php echo $r['status']?>&catid=<?php echo $r['catid'];?>&id=<?php echo $arr_checkid[1];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>","manage")'><?php echo L('c_check');?></a></td>
  66. </tr>
  67. <?php }?>
  68. </tbody>
  69. </table>
  70. <div id="pages"><?php echo $pages?></div>
  71. </div>
  72. </form>
  73. </div>
  74. <script type="text/javascript">
  75. <!--
  76. window.top.$("#current_pos_attr").html('<?php echo L('checkall_content');?>');
  77. function change_color(obj) {
  78. $(obj).css('color','red');
  79. }
  80. //-->
  81. </script>
  82. </body>
  83. </html>