本文整理汇总了PHP中Tree::render方法的典型用法代码示例。如果您正苦于以下问题:PHP Tree::render方法的具体用法?PHP Tree::render怎么用?PHP Tree::render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tree
的用法示例。
在下文中一共展示了Tree::render方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: triggerNewCustom
$oNode =& $oTree->addChild("TRI_CUSTOM", "<div" . $div1Style . "><span onclick=\"currentPopupWindow.remove(); triggerNewCustom();\" style=\"cursor: pointer;\"><img src=\"/images/50px-Edit.png\" width=\"15px\" heigth=\"15px\" valing=\"middle\" alt=\"\" /> <strong>" . G::LoadTranslation("ID_CUSTOM_TRIGGER") . "</strong></span><br /><span onclick=\"currentPopupWindow.remove(); triggerNewCustom();\" style=\"cursor: pointer;\"><small><em>" . G::LoadTranslation("ID_CUSTOM_TRIGGER_DESCRIPTION") . "</em></small></span></div>", array("nodeType" => "parent"));
$oNode =& $oTree->addChild("TRI_COPY", "<div style=\"margin-top: 1.25em;\"><span onclick=\"currentPopupWindow.remove(); triggerCopy();\" style=\"cursor: pointer;\"><img src=\"/images/documents/_editcopy.png\" width=\"15px\" heigth=\"15px\" valing=\"middle\" alt=\"\" /> <strong>" . G::LoadTranslation("ID_TRIGGER_COPY_OPTION") . "</strong></span><br /><span onclick=\"currentPopupWindow.remove(); triggerCopy();\" style=\"cursor: pointer;\"><small><em>" . G::LoadTranslation("ID_TRIGGER_COPY_OPTION_DESCRIPTION") . "</em></small></span></div>", array("nodeType" => "parent"));
$triggerLibraryOCount = count($triggerLibraryO);
foreach ($triggerLibraryO as $keyLibrary => $libraryObj) {
$libraryName = $libraryObj->info["name"];
$libraryIcon = isset($libraryObj->info["icon"]) && $libraryObj->info["icon"] != "" ? $libraryObj->info["icon"] : "/images/browse.gif";
$libraryDescription = trim(str_replace("*", "", implode(" ", $libraryObj->info["description"])));
$triggerCount = count($libraryObj->methods);
if ($triggerCount > 0) {
//Sort alpha
ksort($libraryObj->methods, SORT_STRING);
//Now the Triggers
//Library Father (Name + Description)
$oNode =& $oTree->addChild($keyLibrary, " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap=\"nowrap\" valign=\"top\"><span onclick=\"tree.expand(this.parentNode);\" style=\"cursor: pointer;\"><img src=\"" . $libraryIcon . "\" width=\"15px\" heigth=\"15px\" valing=\"middle\" alt=\"\" /> <b>" . $libraryName . " ({$triggerCount})</b></td></tr><tr><td class=\"\"><span onclick=\"tree.expand(this.parentNode);\" style=\"cursor: pointer;\"><small><i>{$libraryDescription}</i></small></span></td></tr></table>", array("nodeType" => "parent"));
$oNode->contracted = $triggerLibraryOCount == 1 ? false : true;
//Library Childs (available methods)
foreach ($libraryObj->methods as $methodName => $methodObject) {
$methodName = $methodObject->info["name"];
$methodLabel = $methodObject->info["label"];
$methodDescription = trim(str_replace("*", "", implode(" ", $methodObject->info["description"])));
$oAux1 =& $oNode->addChild($keyLibrary . "-" . $methodName, "<table><tr><td nowrap=\"nowrap\"><span style=\"cursor: pointer;\"><a class=\"linkInBlue\" href=\"javascript:;\" onclick=\"currentPopupWindow.remove(); triggerNewWizard('{$methodName}' , '{$keyLibrary}'); return false;\">" . $methodLabel . " (" . $methodName . ")</a></span></td></tr><tr><td><i>" . $methodDescription . "</i><br></span></td></tr></table>", array("nodeType" => "child"));
//$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);'></span>";
//$oAux2 =& $oAux1->addChild($keyLibrary."-".$methodName."-desc", "$methodParameters", array('nodeType'=>'parent'));
}
}
}
echo $oTree->render();
} catch (Exception $e) {
die($e->getMessage());
}
unset($_SESSION["PROCESS"]);
示例2: htmlentities
$tree->value = '
<div class="boxTopBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="boxContentBlue">
<table width="100%" style="margin:0px;" cellspacing="0" cellpadding="0">
<tr>
<td class="userGroupTitle">' . G::loadTranslation("ID_ASSIGN_GROUP_TO") . ' ' . $aRow['USR_FIRSTNAME'] . ' ' . $aRow['USR_LASTNAME'] . '</td>
</tr>
</table>
</div>
<div class="boxBottomBlue"><div class="a"></div><div class="b"></div><div class="c"></div></div>
<div class="userGroupLink"><a href="#" onclick="showUserGroups(\'' . $_GET['sUserUID'] . '\');return false;">' . G::LoadTranslation('ID_BACK_TO_GROUP_LIST') . '</a></div>';
$tree->showSign = false;
$allGroups = $groups->getAllGroups();
foreach ($allGroups as $group) {
$ID_ASSIGN = G::LoadTranslation('ID_ASSIGN');
$groupUID = htmlentities($group->getGrpUid());
$userUID = $_GET['sUserUID'];
$GROUP_TITLE = strip_tags($group->getGrpTitle());
$html = <<<innerHTML
\t <table cellspacing='0' cellpadding='0' border='1' style='border:0px;'>
\t <tr>
\t <td width='250px' class='treeNode' style='border:0px;background-color:transparent;'>{$GROUP_TITLE}</td>\t
\t <td class='treeNode' style='border:0px;background-color:transparent;'>[<a href="#" onclick="saveUserGroup('{$groupUID}','{$userUID}');return false;">{$ID_ASSIGN}</a>]</td>
\t </tr>
\t </table>
innerHTML;
$ch =& $tree->addChild($group->getGrpUid(), $html, array('nodeType' => 'child'));
$ch->point = '<img src="/images/users.png" />';
}
print $tree->render();
示例3: renderForm
/**
* build the admin configuration form
* @return string
*/
public function renderForm()
{
// get currencies in this shop
$_currencies = self::__getCurrencies();
$currencies = array();
$danishKroneName = 'Danish Krone (Kr.)';
foreach ($_currencies as $currenciesK => $currenciesV) {
if ((int) $currenciesV->iso_code_num == 208 || strtoupper($currenciesV->iso_code) == 'DKK') {
$danishKroneName = $currenciesV->name . ' (' . $currenciesV->iso_code . ')';
continue;
}
$currencies[] = array('id' => $currenciesV->id, 'name' => $currenciesV->name . '(' . $currenciesV->iso_code . ' : ' . $currenciesV->sign . ')', 'val' => $currenciesV->id);
}
unset($_currencies);
// all order states
$orderStates = OrderState::getOrderStates($this->context->language->id);
$order_state = $selected_order_states = array();
if (Configuration::hasKey('SWIPP_ORDER_STATES')) {
$selected_order_states = explode(',', Configuration::get('SWIPP_ORDER_STATES'));
}
foreach ($orderStates as $orderState) {
if (in_array($orderState['id_order_state'], $selected_order_states)) {
$order_state[] = array('selected' => true, 'disabled' => false, 'id_category' => $orderState['id_order_state'], 'name' => $orderState['name']);
} else {
$order_state[] = array('disabled' => false, 'id_category' => $orderState['id_order_state'], 'name' => $orderState['name']);
}
}
$tree = new Tree('swipp-order-state', $order_state);
//$tree->setTemplateDirectory(dirname(__FILE__) . '/views/templates/admin/_configure/helpers/tree/');
$tree->setNodeItemTemplate('../../../../../../modules/swipp/views/templates/admin/tree_node_item_order_state.tpl');
$tree->setContext($this->context);
$tree->getContext()->smarty->assign(array('input_name' => 'SWIPP_ORDER_STATES'));
$fields_form[0]['form']['legend'] = array('title' => $this->l('Swipp details'), 'icon' => 'icon-credit-card');
$fields_form[0]['form']['input'][] = array('type' => 'text', 'label' => $this->l('Swipp owner/user'), 'name' => 'SWIPP_OWNER');
$fields_form[0]['form']['input'][] = array('type' => 'text', 'label' => $this->l('Swipp Phone'), 'name' => 'SWIPP_PHONE', 'desc' => $this->l('The phone registred with swipp'));
$fields_form[0]['form']['input'][] = array('type' => 'text', 'label' => $this->l('Swipp Max Payment'), 'name' => 'SWIPP_MAX_AMOUNT', 'desc' => $this->l('The maximum amount allowed through swipp per order'), 'prefix' => $danishKroneName);
if (count($currencies) > 0) {
$fields_form[0]['form']['input'][] = array('type' => 'checkbox', 'label' => $this->l('Currencies witch we allow'), 'name' => 'SWIPP_CURRENCIES', 'desc' => $this->l('The currencies you select here will have the swipp payment option available but with the paymant amount converted to Danish Krone'), 'values' => array('query' => $currencies, 'id' => 'id', 'name' => 'name'), 'class' => 't');
}
$fields_form[0]['form']['input'][] = array('name' => 'SWIPP_ORDER_STATES', 'type' => 'categories_select', 'label' => $this->l('Accepted Order state'), 'category_tree' => $tree->render(), 'required' => true, 'desc' => $this->l('Order states where swipp payment is accepted'));
$fields_form[0]['form']['input'][] = array('name' => 'SWIPP_PAYMENT_STATE', 'type' => 'select', 'label' => $this->l('Status of payment when order is placed'), 'options' => array('default' => array('value' => 0, 'label' => $this->l('Choose status')), 'query' => $order_state, 'id' => 'id_category', 'name' => 'name'), 'required' => true, 'desc' => $this->l('The status the order is set to when the customer clicks the accept button.'));
$fields_form[0]['form']['input'][] = array('type' => 'switch', 'is_bool' => true, 'label' => $this->l('Show converted order amount on payment option'), 'name' => 'SWIPP_SHOW_CONVERTED', 'desc' => $this->l('Only usefull if you use multiple currencies'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('No'))));
$fields_form[0]['form']['input'][] = array('type' => 'switch', 'is_bool' => true, 'label' => $this->l('Show message on invoice'), 'name' => 'SWIPP_SHOW_INVIOCE', 'desc' => $this->l('Only usefull if you use multiple currencies'), 'values' => array(array('id' => 'active_on', 'value' => 1, 'label' => $this->l('Yes')), array('id' => 'active_off', 'value' => 0, 'label' => $this->l('No'))));
$fields_form[0]['form']['submit'] = array('title' => $this->l('Save'));
$helper = new HelperForm();
$helper->show_toolbar = false;
$helper->table = $this->table;
$lang = new Language((int) Configuration::get('PS_LANG_DEFAULT'));
$helper->default_form_language = $lang->id;
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
$this->fields_form = array();
$helper->id = (int) Tools::getValue('id_carrier');
$helper->identifier = $this->identifier;
$helper->submit_action = 'btnSubmit';
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->tpl_vars = array('fields_value' => $this->getConfigFieldsValues(), 'id_language' => $this->context->language->id);
return $helper->generateForm($fields_form);
}
示例4: render
protected function render()
{
if (!extension_loaded('gd')) {
throw new Exception('GD not loaded!');
}
parent::render();
$this->img = imagecreate($this->getWidth(), $this->getHeight());
imagecolorallocate($this->img, $this->bgColor[0], $this->bgColor[1], $this->bgColor[2]);
$nodeBG = imagecolorallocate($this->img, $this->nodeColor[0], $this->nodeColor[1], $this->nodeColor[2]);
$linkCol = imagecolorallocate($this->img, $this->linkColor[0], $this->linkColor[1], $this->linkColor[2]);
$textColor = imagecolorallocate($this->img, $this->textColor[0], $this->textColor[1], $this->textColor[2]);
if ($this->borderWidth > 0) {
$borderCol = imagecolorallocate($this->img, $this->borderColor[0], $this->borderColor[1], $this->borderColor[2]);
}
while ($this->hasNext()) {
$node = $this->next();
if (!is_null($node->image) && file_exists($node->image)) {
$path_parts = pathinfo($node->image);
$file_ext = strtolower($path_parts['extension']);
$this->imgsize = getimagesize($node->image);
switch ($file_ext) {
case 'gif':
$strSourceImage = imagecreatefromgif($node->image);
break;
case 'jpg':
case 'jpeg':
$strSourceImage = imagecreatefromjpeg($node->image);
break;
case 'png':
$strSourceImage = imagecreatefrompng($node->image);
$gdinfo = gd_info();
if (version_compare($gdinfo["GD Version"], '2.0.1', '>=')) {
imageantialias($this->img, true);
imagealphablending($this->img, false);
imagesavealpha($this->img, true);
imagefilledrectangle($this->img, $node->x, $node->y, $node->w, $node->h, imagecolorallocatealpha($this->img, 255, 255, 255, 127));
}
break;
}
imagecopyresampled($this->img, $strSourceImage, $node->x, $node->y, 0, 0, $node->w, $node->h, $this->imgsize[0], $this->imgsize[1]);
} else {
imagefilledrectangle($this->img, $node->x, $node->y, $node->x + $node->w, $node->y + $node->h, $nodeBG);
}
if ($this->borderWidth > 0) {
for ($i = 0; $i < $this->borderWidth; $i++) {
imagerectangle($this->img, $node->x + $i, $node->y + $i, $node->x + $node->w - $i, $node->y + $node->h - $i, $borderCol);
}
}
switch ($this->linktype) {
case self::LINK_DIRECT:
foreach ($node->links as $link) {
imageline($this->img, $link['xa'], $link['ya'], $link['xd'], $link['yd'], $linkCol);
}
break;
case self::LINK_BEZIER:
foreach ($node->links as $link) {
for ($t = 0; $t <= 1; $t = $t + 0.001) {
$xt = $link['xa'] * pow(1 - $t, 3) + $link['xb'] * 3 * $t * pow(1 - $t, 2) + $link['xc'] * 3 * pow($t, 2) * (1 - $t) + $link['xd'] * pow($t, 3);
$yt = $link['ya'] * pow(1 - $t, 3) + $link['yb'] * 3 * $t * pow(1 - $t, 2) + $link['yc'] * 3 * pow($t, 2) * (1 - $t) + $link['yd'] * pow($t, 3);
imagesetpixel($this->img, $xt, $yt, $linkCol);
}
}
break;
case self::LINK_NONE:
break;
default:
foreach ($node->links as $link) {
imageline($this->img, $link['xa'], $link['ya'], $link['xb'], $link['yb'], $linkCol);
imageline($this->img, $link['xb'], $link['yb'], $link['xc'], $link['yc'], $linkCol);
imageline($this->img, $link['xc'], $link['yc'], $link['xd'], $link['yd'], $linkCol);
}
}
if (!strlen($this->ftFont)) {
imagestring($this->img, 4, $node->x + $this->borderWidth, $node->y, $node->message, $textColor);
} else {
$x = 0;
$y = 0;
$x2 = 0;
$y2 = 0;
$fttext = imageftbbox($this->ftFontSize, $this->ftFontAngle, $this->ftFont, $node->message);
$x = $fttext[0] <= $fttext[6] ? $fttext[0] : $fttext[6];
$y = $fttext[5] >= $fttext[7] ? $fttext[5] : $fttext[7];
$x2 = $fttext[2] >= $fttext[4] ? $fttext[2] : $fttext[4];
$y2 = $fttext[1] >= $fttext[3] ? $fttext[1] : $fttext[3];
$w = $x2 - $x;
$h = y2 - $y;
$left = ($node->w - $w) / 2;
$top = ($node->h - $h) / 2;
switch ($this->Align) {
case self::CENTER | self::CENTER:
imagefttext($this->img, $this->ftFontSize, $this->ftFontAngle, $node->x + $left, $node->y + $top + $h + $y2, $textColor, $this->ftFont, $node->message);
break;
case self::CENTER | self::TOP:
case self::TOP:
imagefttext($this->img, $this->ftFontSize, $this->ftFontAngle, $node->x + $left, $node->y + $this->borderWidth + $h, $textColor, $this->ftFont, $node->message);
break;
case self::CENTER | self::BOTTOM:
imagefttext($this->img, $this->ftFontSize, $this->ftFontAngle, $node->x + $left, $node->y + $node->h - $this->borderWidth, $textColor, $this->ftFont, $node->message);
break;
case self::LEFT | self::CENTER:
//.........这里部分代码省略.........
示例5: render
public function render($data = null)
{
if (!isset($data)) {
$data = $this->getData();
}
if (isset($this->my_disabled_categories) && !empty($this->my_disabled_categories)) {
$this->disableCategories($data, $this->getDisabledCategories());
}
// Default bootstrap style of search is push-right, so we add this button first
// ----------------------------------------------------------------------------
if ($this->useSearch()) {
$this->addAction(new TreeToolbarSearchCategories('Find a category:', $this->getId() . '-categories-search'));
$this->setAttribute('use_search', $this->useSearch());
}
$collapse_all = new TreeToolbarLink('Collapse All', '#', '$(\'#' . $this->getId() . '\').tree(\'collapseAll\');$(\'#collapse-all-' . $this->getId() . '\').hide();$(\'#expand-all-' . $this->getId() . '\').show(); return false;', 'icon-collapse-alt');
$collapse_all->setAttribute('id', 'collapse-all-' . $this->getId());
$expand_all = new TreeToolbarLink('Expand All', '#', '$(\'#' . $this->getId() . '\').tree(\'expandAll\');$(\'#collapse-all-' . $this->getId() . '\').show();$(\'#expand-all-' . $this->getId() . '\').hide(); return false;', 'icon-expand-alt');
$expand_all->setAttribute('id', 'expand-all-' . $this->getId());
$this->addAction($collapse_all);
$this->addAction($expand_all);
if ($this->useCheckBox()) {
if ($this->useCheckBoxToolbarLink()) {
$check_all = new TreeToolbarLink('Check All', '#', 'checkAllAssociatedCategories($(\'#' . $this->getId() . '\')); return false;', 'icon-check-sign');
$check_all->setAttribute('id', 'check-all-' . $this->getId());
$uncheck_all = new TreeToolbarLink('Uncheck All', '#', 'uncheckAllAssociatedCategories($(\'#' . $this->getId() . '\')); return false;', 'icon-check-empty');
$uncheck_all->setAttribute('id', 'uncheck-all-' . $this->getId());
$this->addAction($check_all);
$this->addAction($uncheck_all);
}
$this->setNodeFolderTemplate('tree_node_folder_cat_prod_checkbox.tpl');
$this->setNodeItemTemplate('tree_node_item_cat_prod_checkbox.tpl');
$this->setAttribute('use_checkbox', $this->useCheckBox());
}
$this->getContext()->smarty->assign('root_category', Configuration::get('PS_ROOT_CATEGORY'));
return parent::render($data);
}
示例6: openPMFolder
function openPMFolder()
{
$WIDTH_PANEL = 350;
G::LoadClass ('tree');
$folderContent = $oPMFolder->getFolderList ($_POST ['folderID'] != '0' ?
$_POST ['folderID'] == 'NA' ? "" : $_POST ['folderID'] : $rootFolder);
//krumo($folderContent);
if (! is_array ($folderContent)) {
echo $folderContent;
exit ();
}
$tree = new Tree ();
$tree->name = 'DMS';
$tree->nodeType = "blank";
//$tree->width="350px";
$tree->value = '';
$tree->showSign = false;
$i = 0;
foreach ($folderContent as $key => $obj) {
$i ++;
//if ($obj->item_type=="F") {
$RowClass = ($i % 2 == 0) ? 'Row1' : 'Row2';
$id_delete = G::LoadTranslation('ID_DELETE');
$id_edit = G::LoadTranslation('ID_EDIT');
$htmlGroup = <<<GHTML
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;' width="100%" class="pagedTable">
<tr id="{$i}" onmouseout="setRowClass(this, '{$RowClass}')" onmouseover="setRowClass(this, 'RowPointer')"
class="{$RowClass}" style="cursor:hand">
<td width='' class='treeNode' style='border:0px;background-color:transparent;'><a href="#"
onclick="focusRow(this, 'Selected');openPMFolder('{$obj['FOLDER_UID']}','{$_POST['rootfolder']}');">
<img src="/images/folderV2.gif" border = "0" valign="middle" /> {$obj['FOLDER_NAME']}</a>
<a href="#" onclick="deletePMFolder('{$obj['FOLDER_UID']}','{$_POST['rootfolder']}');"> {$id_delete}</a>
</td>
</tr>
</table>
<div id="child_{$obj['FOLDER_UID']}"></div>
GHTML;
$ch = & $tree->addChild ($key, $htmlGroup, array ('nodeType' => 'child'));
$ch->point = ' ';
}
$RowClass = ($i % 2 == 0) ? 'Row1' : 'Row2';
$key = 0;
if ($_POST ['folderID'] == '0') {
$notInFolderLabel = G::LoadTranslation ('ID_NOT_IN_FOLDER');
$htmlGroup = <<<GHTML
<table cellspacing='0' cellpadding='0' border='1' style='border:0px;' width="100%" class="pagedTable">
<tr id="{$i}" onclick="focusRow(this, 'Selected');openPMFolder('NA');"
onmouseout="setRowClass(this, '{$RowClass}')" onmouseover="setRowClass(this, 'RowPointer')" class="{$RowClass}">
<td width='' class='treeNode' style='border:0px;background-color:transparent;'><a href="#" onclick="">
<img src="/images/folderV2.gif" border = "0" valign="middle" /> - {$notInFolderLabel} -</a> </td>
</tr>
</table>
<div id="child_NA"></div>
GHTML;
$ch = & $tree->addChild ($key, $htmlGroup, array ('nodeType' => 'child'));
$ch->point = ' ';
}
print ($tree->render ()) ;
}
示例7: array
$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);showTriggers(\"" . $aRow['STEP_UID'] . "\", \"AFTER\");'></span>";
$oAux1->contracted = true;
$oAux2 =& $oAux1->addChild($aRow['STEP_UID'] . '_after_node', '<span id="triggersSpan_' . $aRow['STEP_UID'] . '_AFTER"></span>', array('nodeType' => 'parentBlue'));
$oDataset->next();
}
$oCriteria = $oProcessMap->getStepTriggersCriteria(-1, $_SESSION['TASK'], 'BEFORE');
$iCantidad1 = StepTriggerPeer::doCount($oCriteria);
$oCriteria = $oProcessMap->getStepTriggersCriteria(-2, $_SESSION['TASK'], 'BEFORE');
$iCantidad2 = StepTriggerPeer::doCount($oCriteria);
$oCriteria = $oProcessMap->getStepTriggersCriteria(-2, $_SESSION['TASK'], 'AFTER');
$iCantidad3 = StepTriggerPeer::doCount($oCriteria);
$oNode =& $oTree->addChild('-1', ' <span onclick="tree.expand(this.parentNode);" style="cursor: pointer;">[<b> ' . G::LoadTranslation('ID_ASSIGN_TASK') . ' </b>] ' . ' - ' . G::LoadTranslation('ID_TRIGGERS') . ' (<span id="TRIG_' . $aRow['STEP_UID'] . '">' . ($iCantidad1 + $iCantidad2 + $iCantidad3) . '</span>)' . '</span>', array('nodeType' => 'parent'));
$oNode->contracted = true;
$oAux1 =& $oNode->addChild('before_node', '<span onclick="tree.expand(this.parentNode);showTriggers(\'-1\', \'BEFORE\');" style="cursor: pointer;">' . G::LoadTranslation('ID_BEFORE_ASSIGNMENT') . ' - ' . G::LoadTranslation('ID_TRIGGERS') . ' (<span id="TRIG_-1_BEFORE">' . $iCantidad1 . '</span>) </span>', array('nodeType' => 'parent'));
$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);showTriggers(\"-1\", \"BEFORE\");'></span>";
$oAux1->contracted = true;
$oAux2 =& $oAux1->addChild('-1_before_node', '<span id="triggersSpan_-1_BEFORE"></span>', array('nodeType' => 'parentBlue'));
$oAux1 =& $oNode->addChild('before_node', '<span onclick="tree.expand(this.parentNode);showTriggers(\'-2\', \'BEFORE\');" style="cursor: pointer;">' . G::LoadTranslation('ID_BEFORE_DERIVATION') . ' - ' . G::LoadTranslation('ID_TRIGGERS') . ' (<span id="TRIG_-2_BEFORE">' . $iCantidad2 . '</span>) </span>', array('nodeType' => 'parent'));
$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);showTriggers(\"-2\", \"BEFORE\");'></span>";
$oAux1->contracted = true;
$oAux2 =& $oAux1->addChild('-2_before_node', '<span id="triggersSpan_-2_BEFORE"></span>', array('nodeType' => 'parentBlue'));
$oAux1 =& $oNode->addChild('after_node', '<span onclick="tree.expand(this.parentNode);showTriggers(\'-2\', \'AFTER\');" style="cursor: pointer;">' . G::LoadTranslation('ID_AFTER_DERIVATION') . ' - ' . G::LoadTranslation('ID_TRIGGERS') . ' (<span id="TRIG_-2_AFTER">' . $iCantidad3 . '</span>) </span>', array('nodeType' => 'parent'));
$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);showTriggers(\"-2\", \"AFTER\");'></span>";
$oAux1->contracted = true;
$oAux2 =& $oAux1->addChild('-2_after_node', '<span id="triggersSpan_-2_AFTER"></span>', array('nodeType' => 'parentBlue'));
$javascript = "\n <script type=\"text/javascript\">\n //Add css Codemirror\n var head = document.getElementsByTagName(\"head\")[0];\n var s = document.createElement(\"link\");\n\n s.setAttribute(\"href\", \"/js/codemirror/lib/codemirror.css\");\n s.setAttribute(\"type\", \"text/css\");\n s.setAttribute(\"rel\", \"stylesheet\");\n head.appendChild(s);\n\n var s = document.createElement(\"link\");\n s.setAttribute(\"href\", \"/js/codemirror/addon/hint/show-hint.css\");\n s.setAttribute(\"type\", \"text/css\");\n s.setAttribute(\"rel\", \"stylesheet\");\n head.appendChild(s);\n </script>\n ";
echo $javascript . $oTree->render();
} catch (Exception $oException) {
die($oException->getMessage());
}
unset($_SESSION['PROCESS']);