<input name="keywords" type="text" size="60" value=").$rs_keys.qq("/></td>
<td><input type="submit" value="Search"/></td></tr>);
+my $ctmsg = '<p id="ctmsg"> (Use the Category dropdown to change).</div>';
if($rs_keys || $rs_cat_idx){
- $srh = $srh.'<tr><td colspan="2"><button onClick="resetView()">Reset Whole View</button></td>
- <td colspan="2"></td></tr>'
+ $srh = $srh.'<tr><td colspan="2">
+ <button onClick="resetView()">Reset Whole View</button></td><td colspan="3"></td></tr>';
+ $ctmsg = "";
}
- $srh = $srh.'<tr><td>View by Category:</td><td><button id="btn_cat" onclick="viewByCategory(this);">Unspecified</button><input id="idx_cat" name="category" type="hidden" value="">
- (Use the Category dropdown to change).</td></tr>
+
+
+
+$srh = $srh.'<tr><td>View by Category:</td>
+ <td><button id="btn_cat" onclick="viewByCategory(this);">Unspecified</button><input id="idx_cat" name="category" type="hidden" value="">'.$ctmsg.'</td></tr>
<tr><td colspan="4"><br/></td></tr>
</table>
</form><br/>';
cat.value = sel.options[sel.selectedIndex].value;
b.innerText = sel.options[sel.selectedIndex].text;
-
+
+ document.getElementById("ctmsg").style.display = "none";
}
function viewByCategory(btn){