Files
BESCMS/dayrui/Fcms/View/check_index.html
T

56 lines
2.0 KiB
HTML

{template "header.html"}
<div class="right-card-box">
<div class="table-scrollable">
<table class="table table-fc-upload table-striped table-bordered table-hover table-checkable dataTable">
<thead>
<tr class="heading">
<th width="55"> </th>
<th width="300"> {dr_lang('检查项目')} </th>
<th> {dr_lang('检查结果')} </th>
</tr>
</thead>
<tbody>
{php $key=1;}
{loop $list $id $t}
<tr>
<td>
<span class="badge badge-success"> {$key} </span>
{php $key++;}
</td>
<td>{dr_lang($t)}</td>
<td id="dr_{$id}_result">
<img style='height:17px' src='{THEME_PATH}assets/images/loading-0.gif'>
</td>
</tr>
<script>
$(function () {
$.ajax({
type: "GET",
dataType: "json",
url: "{dr_url('check/do_index')}&id={$id}",
success: function (json) {
$('#dr_{$id}_result').html(json.msg);
if (json.code == 0) {
$('#dr_{$id}_result').attr('style', 'color:red');
} else {
$('#dr_{$id}_result').attr('style', 'color:green');
}
},
error: function(HttpRequest, ajaxOptions, thrownError) {
$('#dr_{$id}_result').attr('style', 'color:red');
$('#dr_{$id}_result').html(HttpRequest.responseText);
}
});
});
</script>
{/loop}
</tbody>
</table>
</div>
</div>
{template "footer.html"}