| Server IP : 172.64.80.1 / Your IP : 216.73.216.175 Web Server : LiteSpeed System : Linux srv13.swhc.ca 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : hongluck ( 2522) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/hongluck/public_html/old site/webcal/ |
Upload File : |
<?php
include_once 'includes/init.php';
if ( $is_admin == "Y" ) {
$INC = array('js/search.php');
} else {
$INC = '';
}
print_header($INC);
?>
<h2><?php
etranslate("Search");
?></h2>
<form action="search_handler.php" method="post" name="searchformentry" style="margin-left:13px;">
<label for="keywordsadv"><?php etranslate("Keywords")?>: </label>
<input type="text" name="keywords" id="keywordsadv" size="30" />
<input type="submit" value="<?php etranslate("Search")?>" /><br />
<?php
if ( ($login == "__public__" && $public_access_others != "Y") || (! $is_admin) ) {
echo "</form>";
} else {
echo "<div id=\"advlink\"><a title=\"" .
translate("Advanced Search") . "\" href=\"javascript:show('adv'); hide('advlink');\">" .
translate("Advanced Search") . "</a></div>";
?>
<table id="adv" style="display:none;">
<tr><td style="vertical-align:top; text-align:right; font-weight:bold; width:60px;">
<?php etranslate("Users"); ?>: </td><td>
<?php
$users = get_my_users ();
// Get non-user calendars (if enabled)
if ( ! empty ( $nonuser_enabled ) && $nonuser_enabled == "Y" ) {
$nonusers = get_nonuser_cals ();
if ( ! empty ( $nonuser_at_top ) && $nonuser_at_top == "Y" )
$users = array_merge ( $nonusers, $users );
else
$users = array_merge ( $users, $nonusers );
}
$size = 0;
$out = "";
for ( $i = 0; $i < count ( $users ); $i++ ) {
$out .= "<option value=\"" . $users[$i]['cal_login'] . "\"";
if ( $users[$i]['cal_login'] == $login )
$out .= " selected=\"selected\"";
$out .= ">" . $users[$i]['cal_fullname'] . "</option>\n";
}
if ( count ( $users ) > 50 )
$size = 15;
else if ( count ( $users ) > 10 )
$size = 10;
else
$size = count ( $users );
?>
<select name="users[]" size="<?php echo $size;?>" multiple="multiple"><?php echo $out; ?></select>
<?php
if ( $groups_enabled == "Y" ) {
echo "<input type=\"button\" onclick=\"selectUsers()\" value=\"" .
translate("Select") . "...\" />\n";
}
?>
</td></tr>
</table>
</form>
<?php } ?>
<?php print_trailer(); ?>
</body>
</html>