C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\webcalendar\nonusers.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
if ( ! $is_admin ) {
  echo 
"<h2>" translate("Error") . "</h2>\n" 
          
translate("You are not authorized") . ".\n";
  echo 
"</body>\n</html>";
  exit;
}
if ( ! 
$NONUSER_PREFIX ) {
  echo 
"<h2>" translate("Error") . "</h2>\n" 
          
translate("NONUSER_PREFIX not set") . ".\n";
  echo 
"</body>\n</html>";
  exit;
}
$add getValue "add" );
?>
    <a name="tabnonusers"></a>
    <div id="tabscontent_nonusers">
<?php
if ( empty ($error) ) {
  echo 
"<a title=\"" 
    
translate("Add New NonUser Calendar") . "\" href=\"edit_nonusers.php?add=1\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" 
    
translate("Add New NonUser Calendar") . "</a><br />\n";
  
// Displaying NonUser Calendars
  
$userlist get_nonuser_cals ();
  if ( ! empty ( 
$userlist ) ) {
    echo 
"<ul>";
    for ( 
$i 0$i count $userlist ); $i++ ) {
      echo 
"<li><a title=\"" 
          
$userlist[$i]['cal_fullname'] . "\" href=\"edit_nonusers.php?nid=" 
    
$userlist[$i]["cal_login"] . "\" target=\"nonusersiframe\" onclick=\"javascript:show('nonusersiframe');\">" 
    
$userlist[$i]['cal_fullname'] . "</a></li>\n";
    }
    echo 
"</ul>";
  }
}

echo 
"<iframe name=\"nonusersiframe\" id=\"nonusersiframe\" style=\"width:90%;border-width:0px; height:250px;\"></iframe>";
?>
</div>