Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
HTML_TreeMenu /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
AllTests.php
3.61
KB
-rw-r--r--
config.dist.php
48
B
-rw-r--r--
testBug_9750.phpt
2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : testBug_9750.phpt
--TEST-- HTML_TreeMenu tests for Bug #4950: Using "kriesing" tree type the "nodeOptions" paramether is not working. --CREDITS-- Chuck Burgess <ashnazg@php.net> # created for v1.2.2 2008-05-06 --SKIPIF-- <?php if (!file_exists(dirname(__FILE__) . '/config.php')) { die('skip No config.php found; cant connect to DB'); } --FILE-- <?php require_once dirname(__FILE__) . '/config.php'; echo '=====HTML_TreeMenu tests for Bug #9750: Using "kriesing" tree type the "nodeOptions" paramether is not working.=====' . PHP_EOL . PHP_EOL; echo 'TEST: test case provided in bug report' . PHP_EOL; require_once 'Tree/Tree.php'; require_once 'Tree/Memory.php'; require_once 'HTML/TreeMenu.php'; $options = array ('order' => 'name', 'table' => 'mytree'); $tree = Tree::setup('Memory_DBnested', $dbDsn, $options); $tree->setup(); $nodeOptions = array( 'text' => '', 'link' => 'editCategory.php?id=', 'icon' => 'folder.gif', 'expandedIcon' => 'folder-expanded.gif', 'class' => '', 'expanded' => false, 'linkTarget' => '_self', 'isDynamic' => 'true', 'ensureVisible' => '', ); $options = array( 'structure' => $tree, 'type' => 'kriesing', 'nodeOptions' => $nodeOptions ); $menu = &HTML_TreeMenu::createFromStructure($options); // Chose a generator. You can generate DHTML or a Listbox $dhtml = &new HTML_TreeMenu_DHTML( $menu, array( 'images' => 'images', 'defaultClass' => 'treeMenuDefault' ) ); $listbox = &new HTML_TreeMenu_ListBox( $menu, array( 'images' => 'images', 'defaultClass' => 'treeMenuDefault' ) ); echo 'TEST: using DHTML' . PHP_EOL; echo $dhtml->toHTML(); echo 'TEST: using Listbox' . PHP_EOL; echo $listbox->toHTML(); ?> --EXPECT-- =====HTML_TreeMenu tests for Bug #9750: Using "kriesing" tree type the "nodeOptions" paramether is not working.=====" TEST: test case provided in bug report TEST: using DHTML TEST: using ListBox
Close