Errores solucionados

This commit is contained in:
Juan Ferrer Toribio 2015-12-11 00:24:14 +01:00
parent 30e44654b0
commit b043918921
38 changed files with 452 additions and 328 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.213-deb8) stable; urgency=low hedera-web (1.304-deb8) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -0,0 +1,52 @@
Vn.Connections = new Class
({
Extends: Vn.Form
,_intervalId: null
,activate: function ()
{
this._intervalId = setInterval (this.onRefreshClick.bind (this), 60000);
}
,deactivate: function ()
{
clearTimeout (this._intervalId);
}
,onRefreshClick: function ()
{
this.$('sessions').refresh ();
}
,onVisitsClick: function ()
{
this.hash.set ({'form': 'admin/visits'});
}
,onAccessLogClick: function (button, form)
{
this.hash.set ({
'form': 'admin/access-log'
,'user': form.get ('user_id')
});
}
,onChangeUserClick: function (button, form)
{
this.gui.supplantUser (form.get ('user_id'),
this.onUserSupplant.bind (this));
}
,onUserSupplant: function (userName)
{
this.hash.set ({'form': 'ecomerce/orders'});
}
,sessionsFunc: function ()
{
return 1;
}
});

View File

@ -0,0 +1,41 @@
.connections
{
padding: 1em;
}
.connections .box
{
max-width: 25em;
margin: 0 auto;
}
.connections .form
{
padding: 1.5em;
font-size: 1.4em;
text-align: right;
}
/* List */
.connections .list
{
margin-top: 1em;
}
.connections .item
{
display: block;
padding: 1em;
border-bottom: 1px solid #DDD;
}
.connections .item > button
{
float: right;
}
.connections .item > p
{
margin: .1em 0;
}
.connections .item > p.important
{
font-size: 1.2em;
}

View File

@ -0,0 +1,76 @@
<vn>
<div id="title">
<h1><t>Connections</t></h1>
</div>
<div id="actions">
<htk-button
image="image/dark/refresh.svg"
tip="_Refresh"
on-click="onRefreshClick"
showText="true"/>
<htk-button
image="image/dark/graph.svg"
tip="_Visits"
on-click="onVisitsClick"
showText="true"/>
</div>
<div id="form" class="connections">
<div class="box">
<div class="form">
<htk-text>
<db-calc-sum
property="param"
model="sessions"
func="sessionsFunc"/>
</htk-text>
<t>connections</t>
</div>
</div>
<div class="list box">
<htk-repeater form-id="iter">
<db-model property="model" id="sessions">
<custom>
SELECT s.id, e.user_id, c.Cliente, e.date_time login, is_new,
s.date_time last_activity, a.platform, a.browser, a.version
FROM user_session s
JOIN visit_user e ON s.visit_user_id = e.id
JOIN visit_access c ON e.access_id = c.id
JOIN visit_agent a ON c.agent_id = a.id
JOIN visit v ON a.visit_id = v.id
JOIN account.user u ON e.user_id = u.id
JOIN vn2008.Clientes c ON e.user_id = c.Id_cliente
ORDER BY last_activity DESC
</custom>
</db-model>
<custom>
<div class="item">
<htk-button
form="iter"
column="id"
tip="_Supplant user"
image="image/incognito.svg"
on-click="onChangeUserClick"/>
<htk-button
form="iter"
column="id"
tip="_Access log"
image="image/gnome.svg"
on-click="onAccessLogClick"/>
<p class="important">
<htk-text form="iter" column="Cliente"/>
</p>
<p>
<htk-text form="iter" column="login" format="%a, %T"/> -
<htk-text form="iter" column="last_activity" format="%T"/>
</p>
<p>
<htk-text form="iter" column="platform"/>,
<htk-text form="iter" column="browser"/>
<htk-text form="iter" column="version"/>
</p>
</div>
</custom>
</htk-repeater>
</div>
</div>
</vn>

View File

@ -1,30 +1,46 @@
.visits .visits
{ {
padding: 1em; padding: 1em;
min-width: 50em;
} }
.visits .box .visits .box
{ {
max-width: 60em; max-width: 25em;
margin: 0 auto; margin: 0 auto;
} }
.visits .conns-form .visits .form
{
padding: 1.5em;
max-width: 20em;
}
.visits .summary
{
margin-top: 1em;
}
.visits .summary p
{ {
padding: 1.5em; padding: 1.5em;
font-size: 1.4em; font-size: 1.4em;
text-align: right; text-align: right;
} }
.visits .form
/* List */
.visits .list
{ {
padding: 2em; margin-top: 1em;
max-width: 25em; }
} .visits .item
{
display: block;
/* Steps */ padding: 1em;
border-bottom: 1px solid #DDD;
.visits .step }
{ .visits .item > p
display: none; {
margin: .1em 0;
}
.visits .item > p.important
{
font-size: 1.2em;
} }

