Land Title
   Research & Records
Researching County Roads in Oregon 2016 (pdf)
Folder(s):

Total Tiles 0





1. Set value of $curFolder
GET
set $defaultBaseDir = "/LTRR";
if no query params set $curFolder to $defaultBaseDir
if query params set $curFolder to "/"[param value]
POST
if no query params set $curFolder to $defaultBaseDir
if query params set $curFolder to "/"[param value]
2. Set $currentDirectory to complete folder path to base a next folder select list on.
GET
Set $currentDirectory to HTML root path (__DIR__) + $curFolder
POST
- assign hidden form field (selecteddir) to $selecteddir the selected folder.
- use hidden form field (baseDirectory) to create array ($pathArray). delimit on "/"
- if $selecteddir = "gotoparent", pop last array value to reset $selecteddir value.
  else push $selecteddir to array
- use hidden form field string (baseDirectory) to create the array ($pathArray). delimit on "/"
-Set $currentDirectory by using the array to rebuild a current path string.
For both Get and Post, create the first <option > for the foldert select list as $arrsubdir.
3. Use $currentDirectory to get a list of subfolders for the folder select list.
- use getDirs($currentDirectory) to create the $arrDirs array
Loop through the $arrDirs array to build the options string for the folder select list. - Assign the string to $arrsubdir
4. Use $currentDirectory to get a list of files found in the directory.
- Assign $currentDirectory to $fullpath and strip from from results.
- use getFiles($currentDirectory) to create the $arrFiles array
- Loop through the $arrDirs array to build the HTML list of filenames. - Build into the string the javascript actions needed.
5. Submit form when a folder is selected.
There are 2 hidden from fields, selecteddir and baseDirectory
selecteddir is set to the folder that was selected from the select list.
baseDirectory is set from the posted baseDirectory value.