HOR-3700
Fix Tree ambiguos class. Resolved renaming Tree to PmTree
This commit is contained in:
@@ -1,38 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* class.tree.php
|
|
||||||
*
|
|
||||||
* @package gulliver.system
|
|
||||||
*
|
|
||||||
* ProcessMaker Open Source Edition
|
|
||||||
* Copyright (C) 2004 - 2011 Colosa Inc.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
* <20>
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @package gulliver.system
|
* @package gulliver.system
|
||||||
*/
|
*/
|
||||||
|
class PmTree extends Xml_Node
|
||||||
|
|
||||||
class Tree extends Xml_Node
|
|
||||||
{
|
{
|
||||||
|
|
||||||
public $template = 'tree.html';
|
public $template = 'tree.html';
|
||||||
@@ -55,7 +27,7 @@ class Tree extends Xml_Node
|
|||||||
*
|
*
|
||||||
* @return none
|
* @return none
|
||||||
*/
|
*/
|
||||||
public function Tree($xmlnode = null)
|
public function PmTree($xmlnode = null)
|
||||||
{
|
{
|
||||||
if (!isset($xmlnode)) {
|
if (!isset($xmlnode)) {
|
||||||
return;
|
return;
|
||||||
@@ -66,7 +38,7 @@ class Tree extends Xml_Node
|
|||||||
foreach ($xmlnode as $key => $value) {
|
foreach ($xmlnode as $key => $value) {
|
||||||
if ($key === 'children') {
|
if ($key === 'children') {
|
||||||
foreach ($xmlnode->children as $key => $value) {
|
foreach ($xmlnode->children as $key => $value) {
|
||||||
$this->children[$key] = new Tree($value->toTree());
|
$this->children[$key] = new PmTree($value->toTree());
|
||||||
}
|
}
|
||||||
} elseif ($key === 'attributes') {
|
} elseif ($key === 'attributes') {
|
||||||
foreach ($xmlnode->attributes as $key => $value) {
|
foreach ($xmlnode->attributes as $key => $value) {
|
||||||
@@ -89,7 +61,7 @@ class Tree extends Xml_Node
|
|||||||
*/
|
*/
|
||||||
public function &addChild($name, $label, $attributes = array())
|
public function &addChild($name, $label, $attributes = array())
|
||||||
{
|
{
|
||||||
$newNode = new Tree(new Xml_Node($name, 'open', $label, $attributes));
|
$newNode = new PmTree(new Xml_Node($name, 'open', $label, $attributes));
|
||||||
$this->children[] = & $newNode;
|
$this->children[] = & $newNode;
|
||||||
return $newNode;
|
return $newNode;
|
||||||
}
|
}
|
||||||
@@ -156,4 +128,3 @@ class Tree extends Xml_Node
|
|||||||
return $obj->printObject(array('node' => &$this));
|
return $obj->printObject(array('node' => &$this));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -745,7 +745,7 @@ function openPMFolder()
|
|||||||
exit ();
|
exit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
$tree = new Tree ();
|
$tree = new PmTree ();
|
||||||
$tree->name = 'DMS';
|
$tree->name = 'DMS';
|
||||||
$tree->nodeType = "blank";
|
$tree->nodeType = "blank";
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ $c->add(AppThreadPeer::APP_UID, $APP_UID );
|
|||||||
$c->add(AppThreadPeer::APP_THREAD_STATUS , 'OPEN' );
|
$c->add(AppThreadPeer::APP_THREAD_STATUS , 'OPEN' );
|
||||||
$cant = AppThreadPeer::doCount($c);
|
$cant = AppThreadPeer::doCount($c);
|
||||||
|
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->nodeType = "blank";
|
$oTree->nodeType = "blank";
|
||||||
$oTree->name = 'Actions';
|
$oTree->name = 'Actions';
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->nodeType ="blank";
|
$oTree->nodeType ="blank";
|
||||||
$oTree->name = 'Information';
|
$oTree->name = 'Information';
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->name = 'KT';
|
$oTree->name = 'KT';
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ use ProcessMaker\Plugins\PluginRegistry;
|
|||||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||||
$externalSteps = $oPluginRegistry->getSteps();
|
$externalSteps = $oPluginRegistry->getSteps();
|
||||||
|
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->nodeType = "blank";
|
$oTree->nodeType = "blank";
|
||||||
$oTree->name = 'Steps';
|
$oTree->name = 'Steps';
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Groups';
|
$tree->name = 'Groups';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "200px";
|
$tree->width = "200px";
|
||||||
|
|||||||
@@ -1,78 +1,78 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* groups_Tree.php
|
* groups_Tree.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description This is the View of all groups from a determinated user
|
* @Description This is the View of all groups from a determinated user
|
||||||
* @author Erik Amaru Ortiz <erik@colosa.com>
|
* @author Erik Amaru Ortiz <erik@colosa.com>
|
||||||
* @Date 24/04/2008
|
* @Date 24/04/2008
|
||||||
* @LastModification none
|
* @LastModification none
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$ROL_UID = $_GET['ROL_UID'];
|
$ROL_UID = $_GET['ROL_UID'];
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
$oDataset = $RBAC->getAllPermissions($ROL_UID,$RBAC->sSystem);
|
$oDataset = $RBAC->getAllPermissions($ROL_UID,$RBAC->sSystem);
|
||||||
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
$tree->value = '
|
$tree->value = '
|
||||||
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="boxContentBlue">
|
<div class="boxContentBlue">
|
||||||
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="userGroupTitle">' . G::LoadTranslation('ID_ASSIGN_THE_ROLE') . ': '.$roleCode.'</td>
|
<td class="userGroupTitle">' . G::LoadTranslation('ID_ASSIGN_THE_ROLE') . ': '.$roleCode.'</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="userGroupLink"><a href="#" onclick="backPermissions(\''.$_GET['ROL_UID'].'\');return false;">' . G::LoadTranslation('ID_BACK_PERMISSIONS_LIST').'</a></div>';
|
<div class="userGroupLink"><a href="#" onclick="backPermissions(\''.$_GET['ROL_UID'].'\');return false;">' . G::LoadTranslation('ID_BACK_PERMISSIONS_LIST').'</a></div>';
|
||||||
|
|
||||||
$tree->showSign = false;
|
$tree->showSign = false;
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$ID_ASSIGN = G::LoadTranslation('ID_ASSIGN');
|
$ID_ASSIGN = G::LoadTranslation('ID_ASSIGN');
|
||||||
|
|
||||||
$CODE = $aRow['PER_CODE'];
|
$CODE = $aRow['PER_CODE'];
|
||||||
$UID = $aRow['PER_UID'];
|
$UID = $aRow['PER_UID'];
|
||||||
|
|
||||||
$html = "
|
$html = "
|
||||||
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
||||||
<tr>
|
<tr>
|
||||||
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$CODE}</td>
|
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$CODE}</td>
|
||||||
<td class='treeNode' style='border:0px;background-color:transparent;'>[<a href=\"javascript:assignPermissionToRole('{$ROL_UID}','{$UID}');\">{$ID_ASSIGN}</a>]</td>
|
<td class='treeNode' style='border:0px;background-color:transparent;'>[<a href=\"javascript:assignPermissionToRole('{$ROL_UID}','{$UID}');\">{$ID_ASSIGN}</a>]</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>";
|
</table>";
|
||||||
|
|
||||||
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
||||||
$ch->point = '<img src="/images/users.png" />';
|
$ch->point = '<img src="/images/users.png" />';
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print ($tree->render());
|
print ($tree->render());
|
||||||
|
|||||||
@@ -1,78 +1,78 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* groups_Tree.php
|
* groups_Tree.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description This is the View of all groups from a determinated user
|
* @Description This is the View of all groups from a determinated user
|
||||||
* @author Erik Amaru Ortiz <erik@colosa.com>
|
* @author Erik Amaru Ortiz <erik@colosa.com>
|
||||||
* @Date 24/04/2008
|
* @Date 24/04/2008
|
||||||
* @LastModification none
|
* @LastModification none
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$ROL_UID = $_GET['ROL_UID'];
|
$ROL_UID = $_GET['ROL_UID'];
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
$oDataset = $RBAC->getAllUsers($ROL_UID);
|
$oDataset = $RBAC->getAllUsers($ROL_UID);
|
||||||
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
$tree->value = '
|
$tree->value = '
|
||||||
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="boxContentBlue">
|
<div class="boxContentBlue">
|
||||||
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="userGroupTitle">' . G::LoadTranslation('ID_ASSIGN_THE_ROLE') . ': '.$roleCode.'</td>
|
<td class="userGroupTitle">' . G::LoadTranslation('ID_ASSIGN_THE_ROLE') . ': '.$roleCode.'</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="userGroupLink"><a href="#" onclick="backUsers(\''.$_GET['ROL_UID'].'\');return false;">' . G::LoadTranslation('ID_BACK_TO_USERS_LIST') . '</a></div>';
|
<div class="userGroupLink"><a href="#" onclick="backUsers(\''.$_GET['ROL_UID'].'\');return false;">' . G::LoadTranslation('ID_BACK_TO_USERS_LIST') . '</a></div>';
|
||||||
|
|
||||||
$tree->showSign = false;
|
$tree->showSign = false;
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$ID_ASSIGN = G::LoadTranslation('ID_ASSIGN');
|
$ID_ASSIGN = G::LoadTranslation('ID_ASSIGN');
|
||||||
|
|
||||||
$user = '['.$aRow['USR_USERNAME'].'] '.$aRow['USR_FIRSTNAME'].' '.$aRow['USR_LASTNAME'];
|
$user = '['.$aRow['USR_USERNAME'].'] '.$aRow['USR_FIRSTNAME'].' '.$aRow['USR_LASTNAME'];
|
||||||
$USR_UID = $aRow['USR_UID'];
|
$USR_UID = $aRow['USR_UID'];
|
||||||
|
|
||||||
$html = "
|
$html = "
|
||||||
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
||||||
<tr>
|
<tr>
|
||||||
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$user}</td>
|
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$user}</td>
|
||||||
<td class='treeNode' style='border:0px;background-color:transparent;'>[<a href=\"javascript:assignUserToRole('{$ROL_UID}','{$USR_UID}');\">{$ID_ASSIGN}</a>]</td>
|
<td class='treeNode' style='border:0px;background-color:transparent;'>[<a href=\"javascript:assignUserToRole('{$ROL_UID}','{$USR_UID}');\">{$ID_ASSIGN}</a>]</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>";
|
</table>";
|
||||||
|
|
||||||
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
||||||
$ch->point = '<img src="/images/users.png" />';
|
$ch->point = '<img src="/images/users.png" />';
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print ($tree->render());
|
print ($tree->render());
|
||||||
|
|||||||
@@ -1,84 +1,84 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* groups_Tree.php
|
* groups_Tree.php
|
||||||
*
|
*
|
||||||
* ProcessMaker Open Source Edition
|
* ProcessMaker Open Source Edition
|
||||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
* published by the Free Software Foundation, either version 3 of the
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
* License, or (at your option) any later version.
|
* License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU Affero General Public License for more details.
|
* GNU Affero General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* 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/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description This is the View of all groups from a determinated user
|
* @Description This is the View of all groups from a determinated user
|
||||||
* @author Erik Amaru Ortiz <erik@colosa.com>
|
* @author Erik Amaru Ortiz <erik@colosa.com>
|
||||||
* @Date 24/04/2008
|
* @Date 24/04/2008
|
||||||
* @LastModification none
|
* @LastModification none
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$ROL_UID = $_GET['ROL_UID'];
|
$ROL_UID = $_GET['ROL_UID'];
|
||||||
global $RBAC;
|
global $RBAC;
|
||||||
$oDataset = $RBAC->getRoleUsers($ROL_UID);
|
$oDataset = $RBAC->getRoleUsers($ROL_UID);
|
||||||
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
$tree->value = '
|
$tree->value = '
|
||||||
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="boxContentBlue">
|
<div class="boxContentBlue">
|
||||||
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="userGroupTitle">' . G::LoadTranslation('ID_USER_WITH_ROLE') . ': '.$roleCode.'</td>
|
<td class="userGroupTitle">' . G::LoadTranslation('ID_USER_WITH_ROLE') . ': '.$roleCode.'</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||||
<div class="userGroupLink"><a href="#" onclick="showUsersLoad(\''.$_GET['ROL_UID'].'\');return false;">'.G::LoadTranslation('ID_ASSIGN_ROLE').'</a></div>';
|
<div class="userGroupLink"><a href="#" onclick="showUsersLoad(\''.$_GET['ROL_UID'].'\');return false;">'.G::LoadTranslation('ID_ASSIGN_ROLE').'</a></div>';
|
||||||
|
|
||||||
$tree->showSign = false;
|
$tree->showSign = false;
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($aRow = $oDataset->getRow()) {
|
||||||
$ID_DELETE = G::LoadTranslation('ID_REMOVE');
|
$ID_DELETE = G::LoadTranslation('ID_REMOVE');
|
||||||
$un = ($aRow['USR_USERNAME'] != '')?$aRow['USR_USERNAME']:'none';
|
$un = ($aRow['USR_USERNAME'] != '')?$aRow['USR_USERNAME']:'none';
|
||||||
$user = '['.$un.'] '.$aRow['USR_FIRSTNAME'].' '.$aRow['USR_LASTNAME'];
|
$user = '['.$un.'] '.$aRow['USR_FIRSTNAME'].' '.$aRow['USR_LASTNAME'];
|
||||||
$USR_UID = $aRow['USR_UID'];
|
$USR_UID = $aRow['USR_UID'];
|
||||||
|
|
||||||
if($USR_UID != "00000000000000000000000000000001") { #because the admin remove rol it doesn't posible
|
if($USR_UID != "00000000000000000000000000000001") { #because the admin remove rol it doesn't posible
|
||||||
$refer = "<a href=\"javascript:deleteUserRole('{$ROL_UID}','{$USR_UID}');\">{$ID_DELETE}</a>";
|
$refer = "<a href=\"javascript:deleteUserRole('{$ROL_UID}','{$USR_UID}');\">{$ID_DELETE}</a>";
|
||||||
} else {
|
} else {
|
||||||
$refer = "<font color='#CFCFCF'>{$ID_DELETE}</font>";
|
$refer = "<font color='#CFCFCF'>{$ID_DELETE}</font>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = "
|
$html = "
|
||||||
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
|
||||||
<tr>
|
<tr>
|
||||||
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$user}</td>
|
<td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$user}</td>
|
||||||
<td class='treeNode' style='border:0px;background-color:transparent;'>[$refer]</td>
|
<td class='treeNode' style='border:0px;background-color:transparent;'>[$refer]</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>";
|
</table>";
|
||||||
|
|
||||||
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
$ch = &$tree->addChild('', $html, array('nodeType' => 'child'));
|
||||||
$ch->point = '<img src="/images/users.png" />';
|
$ch->point = '<img src="/images/users.png" />';
|
||||||
|
|
||||||
$oDataset->next();
|
$oDataset->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print ($tree->render());
|
print ($tree->render());
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
$roleCode = $RBAC->getRoleCode($ROL_UID);
|
||||||
|
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ $defaultEndpoint = 'http://' . $_SERVER ['SERVER_NAME'] . ':' . $_SERVER ['SERVE
|
|||||||
|
|
||||||
$wsdl = isset ( $_SESSION ['END_POINT'] ) ? $_SESSION ['END_POINT'] : $defaultEndpoint;
|
$wsdl = isset ( $_SESSION ['END_POINT'] ) ? $_SESSION ['END_POINT'] : $defaultEndpoint;
|
||||||
|
|
||||||
$tree = new Tree ( );
|
$tree = new PmTree ( );
|
||||||
$tree->name = 'WebServices';
|
$tree->name = 'WebServices';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->contentWidth = "310";
|
$tree->contentWidth = "310";
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ try {
|
|||||||
$externalSteps = $oPluginRegistry->getSteps();
|
$externalSteps = $oPluginRegistry->getSteps();
|
||||||
|
|
||||||
$oProcessMap = new ProcessMap();
|
$oProcessMap = new ProcessMap();
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->nodeType = 'blank';
|
$oTree->nodeType = 'blank';
|
||||||
$oTree->name = 'Triggers';
|
$oTree->name = 'Triggers';
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
/*
|
/*
|
||||||
* Esto no deberias borrarlo
|
* Esto no deberias borrarlo
|
||||||
*/
|
*/
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
|
|
||||||
reView(PATH_TRUNK, $tree);
|
reView(PATH_TRUNK, $tree);
|
||||||
print( $tree->render());
|
print( $tree->render());
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ try {
|
|||||||
$triggerLibrary = TriggerLibrary::getSingleton();
|
$triggerLibrary = TriggerLibrary::getSingleton();
|
||||||
$triggerLibraryO = $triggerLibrary->getRegisteredClasses();
|
$triggerLibraryO = $triggerLibrary->getRegisteredClasses();
|
||||||
|
|
||||||
$oTree = new Tree();
|
$oTree = new PmTree();
|
||||||
$oTree->nodeType = "blank";
|
$oTree->nodeType = "blank";
|
||||||
$oTree->name = "Triggers";
|
$oTree->name = "Triggers";
|
||||||
$oTree->showSign = false;
|
$oTree->showSign = false;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
$groups = new Groups();
|
$groups = new Groups();
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
$groups = new Groups();
|
$groups = new Groups();
|
||||||
|
|
||||||
$tree = new Tree();
|
$tree = new PmTree();
|
||||||
$tree->name = 'Users';
|
$tree->name = 'Users';
|
||||||
$tree->nodeType = "base";
|
$tree->nodeType = "base";
|
||||||
$tree->width = "350px";
|
$tree->width = "350px";
|
||||||
|
|||||||
Reference in New Issue
Block a user