Merged in bugfix/HOR-3348 (pull request #5746)
HOR-3348 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -1,171 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* casesDemo.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.
|
||||
*/
|
||||
|
||||
try {
|
||||
|
||||
$rows[] = array ('uid' => 'char','name' => 'char','age' => 'integer','balance' => 'float');
|
||||
$rows[] = array ('uid' => 11,'name' => 'john','age' => 44,'balance' => 123423);
|
||||
$rows[] = array ('uid' => 22,'name' => 'bobby','age' => 33,'balance' => 23456);
|
||||
$rows[] = array ('uid' => 33,'name' => 'Dan','age' => 22,'balance' => 34567);
|
||||
$rows[] = array ('uid' => 33,'name' => 'Mike','age' => 21,'balance' => 4567);
|
||||
$rows[] = array ('uid' => 44,'name' => 'Paul','age' => 22,'balance' => 567);
|
||||
$rows[] = array ('uid' => 55,'name' => 'Will','age' => 23,'balance' => 67);
|
||||
$rows[] = array ('uid' => 66,'name' => 'Ernest','age' => 24,'balance' => 7);
|
||||
$rows[] = array ('uid' => 77,'name' => 'Albert','age' => 25,'balance' => 84567);
|
||||
$rows[] = array ('uid' => 88,'name' => 'Sue','age' => 26,'balance' => 94567);
|
||||
$rows[] = array ('uid' => 99,'name' => 'Freddy','age' => 22,'balance' => 04567);
|
||||
|
||||
$_DBArray['user'] = $rows;
|
||||
$_SESSION['_DBArray'] = $_DBArray;
|
||||
//krumo ( $_DBArray );
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
$c = new Criteria( 'dbarray' );
|
||||
$c->setDBArrayTable( 'user' );
|
||||
// $c->add ( 'user.age', 22 , Criteria::GREATER_EQUAL );
|
||||
// $c->add ( 'user.age', 22 , Criteria::EQUAL );
|
||||
$c->add( 'user.name', '%au%', Criteria::LIKE );
|
||||
// $c->add ( 'user.balance', 3456 , Criteria::GREATER_EQUAL );
|
||||
$c->addAscendingOrderByColumn( 'name' );
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'CASES';
|
||||
$G_PUBLISH = new Publisher();
|
||||
// $G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
||||
//$G_PUBLISH->AddContent('smarty', 'cases/casesDemo', '', '', $Fields);
|
||||
// G::RenderPage( "publish" );
|
||||
//die;
|
||||
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'pmScript' );
|
||||
G::LoadClass( 'case' );
|
||||
G::LoadClass( 'derivation' );
|
||||
$oCase = new Cases();
|
||||
$appUid = isset( $_SESSION['APPLICATION'] ) ? $_SESSION['APPLICATION'] : '';
|
||||
$appFields = $oCase->loadCase( $appUid );
|
||||
|
||||
$Fields['APP_UID'] = $appFields['APP_UID'];
|
||||
$Fields['APP_NUMBER'] = $appFields['APP_NUMBER'];
|
||||
$Fields['APP_STATUS'] = $appFields['APP_STATUS'];
|
||||
$Fields['STATUS'] = $appFields['STATUS'];
|
||||
$Fields['APP_TITLE'] = $appFields['TITLE'];
|
||||
$Fields['PRO_UID'] = $appFields['PRO_UID'];
|
||||
$Fields['APP_PARALLEL'] = $appFields['APP_PARALLEL'];
|
||||
$Fields['APP_INIT_USER'] = $appFields['APP_INIT_USER'];
|
||||
$Fields['APP_CUR_USER'] = $appFields['APP_CUR_USER'];
|
||||
$Fields['APP_DATA'] = $appFields['APP_DATA'];
|
||||
$Fields['CREATOR'] = $appFields['CREATOR'];
|
||||
$Fields['APP_PIN'] = $appFields['APP_PIN'];
|
||||
$Fields['APP_PROC_CODE'] = $appFields['APP_PROC_CODE'];
|
||||
|
||||
$objProc = new Process();
|
||||
$aProc = $objProc->load($appFields['PRO_UID']);
|
||||
$Fields['PRO_TITLE'] = $aProc['PRO_TITLE'];
|
||||
$oUser = new Users();
|
||||
$oUser->load( $appFields['APP_CUR_USER'] );
|
||||
$Fields['CUR_USER'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||
|
||||
$threads = $oCase->GetAllThreads( $appFields['APP_UID'] );
|
||||
$Fields['THREADS'] = $threads;
|
||||
$Fields['CANT_THREADS'] = count( $threads );
|
||||
|
||||
$Fields['CANT_APP_DATA'] = count( $Fields['APP_DATA'] );
|
||||
$delegations = $oCase->GetAllDelegations( $appFields['APP_UID'] );
|
||||
foreach ($delegations as $key => $val) {
|
||||
$objTask = new Task();
|
||||
$aTask = $objTask->load($val['TAS_UID']);
|
||||
$delegations[$key]['TAS_TITLE'] = $aTask['TAS_TITLE'];
|
||||
if ($val['USR_UID'] != - 1 && $val['USR_UID'] != '') {
|
||||
$oUser->load( $val['USR_UID'] );
|
||||
$delegations[$key]['USR_NAME'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||
} else {
|
||||
$delegations[$key]['USR_NAME'] = G::LoadTranslation('ID_UNKNOW_USER') . G::LoadTranslation('ID_SUBPROCESS_USER');
|
||||
}
|
||||
}
|
||||
$Fields['CANT_DELEGATIONS'] = count( $delegations );
|
||||
$Fields['DELEGATIONS'] = $delegations;
|
||||
|
||||
require_once 'classes/model/AppDelay.php';
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_THREAD_INDEX );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_DEL_INDEX );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_TYPE );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_STATUS );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_ENABLE_ACTION_USER );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_ENABLE_ACTION_DATE );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_DISABLE_ACTION_USER );
|
||||
$oCriteria->addSelectColumn( AppDelayPeer::APP_DISABLE_ACTION_DATE );
|
||||
$oCriteria->add( AppDelayPeer::APP_UID, $appUid );
|
||||
$oCriteria->addAscendingOrderByColumn( AppDelayPeer::APP_TYPE );
|
||||
$oCriteria->addAscendingOrderByColumn( AppDelayPeer::APP_ENABLE_ACTION_DATE );
|
||||
$oDataset = AppDelayPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
$aDelays = array ();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$aDelays[] = $aRow;
|
||||
$oDataset->next();
|
||||
}
|
||||
$Fields['DELAYS'] = $aDelays;
|
||||
$Fields['CANT_DELAYS'] = count( $aDelays );
|
||||
|
||||
require_once 'classes/model/SubApplication.php';
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::APP_UID );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::APP_PARENT );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::DEL_INDEX_PARENT );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::DEL_THREAD_PARENT );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::SA_STATUS );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::SA_INIT_DATE );
|
||||
$oCriteria->addSelectColumn( SubApplicationPeer::SA_FINISH_DATE );
|
||||
$oCriteria->addSelectColumn( ApplicationPeer::APP_NUMBER );
|
||||
$oCriteria->add( SubApplicationPeer::APP_UID, $appUid );
|
||||
$oCriteria->addJoin( ApplicationPeer::APP_UID, SubApplicationPeer::APP_PARENT, Criteria::LEFT_JOIN );
|
||||
$oCriteria->addAscendingOrderByColumn( SubApplicationPeer::APP_UID );
|
||||
$oDataset = SubApplicationPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$oDataset->next();
|
||||
$aSubprocess = array ();
|
||||
while ($aRow = $oDataset->getRow()) {
|
||||
$aSubprocess[] = $aRow;
|
||||
$oDataset->next();
|
||||
}
|
||||
$Fields['SUBAPPLICATIONS'] = $aSubprocess;
|
||||
$Fields['CANT_SUBAPPLICATIONS'] = count( $aSubprocess );
|
||||
|
||||
/* Render page */
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'CASES';
|
||||
$G_PUBLISH = new Publisher();
|
||||
//$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'cases/casesDemo', $c );
|
||||
$G_PUBLISH->AddContent( 'smarty', 'cases/casesDemo', '', '', $Fields );
|
||||
G::RenderPage( "publish" );
|
||||
|
||||
} catch (Exception $e) {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish' );
|
||||
}
|
||||
|
||||
@@ -1,562 +0,0 @@
|
||||
{literal}
|
||||
<style>
|
||||
ul.debug-node {
|
||||
background-color:white;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
ul.debug-node ul {
|
||||
margin-left:20px;
|
||||
}
|
||||
* html ul.debug-node ul {
|
||||
margin-left:24px;
|
||||
}
|
||||
div.debug-root {
|
||||
border:1px solid black;
|
||||
margin:1em 0em;
|
||||
text-align:left;
|
||||
}
|
||||
ul.debug-first {
|
||||
border:1px solid white;
|
||||
font-family:tahoma,verdana;
|
||||
font-size:11px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:normal;
|
||||
line-height:normal;
|
||||
}
|
||||
li.debug-child {
|
||||
display:block;
|
||||
list-style-image:none;
|
||||
list-style-position:outside;
|
||||
list-style-type:none;
|
||||
margin:0px;
|
||||
overflow:hidden;
|
||||
padding:0px;
|
||||
}
|
||||
div.debug-element {
|
||||
background-color:white;
|
||||
background-image:url(/Krumo/skins/schablon.com/empty.gif);
|
||||
background-position:6px 5px;
|
||||
background-repeat:no-repeat;
|
||||
clear:both;
|
||||
cursor:default;
|
||||
display:block;
|
||||
padding:2px 0px 3px 20px;
|
||||
white-space:nowrap;
|
||||
}
|
||||
* html div.debug-element {
|
||||
line-height:13px;
|
||||
padding-bottom:3px;
|
||||
}
|
||||
div.debug-expand {
|
||||
background-image:url(/Krumo/skins/schablon.com/collapsed.gif);
|
||||
cursor:pointer;
|
||||
}
|
||||
div.debug-hover {
|
||||
background-color:#BFDFFF;
|
||||
}
|
||||
div.debug-opened {
|
||||
background-image:url(/Krumo/skins/schablon.com/expanded.gif);
|
||||
}
|
||||
a.debug-name {
|
||||
color:navy;
|
||||
font-family:courier new;
|
||||
font-size:13px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:bold;
|
||||
line-height:12px;
|
||||
}
|
||||
a.debug-name big {
|
||||
font-family:Georgia;
|
||||
font-size:16pt;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:bold;
|
||||
left:-2px;
|
||||
line-height:10px;
|
||||
position:relative;
|
||||
top:2px;
|
||||
}
|
||||
* html a.debug-name big {
|
||||
float:left;
|
||||
font-family:Georgia;
|
||||
font-size:15pt;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:bold;
|
||||
left:0px;
|
||||
line-height:normal;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
top:-5px;
|
||||
}
|
||||
em.debug-type {
|
||||
font-style:normal;
|
||||
margin:0px 2px;
|
||||
}
|
||||
div.debug-preview {
|
||||
background:lightyellow none repeat scroll 0%;
|
||||
border:1px solid #808000;
|
||||
font-family:courier new;
|
||||
font-size:13px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:normal;
|
||||
line-height:normal;
|
||||
margin:5px 1em 1em 0px;
|
||||
overflow:auto;
|
||||
padding:5px;
|
||||
}
|
||||
* html div.debug-preview {
|
||||
padding-top:2px;
|
||||
}
|
||||
li.debug-footnote {
|
||||
background:white url(/Krumo/skins/schablon.com/dotted.gif) repeat-x scroll 0%;
|
||||
cursor:default;
|
||||
list-style-image:none;
|
||||
list-style-position:outside;
|
||||
list-style-type:none;
|
||||
padding:4px 5px 3px;
|
||||
}
|
||||
* html li.debug-footnote {
|
||||
line-height:13px;
|
||||
}
|
||||
div.debug-version {
|
||||
float:right;
|
||||
}
|
||||
li.debug-footnote h6 {
|
||||
color:navy;
|
||||
display:inline;
|
||||
font-family:verdana;
|
||||
font-size:11px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:bold;
|
||||
line-height:normal;
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
* html li.debug-footnote h6 {
|
||||
margin-right:3px;
|
||||
}
|
||||
li.debug-footnote a {
|
||||
color:#434343;
|
||||
font-family:arial;
|
||||
font-size:10px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:bold;
|
||||
line-height:normal;
|
||||
text-decoration:none;
|
||||
}
|
||||
li.debug-footnote a:hover {
|
||||
color:black;
|
||||
}
|
||||
li.debug-footnote span.debug-call {
|
||||
font-family:tahoma,verdana;
|
||||
font-size:11px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:normal;
|
||||
line-height:normal;
|
||||
position:relative;
|
||||
top:1px;
|
||||
}
|
||||
li.debug-footnote span.debug-call code {
|
||||
font-weight:bold;
|
||||
}
|
||||
div.debug-title {
|
||||
cursor:default;
|
||||
font-family:tahoma,verdana;
|
||||
font-size:11px;
|
||||
font-size-adjust:none;
|
||||
font-stretch:normal;
|
||||
font-style:normal;
|
||||
font-variant:normal;
|
||||
font-weight:normal;
|
||||
line-height:2px;
|
||||
position:relative;
|
||||
top:9px;
|
||||
}
|
||||
strong.debug-array-length, strong.debug-string-length {
|
||||
color:#000099;
|
||||
font-weight:normal;
|
||||
}
|
||||
</style>
|
||||
{/literal}
|
||||
|
||||
<div class="debug-root">
|
||||
<ul class="debug-node debug-first">
|
||||
<li class="debug-child">
|
||||
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">Application</a>
|
||||
(<em class="debug-type"><strong class="debug-array-length">{$APP_UID}</strong></em>)
|
||||
<strong class="debug-string">{$APP_STATUS} </strong>
|
||||
<strong class="debug-array-length">{$APP_NUMBER}</strong></em>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
<li class="debug-child">
|
||||
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">properties</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">7 elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: none;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
<li class="debug-child">
|
||||
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_TITLE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$APP_NUMBER}</strong></em>)
|
||||
<strong class="debug-string">{$APP_TITLE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_STATUS</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$APP_STATUS}</strong></em>)
|
||||
<strong class="debug-string">{$STATUS}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">PRO_TITLE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$PRO_UID}</strong></em>)
|
||||
<strong class="debug-string">{$PRO_TITLE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_INIT_USER</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$APP_INIT_USER}</strong></em>)
|
||||
<strong class="debug-string">{$CREATOR}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_CUR_USER</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$APP_CUR_USER}</strong></em>)
|
||||
<strong class="debug-string">{$CUR_USER}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_PARALLEL</a> (<em class="debug-type">Integer</em>)
|
||||
<strong class="debug-string">{$APP_PARALLEL}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_PIN</a> (<em class="debug-type">Integer</em>)
|
||||
<strong class="debug-string">{$APP_PIN}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">APP_PROC_CODE</a> (<em class="debug-type">Integer</em>)
|
||||
<strong class="debug-string">{$APP_PROC_CODE}</strong>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">delegations</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">{$CANT_DELEGATIONS} elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
{foreach key=id item=data from=$DELEGATIONS}
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">{$data.DEL_INDEX}</a>
|
||||
[<em class="debug-type">thread:</em>
|
||||
<strong class="debug-string">{$data.DEL_THREAD}</strong>]
|
||||
[<em class="debug-type">thread status:</em>
|
||||
<strong class="debug-array-length">{$data.DEL_THREAD_STATUS}</strong>]
|
||||
[<em class="debug-type">type:</em>
|
||||
<strong class="debug-string">{$data.DEL_TYPE}</strong>]
|
||||
[<em class="debug-type">user:</em>
|
||||
<strong class="debug-string">{$data.USR_NAME}</strong>]
|
||||
[<em class="debug-type">task:</em>
|
||||
<strong class="debug-string">{$data.TAS_TITLE}</strong>]
|
||||
</div>
|
||||
<div style="display: none;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_PREVIOUS</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">integer</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_PREVIOUS}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">TAS_UID</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$data.TAS_UID}</strong></em>)
|
||||
<strong class="debug-string">{$data.TAS_TITLE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">USR_UID</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">{$data.USR_UID}</strong></em>)
|
||||
<strong class="debug-string">{$data.USR_NAME}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_TYPE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">string</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_TYPE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_THREAD</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">integer</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_THREAD}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_THREAD_STATUS</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">string</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_THREAD_STATUS}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_PRIORITY</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">string</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_PRIORITY}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_DELEGATE_DATE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">date</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_DELEGATE_DATE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_INIT_DATE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">date</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_INIT_DATE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_TASK_DUE_DATE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">date</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_TASK_DUE_DATE}</strong>
|
||||
</div>
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" class="debug-element">
|
||||
<a class="debug-name">DEL_FINISH_DATE</a> (<em class="debug-type">
|
||||
<strong class="debug-array-length">date</strong></em>)
|
||||
<strong class="debug-string">{$data.DEL_FINISH_DATE}</strong>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">threads</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">{$CANT_THREADS} elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
{foreach key=id item=data from=$THREADS}
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-opened">
|
||||
<a class="debug-name">{$data.APP_THREAD_INDEX}</a>
|
||||
[<em class="debug-type">thread status:</em>
|
||||
<strong class="debug-string">{$data.APP_THREAD_STATUS}</strong>]
|
||||
[<em class="debug-type">thread parent:</em>
|
||||
<strong class="debug-array-length">{$data.APP_THREAD_PARENT}</strong>]
|
||||
[<em class="debug-type">del_index:</em>
|
||||
<strong class="debug-string">{$data.DEL_INDEX}</strong>]
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">actions (APP_DELAY)</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">{$CANT_DELAYS} elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
{foreach key=id item=data from=$DELAYS}
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="return false;krumo.toggle(this);" class="debug-element debug-opened">
|
||||
<!--<a class="debug-name">{$data.APP_TYPE}</a>-->{$data.APP_TYPE}
|
||||
[<em class="debug-type">thread index:</em><strong class="debug-string">{$data.APP_THREAD_INDEX}</strong>]
|
||||
[<em class="debug-type">delegation index:</em><strong class="debug-string">{$data.APP_DEL_INDEX}</strong>]
|
||||
[<em class="debug-type">application status:</em><strong class="debug-string">{$data.APP_STATUS}</strong>]<br />
|
||||
[<em class="debug-type">enable action user:</em><strong class="debug-string">{$data.APP_ENABLE_ACTION_USER}</strong>]
|
||||
[<em class="debug-type">enable action date:</em><strong class="debug-string">{$data.APP_ENABLE_ACTION_DATE}</strong>]<br />
|
||||
[<em class="debug-type">disable action user:</em><strong class="debug-string">{$data.APP_DISABLE_ACTION_USER}</strong>]
|
||||
[<em class="debug-type">disable action date:</em><strong class="debug-string">{$data.APP_DISABLE_ACTION_DATE}</strong>]
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">Sub Cases(SUB_APPLICATION)</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">{$CANT_SUBAPPLICATIONS} elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
{foreach key=id item=data from=$SUBAPPLICATIONS}
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="return false;krumo.toggle(this);" class="debug-element debug-opened">
|
||||
<!--<a class="debug-name">{$data.APP_TYPE}</a>-->{$data.APP_TYPE}
|
||||
[<em class="debug-type">case parent:</em><strong class="debug-string">{$data.APP_PARENT}</strong> Case Number: <strong class="debug-array-length">{$data.APP_NUMBER}</strong>] <br>
|
||||
[<em class="debug-type">del index parent:</em><strong class="debug-string">{$data.DEL_INDEX_PARENT}</strong>]<br />
|
||||
[<em class="debug-type">del thread parent:</em><strong class="debug-string">{$data.DEL_THREAD_PARENT}</strong>]<br />
|
||||
[<em class="debug-type">SubCase Status:</em><strong class="debug-string">{$data.SA_STATUS}</strong>]<br />
|
||||
[<em class="debug-type">Starting Date:</em><strong class="debug-string">{$data.SA_INIT_DATE}</strong>]
|
||||
[<em class="debug-type">Finish Date:</em><strong class="debug-string">{$data.SA_FINISH_DATE}</strong>]
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-expand debug-opened">
|
||||
<a class="debug-name">APP_DATA</a>
|
||||
(<em class="debug-type">Array, <strong class="debug-array-length">{$CANT_APP_DATA} elements</strong></em>)
|
||||
</div>
|
||||
<div style="display: block;" class="debug-nest">
|
||||
<ul class="debug-node">
|
||||
{foreach key=id item=data from=$APP_DATA}
|
||||
<li class="debug-child">
|
||||
<div onmouseout="krumo.out(this);" onmouseover="krumo.over(this);" onclick="krumo.toggle(this);" class="debug-element debug-opened">
|
||||
<a class="debug-name">{$id}</a>
|
||||
<strong class="debug-string">{if $data|is_array}{$data|@debug_print_var}{else}{$data}{/if}</strong>
|
||||
</div>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{literal}
|
||||
|
||||
<script type="text/javascript">
|
||||
<!--//
|
||||
/**
|
||||
* JavaScript routines for Krumo
|
||||
*
|
||||
* @version $Id: krumo.js 22 2007-12-02 07:38:18Z Mrasnika $
|
||||
* @link http://sourceforge.net/projects/krumo
|
||||
*/
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Krumo JS Class
|
||||
*/
|
||||
function krumo() {
|
||||
}
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
/**
|
||||
* Add a CSS class to an HTML element
|
||||
*
|
||||
* @param HtmlElement el
|
||||
* @param string className
|
||||
* @return void
|
||||
*/
|
||||
krumo.reclass = function(el, className) {
|
||||
if (el.className.indexOf(className) < 0) {
|
||||
el.className += (' ' + className);
|
||||
}
|
||||
}
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
/**
|
||||
* Remove a CSS class to an HTML element
|
||||
*
|
||||
* @param HtmlElement el
|
||||
* @param string className
|
||||
* @return void
|
||||
*/
|
||||
krumo.unclass = function(el, className) {
|
||||
if (el.className.indexOf(className) > -1) {
|
||||
el.className = el.className.replace(className, '');
|
||||
}
|
||||
}
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
/**
|
||||
* Toggle the nodes connected to an HTML element
|
||||
*
|
||||
* @param HtmlElement el
|
||||
* @return void
|
||||
*/
|
||||
krumo.toggle = function(el) {
|
||||
var ul = el.parentNode.getElementsByTagName('ul');
|
||||
for (var i=0; i<ul.length; i++) {
|
||||
if (ul[i].parentNode.parentNode == el.parentNode) {
|
||||
ul[i].parentNode.style.display = (ul[i].parentNode.style.display == 'none')
|
||||
? 'block'
|
||||
: 'none';
|
||||
}
|
||||
}
|
||||
|
||||
// toggle class
|
||||
//
|
||||
if (ul[0].parentNode.style.display == 'block') {
|
||||
krumo.reclass(el, 'krumo-opened');
|
||||
} else {
|
||||
krumo.unclass(el, 'krumo-opened');
|
||||
}
|
||||
}
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
/**
|
||||
* Hover over an HTML element
|
||||
*
|
||||
* @param HtmlElement el
|
||||
* @return void
|
||||
*/
|
||||
krumo.over = function(el) {
|
||||
krumo.reclass(el, 'krumo-hover');
|
||||
}
|
||||
|
||||
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
|
||||
|
||||
/**
|
||||
* Hover out an HTML element
|
||||
*
|
||||
* @param HtmlElement el
|
||||
* @return void
|
||||
*/
|
||||
|
||||
krumo.out = function(el) {
|
||||
krumo.unclass(el, 'krumo-hover');
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//-->
|
||||
</script>
|
||||
{/literal}
|
||||
Reference in New Issue
Block a user