0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
webcalendar
/
1.2.0-4
/
standard
/
htdocs
/
includes
/
js
/
[
Home
]
File: search.php
<?php /* $Id: search.php,v 1.12.2.2 2007/08/06 02:28:27 cknudsen Exp $ */ ?> function selectUsers () { // find id of user selection object var listid = 0; for ( i = 0; i < document.searchformentry.elements.length; i++ ) { if ( document.searchformentry.elements[i].name == "users[]" ) listid = i; } url = "usersel.php?form=searchformentry&listid=" + listid + "&users="; // add currently selected users for ( i = 0, j = 0; i < document.searchformentry.elements[listid].length; i++ ) { if ( document.searchformentry.elements[listid].options[i].selected ) { if ( j != 0 ) url += ","; j++; url += document.searchformentry.elements[listid].options[i].value; } } //alert ( "URL: " + url ); // open window window.open ( url, "UserSelection", "width=500,height=500,resizable=yes,scrollbars=yes" ); } function toggleDateRange () { var i = document.searchformentry.date_filter.selectedIndex; if ( i == 3 ) { makeVisible ( "startDate" ); makeVisible ( "endDate" ); } else { makeInvisible ( "startDate"); makeInvisible ( "endDate" ); } }