Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Thu, 15 Apr 1999 12:51:57 -0500 (CDT)
According to mike grommet:
> Hm... I'm finally getting around to making changes to createURL and
> setVariables
> so that chosen date ranges propoate through pages of results and we still
> get the
> nice drop down lists of the selected dates.
>
> Gilles, you told me to look at the selected format section, among others...
>
> what I cant figure out is where the actual values are coming from.
> For instance where are the values of Long, and Short stored?
templates.displayNames[i], which is set in TemplateList.cc, from the
template_map attribute.
> Here is the code for SELECTED format, which ovbiously builds a select string
> for html...
>
> I'm not sure where I need to set up my list of months, days and years
You should probably follow the example of METHOD and SORT, which use the
method_names and sort_names attributes. The defaults for these and all
other attributes are set in htcommon/defaults.cc. You should add, at the
very least, a month_names attribute, which can be customised for other
languages, and the buitin default will be English. It can be different
from the method_names and sort_names, in that you don't need name-value
pairs. You just need a list of 12 month names in the right order,
and the value is the position in the list (+1 as the list is 0-origin).
The days list can be generated on the fly (1-31) if you want a <select>
list for that, and the years too, though you may want to make that
configurable somehow, so the allowable range of years can be changed.
-- Gilles R. Detillieux E-mail: <grdetil@scrc.umanitoba.ca> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 ------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.
This archive was generated by hypermail 2.0b3 on Thu Apr 15 1999 - 10:59:53 PDT