hange option system information

- Was change of place the option system information a admin->Settings->System.
This commit is contained in:
Marco Antonio Nina
2013-01-02 11:15:46 -04:00
parent f80039cf75
commit 21270bdc49
11 changed files with 54 additions and 154 deletions

View File

@@ -6,35 +6,7 @@
<link rel="stylesheet" type="text/css" href="/skins/green/style.css"/>
{$header}
<script type="text/javascript">{literal}
var openInfoPanel = function()
{
var oInfoPanel = new leimnud.module.panel();
oInfoPanel.options = {
size :{w:500,h:424},
position:{x:0,y:0,center:true},
title :'System Information',
theme :'processmaker',
control :{
close :true,
drag :false
},
fx:{
modal:true
}
};
oInfoPanel.setStyle = {modal: {
backgroundColor: 'white'
}};
oInfoPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../login/dbInfo',
async : false,
method: 'POST',
args : ''
});
oRPC.make();
oInfoPanel.addContent(oRPC.xmlhttp.responseText);
};
{/literal}</script>
</head>
<body>
@@ -109,7 +81,7 @@
<div class="content">
{php}if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {{/php}
{php}if ( defined('SYS_SYS') ) {{/php}
<a href="#" onclick="openInfoPanel();return false;" class="FooterLink">| System Information |</a><br />
{php}}{/php}
<br />Copyright © 2003-2008 Colosa, Inc. All rights reserved.
{php}}{/php}

View File

@@ -32,35 +32,4 @@ $G_PUBLISH = new Publisher;
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/login', '', '', SYS_URI.'login/authentication.php');
G::RenderPage( "publish" );
?>
<script type="text/javascript">
var openInfoPanel = function()
{
var oInfoPanel = new leimnud.module.panel();
oInfoPanel.options = {
size :{ w:500,h:424 },
position:{ x:0,y:0,center:true },
title :'System Information',
theme :'processmaker',
control :{
close :true,
drag :false
},
fx:{
modal:true
}
};
oInfoPanel.setStyle = {modal: {
backgroundColor: 'white'
}};
oInfoPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../login/dbInfo',
async : false,
method: 'POST',
args : ''
});
oRPC.make();
oInfoPanel.addContent(oRPC.xmlhttp.responseText);
};
</script>

View File

