2
# $Id: querynewfldr.tcl 391 2007-01-25 03:53:59Z mikes@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 confirm
21
{fid "No Collection Specified"}
26
# HTML/CSS data representing the message specified
27
# by the 'uid' argument
29
# inherit global config
38
# * * * * HELP * * * *
39
cgi_put [cgi_url "Get Help" wp.tcl?page=help&oncancel=folders class=navbar target=_top]
46
if {[catch {WPCmd PEFolder collections} collections]} {
47
error [list _action "Collection list" $collections]
56
WPStdHtmlHdr "Folder Creation"
60
cgi_body BGCOLOR="$_wp(bordercolor)" {
62
catch {WPCmd PEInfo set help_context foldadd}
64
cgi_form $_wp(appdir)/wp method=get name=confirm target=_top {
65
cgi_text "page=folders" type=hidden notab
66
cgi_text "fid=$fid" type=hidden
67
cgi_text "cid=[WPCmd PEInfo key]" type=hidden
68
cgi_text "frestore=1" type=hidden
70
cgi_table border=0 cellspacing=0 cellpadding=2 width="100%" height="100%" {
73
cgi_table_data $_wp(menuargs) {
74
WPTFCommandMenu query_menu {}
78
cgi_table_data valign=top align=center class=dialog {
79
cgi_table border=0 cellspacing=0 cellpadding=2 width="70%" {
81
cgi_table_data align=center {
82
cgi_puts [cgi_nl][cgi_nl][cgi_nl][cgi_nl]
83
cgi_puts "Please enter the name of the folder you would like to add"
84
if {[llength $fid] > 1} {
85
cgi_put " to the directory '[join [lrange $fid 1 end] /]'"
87
if {[llength $collections] > 1} {
88
cgi_put " in the collection '[lindex [lindex $collections [lindex $fid 0]] 1]'."
94
cgi_put "New folder name: "
95
cgi_text folder= maxlength=64 size=25%
98
cgi_puts "Click 'Create' to add a new folder by that name, or 'Cancel' to return to the Folder List."
101
cgi_submit_button newfolder=Create
102
cgi_submit_button newfolder=Cancel