summaryrefslogtreecommitdiffstats
path: root/extensions/REMO/template/en/default/bug/create/create-remo-swag.xml.tmpl
blob: 7e43de664b7cc4ba312e9dc68a357e4e5efcfd94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[%# The contents of this file are subject to the Mozilla Public
  # License Version 1.1 (the "License"); you may not use this file
  # except in compliance with the License. You may obtain a copy of
  # the License at http://www.mozilla.org/MPL/
  #
  # Software distributed under the License is distributed on an "AS
  # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  # implied. See the License for the specific language governing
  # rights and limitations under the License.
  #
  # The Original Code is the REMO Bugzilla Extension.
  #
  # The Initial Developer of the Original Code is the Mozilla Foundation.
  # Portions created by the Initial Developer are Copyright (C) 2011
  # the Initial Developer. All Rights Reserved.
  #
  # Contributor(s):
  #   David Lawrence <dkl@mozilla.com>
  #%]

[% USE Bugzilla %]
[% cgi = Bugzilla.cgi %]
<?xml version="1.0" [% IF Param('utf8') %]encoding="UTF-8" [% END %]standalone="yes" ?>
<!DOCTYPE remoswag [
<!ELEMENT remoswag (firstname, 
                    lastname, 
                    wikiprofile, 
                    eventname, 
                    wikipage, 
                    attendance,
                    shipping,
                    swagrequested)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT wikiprofile (#PCDATA)>
<!ELEMENT eventname (#PCDATA)>
<!ELEMENT wikipage (#PCDATA)>
<!ELEMENT attendance (#PCDATA)>
<!ELEMENT shipping (shipbeforedate,
                    shiptofirstname,
                    shiptolastname,
                    shiptoaddress1,
                    shiptoaddress2,
                    shiptocity,
                    shiptostate,
                    shiptopcode,
                    shiptocountry,
                    shiptophone,
                    shiptoidrut,
                    shipadditional)>
<!ELEMENT shipbeforedate (#PCDATA)>
<!ELEMENT shiptofirstname (#PCDATA)>
<!ELEMENT shiptolastname (#PCDATA)>
<!ELEMENT shiptoaddress1 (#PCDATA)>
<!ELEMENT shiptoaddress2 (#PCDATA)>
<!ELEMENT shiptocity (#PCDATA)>
<!ELEMENT shiptostate (#PCDATA)>
<!ELEMENT shiptopcode (#PCDATA)>
<!ELEMENT shiptocountry (#PCDATA)>
<!ELEMENT shiptophone (#PCDATA)>
<!ELEMENT shiptoidrut (#PCDATA)>
<!ELEMENT shipadditional (#PCDATA)>
<!ELEMENT swagrequested (stickers,
                         buttons,
                         posters,
                         lanyards,
                         tshirts,
                         rollupbanners,
                         horizontalbanner,
                         boothcloth,
                         pens,
                         otherswag)>
<!ELEMENT stickers (#PCDATA)>
<!ELEMENT buttons (#PCDATA)>
<!ELEMENT posters (#PCDATA)>
<!ELEMENT lanyards (#PCDATA)>
<!ELEMENT tshirts (#PCDATA)>
<!ELEMENT rollupbanners (#PCDATA)>
<!ELEMENT horizontalbanners (#PCDATA)>
<!ELEMENT boothcloth (#PCDATA)>
<!ELEMENT pens (#PCDATA)>
<!ELEMENT otherswag (#PCDATA)>]>
<remoswag>
  <firstname>[% cgi.param('firstname') FILTER xml %]</firstname>
  <lastname>[% cgi.param('lastname') FILTER xml %]</lastname>
  <wikiprofile>[% cgi.param('wikiprofile') FILTER xml %]</wikiprofile>
  <eventname>[% cgi.param('eventname') FILTER xml %]</eventname>
  <wikipage>[% cgi.param('wikipage') FILTER xml %]</wikipage>
  <attendance> [% cgi.param('attendance') FILTER xml %]</attendance>
  <shipping>
    <shipbeforedate>[% cgi.param('cf_due_date') FILTER xml %]</shipbeforedate>
    <shiptofirstname>[% cgi.param("shiptofirstname") FILTER xml %]</shiptofirstname>
    <shiptolastname>[% cgi.param("shiptolastname") FILTER xml %]</shiptolastname>
    <shiptoaddress1>[% cgi.param("shiptoaddress1") FILTER xml %]</shiptoaddress1>
    <shiptoaddress2>[% cgi.param("shiptoaddress2") FILTER xml %]</shiptoaddress2>
    <shiptocity>[% cgi.param("shiptocity") FILTER xml %]</shiptocity>
    <shiptostate>[% cgi.param("shiptostate") FILTER xml %]</shiptostate>
    <shiptopcode>[% cgi.param("shiptopcode") FILTER xml %]</shiptopcode>
    <shiptocountry>[% cgi.param("shiptocountry") FILTER xml %]</shiptocountry>
    <shiptophone>[% cgi.param("shiptophone") FILTER xml %]</shiptophone>
    <shiptoidrut>[% cgi.param("shiptoidrut") FILTER xml %]</shiptoidrut>
    <shipadditional>[% cgi.param('shipadditional') || '' FILTER xml %]</shipadditional>
  </shipping>
  <swagrequested>
    <stickers>[% (cgi.param('stickers') ? 1 : 0) FILTER xml %]</stickers>
    <buttons>[% (cgi.param('buttons') ? 1 : 0) FILTER xml %]</buttons>
    <posters>[% (cgi.param('posters') ? 1 : 0) FILTER xml %]</posters>
    <lanyards>[% (cgi.param('lanyards') ? 1 : 0) FILTER xml %]</lanyards>
    <tshirts>[% (cgi.param('tshirts') ? 1 : 0) FILTER xml %]</tshirts>
    <rollupbanners>[% (cgi.param('rollupbanners') ? 1 : 0) FILTER xml %]</rollupbanners>
    <horizontalbanner>[% (cgi.param('horizontalbanner') ? 1 : 0) FILTER xml %]</horizontalbanner>
    <boothcloth>[% (cgi.param('boothcloth') ? 1 : 0) FILTER xml %]</boothcloth>
    <pens>[% (cgi.param('pens') ? 1 : 0) FILTER xml %]</pens>
    <otherswag>[% cgi.param('otherswag') || '' FILTER xml %]</otherswag>
  </swagrequested>
</remoswag>