@@ -79,6 +79,7 @@ if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1) {
$G_TMP_MENU->AddIdRawOption('AUTHSOURCES', '../authSources/authSources_List', G::LoadTranslation('ID_AUTH_SOURCES'), '', '', 'users');
$G_TMP_MENU->AddIdRawOption('UX', '../admin/uxList', G::LoadTranslation('ID_USER_EXPERIENCE'), '', '', 'users');
$G_TMP_MENU->AddIdRawOption('SYSTEM', '../admin/system', G::LoadTranslation('ID_SYSTEM'), '', '', 'settings');
$G_TMP_MENU->AddIdRawOption('INFORMATION', '../setup/systemInfo?option=processInfo', G::LoadTranslation('ID_SYSTEM_INFO'), '', '', 'settings');
}
if ($RBAC->userCanAccess('PM_SETUP') == 1) {

View File

@@ -140,52 +140,6 @@ G::RenderPage ("publish");
?>
<script type="text/javascript">
var oInfoPanel;
var openInfoPanel = function()
{
// note added by carlos pacha carlos[at]colosa[dot]com pckrlos[at]gmail[dot]com
// the following lines of code are getting the hight of panel. Related 8021 bug
var hightpnl= 424;
var varjs = "<?php echo isset($_POST['form']['USER_ENV'])?$_POST['form']['USER_ENV']:''; ?>";
if (varjs !=' ') {
hightpnl= 330;
}
var oInfoPanel = new leimnud.module.panel();
oInfoPanel.options = {
size :{w:500,h:hightpnl},
position:{x:0,y:0,center:true},
title :'System Information',
theme :'processmaker',
control :{
close :true,
drag :false
},
fx:{
modal:true
}
};
oInfoPanel.setStyle = {modal: {
backgroundColor: 'white'
}};
oInfoPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({
url : '../login/dbInfo',
//async : false,
method: 'POST',
args : ''
});
oRPC.callback = function(oRPC) {
oInfoPanel.loader.hide();
var scs = oRPC.xmlhttp.responseText.extractScript();
oInfoPanel.addContent(oRPC.xmlhttp.responseText);
scs.evalScript();
}.extend(this);
oRPC.make();
oInfoPanel.addContent(oRPC.xmlhttp.responseText);
};
</script>
<?php

View File

@@ -10,6 +10,13 @@ switch ($option) {
$oHeadPublisher->addContent("setup/phpInfo"); //Adding a html file .html
$oHeadPublisher->addExtJsScript("setup/phpInfo", false); //Adding a javascript file .js
G::RenderPage("publish", "extJs");
break;
case "processInfo":
$oHeadPublisher = &headPublisher::getSingleton();
$oHeadPublisher->addContent("setup/dbInfo"); //Adding a html file .html
$oHeadPublisher->addExtJsScript("setup/dbInfo", false); //Adding a javascript file .js
G::RenderPage("publish", "extJs");
break;
default:

View File

@@ -811,6 +811,12 @@ antes funcionaba.
height: 16px !important;
}
.ICON_INFORMATION{
/*ss_information*/
background-image: url(/images/icons_silk/sprites.png) !important;
background-position:0 -8749px !important
}
/* Language Support module styles*/
.upload-icon {
background: url('/images/cases-documents.png') no-repeat 0 0 !important;

View File

@@ -332,9 +332,6 @@ class SkinEngine
global $G_ID_MENU_SELECTED;
global $G_ID_SUB_MENU_SELECTED;
if (! defined('DB_SYSTEM_INFORMATION'))
define('DB_SYSTEM_INFORMATION', 1);
G::verifyPath(PATH_SMARTY_C, true);
G::verifyPath(PATH_SMARTY_CACHE, true);
@@ -361,10 +358,6 @@ class SkinEngine
$footer = '';
if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {
if (DB_SYSTEM_INFORMATION == 1) {
$footer = "<a href=\"#\" onclick=\"openInfoPanel();return false;\" class=\"FooterLink\">| " . G::LoadTranslation('ID_SYSTEM_INFO') . " |</a><br />";
}
$freeOfChargeText = "";
if (! defined('SKIP_FREE_OF_CHARGE_TEXT')) {
$freeOfChargeText = "Supplied free of charge with no support, certification, warranty, <br>maintenance nor indemnity by Colosa and its Certified Partners.";
@@ -458,9 +451,6 @@ class SkinEngine
$footer = '';
if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {
if ( defined('SYS_SYS') ) {
$footer = "<a href=\"#\" onclick=\"openInfoPanel();return false;\" class=\"FooterLink\">| " . G::LoadTranslation('ID_SYSTEM_INFO') . " |</a><br />";
}
$footer .= "<br />Copyright &copy; 2003-" . date('Y') . " Colosa, Inc. All rights reserved.";
}
@@ -574,10 +564,6 @@ class SkinEngine
global $G_ID_MENU_SELECTED;
global $G_ID_SUB_MENU_SELECTED;
if (! defined('DB_SYSTEM_INFORMATION')) {
define('DB_SYSTEM_INFORMATION', 1);
}
G::verifyPath(PATH_SMARTY_C, true);
G::verifyPath(PATH_SMARTY_CACHE, true);
@@ -622,9 +608,6 @@ class SkinEngine
$footer = '';
if (strpos($_SERVER['REQUEST_URI'], '/login/login') !== false) {
if (DB_SYSTEM_INFORMATION == 1) {
$footer = "<a href=\"#\" onclick=\"openInfoPanel();return false;\" class=\"FooterLink\">| " . G::LoadTranslation('ID_SYSTEM_INFO') . " |</a><br />";
}
$freeOfChargeText = "";
if (! defined('SKIP_FREE_OF_CHARGE_TEXT'))

View File

@@ -836,6 +836,12 @@ antes funcionaba.
height: 16px !important;
}
.ICON_INFORMATION{
/*ss_information*/
background-image: url(/images/icons_silk/sprites.png) !important;
background-position:0 -8749px !important
}
/* Language Support module styles*/
.upload-icon {
background: url('/images/cases-documents.png') no-repeat 0 0 !important;

View File

@@ -0,0 +1 @@
<div></div>

View File

@@ -0,0 +1,30 @@
Ext.namespace("dbInfo");
dbInfo.application = {
init: function ()
{
var sumaryInfPanel = PMExt.createInfoPanel('../main/getSystemInfo');
var panelInfo = new Ext.Panel({
id:'panelInfo',
title: _("ID_SYSTEM_INFO"),
frame:true,
autoWidth:true,
autoHeight:true,
collapsible:false,
items:[
sumaryInfPanel
]
});
//Load all panels
var viewport = new Ext.Viewport({
layout: "fit",
items: [panelInfo]
});
}
}
Ext.onReady(dbInfo.application.init, dbInfo.application);

View File

@@ -84,35 +84,6 @@ var dynaformOnload = function() {
}
};
var openInfoPanel = function() {
var oInfoPanel = new leimnud.module.panel();
oInfoPanel.options = {
size: {w:500,h:424},
position: {x:0,y:0,center:true},
title: '@G::LoadTranslation(ID_SYSTEM_INFO)',
theme: 'processmaker',
control: {
close: true,
drag: false
},
fx:{
modal: true
}
};
oInfoPanel.setStyle = {modal: {
backgroundColor: 'white'
}};
oInfoPanel.make();
var oRPC = new leimnud.module.rpc.xmlhttp({
url: '../login/dbInfo',
async: false,
method: 'POST',
args: ''
});
oRPC.make();
oInfoPanel.addContent(oRPC.xmlhttp.responseText);
};
leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() {
setNestedProperty(this, Array('disabled'), 'true');
setNestedProperty(this, Array('value'), @@LOGIN_VERIFY_MSG);