[ Index ] |
|
Code source de WebCalendar 1.0.5 |
1 <?php 2 include_once 'includes/init.php'; 3 print_header(); 4 ?> 5 6 <h2><?php etranslate("View Another User's Calendar"); ?></h2> 7 8 <?php 9 if (( $allow_view_other != "Y" && ! $is_admin ) || 10 ( $public_access == "Y" && $login == "__public__" && $public_access_others != "Y")) { 11 $error = translate ( "You are not authorized" ); 12 } 13 14 if ( ! empty ( $error ) ) { 15 echo "<blockquote>$error</blockquote>\n"; 16 } else { 17 $userlist = get_my_users (); 18 if ($nonuser_enabled == "Y" ) { 19 $nonusers = get_nonuser_cals (); 20 $userlist = ($nonuser_at_top == "Y") ? array_merge($nonusers, $userlist) : array_merge($userlist, $nonusers); 21 } 22 if ( strstr ( $STARTVIEW, "view" ) ) 23 $url = "month.php"; 24 else 25 $url = $STARTVIEW; 26 ?> 27 <form action="<?php echo $url;?>" method="get" name="SelectUser"> 28 <select name="user" onchange="document.SelectUser.submit()"> 29 <?php 30 for ( $i = 0; $i < count ( $userlist ); $i++ ) { 31 echo "<option value=\"".$userlist[$i]['cal_login']."\">".$userlist[$i]['cal_fullname']."</option>\n"; 32 } 33 ?> 34 </select> 35 <input type="submit" value="<?php etranslate("Go")?>" /></form> 36 <?php 37 } 38 39 ?> 40 <br /><br /> 41 42 <?php print_trailer(); ?> 43 </body> 44 </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 |
![]() |