Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   вопрос по cfml (https://forum.antichat.xyz/showthread.php?t=46697)

Дикс 14.08.2007 12:07

вопрос по cfml
 
есть такой код:
Цитата:

<cfif isdefined('url.type') and url.type eq 'EVENT'>
<cfset iteml = "event">
<cfset itemls = "events">
<cfset itemu = "Event">
<cfset items = "Events">
<cfset days = "30">
<cfset default = "(One month from today)">
<input type="hidden" name="type" value="EVENT">
<cfelse>
<input type="hidden" name="type" value="CLASS">
<cfset iteml = "class">
<cfset itemls = "classes">
<cfset itemu = "Class">
<cfset items = "Classes">
<cfset days = "90">
<cfset default = "(3 months from today)">
<cfset url.type = 'CLASS'>

</cfif>
<cfoutput>!!!#itemls#!!!</cfoutput>
я запускаю скрипт с параметром type=event
и без этого параметра, но в обоих случаях получаю один и тот же результат - itemls всегда = events =\


Время: 03:08