Changeset 12094
- Timestamp:
- 2006-07-07T13:17:47+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cic-hcap/macros/extra.dm
r12086 r12094 840 840 package query 841 841 842 _header_ { 843 _If_(_cgiargq_,_style:header_,_If_("_cgiargqst_" eq "1",_cicstatesearchheader_,_If_("_cgiargqre_" eq "1",_cicbibliographicsearchheader_,_cicadvancedsearchheader_))) 844 } 845 842 846 _cicjavascript_ { 843 847 <script language="Javascript"> … … 898 902 # ------------------------------------------------------------------------------------------ 899 903 904 _cicstatesearchheader_ { 905 _style:cicheader_(onLoad="initializeStateSearch();") 906 } 907 900 908 _cicstatesearchjavascript_ { 901 function preparestatesearch()909 function initializeStateSearch() 902 910 \{ 911 \} 912 913 function prepareStateSearch() 914 \{ 915 \} 916 917 function 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 \} 903 924 \} 904 925 } … … 907 928 <span class="cicheading">State Search</span> 908 929 930 <p/> 931 <a href="javascript: selectRegion('West')">West</a> 932 909 933 <div style="float:right"> 910 <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="prepare statesearch();">934 <form name=StateQueryForm method=get action="_gwcgi_" onSubmit="prepareStateSearch();"> 911 935 <select name="stq" size="25" multiple="true" style="width: 125px;"> 912 936 _cicstateoptions_ … … 984 1008 # ------------------------------------------------------------------------------------------ 985 1009 1010 _cicbibliographicsearchheader_ { 1011 _style:cicheader_(onLoad="initializereferencessearch();") 1012 } 1013 986 1014 _cicbibliographicsearchjavascript_ { 987 1015 function initializereferencessearch() … … 1022 1050 _formfunctions_ {} 1023 1051 1024 _header_ {_If_(_cgiargq_,_style:header_,_style:cicheader_(onLoad="initializeadvancedsearch();"))}1025 1026 1052 _pagescriptextra_ {} 1027 1053 1028 1054 # Hide the "search and display results in ... order" text 1029 1055 _textformselect_ {} 1056 1057 _cicadvancedsearchheader_ { 1058 _style:cicheader_(onLoad="initializeadvancedsearch();") 1059 } 1030 1060 1031 1061 _cicadvancedsearchpage_ {
Note:
See TracChangeset
for help on using the changeset viewer.