2
# $Id: querysave.tcl 1204 2009-02-02 19:54:23Z hubert@u.washington.edu $
3
# ========================================================================
4
# Copyright 2006 University of Washington
6
# Licensed under the Apache License, Version 2.0 (the "License");
7
# you may not use this file except in compliance with the License.
8
# You may obtain a copy of the License at
10
# http://www.apache.org/licenses/LICENSE-2.0
12
# ========================================================================
16
# Purpose: CGI script to generate html form used to gather folder
17
# name and collection for aggregate save
21
# params : array of key/value pairs to submit with form
22
# oncancel : url to reference should user cancel dialog
28
# HTML/CSS data representing the form for save folder dialog
30
# inherit global config
40
cgi_image_button save=[WPimg but_save] border=0 alt="Save"
48
# * * * * CANCEL * * * *
49
cgi_puts [cgi_url [cgi_img [WPimg but_cancel] border=0 alt="Cancel"] wp.tcl?${oncancel}]
62
WPStdHtmlHdr "Aggregate Save"
66
cgi_body BGCOLOR="$_wp(bordercolor)" {
67
cgi_form $_wp(appdir)/$_wp(ui1dir)/wp method=get {
68
if {[info exists params]} {
70
cgi_text "[lindex $p 0]=[lindex $p 1]" type=hidden notab
74
cgi_table border=0 cellspacing=0 cellpadding=2 width="100%" height="100%" {
76
cgi_table_data valign=top align=center class=dialog {
77
cgi_text "page=selsave" type=hidden notab
78
cgi_text "by=text" type=hidden notab
79
cgi_text "postpage=index" type=hidden notab
81
cgi_puts [cgi_nl][cgi_nl][cgi_nl][cgi_nl]
82
cgi_puts "You are attempting to Save to a folder, '$folder', that does not exist."
84
cgi_puts "[cgi_nl]Click 'Create' to create the folder and save the message, or 'Cancel' to abort the save."
88
cgi_submit_button save=Save
89
cgi_submit_button cancel=Cancel