53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
<include file="Inc:head"/>
|
|
<div class="container-fluid" style="min-height:300px;">
|
|
|
|
|
|
<div style="text-align:right; float:right"></div>
|
|
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<div class="widget-box">
|
|
<div class="widget-content nopadding">
|
|
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>修改时间</th>
|
|
<th>修改者</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<foreach name="data" item="v" >
|
|
<tr>
|
|
<td style="text-align: center;">{:date("Y-m-d H:i:s",$v[addtime])}</td>
|
|
<td style="text-align: center;">{$v.username}</td>
|
|
<td class="center">
|
|
<a href="{:U('differ',array('page_id'=>$v[page_id],'history_id'=>$v[id]))}" target="_blank" class="btn btn-primary btn-mini">比差异</a>
|
|
<button class="btn btn-danger btn-mini" onclick="go_history(this)" content="{$v.content}">还原</button>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<include file="Inc/foot"/>
|
|
<script language="javascript">
|
|
function go_history(obj){
|
|
if(confirm("您确定要还原吗?")==false){
|
|
return;
|
|
}
|
|
var content=$(obj).attr("content");
|
|
parent.$('#template_editor').val(content);
|
|
parent.updateCode();
|
|
parent.layer.closeAll();
|
|
}
|
|
</script> |