Changeset 12094


Ignore:
Timestamp:
2006-07-07T13:17:47+12:00 (18 years ago)
Author:
mdewsnip
Message:

Sorted out the headers for the different search pages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cic-hcap/macros/extra.dm

    r12086 r12094  
    840840package query
    841841
     842_header_ {
     843_If_(_cgiargq_,_style:header_,_If_("_cgiargqst_" eq "1",_cicstatesearchheader_,_If_("_cgiargqre_" eq "1",_cicbibliographicsearchheader_,_cicadvancedsearchheader_)))
     844}
     845
    842846_cicjavascript_ {
    843847<script language="Javascript">
     
    898902# ------------------------------------------------------------------------------------------
    899903
     904_cicstatesearchheader_ {
     905_style:cicheader_(onLoad="initializeStateSearch();")
     906}
     907
    900908_cicstatesearchjavascript_ {
    901 function preparestatesearch()
     909function initializeStateSearch()
    902910\{
     911\}
     912
     913function prepareStateSearch()
     914\{
     915\}
     916
     917function selectRegion(region)
     918\{
     919   for (var i = 0; i < document.StateQueryForm.stq.options.length; i++) \{
     920      if (document.StateQueryForm.stq.options[i].value == region) \{
     921         alert("Found " + region + " at index " + i);
     922      \}
     923   \}
    903924\}
    904925}
     
    907928<span class="cicheading">State Search</span>
    908929
     930<p/>
     931<a href="javascript: selectRegion('West')">West</a>
     932
    909933<div style="float:right">
    910   <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="preparestatesearch();">
     934  <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="prepareStateSearch();">
    911935    <select name="stq" size="25" multiple="true" style="width: 125px;">
    912936      _cicstateoptions_
     
    9841008# ------------------------------------------------------------------------------------------
    9851009
     1010_cicbibliographicsearchheader_ {
     1011_style:cicheader_(onLoad="initializereferencessearch();")
     1012}
     1013
    9861014_cicbibliographicsearchjavascript_ {
    9871015function initializereferencessearch()
     
    10221050_formfunctions_ {}
    10231051
    1024 _header_ {_If_(_cgiargq_,_style:header_,_style:cicheader_(onLoad="initializeadvancedsearch();"))}
    1025 
    10261052_pagescriptextra_ {}
    10271053
    10281054# Hide the "search and display results in ... order" text
    10291055_textformselect_ {}
     1056
     1057_cicadvancedsearchheader_ {
     1058_style:cicheader_(onLoad="initializeadvancedsearch();")
     1059}
    10301060
    10311061_cicadvancedsearchpage_ {
Note: See TracChangeset for help on using the changeset viewer.