2 include_once $gfplugins.'webcalendar/www/includes/init.php';
4 if ( $is_admin == "Y" ) {
5 $INC = array('js/search.php');
15 <form action="search_handler.php" method="post" name="searchformentry" style="margin-left:13px;">
17 <label for="keywordsadv"><?php etranslate("Keywords")?>: </label>
18 <input type="text" name="keywords" id="keywordsadv" size="30" />
19 <input type="submit" value="<?php etranslate("Search")?>" /><br />
21 if ( ($login == "__public__" && $public_access_others != "Y") || (! $is_admin) ) {
24 echo "<div id=\"advlink\"><a title=\"" .
25 translate("Advanced Search") . "\" href=\"javascript:show('adv'); hide('advlink');\">" .
26 translate("Advanced Search") . "</a></div>";
28 <table id="adv" style="display:none;">
29 <tr><td style="vertical-align:top; text-align:right; font-weight:bold; width:60px;">
30 <?php etranslate("Users"); ?>: </td><td>
32 $users = get_my_users ();
33 // Get non-user calendars (if enabled)
34 if ( ! empty ( $nonuser_enabled ) && $nonuser_enabled == "Y" ) {
35 $nonusers = get_nonuser_cals ();
36 if ( ! empty ( $nonuser_at_top ) && $nonuser_at_top == "Y" )
37 $users = array_merge ( $nonusers, $users );
39 $users = array_merge ( $users, $nonusers );
43 for ( $i = 0; $i < count ( $users ); $i++ ) {
44 $out .= "<option value=\"" . $users[$i]['cal_login'] . "\"";
45 if ( $users[$i]['cal_login'] == $login )
46 $out .= " selected=\"selected\"";
47 $out .= ">" . $users[$i]['cal_fullname'] . "</option>\n";
49 if ( count ( $users ) > 50 )
51 else if ( count ( $users ) > 10 )
54 $size = count ( $users );
56 <select name="users[]" size="<?php echo $size;?>" multiple="multiple"><?php echo $out; ?></select>
58 if ( $groups_enabled == "Y" ) {
59 echo "<input type=\"button\" onclick=\"selectUsers()\" value=\"" .
60 translate("Select") . "...\" />\n";
68 <?php print_trailer(); ?>