2
# $Id: querynick.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 deal
17
# with existing/taken nickname collision
22
{book "Missing address book"}
54
# Query prompt to deal with existing/taken nickname collision
58
# inherit global config
70
WPStdHtmlHdr "Take to New Entry or List"
74
cgi_body BGCOLOR="$_wp(bordercolor)" {
76
#catch {WPCmd PEInfo set help_context samenick}
78
cgi_form $_wp(appdir)/wp method=get name=samenick target=_top {
80
cgi_table border=0 cellspacing=0 cellpadding=2 height="100%" {
82
cgi_table_data valign=top class=navbar {
83
cgi_table bgcolor=$_wp(menucolor) border=0 cellspacing=0 cellpadding=2 {
84
# next comes the menu down the left side, with suitable
87
cgi_table_data $_wp(menuargs) class=navbar {
88
WPTFCommandMenu nick_menu common_menu
95
cgi_table_data valign=top class=navbar {
97
cgi_text "page=addrsave" type=hidden notab
98
cgi_text "oncancel=main" type=hidden notab
99
cgi_text "take=1" type=hidden notab
100
cgi_text "ai=${ai}" type=hidden notab
101
cgi_text "book=${book}" type=hidden notab
102
cgi_text "nick=${nick}" type=hidden notab
103
cgi_text "fn=${fn}" type=hidden notab
104
cgi_text "addrs=${addrs}" type=hidden notab
105
cgi_text "fcc=${fcc}" type=hidden notab
106
cgi_text "comment=${comment}" type=hidden notab
107
cgi_text "newnick=${newnick}" type=hidden notab
108
cgi_text "cid=[WPCmd PEInfo key]" type=hidden notab
110
cgi_table border=0 cellspacing=0 cellpadding=2 width="100%" height="100%" {
112
cgi_table_data valign=top align=center class=dialog {
113
cgi_table border=0 cellspacing=0 cellpadding=15 width="75%" {
115
cgi_table_data align=center colspan=2 "xstyle=padding-top:20;padding-bottom:20" {
116
cgi_puts "An address book entry with the nickname \"[cgi_bold $newnick]\" already exists. At this point you may click either:"
121
cgi_table_data align=right {
122
cgi_submit_button "replace=Replace Entry"
124
cgi_table_data "xstyle=padding:15" {
125
cgi_puts "Replace the \"[cgi_bold $newnick]\" address book entry with your [cgi_italic Take] selection."
130
cgi_table_data align=right {
131
cgi_submit_button "replace=Add to Entry"
133
cgi_table_data "xstyle=padding:15" {
134
if {[string first "," $addrs] >= 0} {
140
cgi_puts "Add the address${plur} from your [cgi_italic Take] selection to the existing entry's addresses to create a list."
145
cgi_table_data align=right {
146
cgi_submit_button "replace=Edit"
148
cgi_table_data "xstyle=padding:15" {
149
cgi_puts "Go back to editing your [cgi_italic Take] selection."
154
cgi_table_data align=right {
155
cgi_submit_button "cancel=Cancel"
157
cgi_table_data "xstyle=padding:15" {
158
cgi_puts "Or, Cancel your [cgi_italic Take] selection altogether."