View File

@ -1,6 +1,6 @@
<vn> <vn>
<div id="title"> <div id="title">
<h1><t>VisitsManagement</t></h1> <h1><t>Visits</t></h1>
</div> </div>
<div id="actions"> <div id="actions">
<htk-button <htk-button
@ -10,118 +10,88 @@
showText="true"/> showText="true"/>
<htk-button <htk-button
image="image/dark/user-info.svg" image="image/dark/user-info.svg"
tip="_ActiveSessions" tip="_Connections"
on-click="onSessionsClick" on-click="onSessionsClick"
showText="true"/> showText="true"/>
<htk-button
image="image/dark/graph.svg"
tip="_VisitsQuery"
on-click="onVisitsClick"
showText="true"/>
</div> </div>
<div id="form" class="visits"> <div id="form" class="visits">
<div class="box"> <div class="box">
<div class="step" id="sessions-step"> <div class="form">
<div class="conns-form"> <div class="form-group">
<htk-text> <label><t>From</t></label>
<db-calc-sum <htk-date-chooser>
property="param" <vn-param property="param" id="from"/>
model="sessions" </htk-date-chooser>
id="num-sessions"/>
</htk-text>
<t>active sessions</t>
</div> </div>
<div> <div class="form-group">
<htk-grid> <label><t>To</t></label>
<db-model property="model" id="sessions"> <htk-date-chooser>
<custom> <vn-param property="param" id="to"/>
SELECT s.id, c.Cliente, e.date_time login, is_new, </htk-date-chooser>
s.date_time last_activity, a.platform, a.browser, a.version
FROM user_session s
JOIN visit_user e ON s.visit_user_id = e.id
JOIN visit_access c ON e.access_id = c.id
JOIN visit_agent a ON c.agent_id = a.id
JOIN visit v ON a.visit_id = v.id
JOIN account.user u ON e.user_id = u.id
JOIN vn2008.Clientes c ON e.user_id = c.Id_cliente
ORDER BY last_activity DESC
</custom>
</db-model>
<htk-column-text title="_User" column="Cliente"/>
<htk-column-date title="_Login" column="login" format="%a, %T"/>
<htk-column-date title="_LastActivity" column="last_activity" format="%T"/>
<htk-column-text title="_SO" column="platform"/>
<htk-column-text title="_Browser" column="browser"/>
<htk-column-text title="_Version" column="version"/>
</htk-grid>
</div>
</div>
<div class="step" id="visits-step">
<div class="form">
<div class="form-group">
<label><t>FromDate:</t></label>
<htk-date-chooser>
<vn-param property="param" id="date-from"/>
</htk-date-chooser>
</div>
<div class="form-group">
<label><t>ToDate:</t></label>
<htk-date-chooser>
<vn-param property="param" id="date-to"/>
</htk-date-chooser>
</div>
<div class="form-group">
<t>VisitsTotal:</t>
<htk-text>
<db-calc-sum
property="param"
model="visits"
column-name="visits"/>
</htk-text>
</div>
<div class="form-group">
<t>NewVisitsTotal:</t>
<htk-text>
<db-calc-sum
property="param"
model="visits"
column-name="new_visits"/>
</htk-text>
</div>
</div>
<div>
<htk-grid empty-message="SelectDateInterval">
<db-model property="model" id="visits">
<custom>
SELECT browser
,MIN(CAST(version AS DECIMAL(4,1))) min_version
,MAX(CAST(version AS DECIMAL(4,1))) max_version
,MAX(e.date_time) last_visit
,COUNT(DISTINCT c.id) visits
,SUM(is_new) new_visits
FROM visit_user e
JOIN visit_access c ON e.access_id = c.id
JOIN visit_agent a ON c.agent_id = a.id
JOIN visit v ON a.visit_id = v.id
WHERE e.date_time BETWEEN TIMESTAMP(#from,'00:00:00') AND TIMESTAMP(#to,'23:59:59')
GROUP BY browser ORDER BY visits DESC
</custom>
<sql-batch property="batch">
<custom>
<item name="from" param="date-from"/>
<item name="to" param="date-to"/>
</custom>
</sql-batch>
</db-model>
<htk-column-text title="_Browser" column="browser"/>
<htk-column-spin title="_MinVersion" column="min_version" digits="1"/>
<htk-column-spin title="_MaxVersion" column="max_version" digits="1"/>
<htk-column-date title="_LastVisit" column="last_visit" format="_%a, %e %b %Y at %T"/>
<htk-column-spin title="_Visits" column="visits"/>
<htk-column-spin title="_NewVisits" column="new_visits"/>
</htk-grid>
</div> </div>
</div> </div>
</div> </div>
<div class="summary box">
<p>
<htk-text>
<db-calc-sum
property="param"
model="visits"
column-name="visits"/>
</htk-text>
<t>visits</t>,
<htk-text>
<db-calc-sum
property="param"
model="visits"
column-name="new_visits"/>
</htk-text>
<t>news</t>
</p>
</div>
<div class="list box">
<htk-repeater form-id="iter" empty-message="_Select date interval">
<db-model property="model" id="visits">
<custom>
SELECT browser
,MIN(CAST(version AS DECIMAL(4,1))) min_version
,MAX(CAST(version AS DECIMAL(4,1))) max_version
,MAX(e.date_time) last_visit
,COUNT(DISTINCT c.id) visits
,SUM(is_new) new_visits
FROM visit_user e
JOIN visit_access c ON e.access_id = c.id
JOIN visit_agent a ON c.agent_id = a.id
JOIN visit v ON a.visit_id = v.id
WHERE e.date_time BETWEEN TIMESTAMP(#from,'00:00:00') AND TIMESTAMP(#to,'23:59:59')
GROUP BY browser ORDER BY visits DESC
</custom>
<sql-batch property="batch">
<custom>
<item name="from" param="from"/>
<item name="to" param="to"/>
</custom>
</sql-batch>
</db-model>
<custom>
<div class="item">
<p class="important">
<htk-text form="iter" column="browser"/>
<htk-text form="iter" column="min_version"/> -
<htk-text form="iter" column="max_version"/>
</p>
<p>
<htk-text form="iter" column="visits"/>
<t>visits</t>,
<htk-text form="iter" column="new_visits"/>
<t>news</t>
</p>
<p>
<htk-text form="iter" column="last_visit" format="_%a, %e %b %Y at %T"/>
</p>
</div>
</custom>
</htk-repeater>
</div>
</div> </div>
</vn> </vn>

View File

@ -5,40 +5,18 @@ Vn.Visits = new Class
,activate: function () ,activate: function ()
{ {
this.$('date-to').value = new Date (); this.$('from').value = new Date ();
this.$('num-sessions').func = this.sessionsFunc; this.$('to').value = new Date ();
this.onSessionsClick ();
}
,showStep: function (stepId)
{
if (this.currentStep)
this.currentStep.style.display = 'none';
this.currentStep = this.$(stepId);
this.currentStep.style.display = 'inline';
} }
,onRefreshClick: function () ,onRefreshClick: function ()
{ {
this.model.refresh (); this.$('visits').refresh ();
} }
,onSessionsClick: function () ,onSessionsClick: function ()
{ {
this.showStep ('sessions-step'); this.hash.set ({'form': 'admin/connections'});
this.model = this.$('sessions');
}
,onVisitsClick: function ()
{
this.showStep ('visits-step');
this.model = this.$('visits');
}
,sessionsFunc: function ()
{
return 1;
} }
}); });

View File

@ -35,7 +35,7 @@ Vn.Catalog = new Class
this.popup = new Htk.Popup (); this.popup = new Htk.Popup ();
this.popup.setChildNode (this.$('lots-popup')); this.popup.setChildNode (this.$('lots-popup'));
this.$('items-model').setInfo ('a', 'Articles', 'vn2008', ['Id_Article']); this.$('items-model').setInfo ('a', 'Articles', 'vn2008', ['item_id']);
if (Vn.Cookie.check ('hedera_view')) if (Vn.Cookie.check ('hedera_view'))
this.setView (Vn.Cookie.getInt ('hedera_view')); this.setView (Vn.Cookie.getInt ('hedera_view'));
@ -45,6 +45,7 @@ Vn.Catalog = new Class
,deactivate: function () ,deactivate: function ()
{ {
this.hideMenu ();
this.gui.$('top-bar').style.backgroundColor = ''; this.gui.$('top-bar').style.backgroundColor = '';
Vn.Node.remove (this.$('right-panel')); Vn.Node.remove (this.$('right-panel'));
} }

View File

@ -239,7 +239,7 @@
<htk-text form="basket" column="agency"/> <htk-text form="basket" column="agency"/>
</p> </p>
<button class="thin" on-click="onConfigureClick"> <button class="thin" on-click="onConfigureClick">
<t>Configure</t> <t>Change</t>
</button> </button>
</div> </div>
<div class="section filters"> <div class="section filters">

View File

@ -1237,14 +1237,28 @@ Db.Model.implement
for (var j = 0; j < tableInfo.pks.length; j++) for (var j = 0; j < tableInfo.pks.length; j++)
{ {
var colIndex = this.getColumnIndex (tableInfo.pks[j]); var colIndex = this.getColumnIndex (tableInfo.pks[j]);
table.pks.push (colIndex);
if (colIndex !== -1)
table.pks.push (colIndex);
else
console.warn ('Db.Model: Can\'t repair primary key: `%s`.`%s`'
,tableInfo.orgname
,tableInfo.pks[j]
);
} }
} }
if (tableInfo.ai) if (tableInfo.ai)
{ {
var colIndex = this.getColumnIndex (tableInfo.ai); var colIndex = this.getColumnIndex (tableInfo.ai);
this.columns[colIndex].flags |= Db.Conn.Flag.AI;
if (colIndex !== -1)
this.columns[colIndex].flags |= Db.Conn.Flag.AI;
else
console.warn ('Db.Model: Can\'t repair autoincrement column: `%s`.`%s`'
,tableInfo.orgname
,tableInfo.ai
);
} }
} }
} }

View File

@ -69,7 +69,7 @@ Vn.App = new Class
{ {
this._guestLogged = true; this._guestLogged = true;
Vn.Cookie.set ('hedera_guest', true); Vn.Cookie.set ('hedera_guest', true);
this._showGui (); this._onLogin ();
} }
} }
@ -81,17 +81,13 @@ Vn.App = new Class
this.run (); this.run ();
} }
else else
this._showGui (); this._onLogin ();
} }
,_onLogin: function () ,_onLogin: function ()
{ {
this._freeLogin (); this._freeLogin ();
this._showGui ();
}
,_showGui: function ()
{
var gui = this._gui = new Vn.Gui ({conn: this._conn}); var gui = this._gui = new Vn.Gui ({conn: this._conn});
gui.on ('logout', this._onLogout, this); gui.on ('logout', this._onLogout, this);
gui.show (); gui.show ();

View File

@ -22,7 +22,10 @@ Vn.Gui = new Class
+'SELECT production_domain, test_domain FROM config;' +'SELECT production_domain, test_domain FROM config;'
+'SELECT name FROM customer_user;' +'SELECT name FROM customer_user;'
+'CALL form_list ();'; +'CALL form_list ();';
this.conn.execQuery (sql, this.onMainQueryDone.bind (this)); x.execQuery (sql, this.onMainQueryDone.bind (this));
if (Vn.Cookie.check ('hedera_supplant'))
this.supplantUser (Vn.Cookie.get ('hedera_supplant'));
} }
,get: function () ,get: function ()
{ {
@ -70,9 +73,6 @@ Vn.Gui = new Class
Htk.Toast.showWarning (_('By using this site you accept cookies')); Htk.Toast.showWarning (_('By using this site you accept cookies'));
} }
if (Vn.Cookie.check ('hedera_supplant'))
this.supplantUser (Vn.Cookie.get ('hedera_supplant'));
this.parent (props); this.parent (props);
} }
@ -84,12 +84,13 @@ Vn.Gui = new Class
,hide: function () ,hide: function ()
{ {
this.closeForm (); this.closeForm ();
this.hideMenu ();
Vn.Node.remove (this.node); Vn.Node.remove (this.node);
} }
,onLogoutClick: function () ,onLogoutClick: function ()
{ {
this.conn.close (this.onConnClose.bind (this)); this._conn.close (this.onConnClose.bind (this));
} }
,onConnClose: function () ,onConnClose: function ()
@ -500,7 +501,7 @@ Vn.Gui = new Class
var query = 'UPDATE user_session_view SET user_id = #user;'+ var query = 'UPDATE user_session_view SET user_id = #user;'+
'SELECT Cliente FROM vn2008.Clientes WHERE Id_cliente = #user'; 'SELECT Cliente FROM vn2008.Clientes WHERE Id_cliente = #user';
this.conn.execQuery (query, this._conn.execQuery (query,
this._onUserSupplant.bind (this, userId, callback), batch); this._onUserSupplant.bind (this, userId, callback), batch);
} }
@ -531,7 +532,7 @@ Vn.Gui = new Class
,onSupplantExitClick: function () ,onSupplantExitClick: function ()
{ {
var query = 'UPDATE user_session_view SET user_id = account.user_get_id ()' var query = 'UPDATE user_session_view SET user_id = account.user_get_id ()'
this.conn.execQuery (query, this.supplantExit.bind (this)); this._conn.execQuery (query, this.supplantExit.bind (this));
} }
,supplantExit: function () ,supplantExit: function ()

