release_failed_list.tpl.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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=release&c=index&a=del" method="post">
  8. <table width="100%" cellspacing="0">
  9. <thead>
  10. <tr>
  11. <th width="80"><input type="checkbox" onclick="selectall('ids[]');" id="check_box" /></th>
  12. <th width="80">ID</th>
  13. <th width="80"><?php echo L('type')?></th>
  14. <th width="80"><?php echo L("site")?>ID</th>
  15. <th><?php echo L('path')?></th>
  16. <th><?php echo L('time')?></th>
  17. <?php foreach ($this->point as $v) :$r = $this->db->get_one(array('id'=>$v), 'name');?>
  18. <th><?php echo $r['name']?></th>
  19. <?php endforeach;?>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. <?php
  24. if(is_array($list)):
  25. foreach($list as $v):
  26. ?>
  27. <tr>
  28. <td width="80" align="center"><input type="checkbox" name="ids[]" value="<?php echo $v['id']?>" /></td>
  29. <td width="80" align="center"><?php echo $v['id']?></td>
  30. <td align="center"><?php switch($v['type']){case 'edit':case 'add':echo L('upload');break;case 'del':echo L('delete');break;}?></td>
  31. <td align="center"><?php echo $v['siteid']?></td>
  32. <td align="center"><?php echo $v['path'];?></td>
  33. <td align="center"><?php echo format::date($v['times'], 1);?></td>
  34. <?php $i=1;foreach ($this->point as $d) :?>
  35. <td align="center"><?php switch($v['status'.$i]){case -1:echo '<div class="onError">'.L("failure").'</div>';break;case 0:echo '<div class="onShow">'.L('not_upload').'</div>';break; case 1:echo '<div class="onCorrect">'.L("success").'</div>';break;}?></td>
  36. <?php $i++;endforeach;?>
  37. </tr>
  38. <?php
  39. endforeach;
  40. endif;
  41. ?>
  42. </tbody>
  43. </table>
  44. <div class="btn"><label for="check_box"><?php echo L('select_all')?>/<?php echo L('cancel')?></label> <input type="button" class="button" name="dosubmit" value="<?php echo L('sync_agin')?>" onclick="sync_agin()" /> <input type="button" class="button" name="dosubmit" value="<?php echo L('all').L('sync_agin')?>" onclick="window.top.art.dialog({id:'sync',iframe:'?m=release&c=index&a=init&statuses=-1&iniframe=1', title:'<?php echo L('sync_agin')?>', width:'700', height:'500', lock:true},'', function(){window.top.art.dialog({id:'sync'}).close();location.reload()});" /> <input type="submit" class="button" value="<?php echo L("delete")?>" /></div>
  45. </form>
  46. </div>
  47. </div>
  48. <div id="pages"><?php echo $queue->pages?></div>
  49. <script type="text/javascript">
  50. <!--
  51. function sync_agin() {
  52. var ids = '';
  53. $("input[type='checkbox'][name='ids[]']:checked").each(function(i,n){ids += ids ? ','+$(n).val() : $(n).val();});
  54. if (ids)window.top.art.dialog({id:'sync',iframe:'?m=release&c=index&a=init&statuses=-1&iniframe=1&ids='+ids, title:'<?php echo L('sync_agin')?>', width:'700', height:'500', lock:true},'', function(){window.top.art.dialog({id:'sync'}).close();location.reload()});
  55. }
  56. //-->
  57. </script>
  58. </body>
  59. </html>