added flags to inlog/logout etc, + added some base translations
This commit is contained in:
parent
6e04a001a7
commit
3aebdc0d40
9 changed files with 65 additions and 12 deletions
|
@ -2,6 +2,8 @@
|
||||||
; Comments start with ';', as in php.ini
|
; Comments start with ';', as in php.ini
|
||||||
|
|
||||||
[home]
|
[home]
|
||||||
|
home_title = "Introduction"
|
||||||
|
home_info = "Welcome to the Ryzom Core - Account Management System"
|
||||||
|
|
||||||
[libuserlist]
|
[libuserlist]
|
||||||
libuserlist_title = "LibDB-Query List"
|
libuserlist_title = "LibDB-Query List"
|
||||||
|
@ -9,6 +11,13 @@ libuserlist_info = "Here you can see the entire list of elements in the LibDB-Qu
|
||||||
libuserlist_sync = "Synchronize"
|
libuserlist_sync = "Synchronize"
|
||||||
shard_online = "The shard seems to be <strong>online</strong>, manually syncing is possible: "
|
shard_online = "The shard seems to be <strong>online</strong>, manually syncing is possible: "
|
||||||
shard_offline = "The shard seems to be <strong>offline</strong>, manually syncing is not possible!"
|
shard_offline = "The shard seems to be <strong>offline</strong>, manually syncing is not possible!"
|
||||||
|
members = "Members"
|
||||||
|
id = "ID"
|
||||||
|
type = "Type"
|
||||||
|
name = "Name"
|
||||||
|
email = "Email"
|
||||||
|
action = "Action"
|
||||||
|
|
||||||
|
|
||||||
[userlist]
|
[userlist]
|
||||||
userlist_info = "welcome to the userlist"
|
userlist_info = "welcome to the userlist"
|
||||||
|
@ -16,6 +25,8 @@ userlist_info = "welcome to the userlist"
|
||||||
[login]
|
[login]
|
||||||
login_info = "Please login with your Username and Password."
|
login_info = "Please login with your Username and Password."
|
||||||
login_error_message = "The filled in username/password were not correct!"
|
login_error_message = "The filled in username/password were not correct!"
|
||||||
|
login_register_message ="<strong>Register</strong>If you dont have an account yet, create one"
|
||||||
|
login_register_message_here = "here"
|
||||||
|
|
||||||
[logout]
|
[logout]
|
||||||
logout_message = "You've been logged out successfully!"
|
logout_message = "You've been logged out successfully!"
|
||||||
|
|
|
@ -2,6 +2,21 @@
|
||||||
; Comments start with ';', as in php.ini
|
; Comments start with ';', as in php.ini
|
||||||
|
|
||||||
[home]
|
[home]
|
||||||
|
home_title = "Presentation"
|
||||||
|
home_info = "Bienvenue sur le Ryzom Core - Account Management System"
|
||||||
|
|
||||||
|
[libuserlist]
|
||||||
|
libuserlist_title = "LibDB-Query Liste"
|
||||||
|
libuserlist_info = "Ici vous pouvez voir la liste complete des elements dans le tableau libdb-Query. Vous pouvez facilement supprimer des elements et appuyant sur 'Synchroniser', vous pouvez commencer le processus de synchronisation manuellement!"
|
||||||
|
libuserlist_sync = "Synchroniser"
|
||||||
|
shard_online = "Le shard semble etre <strong> ligne </strong>, la synchronisation manuellement est possible: "
|
||||||
|
shard_offline = "Le shard semble etre <strong> deconnecte </strong>, la synchronisation manuellement n' est pas possible!"
|
||||||
|
members = "Membres"
|
||||||
|
id = "ID"
|
||||||
|
type = "Categorie"
|
||||||
|
name = "Nom"
|
||||||
|
email = "Email"
|
||||||
|
action = "Action"
|
||||||
|
|
||||||
[userlist]
|
[userlist]
|
||||||
userlist_info = "bienvenue sur le userlist page!"
|
userlist_info = "bienvenue sur le userlist page!"
|
||||||
|
@ -9,6 +24,8 @@ userlist_info = "bienvenue sur le userlist page!"
|
||||||
[login]
|
[login]
|
||||||
login_info = "S'il vous plait vous connecter avec votre nom d'utilisateur et mot de passe."
|
login_info = "S'il vous plait vous connecter avec votre nom d'utilisateur et mot de passe."
|
||||||
login_error_message = "Le remplie nom d'utilisateur / mot de passe ne sont pas correctes!"
|
login_error_message = "Le remplie nom d'utilisateur / mot de passe ne sont pas correctes!"
|
||||||
|
login_register_message ="<strong> Inscrivez-vous </strong> Si vous n'avez pas encore de compte, creez-en un"
|
||||||
|
login_register_message_here = "ici"
|
||||||
|
|
||||||
[logout]
|
[logout]
|
||||||
logout_message = "Vous avez été déconnecté avec succès!"
|
logout_message = "Vous avez été déconnecté avec succès!"
|
||||||
|
|
|
@ -26,3 +26,10 @@
|
||||||
left:290px;
|
left:290px;
|
||||||
top:28px;
|
top:28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flags_no_visible_elements{
|
||||||
|
display: block;
|
||||||
|
position:relative;
|
||||||
|
left:67%;
|
||||||
|
top:210px;
|
||||||
|
}
|
|
@ -14,6 +14,9 @@ function libuserlist(){
|
||||||
global $cfg;
|
global $cfg;
|
||||||
$dbl = new DBLayer($cfg['db']['lib']);
|
$dbl = new DBLayer($cfg['db']['lib']);
|
||||||
$rows = $dbl->executeWithoutParams("SELECT * FROM ams_querycache")->rowCount();
|
$rows = $dbl->executeWithoutParams("SELECT * FROM ams_querycache")->rowCount();
|
||||||
|
|
||||||
|
//the array hat will contain all users
|
||||||
|
$pageResult['liblist'] = Array();
|
||||||
if($rows > 0){
|
if($rows > 0){
|
||||||
//This is the number of results displayed per page
|
//This is the number of results displayed per page
|
||||||
$page_rows = 2;
|
$page_rows = 2;
|
||||||
|
@ -37,7 +40,6 @@ function libuserlist(){
|
||||||
|
|
||||||
//This is where we put the results in a resultArray to be sent to smarty
|
//This is where we put the results in a resultArray to be sent to smarty
|
||||||
|
|
||||||
$pageResult['liblist'] = Array();
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while($row = $data->fetch(PDO::FETCH_ASSOC)){
|
while($row = $data->fetch(PDO::FETCH_ASSOC)){
|
||||||
$decode = json_decode($row['query']);
|
$decode = json_decode($row['query']);
|
||||||
|
|
|
@ -25,3 +25,4 @@ function show_help(help_tip)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#sync").click(function() {alert("Handler for .click() called.");});
|
|
@ -34,7 +34,7 @@
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="box-header well">
|
<div class="box-header well">
|
||||||
<h2><i class="icon-info-sign"></i> Introduction</h2>
|
<h2><i class="icon-info-sign"></i> {$home_title}</h2>
|
||||||
<div class="box-icon">
|
<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-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-setting btn-round"><i class="icon-cog"></i></a>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<p><strong>Welcome to the Ryzom Core - Account Management System</strong></p>
|
<p><strong>{$home_info}</strong></p>
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -139,6 +139,15 @@
|
||||||
<!-- content starts -->
|
<!-- content starts -->
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{if isset($no_visible_elements) and $no_visible_elements eq "TRUE"}
|
||||||
|
|
||||||
|
<div class="flags_no_visible_elements">
|
||||||
|
<img src="img/en.png" onclick="document.cookie='language=en';document.location.reload(true);"/>
|
||||||
|
<img src="img/fr.png" onclick="document.cookie='language=fr';document.location.reload(true);"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/if}
|
||||||
|
|
||||||
{block name=content}{/block}
|
{block name=content}{/block}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,14 @@
|
||||||
<p>{$libuserlist_info}</p>
|
<p>{$libuserlist_info}</p>
|
||||||
{if $shard eq "online"}
|
{if $shard eq "online"}
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<i class="icon-refresh icon-white"></i>{$shard_online}<a href="index.php?page=libuserlist&action=remove&id=haha">{$libuserlist_sync}</a>
|
<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>
|
</div>
|
||||||
{else}
|
{else}
|
||||||
<div class="alert alert-error">
|
<div class="alert alert-error">
|
||||||
|
@ -31,7 +38,7 @@
|
||||||
<div class="row-fluid sortable">
|
<div class="row-fluid sortable">
|
||||||
<div class="box span12">
|
<div class="box span12">
|
||||||
<div class="box-header well" data-original-title>
|
<div class="box-header well" data-original-title>
|
||||||
<h2><i class="icon-user"></i> Members</h2>
|
<h2><i class="icon-user"></i> {$members}</h2>
|
||||||
<div class="box-icon">
|
<div class="box-icon">
|
||||||
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></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-minimize btn-round"><i class="icon-chevron-up"></i></a>
|
||||||
|
@ -42,11 +49,11 @@
|
||||||
<table class="table table-striped table-bordered bootstrap-datatable datatable">
|
<table class="table table-striped table-bordered bootstrap-datatable datatable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>ID</th>
|
<th>{$id}</th>
|
||||||
<th>Type</th>
|
<th>{$type}</th>
|
||||||
<th>Name</th>
|
<th>{$name}</th>
|
||||||
<th>Email</th>
|
<th>{$email}</th>
|
||||||
<th>Action</th>
|
<th>{$action}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
|
@ -43,8 +43,7 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<strong>Register</strong>
|
{$login_register_message} <a href="?page=register">{$login_register_message_here}</a>!
|
||||||
If you dont have an account yet, create one <a href="?page=register">here</a>!
|
|
||||||
</div>
|
</div>
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue