renamed libuserlist to syncing, which is more appropriate, also made pagination work! so Now I can start to use it ingame too!
--HG-- branch : quitta-gsoc-2013hg/feature/sse2
parent
7e4a24bac8
commit
5b4c13f8d3
@ -1,73 +0,0 @@
|
|||||||
{block name=content}
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="box span12">
|
|
||||||
<div class="box-header well">
|
|
||||||
<h2><i class="icon-info-sign"></i>{$libuserlist_title}</h2>
|
|
||||||
<div class="box-icon">
|
|
||||||
<a href="#" class="btn btn-round" onclick="javascript:show_help('intro');return false;"><i class="icon-info-sign"></i></a>
|
|
||||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
|
||||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
|
||||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="box-content">
|
|
||||||
<center>
|
|
||||||
<p>{$libuserlist_info}</p>
|
|
||||||
{if $shard eq "online"}
|
|
||||||
<div class="alert alert-success">
|
|
||||||
<i class="icon-refresh icon-white"></i>{$shard_online}<a href="#" id="sync" onclick="sync()">{$libuserlist_sync}</a>
|
|
||||||
<script>
|
|
||||||
function sync(){
|
|
||||||
xmlhttp=new XMLHttpRequest();
|
|
||||||
xmlhttp.open("POST","../../../ams_lib/cron/sync_cron.php",true);
|
|
||||||
xmlhttp.send();
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</div>
|
|
||||||
{else}
|
|
||||||
<div class="alert alert-error">
|
|
||||||
<strong><i class="icon-refresh icon-white"></i></strong> {$shard_offline}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
</center>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row-fluid sortable">
|
|
||||||
<div class="box span12">
|
|
||||||
<div class="box-header well" data-original-title>
|
|
||||||
<h2><i class="icon-user"></i> {$members}</h2>
|
|
||||||
<div class="box-icon">
|
|
||||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
|
|
||||||
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
|
||||||
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="box-content">
|
|
||||||
<table class="table table-striped table-bordered bootstrap-datatable datatable">
|
|
||||||
<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>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div><!--/span-->
|
|
||||||
|
|
||||||
</div><!--/row-->
|
|
||||||
{/block}
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
function libuserlist(){
|
function syncing(){
|
||||||
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){
|
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){
|
||||||
|
|
||||||
$pagination = new Pagination("SELECT * FROM ams_querycache","lib",2,"Querycache");
|
$pagination = new Pagination("SELECT * FROM ams_querycache","lib",5,"Querycache");
|
||||||
$pageResult['liblist'] = Gui_Elements::make_table($pagination->getElements() , Array("getSID","getType"), Array("id","type"));
|
$pageResult['liblist'] = Gui_Elements::make_table($pagination->getElements() , Array("getSID","getType"), Array("id","type"));
|
||||||
$pageResult['links'] = $pagination->getLinks(5);
|
$pageResult['links'] = $pagination->getLinks(5);
|
||||||
$pageResult['lastPage'] = $pagination->getLast();
|
$pageResult['lastPage'] = $pagination->getLast();
|
Loading…
Reference in New Issue