View File

@ -3,7 +3,11 @@
@media screen @media screen
{ {
body { font-size: 12pt; } body { font-size: 11pt; }
}
@media (min-resolution: 95dpi) and (max-resolution: 119dpi)
{
body { font-size: 13pt; }
} }
@media (min-resolution: 120dpi) and (orientation: portrait) @media (min-resolution: 120dpi) and (orientation: portrait)
{ {

View File

@ -0,0 +1,8 @@
{
"Connections": "Connexions"
,"Refresh": "Actualitzar"
,"Visits": "Visites"
,"connections": "connexions"
}

View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visites" "Visits": "Visites"
,"VisitsManagement": "Gestió de visites"
,"ActiveSessions": "Usuaris conectats"
,"VisitsQuery": "Consulta de visites"
,"Refresh": "Actualitzar" ,"Refresh": "Actualitzar"
,"Connections": "Connexions"
,"ActiveSessions:": "Usuaris conectats:" ,"From": "Desde"
,"NewVisitsTotal:": "Noves visites:" ,"To": "Fins"
,"Select date interval": "Selecciona un interval de dates"
,"SessionNumber": "N sessió" ,"visits": "visites"
,"User": "Usuari" ,"news": "noves"
,"Login": "Hora d'accés" ,"%a, %e %b %Y at %T": "%a, %e %b %Y a les %T"
,"LastActivity": "Última activitat"
,"SO": "Sistema Operatiu"
,"Version": "Versió"
,"NewVisit": "Nova visita"
,"SelectDateInterval": "Selecciona un intèrval de dates"
,"FromDate:": "Des de el dia:"
,"ToDate:": "Fins el dia:"
,"VisitsTotal:": "Total visites:"
,"Browser": "Navegador"
,"MinVersion": "Versió mínima"
,"MaxVersion": "Versió màxima"
,"LastVisit": "Última visita"
,"NewVisits": "Noves visites"
,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T"
} }

View File

@ -11,8 +11,11 @@
,"StartOrder": "Començar comanda" ,"StartOrder": "Començar comanda"
,"ShoppingBasket": "Cistella de la compra" ,"ShoppingBasket": "Cistella de la compra"
,"Agency": "Agència"
,"Warehouse": "Magatzem"
,"Search": "Cercar" ,"Search": "Cercar"
,"Configure": "Configurar" ,"Change": "Cambiar"
,"Order by": "Ordenar" ,"Order by": "Ordenar"
,"Available": "Displonible" ,"Available": "Displonible"
,"Size": "Mesura" ,"Size": "Mesura"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "Administració" ,"Administration": "Administració"
,"Control panel": "Panell de control" ,"Control panel": "Panell de control"
,"Users": "Usuaris" ,"Users": "Usuaris"
,"Connections": "Conexions"
,"Visits": "Visites" ,"Visits": "Visites"
,"News": "Noticies" ,"News": "Noticies"
,"Photos": "Fotos" ,"Photos": "Fotos"
,"Reports": "Informes"
,"Shelves": "Estanterías" ,"Shelves": "Estanterías"
,"Items list": "Llistat articles" ,"Items list": "Llistat articles"
,"Contact": "Vull ser client" ,"Contact": "Vull ser client"

View File

@ -0,0 +1,8 @@
{
"Connections": "Connections"
,"Refresh": "Refresh"
,"Visits": "Visits"
,"connections": "connections"
}

View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visits" "Visits": "Visits"
,"VisitsManagement": "Visits management"
,"ActiveSessions": "Active sessions"
,"VisitsQuery": "Visits query"
,"Refresh": "Refresh" ,"Refresh": "Refresh"
,"Connections": "Connections"
,"ActiveSessions:": "Active sessions:" ,"From": "From"
,"NewVisitsTotal:": "New visits:" ,"To": "To"
,"Select date interval": "Select date interval"
,"SessionNumber": "Session number" ,"visits": "visits"
,"User": "User" ,"news": "news"
,"Login": "Login"
,"LastActivity": "Last activity"
,"SO": "OS"
,"Version": "Version"
,"NewVisit": "New visit"
,"SelectDateInterval": "Select date interval"
,"FromDate:": "From date:"
,"ToDate:": "To date:"
,"VisitsTotal:": "Visits total:"
,"Browser": "Browser"
,"MinVersion": "Minimal version"
,"MaxVersion": "Maximum version"
,"LastVisit": "Last visit"
,"NewVisits": "New visits"
,"%a, %e %b %Y at %T": "%a, %e %b %Y at %T" ,"%a, %e %b %Y at %T": "%a, %e %b %Y at %T"
} }

