| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc//fc-header.php"; ?>
- <?php include Doo::conf()->SITE_PATH . Doo::conf()->PROTECTED_FOLDER . "viewc//fc-leftWrap.php"; ?>
- <div class="warp-content">
- <div class="container">
- <div class="page-header">
- <a href="<?php echo $data['rootUrl']; ?>addversion/<?php echo $data['reportid']; ?>" class="btn btn-success pull-right">添加新版本</a>
- <h2 id="basis-info">报表历史版本</h2>
- </div>
- <table class="table table-hover">
- <thead>
- <tr>
- <th>版本时间</th>
- <th>最新编辑</th>
- <th>版本内容</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if( isset($data['versionlist']) && !empty($data['versionlist']) ): ?>
- <?php foreach($data['versionlist'] as $k1=>$v1): ?>
- <tr>
- <td><?php echo formatDate($v1['addtime']); ?><?php if( $v1['status'] == 1 ): ?>(草稿)<?php endif; ?></td>
- <td><?php echo formatDate($v1['edittime']); ?></td>
- <td><?php echo $v1['content']; ?></td>
- <td><a class="btn btn-xs" href="<?php echo $data['rootUrl']; ?>version/<?php echo $v1['verid']; ?>">编辑</a> <a href="#delver" class="btn btn-xs text-danger" data-toggle="modal" onclick="delver('<?php echo $v1['vername']; ?>','<?php echo $v1['verid']; ?>');">删除</a></td>
- </tr>
- <?php endforeach; ?>
- <?php endif; ?>
- </tbody>
- </table>
- </div>
- </div>
- <!--弹框-删除版本-->
- <div class="modal fade " tabindex="-1" role="dialog" aria-hidden="true" id="delver">
- <div class="modal-dialog ">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title" >删除版本</h4>
- </div>
- <div class="modal-body">
- <h3 class="text-center" id="delvername">是否删除版本 <b></b> ?</h3>
- </div>
- <div class="modal-footer">
- <a type="button" class="btn btn-danger" href="#" id="delverbtn">确认删除</a>
- </div>
- </div>
- </div>
- </div>
- <!--弹框-结束-->
- <script>
- function delver(vername,id){
- $('#delvername b').text(vername);
- $('#delverbtn').attr('href', '/deleteversion/'+id);
- }
- </script>
- </body>
- </html>
|