<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=HTML_TreeMenu</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16718" />
      <rdf:li rdf:resource="http://pear.php.net/bug/15957" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14499" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14340" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9750" />
      <rdf:li rdf:resource="http://pear.php.net/bug/5596" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16718">
      <title>HTML_TreeMenu: Documentation Problem 16718 [Open] sample simple example fails</title>
      <link>http://pear.php.net/bugs/16718</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Documentation Problem
Reported by jangkro
2009-10-20T17:32:38+00:00
PHP: 5.2.5 OS: windows xp 64 bit sp3 Package Version: 1.2.1

Description:
------------
Not only does the example have an infinite loop, but each line of this infinite loop results in a syntax error.

Even if I fix the syntax error by say putting a + sign between the $i and the numbers for each line within the for loop, I still have an infinite loop.  If I put the ++ after the $i, the images referred to would not exist anyway.

Test script:
---------------
&lt;?php

require_once 'HTML/TreeMenu.php';

$menu_styles      = new HTML_TreeNode(array('text'=&gt;'Styles'));
$menu_pays        = new HTML_TreeNode(array('text'=&gt;'Countries'));
$menu_restaurants = new HTML_TreeNode(array('text'=&gt;'Restaurants'));
$menu_plats       = new HTML_TreeNode(array('text'=&gt;'Menus'));

for ($i = 1; $i &lt; 10; $i) {
    $menu_styles-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 0))));
    $menu_pays-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 10))));
    $menu_restaurants-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 20))));
    $menu_plats-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 30))));
}

$menu  = new HTML_TreeMenu();
$menu-&gt;addItem($menu_styles);
$menu-&gt;addItem($menu_pays);
$menu-&gt;addItem($menu_restaurants);
$menu-&gt;addItem($menu_plats);

// Chose a generator. You can generate DHTML or a Listbox
$tree = new HTML_TreeMenu_DHTML($menu);

echo $tree-&gt;toHTML();

?&gt; 

Expected result:
----------------
Expect to see a sample tree.

Actual result:
--------------
Parse error: syntax error, unexpected T_LNUMBER</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Documentation Problem
Reported by jangkro
2009-10-20T17:32:38+00:00
PHP: 5.2.5 OS: windows xp 64 bit sp3 Package Version: 1.2.1

Description:
------------
Not only does the example have an infinite loop, but each line of this infinite loop results in a syntax error.

Even if I fix the syntax error by say putting a + sign between the $i and the numbers for each line within the for loop, I still have an infinite loop.  If I put the ++ after the $i, the images referred to would not exist anyway.

Test script:
---------------
&lt;?php

require_once 'HTML/TreeMenu.php';

$menu_styles      = new HTML_TreeNode(array('text'=&gt;'Styles'));
$menu_pays        = new HTML_TreeNode(array('text'=&gt;'Countries'));
$menu_restaurants = new HTML_TreeNode(array('text'=&gt;'Restaurants'));
$menu_plats       = new HTML_TreeNode(array('text'=&gt;'Menus'));

for ($i = 1; $i &lt; 10; $i) {
    $menu_styles-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 0))));
    $menu_pays-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 10))));
    $menu_restaurants-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 20))));
    $menu_plats-&gt;addItem(new HTML_TreeNode(array('icon'=&gt;'Image '.($i 30))));
}

$menu  = new HTML_TreeMenu();
$menu-&gt;addItem($menu_styles);
$menu-&gt;addItem($menu_pays);
$menu-&gt;addItem($menu_restaurants);
$menu-&gt;addItem($menu_plats);

// Chose a generator. You can generate DHTML or a Listbox
$tree = new HTML_TreeMenu_DHTML($menu);

echo $tree-&gt;toHTML();

?&gt; 

Expected result:
----------------
Expect to see a sample tree.

Actual result:
--------------
Parse error: syntax error, unexpected T_LNUMBER</pre>]]></description>
      <dc:date>2009-10-20T17:32:38+00:00</dc:date>
      <dc:creator>jangkro &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_TreeMenu Documentation Problem</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/15957">
      <title>HTML_TreeMenu: Feature/Change Request 15957 [Open] images dont &quot;work&quot; on dark(er) backgrounds</title>
      <link>http://pear.php.net/bugs/15957</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Feature/Change Request
Reported by ameno
2009-02-27T09:24:25+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
   all 3 image sets are designed to be used on bright backgrounds:
