2
# $Id: queryattach.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 ask for
17
# attachment to composition
23
# HTML/CSS data representing the form
25
# inherit global config
29
# make sure form's in Unicode
46
cgi_submit_button "attach=Add Attachment" class="navbar"
54
# * * * * CANCEL * * * *
55
cgi_submit_button cancel=Cancel class="navbar"
63
# * * * * Address/Cancel * * * *
64
cgi_submit_button doit=Done class="navbar"
66
cgi_select attachop class=navtext {
67
cgi_option "Action..." value=null
68
cgi_option Attach value=attach
69
cgi_option Cancel value=cancel
79
WPStdHttpHdrs "text/html; charset=\"$charset\""
84
cgi_http_equiv Content-Type "text/html; charset=$charset"
87
cgi_put "<style type='text/css'>"
88
cgi_put ".filename { font-family: Courier, monospace ; font-size: 10pt }"
92
cgi_body BGCOLOR="$_wp(bordercolor)" {
93
cgi_form $_wp(appdir)/wp method=post enctype=multipart/form-data target=_top {
94
cgi_text page=attach type=hidden notab
95
cgi_text cid=[WPCmd PEInfo key] type=hidden notab
96
if {[info exists params]} {
98
cgi_text "[lindex $p 0]=[lindex $p 1]" type=hidden notab
102
cgi_table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%" {
105
cgi_table_data $_wp(menuargs) {
106
WPTFCommandMenu query_menu {}
110
cgi_table_data align=center valign=top class=dialog {
111
cgi_table border=0 width=75% cellpadding=15 {
113
cgi_table_data align=center {
114
cgi_puts "To attach a file to your message, enter its path and file name below, or use the [cgi_italic Browse] button to choose the file, then click [cgi_italic "Add Attachment"], or click [cgi_italic Cancel] to return to your composition without attaching anything."
118
cgi_table_data align=center {
119
cgi_file_button file "accept=*/*" size=30 class=filename
123
cgi_table_data align=center {
124
cgi_puts "You can also provide a short description to help the message's recipient figure out what the attachment is :"
128
cgi_table_data align=center {
129
cgi_text description= maxlength=256 size=40 class=filename
133
cgi_table_data align=center {
134
cgi_submit_button "attach=Add Attachment"
135
cgi_submit_button cancel=Cancel