I've wracked my brains and searched the forums up and down. I'm using statically built pages in LinksSQL 2.x and need the search.html and search_results.html to change headers based on the catid I'm passing through the search.cgi url string.
For example, ../search.cgi?catid=64 will trigger the following template code:
<%if catid eq '64'%>
to include the file CJ_header_cats.html
Fine and dandy. Now the problem. I need to do the same for catid 64 through 90 plus 122. Catid 95-121 and 123 need to call a separate file, with all the other catids using the default.
I've tried
<%if catid ge '64' and le '90'%>
... CJ_header_cats.html
<%esleif catid eq '122'%>
... CJ_header_cats.html
<%elseif catid ge '95' and le '121'%>
... XJ_header_cats.html
<%esleif catid eq '122'%>
... XJ_header_cats.html
<%else%>
...include_header.html
<%endif%>
That didn't work. Tried using <=, <= and == operators. No go. The code only honors the 'eq' comparison. Is there a way to use range operators in this application?
Kevin
My Green Promise: To learn (and practice) as much as I can about living a sustainable life and then spreading the word.
What's your Green Promise?
For example, ../search.cgi?catid=64 will trigger the following template code:
<%if catid eq '64'%>
to include the file CJ_header_cats.html
Fine and dandy. Now the problem. I need to do the same for catid 64 through 90 plus 122. Catid 95-121 and 123 need to call a separate file, with all the other catids using the default.
I've tried
<%if catid ge '64' and le '90'%>
... CJ_header_cats.html
<%esleif catid eq '122'%>
... CJ_header_cats.html
<%elseif catid ge '95' and le '121'%>
... XJ_header_cats.html
<%esleif catid eq '122'%>
... XJ_header_cats.html
<%else%>
...include_header.html
<%endif%>
That didn't work. Tried using <=, <= and == operators. No go. The code only honors the 'eq' comparison. Is there a way to use range operators in this application?
Kevin
My Green Promise: To learn (and practice) as much as I can about living a sustainable life and then spreading the word.
What's your Green Promise?