1
# $Id: fr_fldrbrowse.tcl 391 2007-01-25 03:53:59Z mikes@u.washington.edu $
2
# ========================================================================
3
# Copyright 2006 University of Washington
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
# you may not use this file except in compliance with the License.
7
# You may obtain a copy of the License at
9
# http://www.apache.org/licenses/LICENSE-2.0
11
# ========================================================================
15
# Purpose: CGI script to generate frame set for selecting a folder from the user's
16
# defined collections in webpine-lite pages. the idea is that this
17
# page specifies a frameset that loads a "header" page
18
# used to keep the servlet alive via
19
# periodic reloads and a "body" page containing static/form
20
# elements that can't/needn't be periodically reloaded or
21
# is blocked on user input.
35
foreach item $frame_vars {
36
if {[catch {cgi_import [lindex $item 0].x}]} {
37
if {[catch {eval WPImport $item} errstr]} {
38
error [list _action "Impart Variable" $errstr]
41
set [lindex $item 0] 1
54
cgi_frameset "rows=$_wp(titleheight),*" resize=yes border=0 frameborder=0 framespacing=0 {
57
foreach v $frame_vars {
58
if {[string length [subst $[lindex $v 0]]]} {
59
append parms "&[lindex $v 0]=[WPPercentQuote [subst $[lindex $v 0]]]"
65
default {set tnum 220}
68
cgi_frame subhdr=header.tcl?title=${tnum} title="Folder Selection for Save"
69
cgi_frame subbody=wp.tcl?page=fldrbrowse${parms} title="Folder Selection Frame"