3 $Id: adminhome.php,v 1.15 2005/01/19 13:54:13 cknudsen Exp $
6 Serves as the home page for administrative functions.
10 Users will see different options available on this page.
12 include_once $gfplugins.'webcalendar/www/includes/init.php';
16 $style = "<style type=\"text/css\">
19 border: 1px solid #000000;
21 if ( function_exists ("imagepng") &&
22 ( empty ($GLOBALS['enable_gradients']) || $GLOBALS['enable_gradients'] == 'Y' ) ) {
23 $style .= " background-image: url(\"gradient.php?height=300&base=ccc&percent=10\");\n";
25 $style .= " background-color: #CCCCCC;\n";
37 background-color: #CCCCCC;
38 border-top: 1px solid #EEEEEE;
39 border-left: 1px solid #EEEEEE;
40 border-bottom: 1px solid #777777;
41 border-right: 1px solid #777777;
47 background-color: #AAAAAA;
48 border-top: 1px solid #777777;
49 border-left: 1px solid #777777;
50 border-bottom: 1px solid #EEEEEE;
51 border-right: 1px solid #EEEEEE;
55 print_header('', $style);
61 $names[] = translate("System Settings");
62 $links[] = "admin.php";
65 $names[] = translate("Preferences");
66 $links[] = "pref.php";
70 $names[] = translate("Users");
71 $links[] = "users.php";
73 $names[] = translate("Account");
74 $links[] = "users.php";
78 if ( $single_user != 'Y' ) {
79 $names[] = translate("Assistants");
80 $links[] = "assistant_edit.php";
83 if ( $categories_enabled == 'Y' ) {
84 $names[] = translate("Categories");
85 $links[] = "category.php";
88 $names[] = translate("Views");
89 $links[] = "views.php";
91 $names[] = translate("Layers");
92 $links[] = "layers.php";
94 if ( $reports_enabled == 'Y' ) {
95 $names[] = translate("Reports");
96 $links[] = "report.php";
100 $names[] = translate("Delete Events");
101 $links[] = "purge.php";
103 $names[] = translate("Activity Log");
104 $links[] = "activity_log.php";
107 if ( $is_admin && ! empty ($public_access) && $public_access == 'Y' ) {
108 $names[] = translate("Public Preferences");
109 $links[] = "pref.php?public=1";
112 if ( $is_admin && ! empty ( $public_access ) && $public_access == 'Y' &&
113 $public_access_can_add == 'Y' && $public_access_add_needs_approval == 'Y' ) {
114 $names[] = translate("Unapproved Public Events");
115 $links[] = "list_unapproved.php?user=__public__";
119 <h2><?php etranslate("Administrative Tools")?></h2>
121 <table class="admin">
123 for ( $i = 0; $i < count ($names); $i++ ) {
124 if ( $i % $COLUMNS == 0 )
127 if ( ! empty ($links[$i]) )
128 echo "<a href=\"$links[$i]\">";
130 if ( ! empty ($links[$i]) )
133 if ($i % $COLUMNS == $COLUMNS - 1)
136 if ( $i % $COLUMNS != 0 )
141 <?php print_trailer(); ?>