they use black or dark grey for their representation and are transparent to play nice with non-white but bright backgrounds.

would be nice if you could add a set for dark backgrounds.

Test script:
---------------
      

Expected result:
----------------
      

Actual result:
--------------</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Feature/Change Request
Reported by ameno
2009-02-27T09:24:25+00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
   all 3 image sets are designed to be used on bright backgrounds:
they use black or dark grey for their representation and are transparent to play nice with non-white but bright backgrounds.

would be nice if you could add a set for dark backgrounds.

Test script:
---------------
      

Expected result:
----------------
      

Actual result:
--------------</pre>]]></description>
      <dc:date>2009-02-27T09:54:16+00:00</dc:date>
      <dc:creator>gsdlthgx &amp;#x61;&amp;#116; trashmail &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>HTML_TreeMenu Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14499">
      <title>HTML_TreeMenu: Bug 14499 [Open] working with AJAX</title>
      <link>http://pear.php.net/bugs/14499</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Bug
Reported by skianter
2008-08-13T12:31:36+00:00
PHP: Irrelevant OS:  Package Version: 1.2.1

Description:
------------
I'm making ajax call to a php script that contains this:

$menu = &amp;HTML_TreeMenu::createFromStructure(array('structure' =&gt; $tree_struct));

// Create the presentation class
$treeMenu = &amp;new HTML_TreeMenu_DHTML($menu, array('images' =&gt; 'libconf/pear/HTML/images', 'defaultClass' =&gt; 'treeMenuDefault'));
	
$treeMenu-&gt;printMenu();

and I'm putting the output in a &lt;DIV&gt;.
first of all, in IE there'is the first problem because it doesn't like the &lt;script&gt; tag...so I have to remove that from the HTML_TreeMenu_DHTML.toHTML()...
In this way IE put the output in the DIV as required.
With Firefox there isn't that problem.
Then I try to (javascript) eval this output so that JS draw the tree, but it draws on a new page...
How to draw in the DIV?</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Bug
Reported by skianter
2008-08-13T12:31:36+00:00
PHP: Irrelevant OS:  Package Version: 1.2.1

Description:
------------
I'm making ajax call to a php script that contains this:

$menu = &amp;HTML_TreeMenu::createFromStructure(array('structure' =&gt; $tree_struct));

// Create the presentation class
$treeMenu = &amp;new HTML_TreeMenu_DHTML($menu, array('images' =&gt; 'libconf/pear/HTML/images', 'defaultClass' =&gt; 'treeMenuDefault'));
	
$treeMenu-&gt;printMenu();

and I'm putting the output in a &lt;DIV&gt;.
first of all, in IE there'is the first problem because it doesn't like the &lt;script&gt; tag...so I have to remove that from the HTML_TreeMenu_DHTML.toHTML()...
In this way IE put the output in the DIV as required.
With Firefox there isn't that problem.
Then I try to (javascript) eval this output so that JS draw the tree, but it draws on a new page...
How to draw in the DIV?</pre>]]></description>
      <dc:date>2008-08-13T13:35:10+00:00</dc:date>
      <dc:creator>porcapuzza &amp;#x61;&amp;#116; yahoo &amp;#x64;&amp;#111;&amp;#x74; it</dc:creator>
      <dc:subject>HTML_TreeMenu Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14340">
      <title>HTML_TreeMenu: Bug 14340 [Open] treemenus break if prototype.js is loaded in safari</title>
      <link>http://pear.php.net/bugs/14340</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Bug
Reported by toastbrot
2008-07-12T18:04:06+00:00
PHP: 5.2.0 OS: debian etch Package Version: 1.2.1

Description:
------------
i see a very strange behavior in safari when using prototype.js and HTML_TreeMenu together.

to reproduce get prototype.js (http://www.prototypejs.org/assets/
2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/
viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22).

and test the following html with safari on mac or windows (http://
www.apple.com/safari/download/)


thank you and greetings.ivo 

Test script:
---------------
&lt;html&gt;
&lt;head&gt;
        &lt;script src=&quot;TreeMenu.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;prototype.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//&lt;![CDATA[
        objTreeMenu_1 = new TreeMenu(&quot;TMimages&quot;,
&quot;objTreeMenu_1&quot;,&quot;_self&quot;, &quot;&quot;, true, false);
        newNode = objTreeMenu_1.addItem(new TreeNode('a', null,
'',true, true, '', '', null));
        newNode_1 = newNode.addItem(new TreeNode('b', null, '',
true,true, '', '', null));
        newNode_1_1 = newNode_1.addItem(new TreeNode('c', null,
'',false, true, '', '', null));
        objTreeMenu_1.drawMenu();
        objTreeMenu_1.writeOutput();
        objTreeMenu_1.resetBranches();
// ]]&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

Expected result:
----------------
normal menu

Actual result:
--------------
menu with js-code readable.

when prototype.js is not loaded all works well. when its loaded the
menu breaks. somehow the js-code from the treemenu is not executed,
but shown. this happens only in safari!</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Bug
Reported by toastbrot
2008-07-12T18:04:06+00:00
PHP: 5.2.0 OS: debian etch Package Version: 1.2.1

Description:
------------
i see a very strange behavior in safari when using prototype.js and HTML_TreeMenu together.

to reproduce get prototype.js (http://www.prototypejs.org/assets/
2008/1/25/prototype-1.6.0.2.js) and treemenu.js (http://cvs.php.net/
viewvc.cgi/pear/HTML_TreeMenu/TreeMenu.js?revision=1.22).

and test the following html with safari on mac or windows (http://
www.apple.com/safari/download/)


thank you and greetings.ivo 

Test script:
---------------
&lt;html&gt;
&lt;head&gt;
        &lt;script src=&quot;TreeMenu.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot; src=&quot;prototype.js&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
//&lt;![CDATA[
        objTreeMenu_1 = new TreeMenu(&quot;TMimages&quot;,
&quot;objTreeMenu_1&quot;,&quot;_self&quot;, &quot;&quot;, true, false);
        newNode = objTreeMenu_1.addItem(new TreeNode('a', null,
'',true, true, '', '', null));
        newNode_1 = newNode.addItem(new TreeNode('b', null, '',
true,true, '', '', null));
        newNode_1_1 = newNode_1.addItem(new TreeNode('c', null,
'',false, true, '', '', null));
        objTreeMenu_1.drawMenu();
        objTreeMenu_1.writeOutput();
        objTreeMenu_1.resetBranches();
// ]]&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

Expected result:
----------------
normal menu

Actual result:
--------------
menu with js-code readable.

when prototype.js is not loaded all works well. when its loaded the
menu breaks. somehow the js-code from the treemenu is not executed,
but shown. this happens only in safari!</pre>]]></description>
      <dc:date>2008-08-23T11:35:29+00:00</dc:date>
      <dc:creator>treemenu &amp;#x61;&amp;#116; toastbrot &amp;#x64;&amp;#111;&amp;#x74; ch</dc:creator>
      <dc:subject>HTML_TreeMenu Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9750">
      <title>HTML_TreeMenu: Bug 9750 [Open] Using &quot;kriesing&quot; tree type the &quot;nodeOptions&quot; paramether is not working.</title>
      <link>http://pear.php.net/bugs/9750</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Bug
Reported by riku.tuominen@...
2007-01-05T14:31:07+00:00
PHP: Irrelevant OS: XP Package Version: 1.2.0

Description:
------------
TO FIX THE PROBLEM CHANGE ONE LINE OF CODE IN TreeMenu.php FILE.
CHANGE 

line 168
$thisNode = &amp;$curNode[$aNode['level']]-&gt;addItem( new HTML_TreeNode( $data , $events ) );

WITH

$thisNode = &amp;$curNode[$aNode['level']]-&gt;addItem( new HTML_TreeNode( array_merge($params['nodeOptions'], $data) , $events ) );

Test script:
---------------
require_once 'Tree/Tree.php';
require_once 'Tree/Memory.php';
require_once 'HTML/TreeMenu.php';

$dbDsn = 'mysql://XXXX:XXXX@XXXX/testdB';
$options = array ('order' =&gt; 'name', 'table' =&gt; 'mytree');

$tree = Tree :: setup('Memory_DBnested', $dbDsn, $options);
$tree-&gt;setup();

$nodeOptions = array(
'text'          =&gt; '',
'link'          =&gt; 'editCategory.php?id=',
'icon'          =&gt; 'folder.gif',
'expandedIcon'  =&gt; 'folder-expanded.gif',
'class'         =&gt; '',
'expanded'      =&gt; false,
'linkTarget'    =&gt; '_self',
'isDynamic'     =&gt; 'true',
'ensureVisible' =&gt; '',
); 	

$options = array('structure' =&gt; $tree,
                    'type' =&gt; 'kriesing', 'nodeOptions' =&gt; $nodeOptions);
                    
$menu = &amp;HTML_TreeMenu::createFromStructure($options);

// Chose a generator. You can generate DHTML or a Listbox
$treeMenu = &amp;new HTML_TreeMenu_DHTML($menu, array('images' =&gt; 'images', 'defaultClass' =&gt; 'treeMenuDefault'));

echo $treeMenu-&gt;toHTML();

Expected result:
----------------
The nodes should have a folder icon and node name be a link, but that is not hapenning. Non of &quot;nodeOptions&quot; setting is in effect.

Actual result:
--------------
The nodes should have a folder icon and node name be a link, but that is not hapenning. Non of &quot;nodeOptions&quot; setting is in effect.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Bug
Reported by riku.tuominen@...
2007-01-05T14:31:07+00:00
PHP: Irrelevant OS: XP Package Version: 1.2.0

Description:
------------
TO FIX THE PROBLEM CHANGE ONE LINE OF CODE IN TreeMenu.php FILE.
CHANGE 

line 168
$thisNode = &amp;$curNode[$aNode['level']]-&gt;addItem( new HTML_TreeNode( $data , $events ) );

WITH

$thisNode = &amp;$curNode[$aNode['level']]-&gt;addItem( new HTML_TreeNode( array_merge($params['nodeOptions'], $data) , $events ) );

Test script:
---------------
require_once 'Tree/Tree.php';
require_once 'Tree/Memory.php';
require_once 'HTML/TreeMenu.php';

$dbDsn = 'mysql://XXXX:XXXX@XXXX/testdB';
$options = array ('order' =&gt; 'name', 'table' =&gt; 'mytree');

$tree = Tree :: setup('Memory_DBnested', $dbDsn, $options);
$tree-&gt;setup();

$nodeOptions = array(
'text'          =&gt; '',
'link'          =&gt; 'editCategory.php?id=',
'icon'          =&gt; 'folder.gif',
'expandedIcon'  =&gt; 'folder-expanded.gif',
'class'         =&gt; '',
'expanded'      =&gt; false,
'linkTarget'    =&gt; '_self',
'isDynamic'     =&gt; 'true',
'ensureVisible' =&gt; '',
); 	

$options = array('structure' =&gt; $tree,
                    'type' =&gt; 'kriesing', 'nodeOptions' =&gt; $nodeOptions);
                    
$menu = &amp;HTML_TreeMenu::createFromStructure($options);

// Chose a generator. You can generate DHTML or a Listbox
$treeMenu = &amp;new HTML_TreeMenu_DHTML($menu, array('images' =&gt; 'images', 'defaultClass' =&gt; 'treeMenuDefault'));

echo $treeMenu-&gt;toHTML();

Expected result:
----------------
The nodes should have a folder icon and node name be a link, but that is not hapenning. Non of &quot;nodeOptions&quot; setting is in effect.

Actual result:
--------------
The nodes should have a folder icon and node name be a link, but that is not hapenning. Non of &quot;nodeOptions&quot; setting is in effect.</pre>]]></description>
      <dc:date>2008-11-12T19:40:14+00:00</dc:date>
      <dc:creator>riku &amp;#x64;&amp;#111;&amp;#x74; tuominen &amp;#x61;&amp;#116; benchmarking &amp;#x64;&amp;#111;&amp;#x74; fi</dc:creator>
      <dc:subject>HTML_TreeMenu Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/5596">
      <title>HTML_TreeMenu: Feature/Change Request 5596 [Open] &lt;noscript&gt; version of the tree in toHTML()</title>
      <link>http://pear.php.net/bugs/5596</link>
      <content:encoded><![CDATA[<pre>HTML_TreeMenu Feature/Change Request
Reported by stoyan
2005-10-03T22:49:57+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
In addition to the javascript that displays the tree, it would be nice to add a &lt;noscript&gt; version of the tree for JS-challenged user-agents (like Googlebot).</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_TreeMenu Feature/Change Request
Reported by stoyan
2005-10-03T22:49:57+00:00
PHP: Irrelevant OS: Irrelevant Package Version: 

Description:
------------
In addition to the javascript that displays the tree, it would be nice to add a &lt;noscript&gt; version of the tree for JS-challenged user-agents (like Googlebot).</pre>]]></description>
      <dc:date>2008-04-06T17:34:49+00:00</dc:date>
      <dc:creator>ssttoo &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_TreeMenu Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
