Changes for document

From version 48.6
edited by olivier lizounat
on 2013/10/03 17:07
To version 49.1
edited by olivier lizounat
on 2013/10/04 14:57
Change comment: There is no comment for this version

Content changes

... ... @@ -1,4 +1,5 @@
1 -{{groovy}}import groovy.sql.Sql
1 +{{groovy}}
2 +import groovy.sql.Sql
2 2 if ( !xcontext.step1 ) {
3 3 xcontext.put("step1",true)
4 4 def result=[]
... ... @@ -12,8 +12,10 @@
12 12 sql.eachRow(req2){result2 << it.toRowResult()}
13 13 xcontext.put("result2", result2)
14 14 sql.close()
15 -}{{/groovy}}
16 -{{velocity}}#macro (cleanup $txt)
16 +}
17 +{{/groovy}}
18 +{{velocity}}
19 +#macro (cleanup $txt)
17 17 #if ($!txt!='')
18 18 #set ($txt=$txt.replaceAll("\'","\\'"))
19 19 #set ($txt=$txt.replaceAll("#","\\#"))
... ... @@ -112,7 +112,7 @@
112 112 ## sinon afficher le formulaire
113 113 <a name="AwardForm" href=""></a>
114 114 <div id="userForm" >
115 - #if ($xcontext.result2.size()>0)
118 + #if ($xcontext.result2.size()>0)
116 116 #foreach($item2 in $xcontext.result2)
117 117 #set ($eventnametitle=$item2.eventname)
118 118 #set ($id=$item2.id)
... ... @@ -122,52 +122,98 @@
122 122 #info ("* = must be filled")
123 123
124 124 <form method="POST" action="#">
125 - <input type="hidden" name="from" value="$doc.getURL()">
126 - <input type="hidden" name="userForm" value="ok"/>
127 - <input type="hidden" name="userid" value="$item.userid"/>
128 - <input type="hidden" name="eventnametitle" value="$eventnametitle"/>
129 - <input type="hidden" name="event_id" value="$id"/>
128 + <input type="hidden" name="from" value="$doc.getURL()">
129 + <input type="hidden" name="userForm" value="ok"/>
130 + <input type="hidden" name="userid" value="$item.userid"/>
131 + <input type="hidden" name="eventnametitle" value="$eventnametitle"/>
132 + <input type="hidden" name="event_id" value="$id"/>
130 130
131 - <div class="firstName"><label class="labelwidth">First Name *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label><span class="clearform"></span><input type=text name=firstname size=30 value="$!request.firstname"><span class="error">$!ErrMsgfirstName </div>
132 - </span><div class="lastName"><label class="labelwidth">Last Name *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label><span class="clearform"></span><input type=text name=lastname size=30 value="$!request.lastname"><span class="error">$!ErrMsglastName</div>
133 - </span><div class="cieName"><label class="labelwidth">Company *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label><span class="clearform"></span><input type=text name=company size=30 value="$!request.company"><span class="error">$!ErrMsgcompany</div>
134 - </span><div class="emailName"><label class="labelwidth">Email *:<br/><div class="tinfo">(ex: john.doe@ow2.org)</div></label><span class="clearform"></span><input type=text name=email size=30 value="$!request.email"><span class="error">$!ErrMsgemail</div>
135 - </span>
136 - </span><div class="phoneName"><label class="labelwidth">Phone Number :<br/><div class="tinfo">(ex: +33 (0) 123456789)</div></label><span class="clearform"></span><input type=text name=phone_number size=30 value="$!request.phone_number"><span class="error">$!ErrMsgphone_number</div><br><br>
137 - <div id="sessionSelect"><label class="labelwidth">Category Award *:<br/><div class="tinfo">(...)</div></label><span class="clearform"></span>
138 - #if ($xcontext.result.size()>=2)<select name=sessionid><option value="false">Please select in the list</option>
139 -
140 - #foreach($item in $xcontext.result)
141 - #if ($request.sessionid==$item.sessionid)
142 - <option value="$item.sessionid" selected="selected">$item.sessionname</option>
143 - #else
144 - <option value="$item.sessionid">$item.sessionname</option>
145 - #end
146 - #end
147 - #else
148 - #foreach($item in $xcontext.result)
149 - $item.sessionname
150 -<input type="hidden" value="${item.sessionid}" name="sessionid" />
151 - #end
152 -
134 + <div class="firstName">
135 + <label class="labelwidth">First Name *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label>
136 + <span class="clearform"></span>
137 + <input type=text name=firstname size=30 value="$!request.firstname">
138 + <span class="error">$!ErrMsgfirstName </span>
139 + </div>
140 + <div class="lastName">
141 + <label class="labelwidth">Last Name *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label>
142 + <span class="clearform"></span>
143 + <input type=text name=lastname size=30 value="$!request.lastname">
144 + <span class="error">$!ErrMsglastName</span>
145 + </div>
146 + <div class="cieName">
147 + <label class="labelwidth">Company *:<br/><div class="tinfo">(Maximum 60 caracters allowed.)</div></label>
148 + <span class="clearform"></span>
149 + <input type=text name=company size=30 value="$!request.company">
150 + <span class="error">$!ErrMsgcompany</span>
151 + </div>
152 + <div class="emailName">
153 + <label class="labelwidth">Email *:<br/><div class="tinfo">(ex: john.doe@ow2.org)</div></label>
154 + <span class="clearform"></span>
155 + <input type=text name=email size=30 value="$!request.email">
156 + <span class="error">$!ErrMsgemail</span>
157 + </div>
158 + <div class="phoneName">
159 + <label class="labelwidth">Phone Number :<br/><div class="tinfo">(ex: +33 (0) 123456789)</div></label>
160 + <span class="clearform"></span>
161 + <input type=text name=phone_number size=30 value="$!request.phone_number">
162 + <span class="error">$!ErrMsgphone_number</span>
163 + </div>
164 + <br>
165 + <br>
166 + <div id="sessionSelect">
167 + <label class="labelwidth">Category Award *:<br/><div class="tinfo">(...)</div></label>
168 + <span class="clearform"></span>
169 + #if ($xcontext.result.size()>=2)<select name=sessionid><option value="false">Please select in the list</option>
170 +
171 + #foreach($item in $xcontext.result)
172 + #if ($request.sessionid==$item.sessionid)
173 + <option value="$item.sessionid" selected="selected">$item.sessionname</option>
174 + #else
175 + <option value="$item.sessionid">$item.sessionname</option>
176 + #end
177 + #end
178 + #else
179 + #foreach($item in $xcontext.result)
180 + $item.sessionname
181 + <input type="hidden" value="${item.sessionid}" name="sessionid" />
182 + #end
183 +
184 + #end
185 + </select><span class="error">$!ErrMsgsessionid</span>
186 + </div>
187 + <div class="titleName">
188 + <label class="labelwidth">Title of your award entry *:<br/><div class="tinfo">(150 characteres max.)</div></label>
189 + <span class="clearform"></span>
190 + <input type=text size="80" name=prez_title value="$!request.prez_title">
191 + <span class="error">$!ErrMsgprez_title</span>
192 + </div>
193 + <br>
194 + <div class="abstractName">
195 + <label class="labelwidth">Description *:<br/><div class="tinfo">(300 words max.)</div></label>
196 + <span class="clearform"></span>
197 + <textarea cols="80" rows="25" name=prez_abstract>$!request.prez_abstract</textarea>
198 + <span class="error">$!ErrMsgprez_abstract</span>
199 + </div>
200 + <div class="bioName">
201 + <label class="labelwidth">What according to you makes your award entry a good candidate for this category? *:<br/><div class="tinfo">(300 words max. per Bio)</div></label>
202 + <span class="clearform"></span>
203 + <textarea cols="80" rows="10" name=speaker_bio>$!request.speaker_bio</textarea>
204 + <span class="error">$!ErrMsgspeaker_bio </span>
205 + </div>
206 + <div class="legalName">
207 + #if ($!request.legal)
208 + #set ($chck="checked")
209 + #else
210 + #set ($chck="")
211 + #end
212 +
213 + <br /><br /><br />
214 + <div class="submitName"><center><input type=submit value="Send"></center></div>
215 + </div>
216 + </form>
217 + </div>
218 +</div>
153 153 #end
154 - </select><span class="error">$!ErrMsgsessionid</div>
155 - </span><div class="titleName"><label class="labelwidth">Title of your award entry *:<br/><div class="tinfo">(150 characteres max.)</div></label><span class="clearform"></span><input type=text size="80" name=prez_title value="$!request.prez_title"><span class="error">$!ErrMsgprez_title</div>
156 - </span><br><div class="abstractName"><label class="labelwidth">Description *:<br/><div class="tinfo">(300 words max.)</div></label><span class="clearform"></span><textarea cols="80" rows="25" name=prez_abstract>$!request.prez_abstract</textarea><span class="error">$!ErrMsgprez_abstract</div>
157 - </span><div class="bioName"><label class="labelwidth">What according to you makes your award entry a good candidate for this category? *:<br/><div class="tinfo">(300 words max. per Bio)</div></label><span class="clearform"></span><textarea cols="80" rows="10" name=speaker_bio>$!request.speaker_bio</textarea><span class="error">$!ErrMsgspeaker_bio</div>
158 - </span>
159 - </span><div class="legalName">
160 - #if ($!request.legal)
161 - #set ($chck="checked")
162 - #else
163 - #set ($chck="")
164 - #end
165 -
166 -<br /><br /><br />
167 - <div class="submitName"> <center><input type=submit value="Send"></center></div>
168 -
169 - </form></div></div>
170 - #end
171 171 #end
172 172 #if ($NoErr)
173 173 #set ($sessionidname=$inp.get($request.sessionid))
Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice