formver-list.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc//fc-header.php"; ?>
  2. <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc//fc-leftWrap.php"; ?>
  3. <div class="warp-content">
  4. <div class="container">
  5. <div class="page-header">
  6. <a href="<?php echo $data['rootUrl']; ?>addversion/<?php echo $data['reportid']; ?>" class="btn btn-success pull-right">添加新版本</a>
  7. <h2 id="basis-info">报表历史版本</h2>
  8. </div>
  9. <table class="table table-hover">
  10. <thead>
  11. <tr>
  12. <th>版本时间</th>
  13. <th>最新编辑</th>
  14. <th>版本内容</th>
  15. <th>操作</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <?php if( isset($data['versionlist']) && !empty($data['versionlist']) ): ?>
  20. <?php foreach($data['versionlist'] as $k1=>$v1): ?>
  21. <tr>
  22. <td><?php echo formatDate($v1['addtime']); ?><?php if( $v1['status'] == 1 ): ?>(草稿)<?php endif; ?></td>
  23. <td><?php echo formatDate($v1['edittime']); ?></td>
  24. <td><?php echo $v1['content']; ?></td>
  25. <td><a class="btn btn-xs" href="<?php echo $data['rootUrl']; ?>version/<?php echo $v1['verid']; ?>">编辑</a>&nbsp;<a href="#delver" class="btn btn-xs text-danger" data-toggle="modal" onclick="delver('<?php echo $v1['vername']; ?>','<?php echo $v1['verid']; ?>');">删除</a></td>
  26. </tr>
  27. <?php endforeach; ?>
  28. <?php endif; ?>
  29. </tbody>
  30. </table>
  31. </div>
  32. </div>
  33. <!--弹框-删除版本-->
  34. <div class="modal fade " tabindex="-1" role="dialog" aria-hidden="true" id="delver">
  35. <div class="modal-dialog ">
  36. <div class="modal-content">
  37. <div class="modal-header">
  38. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
  39. <h4 class="modal-title" >删除版本</h4>
  40. </div>
  41. <div class="modal-body">
  42. <h3 class="text-center" id="delvername">是否删除版本 <b></b> ?</h3>
  43. </div>
  44. <div class="modal-footer">
  45. <a type="button" class="btn btn-danger" href="#" id="delverbtn">确认删除</a>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <!--弹框-结束-->
  51. <script>
  52. function delver(vername,id){
  53. $('#delvername b').text(vername);
  54. $('#delverbtn').attr('href', '/deleteversion/'+id);
  55. }
  56. </script>
  57. </body>
  58. </html>