4 Serves as the home page for administrative functions.
8 Users will see different options available on this page.
10 include_once $gfplugins.'webcalendar/www/includes/init.php';
14 $style = "<style type=\"text/css\">
17 border: 1px solid #000000;
19 if ( function_exists ("imagepng") &&
20 ( empty ($GLOBALS['enable_gradients']) || $GLOBALS['enable_gradients'] == 'Y' ) ) {
21 $style .= " background-image: url(\"gradient.php?height=300&base=ccc&percent=10\");\n";
23 $style .= " background-color: #CCCCCC;\n";
35 background-color: #CCCCCC;
36 border-top: 1px solid #EEEEEE;
37 border-left: 1px solid #EEEEEE;
38 border-bottom: 1px solid #777777;
39 border-right: 1px solid #777777;
45 background-color: #AAAAAA;
46 border-top: 1px solid #777777;
47 border-left: 1px solid #777777;
48 border-bottom: 1px solid #EEEEEE;
49 border-right: 1px solid #EEEEEE;
53 print_header('', $style);
59 $names[] = translate("System Settings");
60 $links[] = "admin.php";
63 $names[] = translate("Preferences");
64 $links[] = "pref.php";
68 $names[] = translate("Users");
69 $links[] = "users.php";
71 $names[] = translate("Account");
72 $links[] = "users.php";
76 if ( $single_user != 'Y' ) {
77 $names[] = translate("Assistants");
78 $links[] = "assistant_edit.php";
81 if ( $categories_enabled == 'Y' ) {
82 $names[] = translate("Categories");
83 $links[] = "category.php";
86 $names[] = translate("Views");
87 $links[] = "views.php";
89 $names[] = translate("Layers");
90 $links[] = "layers.php";
92 if ( $reports_enabled == 'Y' ) {
93 $names[] = translate("Reports");
94 $links[] = "report.php";
98 $names[] = translate("Delete Events");
99 $links[] = "purge.php";
101 $names[] = translate("Activity Log");
102 $links[] = "activity_log.php";
105 if ( $is_admin && ! empty ($public_access) && $public_access == 'Y' ) {
106 $names[] = translate("Public Preferences");
107 $links[] = "pref.php?public=1";
110 if ( $is_admin && ! empty ( $public_access ) && $public_access == 'Y' &&
111 $public_access_can_add == 'Y' && $public_access_add_needs_approval == 'Y' ) {
112 $names[] = translate("Unapproved Public Events");
113 $links[] = "list_unapproved.php?user=__public__";
117 <h2><?php etranslate("Administrative Tools")?></h2>
119 <table class="admin">
121 for ( $i = 0; $i < count ($names); $i++ ) {
122 if ( $i % $COLUMNS == 0 )
125 if ( ! empty ($links[$i]) )
126 echo "<a href=\"$links[$i]\">";
128 if ( ! empty ($links[$i]) )
131 if ($i % $COLUMNS == $COLUMNS - 1)
134 if ( $i % $COLUMNS != 0 )
139 <?php print_trailer(); ?>