added flags to inlog/logout etc, + added some base translations

This commit is contained in:
Quitta 2013-06-29 20:46:38 +02:00
parent 6e04a001a7
commit 3aebdc0d40
9 changed files with 65 additions and 12 deletions

View file

@ -2,6 +2,8 @@
; Comments start with ';', as in php.ini
[home]
home_title = "Introduction"
home_info = "Welcome to the Ryzom Core - Account Management System"
[libuserlist]
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"
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!"
members = "Members"
id = "ID"
type = "Type"
name = "Name"
email = "Email"
action = "Action"
[userlist]
userlist_info = "welcome to the userlist"
@ -16,6 +25,8 @@ userlist_info = "welcome to the userlist"
[login]
login_info = "Please login with your Username and Password."
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_message = "You've been logged out successfully!"

View file

@ -2,6 +2,21 @@
; Comments start with ';', as in php.ini
[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_info = "bienvenue sur le userlist page!"
@ -9,6 +24,8 @@ userlist_info = "bienvenue sur le userlist page!"
[login]
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_register_message ="<strong> Inscrivez-vous </strong> Si vous n'avez pas encore de compte, creez-en un"
login_register_message_here = "ici"
[logout]
logout_message = "Vous avez été déconnecté avec succès!"

View file

@ -25,4 +25,11 @@
position:relative;
left:290px;
top:28px;
}
.flags_no_visible_elements{
display: block;
position:relative;
left:67%;
top:210px;
}

View file

@ -14,6 +14,9 @@ function libuserlist(){
global $cfg;
$dbl = new DBLayer($cfg['db']['lib']);
$rows = $dbl->executeWithoutParams("SELECT * FROM ams_querycache")->rowCount();
//the array hat will contain all users
$pageResult['liblist'] = Array();
if($rows > 0){
//This is the number of results displayed per page
$page_rows = 2;
@ -37,7 +40,6 @@ function libuserlist(){
//This is where we put the results in a resultArray to be sent to smarty
$pageResult['liblist'] = Array();
$i = 0;
while($row = $data->fetch(PDO::FETCH_ASSOC)){
$decode = json_decode($row['query']);

View file

@ -25,3 +25,4 @@ function show_help(help_tip)
}
$("#sync").click(function() {alert("Handler for .click() called.");});

View file

@ -34,7 +34,7 @@
<div class="row-fluid">
<div class="box span12">
<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">
<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>
@ -43,7 +43,7 @@
</div>
</div>
<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>

View file

@ -138,6 +138,15 @@
<div id="content" class="span10">
<!-- content starts -->
{/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}

View file

@ -16,7 +16,14 @@
<p>{$libuserlist_info}</p>
{if $shard eq "online"}
<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>
{else}
<div class="alert alert-error">
@ -31,7 +38,7 @@
<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>
<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>
@ -42,11 +49,11 @@
<table class="table table-striped table-bordered bootstrap-datatable datatable">
<thead>
<tr>
<th>ID</th>
<th>Type</th>
<th>Name</th>
<th>Email</th>
<th>Action</th>
<th>{$id}</th>
<th>{$type}</th>
<th>{$name}</th>
<th>{$email}</th>
<th>{$action}</th>
</tr>
</thead>
<tbody>

View file

@ -43,8 +43,7 @@
</div>
{/if}
<div class="alert alert-info">
<strong>Register</strong>
If you dont have an account yet, create one <a href="?page=register">here</a>!
{$login_register_message} <a href="?page=register">{$login_register_message_here}</a>!
</div>
</div><!--/span-->
</div>