khanat-opennel-code/code/web/public_php/ams/templates/syncing.tpl

76 lines
2 KiB
Smarty
Raw Normal View History

{block name=content}
<div class="row-fluid">
2014-09-03 10:22:14 +00:00
<div class="box col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<span class="icon-info-sign"></span>{$syncing_title}
</div>
<div class="panel-body">
<center>
<p>{$syncing_info}</p>
{if $shard eq "online"}
<div class="alert alert-success">
<span class="icon-refresh icon-white"></span>{$shard_online}<a href="#" id="sync" onclick="sync()">{$syncing_sync}</a>
<script>
function sync(){
xmlhttp=new XMLHttpRequest();
2014-09-05 09:10:09 +00:00
xmlhttp.open("POST","cron/sync_cron.php",true);
xmlhttp.send();
}
</script>
</div>
{else}
<div class="alert alert-error">
<strong><span class="icon-refresh icon-white"></span></strong> {$shard_offline}
</div>
{/if}
</center>
<div class="clearfix"></div>
</div>
2014-09-03 10:22:14 +00:00
</div>
</div>
</div>
<div class="row-fluid sortable">
2014-09-03 10:22:14 +00:00
<div class="box col-md-12">
<div class="panel panel-default">
<div class="panel-heading" data-original-title>
<span class="icon-user"></span> {$members}
</div>
<div class="panel-body">
2013-08-05 03:27:19 +00:00
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>{$id}</th>
<th>{$type}</th>
</tr>
</thead>
<tbody>
{foreach from=$liblist item=element}
<tr>
<td>{$element.id}</td>
<td class="center">{$element.type}</td>
</tr>
{/foreach}
</tbody>
2013-08-05 03:27:19 +00:00
</table>
<div style="width: 300px; margin:0px auto;">
<ul class="pagination">
<li><a href="index.php?page=syncing&pagenum=1">&laquo;</a></li>
2013-08-05 03:27:19 +00:00
{foreach from=$links item=link}
<li {if $link == $currentPage}class="active"{/if}><a href="index.php?page=syncing&pagenum={$link}">{$link}</a></li>
2013-08-05 03:27:19 +00:00
{/foreach}
<li><a href="index.php?page=syncing&pagenum={$lastPage}">&raquo;</a></li>
2013-08-05 03:27:19 +00:00
</ul>
</div>
</div>
2014-09-03 10:22:14 +00:00
</div>
</div><!--/span-->
</div><!--/row-->
{/block}