here i want to know that how i can do this result on client side no user can change,delete or add in this page how i will show info like this: (all values come from database)
+2009
+2010
+BCA-I
+BCA-II
-BCA-III
SAD.pdf
Advance Web Application.pdf
Programming in JAVA.pdf
+PGDCA
+M.Sc. (Pre)
+M.Sc. (Final)
+2011
how i can do this work.
thanks

Member Avatar for diafol

Look for some jQuery examples.

Your DB will need to store something like this:

id | label | file_url | sort_order | parent_id | open_state

VARCHAR label = displayed text
VARCHAR file_url = url IF the item is a file, NULL as default
INT sort_order = display order (or leave this out for alphabetical order)
INT parent_id = if top level folder (0), if not use parent folder id (id)
INT open_state = 1 (open), 0 (closed)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.