//
// Copyright (c) 2006 by Conor O'Mahony.
// For enquiries, please email GubuSoft@GubuSoft.com.
// Please keep all copyright notices below.
// Original author of TreeView script is Marcelino Martins.
//
// This document includes the TreeView script.
// The TreeView script can be found at http://www.TreeView.net.
// The script is Copyright (c) 2006 by Conor O'Mahony.
//
// You can find general instructions for this file at www.treeview.net.
//

USETEXTLINKS = 1
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 1
WRAPTEXT = 1
PRESERVESTATE = 1

// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// The following code constructs the tree.  This code produces a tree that looks like:
// 
// Tree Options
//  - Expand for example with pics and flags
//    - United States
//      - Boston
//      - Tiny pic of New York City
//      - Washington
//    - Europe
//      - London
//      - Lisbon
//  - Types of node
//    - Expandable with link
//      - London
//    - Expandable without link
//      - NYC
//    - Opens in new window
// --------------------------------------------------------------------------------------------------------
// foldersTree = gFld("<b>Menu Principal</b>", "CDouglas.ca.html")
//   foldersTree.treeID = "Frameless"
//   aux1 = insFld(foldersTree, gFld("Expand for example with pics and flags", "javascript:undefined"))
//     aux2 = insFld(aux1, gFld("United States", "demoFrameless.html?pic=%22beenthere_unitedstates%2Egif%22"))
//       insDoc(aux2, gLnk("S", "Boston", "CDouglas.ca.html"))
//       insDoc(aux2, gLnk("S", "Tiny pic of New York City", "CDouglas.ca.html"))
//       insDoc(aux2, gLnk("S", "Washington", "CDouglas.ca.html"))
//     aux2 = insFld(aux1, gFld("Europe", "CDouglas.ca.html"))
//       insDoc(aux2, gLnk("S", "London", "CDouglas.ca.html"))
//       insDoc(aux2, gLnk("S", "Lisbon", "CDouglas.ca.html"))
//   aux1 = insFld(foldersTree, gFld("Types of node", "javascript:undefined"))
//     aux2 = insFld(aux1, gFld("Expandable with link", "CDouglas.ca.html"))
//       insDoc(aux2, gLnk("S", "London", "CDouglas.ca.html"))
//     aux2 = insFld(aux1, gFld("Expandable without link", "javascript:undefined"))
//       insDoc(aux2, gLnk("S", "NYC", "CDouglas.ca.html"))
//     insDoc(aux1, gLnk("B", "Opens in new window", "Images/beenthere_pisa.jpg"))
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// Tree Options Builder
//  - Expand for example with pics and flags
//    - United States
//      - Boston
//      - Tiny pic of New York City
//      - Washington
//    - Europe
//      - London
//      - Lisbon
//  - Types of node
//    - Expandable with link
//      - London
//    - Expandable without link
//      - NYC
//    - Opens in new window
// --------------------------------------------------------------------------------------------------------
	TreeTitle = "Menu Section Admin"
	TreeURL = "DMAdminLogin.php"
		Folder1Title = ""
		Folder1URL = ""
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

foldersTree = gFld("<b>"+TreeTitle+"</b>", TreeURL)
	if (USEFRAMES==0) {
		foldersTree.treeID = "Frameless"
		aux1 = insFld(foldersTree, gFld("Réservation", "javascript:undefined"))
	    	insDoc(aux1, gLnk("S", "Validation", "../Script/DMAdminLogin.php?thisMenu=reqValidateReservation"))
	    	insDoc(aux1, gLnk("S", "À Venir", "../Script/DMAdminLogin.php?thisMenu=reqUpComingReservation"))
	    	insDoc(aux1, gLnk("S", "Disponibilité", "../Script/DMAdminLogin.php?thisMenu=reqViewAvailability"))
		aux1 = insFld(foldersTree, gFld("Facturation", "javascript:undefined"))
	    	insDoc(aux1, gLnk("S", "Créer Nouvelle", "../Script/DMAdminLogin.php?thisMenu=reqInvoices"))
	    	insDoc(aux1, gLnk("S", "Rechercher", "../Script/DMAdminLogin.php?thisMenu=reqInvoicesList"))
		aux1 = insFld(foldersTree, gFld("Témoignage", "javascript:undefined"))
	    	insDoc(aux1, gLnk("S", "Validation", "../Script/DMAdminLogin.php?thisMenu=reqValidateTestimonial"))
		aux1 = insFld(foldersTree, gFld("Photos", "javascript:undefined"))
	    	insDoc(aux1, gLnk("S", "Ajouter", "../Script/DMAdminLogin.php?thisMenu=reqAddPictures"))
	    	insDoc(aux1, gLnk("S", "Supprimer", "../Script/DMAdminLogin.php?thisMenu=reqDeletePictures"))
		aux1 = insFld(foldersTree, gFld("Infos du Site", "javascript:undefined"))
	    	insDoc(aux1, gLnk("S", "Statistiques", "../Script/DMAdminLogin.php?thisMenu=reqStats"))
	    	insDoc(aux1, gLnk("B", "Documentations", "../Doc/Documentation_Du_Site.pdf"))
		aux1 = insFld(foldersTree, gFld("\"Nos Activitées\"", "javascript:undefined"))
	    	aux2 = insFld(aux1, gFld("Activitées", "javascript:undefined"))
	      		insDoc(aux2, gLnk("S", "Ajouter", "../Script/DMAdminLogin.php?thisMenu=reqAddActivity"))
	      		insDoc(aux2, gLnk("S", "Editer", "../Script/DMAdminLogin.php?thisMenu=reqEditActivity"))
	      		insDoc(aux2, gLnk("S", "Changer l'ordre", "../Script/DMAdminLogin.php?thisMenu=reqOrderActivity"))
	      		insDoc(aux2, gLnk("S", "Supprimer", "../Script/DMAdminLogin.php?thisMenu=reqDeleteActivity"))
	    	aux2 = insFld(aux1, gFld("Catégories", "javascript:undefined"))
	      		insDoc(aux2, gLnk("S", "Ajouter/Editer", "../Script/DMAdminLogin.php?thisMenu=reqAddCategory"))
	      		insDoc(aux2, gLnk("S", "Changer l'ordre", "../Script/DMAdminLogin.php?thisMenu=reqOrderCategory"))
	      		insDoc(aux2, gLnk("S", "Supprimer", "../Script/DMAdminLogin.php?thisMenu=reqDeleteCategory"))
  }
