[Zope] URL problem.
j2
spamfilter2@mupp.net
Sun, 3 Mar 2002 02:27:28 +0100
Why does <dtml-searchcritdata> get expanded to $ in the
<th><a href=3D"<dtml-var URL>?sortcritdata=3Dwonid&searchcritdata=3D<dtml=
-var
searchcritdata>">Wonid</a></th>
lines of the following code? I just dont get what i am doing wrong?
I want to be able to set a string in the form, and then use that data
troughout the <dtml-in> loop?
<dtml-var standard_html_header>
<small>F=F6r att uttf=F6ra en operation, klicka i rutan brevid knappen oc=
h
klicka p=E5 respektive knapp.<br>F=F6r att kunna ta bort en ban kr=E4vs a=
tt du har
CS-Admim-BAN r=E4ttigheten.
</small><br><br><br>
<dtml-unless sortcritdata>
<dtml-call "REQUEST.set('sortcritdata','wonid')">
</dtml-unless>
<form ACTION=3D"<dtml-var URL>" TYPE=3D"POST">
<dtml-unless searchcritdata>
<dtml-call "REQUEST.set('searchcritdata', '%')">
</dtml-unless>
Wonid: <input type=3D"text" name=3D"searchcritdata:string:required" size=3D=
"10"
value=3D<dtml-var searchcritdata>>
<input type=3D"submit" value=3D"S=F6k"><br><small>Anv=E4nd % som wildcard=
. Ex: 24%
visar alla wonid som b=F6rjar p=E5 24.</small><br><br>
</form>
<dtml-unless searchcritdata>
<dtml-call "REQUEST.set('searchcritdata', '%')">
</dtml-unless>
<dtml-unless sort_order_data>
<dtml-call "REQUEST.set('sort_order_data','0')">
</dtml-unless>
<dtml-in expr=3D"getCsbans(sortcrit=3Dsortcritdata, wonid=3Dsearchcritdat=
a,
sort_order_data=3Dsort_order_data)" size=3D100
start=3Dquery_start>
<dtml-if sequence-start>
<dtml-if previous-sequence>
<a href=3D"<dtml-var URL><dtml-var sequence-query>query_start=3D<dtml-var
previous-sequence-start-number>">
(Previous <dtml-var previous-sequence-size> results)
</a>
</dtml-if previous-sequence>
<table border>
<tr>
<th><a href=3D"<dtml-var URL>?sortcritdata=3Dwonid&searchcritdata=3D<dtml=
-var
searchcritdata>">Wonid</a></th>
<th><a href=3D"<dtml-var URL>?sortcritdata=3Dtimestamp&searchcritdata=3D<=
dtml-var
searchcritdata>">Tidpunkt f=F6r ban</a></th>
<th><a href=3D"<dtml-var URL>?sortcritdata=3Dbanner&searchcritdata=3D<dtm=
l-var
searchcritdata>">Banner</a></th>
<th><a href=3D"<dtml-var URL>?sortcritdata=3Dreason&searchcritdata=3D<dtm=
l-var
searchcritdata>">Reason</a></th>
<th>Unban</th>
</tr>
</dtml-if sequence-start>
<tr>
<td><dtml-var wonid null=3D""></td>
<dtml-if timestamp>
<td><dtml-var "_.DateTime(timestamp)" null=3D"" fmt=3D"%Y-%m-%d %H:%M"></=
td>
<dtml-else>
<td><center>Ok=E4nd</center></td>
</dtml-if>
<td><dtml-var banner null=3D""></td><td><dtml-var reason null=3D""></td>
<td valign=3D"middle"><form action=3D"removeCSBanAction"><input type=3D"h=
idden"
name=3D"wonid" value=3D"<dtml-var wonid>"><input type=3D"checkbox"
name=3D"actionconfirm" value =3D "1"> <input type =3D "submit" value =3D =
"Ta bort
ban"></form></td>
</tr>
<dtml-if sequence-end>
</table>
<dtml-if next-sequence>
<a href=3D"<dtml-var URL><dtml-var sequence-query
>query_start=3D<dtml-var
next-sequence-start-number>">
(Next <dtml-var next-sequence-size> results)
</a>
</dtml-if next-sequence>
</dtml-if sequence-end>
<dtml-else>
There was no data matching this <dtml-var title_or_id> query.
</dtml-in>