BUG 5163 fixing ?php tags
in many files
This commit is contained in:
@@ -1,122 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* inc.JSForms.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
global $HTTP_SESSION_VARS;
|
||||
global $G_FORM;
|
||||
$path = '';
|
||||
$showFieldAjax = 'showFieldAjax.php';
|
||||
|
||||
$serverAjax = G::encryptLink($path.$showFieldAjax);
|
||||
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
function RefreshDependentFields(ObjectName, Fields, InitValue) {
|
||||
|
||||
<?
|
||||
//global $G_FORM;
|
||||
$HTTP_SESSION_VARS['INIT_VALUES'] = $G_FORM->Values;
|
||||
global $HTTP_GET_VARS;
|
||||
if ($HTTP_SESSION_VARS['CURRENT_APPLICATION'] == '') $HTTP_SESSION_VARS['CURRENT_APPLICATION'] = '0';
|
||||
$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION'];
|
||||
if ($HTTP_GET_VARS['dynaform'] != '')
|
||||
$Dynaform = '&__dynaform__=' . $HTTP_GET_VARS['dynaform'];
|
||||
if ($HTTP_GET_VARS['filename'] != '')
|
||||
$Dynaform = '&__filename__=' . $HTTP_GET_VARS['filename'];
|
||||
|
||||
?>
|
||||
|
||||
if (getField)
|
||||
TheObject = getField(ObjectName);
|
||||
|
||||
if (TheObject) {
|
||||
Fields = Fields.split(',');
|
||||
for (i=0; i<Fields.length; i++) {
|
||||
DivObj = document.getElementById('FLD_' + Fields[i]);
|
||||
FldObj = document.getElementById('form[' + Fields[i] + ']');
|
||||
|
||||
if(FldObj){
|
||||
if(FldObj.type == 'text'){
|
||||
refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' );
|
||||
}
|
||||
if(FldObj.type == 'hidden'){
|
||||
refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' );
|
||||
}
|
||||
|
||||
if(FldObj.type == 'select-one') {
|
||||
refillDropdown( Fields[i],'<?=$serverAjax?>', 'function=dropdown&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>'+ '&InitValue=' + InitValue , InitValue);
|
||||
}
|
||||
}else{
|
||||
if(DivObj)
|
||||
refillCaption( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' );
|
||||
}
|
||||
}
|
||||
}
|
||||
<?
|
||||
// }
|
||||
?>
|
||||
}
|
||||
|
||||
function registerDate ( field, options ) {
|
||||
var opts = options.split(',');
|
||||
var fieldName = 'form['+field+']';
|
||||
var divName = 'DIV['+field+']';
|
||||
Obj = getField( divName);
|
||||
value = Obj.value;
|
||||
myDatePicker = new Bs_DatePicker();
|
||||
<?
|
||||
global $G_DATE_FORMAT;
|
||||
global $HTTP_SESSION_VARS;
|
||||
|
||||
$classfile = PATH_CORE . 'classes/class.user.php';
|
||||
if(file_exists($classfile))
|
||||
{
|
||||
G::LoadClass('user');
|
||||
$DateFormat = User::Get_User_Date_Format($HTTP_SESSION_VARS['USER_LOGGED']);
|
||||
}
|
||||
|
||||
if ($DateFormat == '')
|
||||
if (defined('DATE_FORMAT'))
|
||||
$TheDateFormat = DATE_FORMAT;
|
||||
else
|
||||
$TheDateFormat = $G_DATE_FORMAT;
|
||||
else
|
||||
switch ($DateFormat) {
|
||||
case 'en':
|
||||
$TheDateFormat = 'us';
|
||||
break;
|
||||
case 'es':
|
||||
$TheDateFormat = 'es';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
myDatePicker.displayDateFormat = '<?=$TheDateFormat?>';
|
||||
myDatePicker.fieldName = fieldName;
|
||||
myDatePicker.loadSkin('win2k');
|
||||
myDatePicker.daysNumChars = 2;
|
||||
myDatePicker.setDateByIso( value);
|
||||
myDatePicker.drawInto(divName);
|
||||
}
|
||||
</script>
|
||||
<script language="JavaScript" src="/skins/JSForms.js"></script>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* inc.ajax.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
define ('AJAX_PAGE', 1);
|
||||
|
||||
function get_ajax_value ( $varName ) {
|
||||
$_result = '';
|
||||
if(isset($_GET[ $varName ]) || isset($_POST[ $varName ])) {
|
||||
$_result =(isset($_GET[ $varName ]))?$_GET[ $varName ]:$_POST[ $varName ];
|
||||
}
|
||||
//linea comentada porque cuando llegaba un valor cero, se convertia en la cadena nula
|
||||
//y eso provocaba muchos problemas....
|
||||
//$_result =(isset($_result) and !empty($_result)) ? $_result : "";
|
||||
$_result =(isset($_result) ) ? $_result : NULL;
|
||||
return $_result;
|
||||
}
|
||||
|
||||
function ajax_show_xmlform ( $xmlform, $Fields, $template='xmlform') {
|
||||
global $G_FORM;
|
||||
$G_FORM = new Form;
|
||||
G::LoadSystem("xmlform");
|
||||
$xml = new XmlForm;
|
||||
$xml->home = PATH_DYNAFORM;
|
||||
$xml->parseFile ( $xmlform );
|
||||
$xml->renderForm ($G_FORM);
|
||||
$G_FORM->Values = $Fields;
|
||||
$G_FORM->SetUp( '' ); //currently is not supported the action feature
|
||||
$G_FORM->hideFormAction = 1; //to avoid the render of <form action='xxx' >
|
||||
G::LoadTemplate( $template );
|
||||
}
|
||||
|
||||
function ajax_show_menu ( $menu ) {
|
||||
if ( $menu == '' ) return;
|
||||
global $G_OP_MENU;
|
||||
$G_OP_MENU = new Menu;
|
||||
$G_OP_MENU->Load( $menu );
|
||||
G::LoadTemplate( 'submenu' );
|
||||
}
|
||||
|
||||
function ajax_show_template ( $file ) {
|
||||
if ( $file == '' ) return;
|
||||
G::LoadTemplate( $file );
|
||||
}
|
||||
function ajax_show_image ( $file ) {
|
||||
global $G_IMAGE_FILENAME;
|
||||
global $G_IMAGE_PARTS;
|
||||
|
||||
if ( $file == '' ) return;
|
||||
|
||||
$G_IMAGE_FILENAME = $file;
|
||||
//$G_IMAGE_PARTS = $Part['Data'];
|
||||
|
||||
G::LoadTemplate( 'viewProcessMap' );
|
||||
}
|
||||
|
||||
function ajax_show_table ( $dbc, $file , $template) {
|
||||
global $G_CONTENT;
|
||||
global $G_TABLE;
|
||||
$G_CONTENT = new Content;
|
||||
//global $G_TMP_TARGET;
|
||||
if ( $file == '' || $template == '' ) return;
|
||||
//$G_TMP_TARGET = $Part['Target'];
|
||||
$G_TABLE = G::LoadRawTable( $file, $dbc, $Fields );
|
||||
G::LoadTemplate( $template );
|
||||
}
|
||||
|
||||
function ajax_LoadJavaScript( $phpMethod, $phpFile ) {
|
||||
print ' LoadPopJavaScript ( "/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/tools/loadJavaScript.html?method=' .$phpMethod . '&file=' . $phpFile . "\");\n";
|
||||
}
|
||||
?>
|
||||
@@ -1,21 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/skins/styles/simple/style.css"/>
|
||||
{$header}
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
{php}
|
||||
global $G_TEMPLATE;
|
||||
if ($G_TEMPLATE != '')
|
||||
{
|
||||
G::LoadTemplate($G_TEMPLATE);
|
||||
}
|
||||
{/php}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,46 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* blank.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
G::verifyPath ( PATH_SMARTY_C, true );
|
||||
G::verifyPath ( PATH_SMARTY_CACHE, true );
|
||||
|
||||
// put full path to Smarty.class.php
|
||||
require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php');
|
||||
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
$smarty->template_dir = PATH_SKINS;
|
||||
$smarty->compile_dir = PATH_SMARTY_C;
|
||||
$smarty->cache_dir = PATH_SMARTY_CACHE;
|
||||
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader();
|
||||
$smarty->assign('header', $header );
|
||||
//$smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html' );
|
||||
//$smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html' );
|
||||
$smarty->display('blank.html');
|
||||
?>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,53 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/skins/styles/simple/style.css"/>
|
||||
{$header}
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
|
||||
<table background="/skins/wf/topBackgr.jpg" width="100%" height="32" border="0" cellspacing="0" cellpadding="0">
|
||||
<td width="50%" rowspan="2" height="32" valign="top"><img src="/skins/wf/test.gif" width="125" ><font color=white><? /*acá iba el nombre*/ ?></font></td>
|
||||
<td width="50%" height="16" valign="top" >
|
||||
<div align="right" class="title"><small><? /*= PEAR_DATABASE*/ ?></small> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" height="16" valign="bottom" class="title">
|
||||
<div align="right"><? //aca iba el título ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="100%" align="center" class="Tab" style="border-top: 2px groove #777777;">
|
||||
<table width="70%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
{include file= "$tpl_menu"}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--.-->
|
||||
<tr class="subMenu">
|
||||
<td width="100%" align="center">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
{include file= "$tpl_submenu"}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--.-->
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
{php}
|
||||
global $G_TEMPLATE;
|
||||
if ($G_TEMPLATE != '')
|
||||
{
|
||||
G::LoadTemplate($G_TEMPLATE);
|
||||
}
|
||||
{/php}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,46 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* styles.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
G::verifyPath ( PATH_SMARTY_C, true );
|
||||
G::verifyPath ( PATH_SMARTY_CACHE, true );
|
||||
|
||||
// put full path to Smarty.class.php
|
||||
require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php');
|
||||
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
$smarty->template_dir = PATH_SKINS;
|
||||
$smarty->compile_dir = PATH_SMARTY_C;
|
||||
$smarty->cache_dir = PATH_SMARTY_CACHE;
|
||||
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader();
|
||||
$smarty->assign('header', $header );
|
||||
$smarty->assign('tpl_menu', PATH_TEMPLATE . 'menu.html' );
|
||||
$smarty->assign('tpl_submenu', PATH_TEMPLATE . 'submenu.html' );
|
||||
$smarty->display('styles.html');
|
||||
?>
|
||||
@@ -1,188 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/skins/styles/simple/style.css"/>
|
||||
{$header}
|
||||
</head>
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
|
||||
<table background="/skins/wf/topBackgr.jpg" width="100%" height="48" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="50%" rowspan="2" height="48" valign="top"><img src="/skins/wf/test.gif" width="125" height="48"><font color=white><? /*acá iba el nombre*/ ?></font></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
<table width="70%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
{php}
|
||||
global $G_MAIN_MENU;
|
||||
global $G_MENU_SELECTED;
|
||||
global $G_ID_MENU_SELECTED;
|
||||
$externalInitiation = (isset($_SESSION['EXTERNAL_INITIATION_TYPE']) ? $_SESSION['EXTERNAL_INITIATION_TYPE'] : '');
|
||||
if ($externalInitiation != 'PLATAFORM')
|
||||
{
|
||||
if ($G_MAIN_MENU != '')
|
||||
{
|
||||
$G_MENU = new Menu;
|
||||
$G_MENU->Load($G_MAIN_MENU);
|
||||
$G_MENU->optionOn = $G_MENU_SELECTED;
|
||||
$G_MENU->id_optionOn = $G_ID_MENU_SELECTED;
|
||||
$G_MENU->Class = 'mnu';
|
||||
if (is_array($G_MENU->Options))
|
||||
{
|
||||
for ($ncount = 0; $ncount < $G_MENU->OptionCount(); $ncount++)
|
||||
{
|
||||
$target = $G_MENU->Options[$ncount];
|
||||
if ($G_MENU->Types[$ncount] == 'absolute')
|
||||
{
|
||||
$target = G::encryptLink(str_replace('sys' . SYS_TEMP, SYS_TEMP, $G_MENU->Options[$ncount]));
|
||||
}
|
||||
if ($G_MENU->Types[$ncount] != 'absolute')
|
||||
{
|
||||
if (defined('SYS_SYS'))
|
||||
{
|
||||
$target = '/sys' . SYS_TEMP . G::encryptLink('/' . SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$target = '/sys/' . G::encryptLink(SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]);
|
||||
}
|
||||
}
|
||||
$label = $G_MENU->Labels[$ncount];
|
||||
if ($G_MENU->id_optionOn != '')
|
||||
{
|
||||
$onMenu = ($G_MENU->Id[$ncount] == $G_MENU->id_optionOn ? true : false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$onMenu = ($ncount == $G_MENU->optionOn ? true : false);
|
||||
}
|
||||
$classname = ($onMenu ? 'SelectedTab' : 'Tab');
|
||||
if ( $G_MENU->Classes[$ncount] != '')
|
||||
{
|
||||
$classname = $G_MENU->Classes[$ncount];
|
||||
}
|
||||
if ($onMenu)
|
||||
{
|
||||
{/php}
|
||||
<td width="8%" height="23" align="center" valign="middle" nowrap="nowrap" class="{php}echo $classname;{/php}">
|
||||
<a href="{php}echo $target;{/php}" class="{php}echo $classname;{/php}"> <b>{php}echo strtoupper($label);{/php}<b> </a>
|
||||
</td>
|
||||
{php}
|
||||
}
|
||||
else
|
||||
{
|
||||
{/php}
|
||||
<td width="8%" height="23" align="center" valign="middle" nowrap="nowrap" class="{php}echo $classname;{/php}">
|
||||
<a href="{php}echo $target;{/php}" class="{php}echo $classname;{/php}"> {php}echo strtoupper($label);{/php} </a>
|
||||
</td>
|
||||
{php}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{/php}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--.-->
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
<table cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
{php}
|
||||
global $G_SUB_MENU;
|
||||
global $G_MENU_SELECTED;
|
||||
global $G_ID_MENU_SELECTED;
|
||||
global $G_SUB_MENU_SELECTED;
|
||||
global $G_ID_SUB_MENU_SELECTED;
|
||||
$externalInitiation = (isset($_SESSION['EXTERNAL_INITIATION_TYPE']) ? $_SESSION['EXTERNAL_INITIATION_TYPE'] : '');
|
||||
if ($externalInitiation != 'PLATAFORM')
|
||||
{
|
||||
if ($G_SUB_MENU != '')
|
||||
{
|
||||
$G_MENU = new Menu;
|
||||
$G_MENU->Load($G_SUB_MENU);
|
||||
$G_MENU->optionOn = $G_SUB_MENU_SELECTED;
|
||||
$G_MENU->id_optionOn = $G_ID_SUB_MENU_SELECTED;
|
||||
$G_MENU->Class = 'subMnu';
|
||||
if (is_array($G_MENU->Options))
|
||||
{
|
||||
for ($ncount = 0; $ncount < $G_MENU->OptionCount(); $ncount++)
|
||||
{
|
||||
$target = $G_MENU->Options[$ncount];
|
||||
if ($G_MENU->Types[$ncount] == 'absolute')
|
||||
{
|
||||
$target = G::encryptLink(str_replace('sys' . SYS_TEMP, SYS_TEMP, $G_MENU->Options[$ncount]));
|
||||
}
|
||||
if ($G_MENU->Types[$ncount] != 'absolute')
|
||||
{
|
||||
if (defined('SYS_SYS'))
|
||||
{
|
||||
$target = '/sys' . SYS_TEMP . G::encryptLink('/' . SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$target = '/sys/' . G::encryptLink(SYS_LANG . '/' . SYS_SKIN . '/' . $G_MENU->Options[$ncount]);
|
||||
}
|
||||
}
|
||||
$label = $G_MENU->Labels[$ncount];
|
||||
if ($G_MENU->id_optionOn != '')
|
||||
{
|
||||
$onMenu = ($G_MENU->Id[$ncount] == $G_MENU->id_optionOn ? true : false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$onMenu = ($ncount == $G_MENU->optionOn ? true : false);
|
||||
}
|
||||
$classname = ($onMenu ? 'selectedSubMenu' : 'subMenu');
|
||||
if ( $G_MENU->Classes[$ncount] != '')
|
||||
{
|
||||
$classname = $G_MENU->Classes[$ncount];
|
||||
}
|
||||
if ($onMenu)
|
||||
{
|
||||
{/php}
|
||||
<td height="23" align="center" valign="middle" nowrap="nowrap" class="{php}echo $classname;{/php}">
|
||||
<a href="{php}echo $target;{/php}" class="{php}echo $classname;{/php}"> <b>{php}echo strtoupper($label);{/php}<b> </a>
|
||||
</td>
|
||||
{php}
|
||||
}
|
||||
else
|
||||
{
|
||||
{/php}
|
||||
<td height="23" align="center" valign="middle" nowrap="nowrap" class="{php}echo $classname;{/php}">
|
||||
<a href="{php}echo $target;{/php}" class="{php}echo $classname;{/php}"> {php}echo strtoupper($label);{/php} </a>
|
||||
</td>
|
||||
{php}
|
||||
}
|
||||
if (($ncount + 1) < $G_MENU->OptionCount())
|
||||
{
|
||||
print '<td align="left" class="pipeWhite">|</td>';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{/php}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!--.-->
|
||||
<tr>
|
||||
<td width="100%" align="center">
|
||||
{php}
|
||||
global $G_TEMPLATE;
|
||||
if ($G_TEMPLATE != '')
|
||||
{
|
||||
G::LoadTemplate($G_TEMPLATE);
|
||||
}
|
||||
{/php}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,170 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* wf.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $HTTP_SESSION_VARS;
|
||||
global $G_MENU_SELECTED;
|
||||
global $G_MAIN_MENU;
|
||||
global $G_SUB_MENU;
|
||||
global $G_MENU;
|
||||
global $G_TEMPLATE;
|
||||
global $SYS_COLLECTION;
|
||||
global $SYS_TARGET;
|
||||
global $CURRENT_PAGE;
|
||||
G::LoadInclude ( 'ajax');
|
||||
G::LoadInclude ( 'JSForms');
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php if ( $HTTP_SESSION_VARS['USER_NAME'] != "") print " (" .$HTTP_SESSION_VARS['USER_NAME'] . ")" ?></title>
|
||||
<meta http-equiv="PRAGMA" content="NO-CACHE" />
|
||||
<meta http-equiv="CACHE-CONTROL" content="NO-STORE" />
|
||||
<link rel="stylesheet" type="text/css" href="/skins/wf/general.css" />
|
||||
<script src="/skins/valida.js" type="text/javascript"></script>
|
||||
<script src="/skins/ajax.js" type="text/javascript"></script>
|
||||
<script src="/skins/JSForms.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#999999" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" rightmargin="0">
|
||||
<table background="/skins/wf/topBackgr.jpg" width="100%" height="48" border="0" cellspacing="0" cellpadding="0">
|
||||
<td width="50%" rowspan="2" height="48" valign="top"><img src="/skins/wf/test.gif" width="125" height="48"><font color=white><? /*ac<61> iba el nombre*/ ?></font></td>
|
||||
<td width="50%" height="24" valign="top" >
|
||||
<div align="right" class="title"><small><? /*= PEAR_DATABASE*/ ?></small> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="50%" height="24" valign="bottom" class="title">
|
||||
<div align="right"><? //aca iba el t<>tulo ?></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
$pageSplit = explode ( '/', $CURRENT_PAGE );
|
||||
$path = '/' .$pageSplit[1] . '/' .$pageSplit[2] . '/'.$pageSplit[3] . '/';
|
||||
if( $G_MAIN_MENU != "" ) {
|
||||
$G_MENU = new Menu;
|
||||
$G_MENU->optionOn = $G_MENU_SELECTED;
|
||||
$G_MENU->Load( $G_MAIN_MENU );
|
||||
$G_MENU->Class = "mnu";
|
||||
if( is_array( $G_MENU->Options ) ) {
|
||||
print "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
|
||||
print "<tr>";
|
||||
print "<td height='26' width='50' class='mnuOff'><img src='/skins/wf/spacer.gif' width='5' height='1'></td>";
|
||||
for( $ncount = 0 ; $ncount < $G_MENU->OptionCount() ; $ncount++ ) {
|
||||
$OnOff = ($ncount==$G_MENU->optionOn ? "mnuOn": "mnuOff" );
|
||||
$target = $path . $G_MENU->Options[$ncount];
|
||||
$label = $G_MENU->Labels[ $ncount];
|
||||
//si es un url ABSOLUTO
|
||||
if( $G_MENU->Types[$ncount] == "absolute" ) {
|
||||
if (defined('ENABLE_ENCRYPT')) {
|
||||
$target = str_replace ( 'sys' . SYS_SYS , SYS_SYS , $G_MENU->Options[$ncount] );
|
||||
$target = G::encryptUrlAbsolute ( $target , URL_KEY );
|
||||
}
|
||||
else
|
||||
$target = $path . $G_MENU->Options[$ncount];
|
||||
}
|
||||
print "<td class=\"$OnOff\" height='26'><a href=\"$target\" class='mnuLink'> $label </a> " . "</td>";
|
||||
}
|
||||
print "<td class='mnuOff' height='26' width='50'><img src='/skins/wf/spacer.gif' width='50' height='1'></td>";
|
||||
print "</tr>";
|
||||
print "</table>";
|
||||
}
|
||||
}
|
||||
|
||||
if( $G_SUB_MENU != "" ) {
|
||||
$G_MENU = new Menu;
|
||||
$G_MENU->Load( $G_SUB_MENU );
|
||||
$G_MENU->Class = "subMnu";
|
||||
if( is_array( $G_MENU->Options ) ) {
|
||||
print "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td height='20'><div align='center'>";
|
||||
for( $ncount = 0 ; $ncount < $G_MENU->OptionCount() ; $ncount++ ) {
|
||||
$target = $path . $G_MENU->Options[$ncount];
|
||||
$label = $G_MENU->Labels[ $ncount];
|
||||
//si es un url ABSOLUTO
|
||||
if( $G_MENU->Types[$ncount] == "absolute" ) {
|
||||
if (defined('ENABLE_ENCRYPT')) {
|
||||
$target = str_replace ( 'sys' . SYS_SYS , SYS_SYS , $G_MENU->Options[$ncount] );
|
||||
$target = G::encryptUrlAbsolute ( $target , URL_KEY );
|
||||
}
|
||||
else
|
||||
$target = $path . $G_MENU->Options[$ncount];
|
||||
}
|
||||
print "<a href=\"$target\" class='subMnuLink'> $label </a> ";
|
||||
//$G_MENU->RenderOption( $ncount ); print " ";
|
||||
}
|
||||
print "</td></tr></table>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td background="/skins/wf/menuShadow.gif" height="10" colspan="8"><img src="/skins/wf/spacer.gif" width="1" height="10"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<?php
|
||||
global $HTTP_SESSION_VARS;
|
||||
if (!isset($HTTP_SESSION_VARS['G_MESSAGE']))
|
||||
{
|
||||
$HTTP_SESSION_VARS['G_MESSAGE'] = '';
|
||||
}
|
||||
if (!isset($HTTP_SESSION_VARS['G_MESSAGE_TYPE']))
|
||||
{
|
||||
$HTTP_SESSION_VARS['G_MESSAGE_TYPE'] = '';
|
||||
}
|
||||
$msg = $HTTP_SESSION_VARS['G_MESSAGE'];
|
||||
$msgType = $HTTP_SESSION_VARS['G_MESSAGE_TYPE'];
|
||||
session_unregister ('G_MESSAGE');
|
||||
session_unregister ('G_MESSAGE_TYPE');
|
||||
|
||||
if( $msg != "" ) {
|
||||
$clase = "";
|
||||
if ($msgType=="error") $clase= "Rojo";
|
||||
if ($msgType=="info") $clase= "Azul";
|
||||
if ($msgType=="question") $clase= "Verde";
|
||||
?>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<br>
|
||||
<table><tr><td class="sendMsg<?= $clase?>"><?= $msg ?></td></tr></table>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<?php if( $G_TEMPLATE != "" ) G::LoadTemplate($G_TEMPLATE); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td height="25" class="footerNotice">Copyright © 2002 <a href="http://www.colosa.com" class="smallLink" target="_new">www.colosa.com</a>.
|
||||
All rights reserved.
|
||||
<br>
|
||||
<center class='subtitle'><small><?= SYS_SYS ?></small></center>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id=dummy style="top:0;position:relative;visibility:hidden;">.</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,45 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* wf5.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
G::verifyPath ( '/tmp/smarty/c', true );
|
||||
G::verifyPath ( '/tmp/smarty/cache', true );
|
||||
// put full path to Smarty.class.php
|
||||
require_once(PATH_THIRDPARTY . 'smarty/libs/Smarty.class.php');
|
||||
|
||||
|
||||
$smarty = new Smarty();
|
||||
|
||||
$smarty->template_dir = PATH_SKINS;
|
||||
$smarty->compile_dir = '/tmp/smarty/c'; //'/web/www.domain.com/smarty/templates_c';
|
||||
$smarty->cache_dir = '/tmp/smarty/cache'; //web/www.domain.com/smarty/cache';
|
||||
$smarty->config_dir = PATH_THIRDPARTY . 'smarty/configs';
|
||||
$smarty->caching = false;
|
||||
|
||||
$oHeadPublisher =& headPublisher::getSingleton();
|
||||
if (isset($oHeadPublisher)) $header = $oHeadPublisher->printHeader();
|
||||
$smarty->assign('header', $header );
|
||||
$smarty->display('index.html');
|
||||
|
||||
?>
|
||||
@@ -1,66 +0,0 @@
|
||||
<?
|
||||
/**
|
||||
* testAuthenticationUser.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
$strPass = $_POST['form'][PASS];
|
||||
|
||||
if ( $strPass == '' )
|
||||
return;
|
||||
|
||||
$userId = $_SESSION['CURRENT_USER'];
|
||||
|
||||
$tpl = new TemplatePower( PATH_TPL . 'testAuthenticationSource.html' );
|
||||
$tpl->prepare();
|
||||
$tpl->assign( "STYLE_CSS" , STYLE_CSS );
|
||||
$tpl->assign( "title" , $G_TABLE->title );
|
||||
|
||||
$curAuthSource = $HTTP_SESSION_VARS['CURRENT_AUTH_SOURCE'];
|
||||
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
||||
|
||||
//Class user
|
||||
G::LoadClassRBAC ("user");
|
||||
$user = new RBAC_User;
|
||||
$user->SetTo ($dbc);
|
||||
$user->Load ($userId);
|
||||
|
||||
//crear nueva authentication source
|
||||
G::LoadClassRBAC ('authentication');
|
||||
$obj = new authenticationSource;
|
||||
$obj->SetTo( $dbc );
|
||||
$res = $obj->verifyPassword ( $userId, $user->Fields['USR_LDAP_DN'] , $strPass, $user->Fields['USR_LDAP_SOURCE'] );
|
||||
|
||||
//print "<textarea rows=10 cols=60>"; print_r ($obj->vlog );
|
||||
//print "</textarea >";
|
||||
|
||||
foreach ( $obj->vlog as $line ) {
|
||||
if ( stristr ($line, 'error' ) !== false ) $line = "<font color='Red'>" . $line . '</font>';
|
||||
if ( stristr ($line, 'sucess' ) !== false ) $line = "<font color='Green'>" . $line . '</font>';
|
||||
|
||||
$tpl->newBlock( "lines" );
|
||||
$tpl->assign( "text" , $line );
|
||||
}
|
||||
$tpl->gotoBlock( "_ROOT" );
|
||||
$tpl->printToScreen();
|
||||
|
||||
?>
|
||||
@@ -1,170 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* treePerm.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $G_TABLE;
|
||||
global $G_CONTENT;
|
||||
global $collapsed;
|
||||
global $URI_VARS;
|
||||
global $dbc;
|
||||
global $ses;
|
||||
global $pathViewChart;
|
||||
global $appid;
|
||||
global $canCreatePerm;
|
||||
|
||||
|
||||
$appid = $_SESSION['CURRENT_APPLICATION'];
|
||||
|
||||
$pathViewChart = "";
|
||||
$nodo = isset($_GET['UID'])?$_GET['UID']:'';
|
||||
if ($nodo == "") $pathViewChart = "";
|
||||
|
||||
if ( ! session_is_registered ("CHART_COLLAPSED") ) $_SESSION['CHART_COLLAPSED'] = Array ();
|
||||
|
||||
$collapsed = $_SESSION['CHART_COLLAPSED'];
|
||||
if ( in_array ( $nodo, $collapsed) )
|
||||
$collapsed [ array_search ($nodo, $collapsed) ] = NULL;
|
||||
else
|
||||
array_push ( $collapsed, $nodo);
|
||||
|
||||
$_SESSION['CHART_COLLAPSED'] = $collapsed;
|
||||
|
||||
//Obtener nombre de la applicacion
|
||||
|
||||
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
||||
|
||||
G::LoadClassRBAC ('applications');
|
||||
$obj = new RBAC_Application;
|
||||
$obj->SetTo ($dbc);
|
||||
$obj->Load ($appid);
|
||||
$_SESSION['STR_APP'] = $obj->Fields['APP_CODE'];;
|
||||
$appCode = G::LoadMessage (12);
|
||||
print "<center class='subtitle'>$appCode</center>";
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
|
||||
function showLevel ( $i, $label1, $texto1, $texto2, $uid) {
|
||||
global $pathViewChart;
|
||||
global $collapsed;
|
||||
global $appid;
|
||||
global $dbc;
|
||||
global $canCreatePerm;
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
|
||||
$MAX_LEVEL = 10;
|
||||
$sql = "SELECT count(*) as CANT from PERMISSION WHERE PRM_APPLICATION = $appid AND PRM_PARENT = $uid ";
|
||||
$dset = $ses->Execute($sql);
|
||||
$row2 = $dset->Read();
|
||||
|
||||
$icon = "browse";
|
||||
if ($row2['CANT'] > 0 ) $icon = "minus";
|
||||
if ( in_array ( $uid, $collapsed) ) $icon = "plus";
|
||||
|
||||
$link = "<img src='/images/$icon.gif' border='0'>";
|
||||
if ($icon != "browse" )
|
||||
$link = "<a href='" . $pathViewChart ."permList?UID=$uid'><img src='/images/$icon.gif' border=0></a>";
|
||||
|
||||
print "<tr height=22 valign=top>";
|
||||
for ( $j = 1; $j <= $i; $j ++)
|
||||
print "<td background='/images/ftv2vertline.gif'></td>";
|
||||
|
||||
print "<td valign=center>" . $link . "</td>";
|
||||
print "<td valign=center colspan = '" . ($MAX_LEVEL - $i) . "'> <small>";
|
||||
if ($canCreatePerm==1)
|
||||
print "<a href='" . $pathViewChart . "permEdit?UID=" . $uid . "'>$texto1" ;
|
||||
else
|
||||
print "<b>$texto1</b>";
|
||||
if ($canCreatePerm==1) print "</a>";
|
||||
print " " . $texto2 . "</small> ";
|
||||
|
||||
if ($canCreatePerm==1) {
|
||||
print "<a href='" . $pathViewChart . "permNew?UID=" . $uid . "' ><img src='/images/form.gif' border=0></a> ";
|
||||
if ($icon == "browse" )
|
||||
print "<a href='" . $pathViewChart . "permDel?UID=" . $uid . "' ><img src='/images/trash.gif' border=0></a>";
|
||||
}
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
|
||||
}
|
||||
|
||||
function walkLevel ( $level, $label, $parent ) {
|
||||
global $collapsed;
|
||||
global $appid;
|
||||
global $dbc;
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
$sql = "SELECT UID, PRM_CODE, PRM_DESCRIPTION from PERMISSION WHERE PRM_APPLICATION = $appid AND PRM_PARENT = " . $parent ;
|
||||
$dset = $ses->Execute($sql);
|
||||
$row = $dset->Read();
|
||||
|
||||
$c = 1;
|
||||
while ( is_array ($row) ) {
|
||||
|
||||
if ($label === "*" )
|
||||
{ $label = ""; $locLabel = $c; }
|
||||
else
|
||||
$locLabel = $label . "." . $c;
|
||||
|
||||
showLevel ( $level , $locLabel, $row['PRM_CODE'], $row['PRM_DESCRIPTION'], $row['UID'] );
|
||||
|
||||
if ( ! in_array ( $row['UID'], $collapsed) )
|
||||
walkLevel ( $level + 1, $locLabel, $row['UID']);
|
||||
$c++;
|
||||
$row = $dset->Read();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<table width=100% border=0>
|
||||
<tr>
|
||||
<td align="justify"><? /*$G_CONTENT->Output ("body.header");*/ ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border=0 width=650 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=506></td>
|
||||
</tr>
|
||||
<?php
|
||||
walkLevel (0, "*", 0);
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -1,172 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* treeRole.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
global $G_TABLE;
|
||||
global $G_CONTENT;
|
||||
global $collapsed;
|
||||
global $URI_VARS;
|
||||
global $dbc;
|
||||
global $ses;
|
||||
global $pathViewChart;
|
||||
global $appid;
|
||||
|
||||
$appid = $_SESSION['CURRENT_APPLICATION'];
|
||||
|
||||
$pathViewChart = "";
|
||||
$nodo = isset($_GET[0])?$_GET[0]:'';
|
||||
|
||||
|
||||
if ( ! session_is_registered ("CHART_COLLAPSED") ) $_SESSION['CHART_COLLAPSED'] = Array ();
|
||||
|
||||
$collapsed = $_SESSION['CHART_COLLAPSED'];
|
||||
if ( in_array ( $nodo, $collapsed) )
|
||||
$collapsed [ array_search ($nodo, $collapsed) ] = NULL;
|
||||
else
|
||||
array_push ( $collapsed, $nodo);
|
||||
|
||||
$_SESSION['CHART_COLLAPSED'] = $collapsed;
|
||||
|
||||
//Obtener nombre de la applicacion
|
||||
|
||||
$dbc = new DBConnection(DB_HOST, DB_RBAC_USER, DB_RBAC_PASS, DB_RBAC_NAME );
|
||||
G::LoadClassRBAC ('applications');
|
||||
$obj = new RBAC_Application;
|
||||
$obj->SetTo ($dbc);
|
||||
$obj->Load ($appid);
|
||||
$_SESSION['STR_APP'] = $obj->Fields['APP_CODE'];;
|
||||
$appCode = G::LoadMessage (11);
|
||||
print "<center class='subtitle'>$appCode</center>";
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
|
||||
|
||||
|
||||
|
||||
function showLevel ( $i, $label1, $texto1, $texto2, $uid) {
|
||||
global $pathViewChart;
|
||||
global $collapsed;
|
||||
global $appid;
|
||||
global $dbc;
|
||||
global $canCreateRole;
|
||||
|
||||
$MAX_LEVEL = 10;
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
$sql = "SELECT count(*) as CANT from ROLE WHERE ROL_APPLICATION = $appid AND ROL_PARENT = $uid ";
|
||||
$dset = $ses->Execute($sql);
|
||||
$row = $dset->Read();
|
||||
$rolStatus = $row['CANT'];
|
||||
|
||||
$icon = "browse";
|
||||
if ($row['CANT'] > 0 ) $icon = "minus";
|
||||
if ( in_array ( $uid, $collapsed) ) $icon = "plus";
|
||||
|
||||
$link = "<img src='/images/$icon.gif' border=0>";
|
||||
if ($icon != "browse" )
|
||||
$link = "<a href='" . $pathViewChart ."roleList?0=$uid'><img src='/images/$icon.gif' border=0></a>";
|
||||
|
||||
print "<tr height=22 valign=top>";
|
||||
for ( $j = 1; $j <= $i; $j ++)
|
||||
print "<td background='/images/ftv2vertline.gif'></td>";
|
||||
|
||||
print "<td valign=center>" . $link . "</td>";
|
||||
print "<td valign=center colspan = '" . ($MAX_LEVEL - $i) . "'>";
|
||||
print " <small>";
|
||||
if ($canCreateRole == 1)
|
||||
print "<a href='" . $pathViewChart . "roleEdit?0=" . $uid . "'>" . $texto1 ."</a>";
|
||||
else
|
||||
print "<b>$texto1</b>";
|
||||
print " " . $texto2 . "</small> ";
|
||||
|
||||
print "<a href='" . $pathViewChart . "loadRoleProp2?ROL_UID=" . $uid . "' ><img src='/images/edit.gif' height=18 width =16 border=0></a> ";
|
||||
if ($canCreateRole == 1) {
|
||||
print "<a href='" . $pathViewChart . "roleNew?0=" . $uid . "' ><img src='/images/form.gif' height=18 width =16 border=0></a> ";
|
||||
if ($icon == "browse" )
|
||||
print "<a href='" . $pathViewChart . "roleDel?0=" . $uid . "' ><img src='/images/trash.gif' border=0></a>";
|
||||
}
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
|
||||
}
|
||||
|
||||
function walkLevel ( $level, $label, $parent ) {
|
||||
global $collapsed;
|
||||
global $appid;
|
||||
global $dbc;
|
||||
|
||||
$ses = new DBSession;
|
||||
$ses->SetTo ($dbc);
|
||||
$sql = "SELECT UID, ROL_CODE, ROL_DESCRIPTION from ROLE WHERE ROL_APPLICATION = $appid AND ROL_PARENT = " . $parent ;
|
||||
$dset = $ses->Execute($sql);
|
||||
$row = $dset->Read();
|
||||
|
||||
$c = 1;
|
||||
while ( is_array ($row) ) {
|
||||
|
||||
if ($label === "*" )
|
||||
{ $label = ""; $locLabel = $c; }
|
||||
else
|
||||
$locLabel = $label . "." . $c;
|
||||
|
||||
showLevel ( $level , $locLabel, $row['ROL_CODE'], $row['ROL_DESCRIPTION'], $row['UID'] );
|
||||
|
||||
if ( ! in_array ( $row['UID'], $collapsed) )
|
||||
walkLevel ( $level + 1, $locLabel, $row['UID']);
|
||||
$c++;
|
||||
$row = $dset->Read();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<table width=100% border=0>
|
||||
<tr>
|
||||
<td align="justify"><? /*$G_CONTENT->Output ("body.header");*/ ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border=0 width=650 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=16></td>
|
||||
<td width=506></td>
|
||||
</tr>
|
||||
<?php
|
||||
walkLevel (0, "*", 0);
|
||||
?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* cases_Redirect.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* cases_SaveData.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* processes_ImportFileExisting.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* processes_ImportFile.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* login_getStarted.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
function addNodox($obj, $padre, $indice, $contenido='', $atributos)
|
||||
{
|
||||
if(is_object($padre))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* processes_ImportFile.php
|
||||
*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* upgrade_SystemAjax.php
|
||||
*
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
$aFields=array("_FILENAME_"=>basename( $filename ) );
|
||||
$value = G::replaceDataField( $value , $aFields );
|
||||
$aOrigin = file( $filename);
|
||||
//It suposse that allway start with <? or <?php
|
||||
//It suposse that allway start with <?. or <?php
|
||||
$line=$aOrigin[0];
|
||||
$nl=(strlen($line)>=2)&&(substr($line,-2,2)=="\r\n")?
|
||||
"\r\n":
|
||||
@@ -154,7 +154,7 @@
|
||||
function add_permission($filename,$value)
|
||||
{
|
||||
$aOrigin = file( $filename);
|
||||
//It suposse that allway start with <? or <?php
|
||||
//It suposse that allway start with <?. or <?php
|
||||
$aSource[0]=$aOrigin[0];
|
||||
$line=$aOrigin[0];
|
||||
$nl=(strlen($line)>=2)&&(substr($line,-2,2)=="\r\n")?
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* cases_DynaformHistory.php
|
||||
*
|
||||
|
||||
@@ -161,28 +161,28 @@ function Only1br($string) {
|
||||
<table width='100%' cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
||||
<tr>
|
||||
<td width='410px' class='treeNode' style='border:0px;background-color:transparent;'>
|
||||
<font color='#0B58B6'><?=$triggers_onfly?></font><br/>
|
||||
<?if( sizeof($triggers_name) > 0 ) {?>
|
||||
<font color='#0B58B6'><?php= $triggers_onfly?></font><br/>
|
||||
<?php if( sizeof($triggers_name) > 0 ) {?>
|
||||
<table class="pmdebugger" width="100%">
|
||||
<tr>
|
||||
<td width="5" class="pmdebuggerHeader">#</td><td class="pmdebuggerHeader">Name</td><td class="pmdebuggerHeader"> </td>
|
||||
</tr>
|
||||
<?foreach($triggers_name as $k=>$trigger) {?>
|
||||
<?php foreach($triggers_name as $k=>$trigger) {?>
|
||||
<tr>
|
||||
<td> <?=($k+1)?> </td>
|
||||
<td> <?php =($k+1)?> </td>
|
||||
<td>
|
||||
<?=$trigger?>
|
||||
<div id='trigger_<?=$k?>' class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-all data_view'><?=$triggers_code[$k]?></div>
|
||||
<?php= $trigger?>
|
||||
<div id='trigger_<?php= $k?>' class='ui-accordion-header ui-helper-reset ui-state-active ui-corner-all data_view'><?php=$triggers_code[$k]?></div>
|
||||
</td>
|
||||
<td valign="top" width="5">
|
||||
<a href='#' onclick="toggle('trigger_<?=$k?>'); return false;">
|
||||
<img id='img_trigger_<?=$k?>' src='/images/pin-up-on.gif' border='0'>
|
||||
<a href='#' onclick="toggle('trigger_<?php=$k?>'); return false;">
|
||||
<img id='img_trigger_<?php=$k?>' src='/images/pin-up-on.gif' border='0'>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?}?>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<?}?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -199,49 +199,49 @@ function Only1br($string) {
|
||||
<tr>
|
||||
<?php if( is_array($aVariable) ) {?>
|
||||
<td valign="top"><font color="blue"> <?=$sName?></font></td>
|
||||
<?} else {?>
|
||||
<td> <?=$sName?></td>
|
||||
<?}?>
|
||||
<?php } else {?>
|
||||
<td> <?php =$sName?></td>
|
||||
<?php }?>
|
||||
<td><?php echo expandVarView($aVariable, $sName)?></td>
|
||||
</tr>
|
||||
<?}?>
|
||||
<?php }?>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!---->
|
||||
<?if( count($DEBUG_POST) > 0 ) {?>
|
||||
<?php if( count($DEBUG_POST) > 0 ) {?>
|
||||
<div class="ui-widget-header ui-corner-all" width="50%" align="center">Errors</div>
|
||||
<div id="debugger_errors" class="ui-accordion-header ui-helper-reset ui-state-active ui-corner-all" align="left">
|
||||
|
||||
<? for($i=0; $i<count($DEBUG_POST); $i++) {
|
||||
<?php for($i=0; $i<count($DEBUG_POST); $i++) {
|
||||
if(isset($DEBUG_POST[$i]['ERROR']) and $DEBUG_POST[$i]['ERROR'] != '') {?>
|
||||
<span class='treeNode'>
|
||||
<font color='red'>Error </font>
|
||||
<font color='#0B58B6'><?=str_replace('<br />', '',$DEBUG_POST[$i]['ERROR'])?></font>
|
||||
<font color='#0B58B6'><?php=str_replace('<br />', '',$DEBUG_POST[$i]['ERROR'])?></font>
|
||||
</span><br/>
|
||||
<?}
|
||||
<?php}
|
||||
}
|
||||
for($i=0; $i<count($DEBUG_POST); $i++) { ?>
|
||||
<?if(isset($DEBUG_POST[$i]['FATAL']) and $DEBUG_POST[$i]['FATAL'] != '') { ?>
|
||||
<?php if(isset($DEBUG_POST[$i]['FATAL']) and $DEBUG_POST[$i]['FATAL'] != '') { ?>
|
||||
<span class='treeNode'>
|
||||
<font color='red'>Fatal error </font>
|
||||
<font color='#0B58B6'> <?=str_replace('<br />', '',$DEBUG_POST[$i]['FATAL'])?></font>
|
||||
<font color='#0B58B6'> <?php=str_replace('<br />', '',$DEBUG_POST[$i]['FATAL'])?></font>
|
||||
</span><br/>
|
||||
<?}
|
||||
<?php }
|
||||
}
|
||||
} else { ?>
|
||||
<div class="ui-widget-header ui-corner-all" width="50%" align="center">No errors reported</div>
|
||||
<?}?>
|
||||
<?php}?>
|
||||
</div>
|
||||
|
||||
<!---->
|
||||
|
||||
<?if(isset($_POST['NextStep'])) {?>
|
||||
<input type="button" value="Continue" class="module_app_button___gray" onclick="javascript:location.href='<?=$_POST['NextStep']?>'">
|
||||
<?}?>
|
||||
<?php if(isset($_POST['NextStep'])) {?>
|
||||
<input type="button" value="Continue" class="module_app_button___gray" onclick="javascript:location.href='<?php= $_POST['NextStep']?>'">
|
||||
<?php}?>
|
||||
|
||||
|
||||
<?
|
||||
<?php
|
||||
|
||||
function expandVarView($a, $name) {
|
||||
if( is_array($a) ) {
|
||||
|
||||
@@ -91,25 +91,25 @@
|
||||
|
||||
<div id="dynafields">
|
||||
<ul id="sortable" style="margin:0; padding:0;">
|
||||
<? foreach($elements as $node_name=>$node){
|
||||
<?php foreach($elements as $node_name=>$node){
|
||||
if( isset($hidden_fields_list) ){
|
||||
$checked = !(in_array($node_name, $hidden_fields_list))? 'checked="checked"': '';
|
||||
} else {
|
||||
$checked = 'checked="checked"';
|
||||
}
|
||||
?>
|
||||
<li style="list-style:none;" id="<?=$node_name?>" class="ui-state-default" onmouseover="setClass(this, 'current_selected_item')" onmouseout="setClass(this, 'ui-state-default')">
|
||||
<li style="list-style:none;" id="<?php=$node_name?>" class="ui-state-default" onmouseover="setClass(this, 'current_selected_item')" onmouseout="setClass(this, 'ui-state-default')">
|
||||
<table class="dynalist" border="0" width="100%" cellpadding="0" cellspacing="0" id="fieldshandler_items_table">
|
||||
<tr>
|
||||
<td width="15px">
|
||||
<?php if($node['__ATTRIBUTES__']['type'] != 'javascript' && $dynaformType != 'grid') {?>
|
||||
<input id="chk@<?=$node_name?>" type="checkbox" onclick="fieldsHandlerSaveHidden()" <?php echo $checked?> />
|
||||
<input id="chk@<?php=$node_name?>" type="checkbox" onclick="fieldsHandlerSaveHidden()" <?php echo $checked?> />
|
||||
<?php } else {?>
|
||||
|
||||
<?php }?>
|
||||
</td>
|
||||
<td width="10px" class="directionSide1">
|
||||
<?$type = $node['__ATTRIBUTES__']['type'];
|
||||
<?php $type = $node['__ATTRIBUTES__']['type'];
|
||||
switch($type){
|
||||
case 'yesno': $type = 'yes_no'; break;
|
||||
case 'listbox': $type = 'list_box'; break;
|
||||
@@ -118,10 +118,10 @@
|
||||
case 'file': $type = 'upload_files'; break;
|
||||
}?>
|
||||
<?php if ( is_file(PATH_HTML.'images'.PATH_SEP.'dynamicForm'.PATH_SEP."$type.gif") ){?>
|
||||
<img src="/images/dynamicForm/<?=$type?>.gif"/>
|
||||
<?} else {?>
|
||||
<img src="/images/dynamicForm/<?php= $type?>.gif"/>
|
||||
<?php } else {?>
|
||||
<img src="/images/unknown_icon.gif" border="0" width="20" height="16"/>
|
||||
<?}?>
|
||||
<?php }?>
|
||||
</td>
|
||||
<td width="80px" class="directionSide1">
|
||||
<?php echo "({$node['__ATTRIBUTES__']['type']})";?>
|
||||
@@ -146,20 +146,20 @@
|
||||
<?php if( in_array($node['__ATTRIBUTES__']['type'], $_POST['fieldsList']) ){ ?>
|
||||
<!-- <div class="tool"><img src="/images/options.png" width="12" height="12" border="0"/> </div>-->
|
||||
<div class="jq-checkpointSubhead" style="display:block">
|
||||
<a title="<?php echo G::loadTranslation('ID_EDIT_FIELD')?>" href="#" onclick="__ActionEdit('<?=$node_name?>'); return false;"><img src="/images/e_Edit.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
<a title="<?php echo G::loadTranslation('ID_REMOVE_FIELD')?>" href="#" onclick="__ActionDelete('<?=$node_name?>', '<?=$node['__ATTRIBUTES__']['type'];?>');return false;"><img src="/images/e_Delete.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
<a title="<?php echo G::loadTranslation('ID_EDIT_FIELD')?>" href="#" onclick="__ActionEdit('<?php= $node_name?>'); return false;"><img src="/images/e_Edit.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
<a title="<?php echo G::loadTranslation('ID_REMOVE_FIELD')?>" href="#" onclick="__ActionDelete('<?php= $node_name?>', '<?php= $node['__ATTRIBUTES__']['type'];?>');return false;"><img src="/images/e_Delete.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
</div>
|
||||
<?} else {?>
|
||||
<?php } else {?>
|
||||
<div class="tool"><img src="/images/options.png" width="12" height="12" border="0"/> </div>
|
||||
<div class="jq-checkpointSubhead" style="display:none">
|
||||
<a title="<?php echo G::loadTranslation('ID_REMOVE_FIELD')?>" href="#" onclick="__ActionDelete('<?=$node_name?>', '<?=$node['__ATTRIBUTES__']['type'];?>');return false;"><img src="/images/e_Delete.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
<a title="<?php echo G::loadTranslation('ID_REMOVE_FIELD')?>" href="#" onclick="__ActionDelete('<?php= $node_name?>', '<?php= $node['__ATTRIBUTES__']['type'];?>');return false;"><img src="/images/e_Delete.png" width="15" height="15" border="0" onmouseout="backImage(this,'')" onmouseover="backImage(this,'url(/images/dynamicForm/hover.gif) no-repeat')"/></a>
|
||||
</div>
|
||||
<?}?>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</li>
|
||||
<?}?>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
@@ -101,7 +101,7 @@ body {
|
||||
|
||||
</div>
|
||||
<div class="modal" id="light">
|
||||
<div class="header"><?=G::LoadTranslation('ID_LOADING')?></div>
|
||||
<div class="header"><?php=G::LoadTranslation('ID_LOADING')?></div>
|
||||
<div class="body">
|
||||
<img src="/images/activity.gif" />
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?php
|
||||
/**
|
||||
* testAuthenticationUser.php
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user