[ Index ] |
|
Code source de WebCalendar 1.0.5 |
1 <?php 2 include_once 'includes/init.php'; 3 4 if ( $is_admin == "Y" ) { 5 $INC = array('js/search.php'); 6 } else { 7 $INC = ''; 8 } 9 print_header($INC); 10 ?> 11 <h2><?php 12 etranslate("Search"); 13 ?></h2> 14 15 <form action="search_handler.php" method="post" name="searchformentry" style="margin-left:13px;"> 16 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 /> 20 <?php 21 if ( ($login == "__public__" && $public_access_others != "Y") || (! $is_admin) ) { 22 echo "</form>"; 23 } else { 24 echo "<div id=\"advlink\"><a title=\"" . 25 translate("Advanced Search") . "\" href=\"javascript:show('adv'); hide('advlink');\">" . 26 translate("Advanced Search") . "</a></div>"; 27 ?> 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> 31 <?php 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 ); 38 else 39 $users = array_merge ( $users, $nonusers ); 40 } 41 $size = 0; 42 $out = ""; 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"; 48 } 49 if ( count ( $users ) > 50 ) 50 $size = 15; 51 else if ( count ( $users ) > 10 ) 52 $size = 10; 53 else 54 $size = count ( $users ); 55 ?> 56 <select name="users[]" size="<?php echo $size;?>" multiple="multiple"><?php echo $out; ?></select> 57 <?php 58 if ( $groups_enabled == "Y" ) { 59 echo "<input type=\"button\" onclick=\"selectUsers()\" value=\"" . 60 translate("Select") . "...\" />\n"; 61 } 62 ?> 63 </td></tr> 64 </table> 65 </form> 66 <?php } ?> 67 68 <?php print_trailer(); ?> 69 </body> 70 </html>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Nov 30 19:09:19 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |