Re: [PHP] Tree menu list in php

2011-07-26 Thread Bálint Horváth
Hi, I'd like to write my opinion quickly.. My way both usable with and without JS... In my structures there is an array of the menu elements similar to: $menu[gravity][name] = link; - filled from database, easy to handle to more prof., more params use three-dimensional array... In the url u can

Re: [PHP] Tree menu list in php

2011-07-26 Thread Stuart Dallas
On 26 Jul 2011, at 19:01, Jasper Mulder wrote: > >> From: alekto.antarct...@gmail.com >> Date: Tue, 26 Jul 2011 19:20:58 +0200 >> To: php-general@lists.php.net >> Subject: [PHP] Tree menu list in php >> >> Hi, >> is there a way to create a tree men

Re: [PHP] Tree menu list in php

2011-07-26 Thread alekto
Thank you all for good answers and explanations, think I will give JavaScript a try! Den 26. juli 2011 kl. 20.37 skrev Bojan Tesanovic: > Look at it this way, PHP is just another scripting language, it processes > data. > That said PHP is not responsible for user interface , it just prints o

Re: [PHP] Tree menu list in php

2011-07-26 Thread Bojan Tesanovic
Look at it this way, PHP is just another scripting language, it processes data. That said PHP is not responsible for user interface , it just prints out what you tell him to , it can be HTML XML JSON etc presentation thing is eg HTML and CSS is for styling HTML, JS is to dynamically change st

Re: [PHP] Tree menu list in php

2011-07-26 Thread Jim Giner
"Jasper Mulder" wrote in message news:snt106-w6527d1e82d0a3efe6f76f1f7...@phx.gbl... > From: alekto.antarct...@gmail.com > Date: Tue, 26 Jul 2011 19:20:58 +0200 > To: php-general@lists.php.net > Subject: [PHP] Tree menu list in php > > Hi, > is there a way to

RE: [PHP] Tree menu list in php

2011-07-26 Thread Jasper Mulder
> From: alekto.antarct...@gmail.com > Date: Tue, 26 Jul 2011 19:20:58 +0200 > To: php-general@lists.php.net > Subject: [PHP] Tree menu list in php > > Hi, > is there a way to create a tree menu list only by using php/html/css? > I found some, but they are all in JavaS

[PHP] Tree menu list in php

2011-07-26 Thread alekto
Hi, is there a way to create a tree menu list only by using php/html/css? I found some, but they are all in JavaScript, do I have to make them by using JavaScript or is there a way in php as well? This is how I imagine the tree menu should look like: v First level > Second level > Second

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Robin Vickery
On 16/11/2007, Paul van Haren <[EMAIL PROTECTED]> wrote: > I'm trying to use arrays to implement a sort of data tree. For the code to > work, it is essential that the nodes can be edited after they have become > part of the tree. That would require that the array elements are pushed > "by reference

Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: > Thanks, the empasant helps! ampersand :-) > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Richard Heyes
What is the most obvious way to implement a tree-like structure in PHP? Use someone elses code that already works. :) Array based tree class is here: http://www.phpguru.org/Tree/Tree.phps -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk s

Re: [PHP] Tree-like structure in PHP? (closed)

2007-11-16 Thread Paul van Haren
Thanks, the empasant helps! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tree-like structure in PHP?

2007-11-16 Thread Jochem Maas
Paul van Haren wrote: > I'm trying to use arrays to implement a sort of data tree. For the code to > work, it is essential that the nodes can be edited after they have become > part of the tree. That would require that the array elements are pushed > "by reference" rather than "by value". > >

[PHP] Tree-like structure in PHP?

2007-11-16 Thread Paul van Haren
I'm trying to use arrays to implement a sort of data tree. For the code to work, it is essential that the nodes can be edited after they have become part of the tree. That would require that the array elements are pushed "by reference" rather than "by value". What is the most obvious wa

Re: Re[2]: [PHP] Tree

2003-12-04 Thread Robert Cummings
On Fri, 2003-12-05 at 01:27, Šimon Tóth wrote: > But how do I make an array where each of successor is also an array. > > The structure should be something like this: > $root['ID']=0; > $root['From']=""; > $root['Subj']=""; > $root['Replays'] - ??? > > Each of the succesors must have same structu

Re[2]: [PHP] Tree

2003-12-04 Thread Šimon Tóth
But how do I make an array where each of successor is also an array. The structure should be something like this: $root['ID']=0; $root['From']=""; $root['Subj']=""; $root['Replays'] - ??? Each of the succesors must have same structure as $root. Simon Toth mailto:[EMAIL PROTECTED] http://kerberos

Re: [PHP] Tree

2003-12-04 Thread Robert Cummings
On Fri, 2003-12-05 at 00:51, Šimon Tóth wrote: > Hi, > > i need to create a tree. Each of the nodes can have 0-n succesors and > also has some properties. How can be something like this created in > PHP? Can just use an array where each successor is also an array. Cheers, Rob. -- .-

[PHP] Tree

2003-12-04 Thread Šimon Tóth
Hi, i need to create a tree. Each of the nodes can have 0-n succesors and also has some properties. How can be something like this created in PHP? Thx a lot Simon Toth mailto:[EMAIL PROTECTED] http://kerberos.knows.it -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] tree structures

2002-07-09 Thread Alexander Ross
om table limit $P, $C > > > > Make a link at the bottom > > > > $NextPage = $P + $C; > > if ($P > $C) > > $PreviousPage = $P - $C; > > else > > $PreviousPage = 0; > > > > print "Next Page"; > > > > You get the idea...

Re: [PHP] tree structures

2002-07-09 Thread Alexander Ross
; $NextPage = $P + $C; > if ($P > $C) > $PreviousPage = $P - $C; > else > $PreviousPage = 0; > > print "Next Page"; > > You get the idea... > > > > -Original Message- > From: Alexander Ross [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 08, 2002 6

RE: [PHP] tree structures

2002-07-09 Thread Lazor, Ed
der Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 6:22 PM To: [EMAIL PROTECTED] Subject: [PHP] tree structures I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively ad

[PHP] tree structures

2002-07-08 Thread Alexander Ross
I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively add, delete, display, etc...) Everything works so far (www.bleen.net/forum). I want to be able to display 10 posts (includi

[PHP] Tree structures, references & segfaults

2002-06-06 Thread Peter Blokland
Hi, I'm trying to build a tree of objects in PHP, and having all sorts of trouble. Ideally, I'd like to end up with a reference to an object, which has an array of (references to) child-objects. Each child-object, except the root, also contains a reference to its parent. A sample : name = $name

[PHP] Tree class that can read/write/access/... DB and XML data

2002-01-21 Thread Wolfram Kriesing
as i had announced a while ago on pear-dev that i have a tree class which works on DB-data, now it is more enhanced and also works on XML (for now it can only read but within a week or something it will also be able to write) short description: - this class reads data from

[PHP] Tree View

2001-10-30 Thread Ing. Gustavo Edelstein
Hi, Has anybody a snippet or something to build a treeview with data from a MySQL table ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A. __ Visit us On Line at www.equiplus.com Email addresses: Operations: [EMAIL PROTECTED] Consulting: [EM

Re: [PHP] Tree menu

2001-03-09 Thread Dominique Paquin
http://www.webreference.com/dhtml/hiermenus/instructions/noframes/step4.html It's client side javascript and very as a beautifull look. Dominique Paquin ""Rosen"" <[EMAIL PROTECTED]> wrote in message 98akm9$poe$[EMAIL PROTECTED]">news:98akm9$poe$[EMAIL PROTECTED]... > Hi, > can someone tell me

[PHP] Tree menu

2001-03-09 Thread Rosen
Hi, can someone tell me where I can get some Tree Menu ? Thanks, Rosen Marinov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]