Skip to content

Commit

Permalink
fixed #20
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 9, 2018
1 parent 0c039d2 commit 1ff7ceb
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions system_skeleton/modulos/sys_about.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<?php
defined('APLICATIVO') or die();

require_once 'includes/config_conexao.php';

$login = (array_key_exists('USER', $_SESSION[APLICATIVO]) ? $_SESSION[APLICATIVO]['USER']['LOGIN']:null);
$grupo = null;
if (array_key_exists('USER', $_SESSION[APLICATIVO])) {
$grupo = (array_key_exists('GRUPO_NOME', $_SESSION[APLICATIVO]['USER']) ? $_SESSION[APLICATIVO]['USER']['GRUPO_NOME']:null);
}

$frm = new TForm('Sobre', 400, 500);
$frm->setFlat(true);
$frm->setMaximize(true);

$frm->addGroupField('gpx1', 'Sistema');
$frm->addTextField('systemName', 'Sistema:', 50, false, 50, SYSTEM_NAME)->setReadOnly(true);
$frm->addTextField('systemAcronym', 'Sigla:', 20, false, 50, SYSTEM_ACRONYM)->setReadOnly(true);
$frm->addTextField('versionSystem', 'Versão do Sistema:', 20, false, 20, SYSTEM_VERSION)->setReadOnly(true);
$pathChangeLog = 'ajuda/changelog.php';
$changelog = $frm->addTextField('changelog', 'Arquivo ChangeLog:', 20, false, 20, $pathChangeLog);
;
$changelog->setReadOnly(true);
$changelog->setHelpOnLine('ChangeLog', 500, 800, $pathChangeLog);
$frm->closeGroup();


$frm->addGroupField('gpx2', 'Usuário');
$frm->addTextField('user', 'Usuário Logado:', 50, false, 50, $login)->setReadOnly(true);
$frm->addTextField('group', 'Grupo:', 50, false, 50, $grupo)->setReadOnly(true);
$frm->closeGroup();

$frm->addGroupField('gpx3', '');
$frm->addTextField('versionFormDin', 'Versão do FormDin:', 20, false, 20, FORMDIN_VERSION)->setReadOnly(true);
$frm->addTextField('servidorBD', 'Servidor de Banco:', 20, false, 20, HOST)->setReadOnly(true);
$frm->addTextField('banco', 'Banco:', 20, false, 20, DATABASE)->setReadOnly(true);
$frm->closeGroup();



$frm->show();
<?php
defined('APLICATIVO') or die();

require_once 'includes/config_conexao.php';

$login = (ArrayHelper::has('USER', $_SESSION[APLICATIVO]) ? $_SESSION[APLICATIVO]['USER']['LOGIN']:null);
$grupo = null;
if (ArrayHelper::has('USER', $_SESSION[APLICATIVO])) {
$grupo = (ArrayHelper::has('GRUPO_NOME', $_SESSION[APLICATIVO]['USER']) ? $_SESSION[APLICATIVO]['USER']['GRUPO_NOME']:null);
}

$frm = new TForm('Sobre', 400, 500);
$frm->setFlat(true);
$frm->setMaximize(true);

$frm->addGroupField('gpx1', 'Sistema');
$frm->addTextField('systemName', 'Sistema:', 50, false, 50, SYSTEM_NAME)->setReadOnly(true);
$frm->addTextField('systemAcronym', 'Sigla:', 20, false, 50, SYSTEM_ACRONYM)->setReadOnly(true);
$frm->addTextField('versionSystem', 'Versão do Sistema:', 20, false, 20, SYSTEM_VERSION)->setReadOnly(true);
$pathChangeLog = 'ajuda/changelog.php';
$changelog = $frm->addTextField('changelog', 'Arquivo ChangeLog:', 20, false, 20, $pathChangeLog);
;
$changelog->setReadOnly(true);
$changelog->setHelpOnLine('ChangeLog', 500, 800, $pathChangeLog);
$frm->closeGroup();


$frm->addGroupField('gpx2', 'Usuário');
$frm->addTextField('user', 'Usuário Logado:', 50, false, 50, $login)->setReadOnly(true);
$frm->addTextField('group', 'Grupo:', 50, false, 50, $grupo)->setReadOnly(true);
$frm->closeGroup();

$frm->addGroupField('gpx3', '');
$frm->addTextField('versionFormDin', 'Versão do FormDin:', 20, false, 20, FORMDIN_VERSION)->setReadOnly(true);
$frm->addTextField('servidorBD', 'Servidor de Banco:', 20, false, 20, HOST)->setReadOnly(true);
$frm->addTextField('banco', 'Banco:', 20, false, 20, DATABASE)->setReadOnly(true);
$frm->closeGroup();



$frm->show();

0 comments on commit 1ff7ceb

Please sign in to comment.