View File

@ -11,8 +11,11 @@
,"StartOrder": "Start order" ,"StartOrder": "Start order"
,"ShoppingBasket": "Shopping basket" ,"ShoppingBasket": "Shopping basket"
,"Agency": "Agency"
,"Warehouse": "Warehouse"
,"Search": "Search" ,"Search": "Search"
,"Configure": "Configure" ,"Change": "Change"
,"Order": "Order" ,"Order": "Order"
,"Available": "Available" ,"Available": "Available"
,"Size": "Size" ,"Size": "Size"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "Administration" ,"Administration": "Administration"
,"Control panel": "Control panel" ,"Control panel": "Control panel"
,"Users": "Users" ,"Users": "Users"
,"Connections": "Connections"
,"Visits": "Visits" ,"Visits": "Visits"
,"News": "News" ,"News": "News"
,"Photos": "Photos" ,"Photos": "Photos"
,"Reports": "Reports"
,"Shelves": "Shelves" ,"Shelves": "Shelves"
,"Items list": "Items list" ,"Items list": "Items list"
,"Contact": "Contact" ,"Contact": "Contact"

View File

@ -0,0 +1,8 @@
{
"Connections": "Conexiones"
,"Refresh": "Actualizar"
,"Visits": "Visitas"
,"connections": "conexiones"
}

View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visitas" "Visits": "Visitas"
,"VisitsManagement": "Gestión de visitas"
,"ActiveSessions": "Usuarios conectados"
,"VisitsQuery": "Consulta de visitas"
,"Refresh": "Actualizar" ,"Refresh": "Actualizar"
,"Connections": "Conexiones"
,"ActiveSessions:": "Usuarios conectados:" ,"From": "Desde"
,"NewVisitsTotal:": "Nuevas visitas:" ,"To": "Hasta"
,"Select date interval": "Selecciona un intérvalo de fechas"
,"SessionNumber": "Nº sesión" ,"visits": "visitas"
,"User": "Usuario" ,"news": "nuevas"
,"Login": "Hora de acceso"
,"LastActivity": "Última actividad"
,"SO": "Sistema Operativo"
,"Version": "Versión"
,"NewVisit": "Nueva visita"
,"SelectDateInterval": "Selecciona un intérvalo de fechas"
,"FromDate:": "Desde el día:"
,"ToDate:": "Hasta el día:"
,"VisitsTotal:": "Total visitas:"
,"Browser": "Navegador"
,"MinVersion": "Versión mínima"
,"MaxVersion": "Versión máxima"
,"LastVisit": "Última visita"
,"NewVisits": "Nuevas visitas"
,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T" ,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T"
} }

View File

@ -11,10 +11,13 @@
,"StartOrder": "Empezar pedido" ,"StartOrder": "Empezar pedido"
,"ShoppingBasket": "Cesta de la compra" ,"ShoppingBasket": "Cesta de la compra"
,"Agency": "Agencia"
,"Warehouse": "Almacén"
,"Search": "Buscar" ,"Search": "Buscar"
,"Configure": "Configurar" ,"Change": "Cambiar"
,"Order by": "Ordenar" ,"Order": "Ordenar"
,"Available": "Displonible" ,"Available": "Disponible"
,"Size": "Medida" ,"Size": "Medida"
,"Realm": "Reino" ,"Realm": "Reino"
,"Family": "Familia" ,"Family": "Familia"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "Administración" ,"Administration": "Administración"
,"Control panel": "Panel de control" ,"Control panel": "Panel de control"
,"Users": "Usuarios" ,"Users": "Usuarios"
,"Connections": "Conexiones"
,"Visits": "Visitas" ,"Visits": "Visitas"
,"News": "Noticias" ,"News": "Noticias"
,"Photos": "Fotos" ,"Photos": "Fotos"
,"Reports": "Informes"
,"Shelves": "Estanterías" ,"Shelves": "Estanterías"
,"Items list": "Listado artículos" ,"Items list": "Listado artículos"
,"Contact": "Quiero ser cliente" ,"Contact": "Quiero ser cliente"

View File

@ -0,0 +1,8 @@
{
"Connections": "Connexions"
,"Refresh": "Actualiser"
,"Visits": "Visites"
,"connections": "connexions"
}

