
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] problems using a date widget
I need to search for material based on date. So thusly I want to use the
date widget to search for material within a date range.
On the search page I have...
<TR>
<TD><B>Beginning<BR>
[widget type=date NAME=ui_begin_date]</TD>
<TD><B>Ending</B><BR>
[widget type=date NAME=ui_end_date]</TD>
</TR>
on the result page I have...
[calc]
if ($Session->{arg}) {
$Scratch ->{date_limit} = "AND created like '$Session->{arg}%'";
}
elsif ($CGI->{ui_begin_date}) {
for (qw/ ui_begin_date ui_end_date/) {
$CGI -> {$_} = $Tag->filter ( {
op => 'date_change',
body => $CGI -> {$_}
} );
}
$Scratch->{date_limit} = <<EOF
AND created >= '$CGI->{ui_begin_date}'
AND created <= '$CGI->{ui_end_date}Z'
EOF
}
else {
$Scratch -> {date_limit}= "";
}
return;
[/calc]
There are no ouput errors
running IC 4.8
The Docs and List were exhausted for this problem
Thx.
J. Scott Andreas :)
IS/Programmer/WebDevelopement
Learning Services, Inc.
e-mail: sandreas@learningservicesinc.com
phone: 1-800-877-9378 ext. 146
fax: (541) 744-2056
|
|__earning
(__
__)ervices
|
|ncorporated
--- __o
--- _-\<,_
--- (_)/ (_)
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users