~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to web/cgi/alpine/1.0/fr_fldrsavenew.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2010-10-03 15:31:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101003153155-2exypc96j1e8tw0p
Tags: 2.02-1
* New upstream release, based on re-alpine project
* Updated debian/copyright to reflect this fact
* re-alpine removed the non-free from the tarball, so now
  we do not repack the upstream tarball. (Yay!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id: fr_fldrsavenew.tcl 1204 2009-02-02 19:54:23Z hubert@u.washington.edu $
 
2
# ========================================================================
 
3
# Copyright 2006 University of Washington
 
4
#
 
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
 
8
#
 
9
#     http://www.apache.org/licenses/LICENSE-2.0
 
10
#
 
11
# ========================================================================
 
12
 
 
13
#  fr_fldrcreate.tcl
 
14
#
 
15
#  Purpose:  CGI script to generate frame set for creating a new folder to save to
 
16
 
 
17
#  Input:
 
18
set frame_vars {
 
19
  {onselect     ""      main}
 
20
  {oncancel     ""      main}
 
21
  {target       ""      ""}
 
22
  {controls     ""      0}
 
23
}
 
24
 
 
25
#  Output:
 
26
#
 
27
 
 
28
## read vars
 
29
foreach item $frame_vars {
 
30
  if {[catch {cgi_import [lindex $item 0].x}]} {
 
31
    if {[catch {eval WPImport $item} errstr]} {
 
32
      error [list _action "Impart Variable" $errstr]
 
33
    }
 
34
  } else {
 
35
    set [lindex $item 0] 1
 
36
  }
 
37
}
 
38
 
 
39
 
 
40
cgi_http_head {
 
41
  WPStdHttpHdrs
 
42
}
 
43
 
 
44
cgi_html {
 
45
  cgi_head {
 
46
  }
 
47
 
 
48
  cgi_frameset "rows=$_wp(titleheight),*" resize=yes border=0 frameborder=0 framespacing=0 {
 
49
 
 
50
    set parms ""
 
51
    foreach v $frame_vars {
 
52
      if {[string length [subst $[lindex $v 0]]]} {
 
53
        append parms "&[lindex $v 0]=[WPPercentQuote [subst $[lindex $v 0]]]"
 
54
      }
 
55
    }
 
56
 
 
57
    switch $controls {
 
58
      2 { set tnum 223 }
 
59
      default {set tnum 222}
 
60
    }
 
61
 
 
62
    cgi_frame subhdr=header.tcl?title=${tnum} title="Folder Creation for Save"
 
63
    cgi_frame subbody=wp.tcl?page=fldrsavenew${parms} title="Folder Creation Frame"
 
64
  }
 
65
}