View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visitas" "Visits": "Visites"
,"VisitsManagement": "Gestión de visitas"
,"ActiveSessions": "Usuarios conectados"
,"VisitsQuery": "Consulta de visitas"
,"Refresh": "Actualizar"
,"ActiveSessions:": "Usuarios conectados:" ,"Refresh": "Actualiser"
,"NewVisitsTotal:": "Nuevas visitas:" ,"Connections": "Connexions"
,"SessionNumber": "Nº sesión" ,"From": "À partir de"
,"User": "Usuario" ,"To": "À"
,"Login": "Hora de acceso" ,"Select date interval": "Sélectionnez une plage de dates"
,"LastActivity": "Última actividad"
,"SO": "Sistema Operativo"
,"Version": "Versión"
,"NewVisit": "Nueva visita"
,"SelectDateInterval": "Sélectionnez une plage de dates" ,"visits": "visites"
,"FromDate:": "Desde el día:" ,"news": "nouvelles"
,"ToDate:": "Hasta el día:" ,"%a, %e %b %Y at %T": "%a, %e %b %Y à %T"
,"VisitsTotal:": "Total visitas:"
,"Browser": "Navegador"
,"MinVersion": "Versión mínima"
,"MaxVersion": "Versión máxima"
,"LastVisit": "Última visita"
,"NewVisits": "Nuevas visitas"
,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T"
} }

View File

@ -11,9 +11,12 @@
,"StartOrder": "Acheter" ,"StartOrder": "Acheter"
,"ShoppingBasket": "Mon panier" ,"ShoppingBasket": "Mon panier"
,"Agency": "Agence"
,"Warehouse": "Entrepôt"
,"Search": "Recherche" ,"Search": "Recherche"
,"Configure": "Régler" ,"Change": "Modifier"
,"Order by": "Ordre" ,"Order": "Ordre"
,"Available": "Displonible" ,"Available": "Displonible"
,"Size": "Mesure" ,"Size": "Mesure"
,"Realm": "Famille" ,"Realm": "Famille"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "Administration" ,"Administration": "Administration"
,"Control panel": "Panneau de contrôle" ,"Control panel": "Panneau de contrôle"
,"Users": "Utilisateurs" ,"Users": "Utilisateurs"
,"Connections": "Connexions"
,"Visits": "Visites" ,"Visits": "Visites"
,"News": "Nouvelles" ,"News": "Nouvelles"
,"Photos": "Photos" ,"Photos": "Photos"
,"Reports": "Rapport"
,"Shelves": "Etagères" ,"Shelves": "Etagères"
,"Items list": "Liste des articles" ,"Items list": "Liste des articles"
,"Contact": "Je veux être client" ,"Contact": "Je veux être client"

View File

@ -0,0 +1,8 @@
{
"Connections": "холболт"
,"Refresh": "Сэргээх"
,"Visits": "уулзалт"
,"connections": "холболт"
}

View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visits" "Visits": "уулзалт"
,"VisitsManagement": "Visits management"
,"ActiveSessions": "Active sessions"
,"VisitsQuery": "Visits query"
,"Refresh": "Refresh"
,"ActiveSessions:": "Active sessions:" ,"Refresh": "Сэргээх"
,"NewVisitsTotal:": "New visits:" ,"Connections": "холболт"
,"SessionNumber": "Session number" ,"From": "эхлэн"
,"User": "User" ,"To": "нь"
,"Login": "Login" ,"Select date interval": "Сонгох огноо интервал"
,"LastActivity": "Last activity"
,"SO": "OS"
,"Version": "Version"
,"NewVisit": "New visit"
,"SelectDateInterval": "Select date interval" ,"visits": "уулзалт"
,"FromDate:": "From date:" ,"news": "мэдээ"
,"ToDate:": "To date:" ,"%a, %e %b %Y at %T": "%a, %e %b %Y нь %T"
,"VisitsTotal:": "Visits total:"
,"Browser": "Browser"
,"MinVersion": "Minimal version"
,"MaxVersion": "Maximum version"
,"LastVisit": "Last visit"
,"NewVisits": "New visits"
,"%a, %e %b %Y at %T": "%a, %e %b %Y at %T"
} }

View File

