I've figured out how to do this myself. I've fixed the advanced search page by completely redoing the search.tpl.php file.
1) To completely customize all search fields on this page I removed this code from the page;
"<script type="text/javascript" src="includes/cpaint/cpaint2.inc.compressed.
js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
{literal}
var cp = new cpaint();
cp.set_transfer_mode('get');
cp.set_response_type('text');
cp.set_persistent_connection(false);
cp.set_async(true);
cp.set_proxy_url('');
cp.set_debug(false);
function displaySec(type){
var QSTRING = type.options[type.selectedIndex].value;
cp.call('{/literal}{$smarty.const.URL}{literal}/ajax.php', 'ajax_extra_search_fields', response, QSTRING);
return false;
}
function response(result) {
document.getElementById('response').innerHTML = result;
document.getElementById('optResponse').innerHTML = '';
}
function displayNewSec(opt){
var QSTRING = opt.options[opt.selectedIndex].value;
cp.call('{/literal}{$smarty.const.URL}{literal}/ajax.php', 'extra_search_fields2', optResponse, QSTRING);
return false;
}
function optResponse(result) {
document.getElementById('optResponse').innerHTML ="";
document.getElementById('optResponse').innerHTML += result;
}
/*
function optResponse(result) {
var newDiv = document.getElementById('optResponse').appendChild (document.createElement('div'));
newDiv.innerHTML = result;
}
*/
{/literal}
//-->
</script>"
2) Then I hardcoded search fields for all the search parameters I wanted to include;
Search by phone; <input type="text" name="phone">
Search by listing ID; <input name="adid" type="text" id="adid" size="6">
Search by extra field (Manufacturer - Field ID 12); "><select name="opt12" size="10" multiple onChange="displayNewSec(this);"> (list is automatically populated from the dB)
3) For the "search by date" parameter, these links are already available in the admin control panel under "browselistings.php". I simply created a new pull-down menu in the "search.tpl.php" and coded each this way;
<select name="select">
<option selected>Antyime</option>
<option value="fromdate={$today}&enddate={$today}">Tod ay</option>
<option value="fromdate={$day}&enddate={$today}">Last 24 hours</option>
<option value="fromdate={$week}&enddate={$today}">Last Week</option>
<option value="fromdate={$month}&enddate={$today}">Las t Month</option>
</select>
Works great!