Fix agent view qr mobile code -

This commit is contained in:
enriquecd 2017-08-24 16:09:04 +02:00
parent 1bf7d8278a
commit 8b718371f9
3 changed files with 12 additions and 2 deletions
pandora_console
godmode/agentes
mobile

@ -232,7 +232,7 @@ if(!$new_agent){
if ($id_agente) {
$table->data[2][2] =
"<a id='qr_code_agent_view' href='javascript: show_dialog_qrcode(null, \"" .
ui_get_full_url('index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $id_agente) . "\" );'></a>";
ui_get_full_url('mobile/index.php?page=agent&id=' . $id_agente) . "\" );'></a>";
}
else {
$table->data[2][2] = __("Only it is show when<br />the agent is saved.");

@ -239,7 +239,7 @@ class User {
$ui->contentAddHtml('<div style="text-align: center;" class="login_logo">' .
$logo_image . '</div>');
$ui->contentAddHtml('<div id="login_container">');
$ui->beginForm();
$ui->beginForm('');
$ui->formAddHtml(html_print_input_hidden('action', 'login', true));
$options = array(
'name' => 'user',

@ -191,6 +191,11 @@ switch ($action) {
$l10n = new gettext_reader (new CachedFileReader('../include/languages/'.$user_language.'.mo'));
$l10n->load_tables();
}
if($_GET['page'] != ''){
header('refresh:0; url=http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
}
if (class_exists("HomeEnterprise"))
$home = new HomeEnterprise();
else
@ -211,6 +216,11 @@ switch ($action) {
$l10n = new gettext_reader (new CachedFileReader('../include/languages/'.$user_language.'.mo'));
$l10n->load_tables();
}
if($_GET['page'] != ''){
header('refresh:0; url=http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
}
if (class_exists("HomeEnterprise"))
$home = new HomeEnterprise();
else