@ -11,8 +11,11 @@
,"StartOrder": "Start order" ,"StartOrder": "Start order"
,"ShoppingBasket": "Shopping basket" ,"ShoppingBasket": "Shopping basket"
,"Agency": "газар"
,"Warehouse": "Агуулахын"
,"Search": "Search" ,"Search": "Search"
,"Configure": "Configure" ,"Change": "Change"
,"Order": "Order" ,"Order": "Order"
,"Available": "Available" ,"Available": "Available"
,"Size": "Size" ,"Size": "Size"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "захиргаа" ,"Administration": "захиргаа"
,"Control panel": "хяналтын самбар" ,"Control panel": "хяналтын самбар"
,"Users": "Хэрэглэгчид нь" ,"Users": "Хэрэглэгчид нь"
,"Connections": "холболт"
,"Visits": "уулзалт" ,"Visits": "уулзалт"
,"News": "мэдээ" ,"News": "мэдээ"
,"Photos": "Фото зураг" ,"Photos": "Фото зураг"
,"Reports": "мэдээ"
,"Shelves": "тавиур" ,"Shelves": "тавиур"
,"Items list": "зүйлс жагсаалт" ,"Items list": "зүйлс жагсаалт"
,"Contact": "Холбоо барих" ,"Contact": "Холбоо барих"

View File

@ -0,0 +1,8 @@
{
"Connections": "Conexões"
,"Refresh": "actualização"
,"Visits": "Visualizações"
,"connections": "conexões"
}

35
web/locale/pt/forms/admin/visits.json Normal file → Executable file
View File

@ -1,31 +1,14 @@
{ {
"Visits": "Visitas" "Visits": "Visualizações"
,"VisitsManagement": "Gestão de visitas"
,"ActiveSessions": "Usuarios conectados"
,"VisitsQuery": "Consulta de visitas"
,"Refresh": "Actualizar"
,"ActiveSessions:": "Usuarios conectados:" ,"Refresh": "Actualização"
,"NewVisitsTotal:": "Novas visitas:" ,"Connections": "Conexões"
,"SessionNumber": "Nº sessão" ,"From": "Desde"
,"User": "Usuario" ,"To": "Até"
,"Login": "Hora de acceso" ,"Select date interval": "Selecciona un intérvalo de datas"
,"LastActivity": "Última atividade"
,"SO": "Sistema Operativo"
,"Version": "Versão"
,"NewVisit": "Nova visita"
,"SelectDateInterval": "Selecciona un intérvalo de datas" ,"visits": "Visualizações"
,"FromDate:": "Desde o día:" ,"news": "novas"
,"ToDate:": "Até o día:" ,"%a, %e %b %Y at %T": "%a, %e %b %Y em %T"
,"VisitsTotal:": "Total visitas:"
,"Browser": "Navegador"
,"MinVersion": "Versão mínima"
,"MaxVersion": "Versão máxima"
,"LastVisit": "Última visita"
,"NewVisits": "Novas visitas"
,"%a, %e %b %Y at %T": "%a, %e %b %Y a las %T"
} }

View File

@ -11,9 +11,12 @@
,"StartOrder": "Iniciar pedido" ,"StartOrder": "Iniciar pedido"
,"ShoppingBasket": "Cesta da compra" ,"ShoppingBasket": "Cesta da compra"
,"Agency": "Agência"
,"Warehouse": "Armazém"
,"Search": "Buscar" ,"Search": "Buscar"
,"Configure": "Configurar" ,"Change": "Modificar"
,"Order by": "Organizar" ,"Order": "Organizar"
,"Available": "Disponível" ,"Available": "Disponível"
,"Size": "Medida" ,"Size": "Medida"
,"Realm": "Reino" ,"Realm": "Reino"

View File

@ -43,9 +43,11 @@ Vn.Locale.add
,"Administration": "Administração" ,"Administration": "Administração"
,"Control panel": "Painel de controle" ,"Control panel": "Painel de controle"
,"Users": "Usuarios" ,"Users": "Usuarios"
,"Connections": "Conexões"
,"Visits": "Visitas" ,"Visits": "Visitas"
,"News": "Noticias" ,"News": "Noticias"
,"Photos": "Fotos" ,"Photos": "Fotos"
,"Reports": "Relatórios"
,"Shelves": "Estantes" ,"Shelves": "Estantes"
,"Items list": "Lista de Itens" ,"Items list": "Lista de Itens"
,"Contact": "Quero ser cliente" ,"Contact": "Quero ser cliente"

View File

@ -3,8 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no"/> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=no"/>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"/>
<meta name="mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes">
<link rel="shortcut icon" type="image/x-icon" href="image/favicon.ico"/> <link rel="shortcut icon" type="image/x-icon" href="image/favicon.ico"/>
<?php include ('pages/main/head.php') ?> <?php include ('pages/main/head.php') ?>