diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-04-17 20:13:07 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2011-04-17 20:13:07 -0400 |
commit | 0077cb99704fe863cf731fc5cab792af2ede96c2 (patch) | |
tree | dd68f44971aa2aee821f588d33b250dcd2fe57e3 /admin/calendar | |
parent | e8b28c5e910d92cbec3d4baa6e98f025e8418d28 (diff) | |
download | bayonetcms-0077cb99704fe863cf731fc5cab792af2ede96c2.tar.gz |
Backporting retarded amount of changes outside of version control
Diffstat (limited to 'admin/calendar')
-rw-r--r-- | admin/calendar/index.php | 180 | ||||
-rw-r--r-- | admin/calendar/style.css | 96 |
2 files changed, 186 insertions, 90 deletions
diff --git a/admin/calendar/index.php b/admin/calendar/index.php index 2b631d8..097622f 100644 --- a/admin/calendar/index.php +++ b/admin/calendar/index.php @@ -1,90 +1,90 @@ -<?php
-/**
- * Bayonet Content Management System
- * Copyright (C) 2008 Joseph Hunkeler & Evan O'Connell
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- ?>
- <link rel="stylesheet" type="text/css" href="calendar/style.css" media="screen"/>
- <div style="text-align:left;"><h2>- Manage Calendar & Events</h2></div>
-<?php
-
-if(!defined("ADMIN_FILE"))
-{
- die("Access denied.");
-}
-
-include $basedir.'calendar/functions.php';
-
-
-?>
-
-<!--
-<hr />
- <table width="100%" style="text-align:center;">
- <tr>
- <td>
- <?php echo LinkInternal('Add Events','?op=calendar&create=true'); ?>
- </td>
- <td>
- <?php echo LinkInternal('Edit Events','?op=calendar&edit='); ?>
- </td>
- <td>
- <?php echo LinkInternal('Delete Events','?op=calendar&delete='); ?>
- </td>
- </tr>
- </table> -->
-
- <table class="panel" width="100%">
- <tr>
- <td style="width:325px; vertical-align:top; text-align:center;">
- <a href="?op=calendar&create=true"><img src="images/add.png" /> Add New Event</a><br /><br />
- <?php PrintCalendar(); ?>
- Click on a day to add/edit/delete events
- </td>
- <td class="panel-box">
- <?php
- if(isset($_GET['list']))
- {
- $eventDate = $_GET['list'];
- ListEvents($eventDate);
- //return;
- }
- else if(isset($_GET['edit']))
- {
- $event_id = $_GET['edit'];
- EditEvent($event_id);
- //return;
- }
- else if(isset($_GET['delete']))
- {
- $event_id = $_GET['delete'];
- DeleteEvent($event_id);
- //return;
- }
- else if(isset($_GET['create']))
- {
- $create = $_GET['create'];
- if($create)
- {
- NewEvent();
- //return;
- }
- }
- ?>
- </td>
- </tr>
- </table>
-
+<?php +/** + * Bayonet Content Management System + * Copyright (C) 2008 Joseph Hunkeler & Evan O'Connell + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + ?> + <link rel="stylesheet" type="text/css" href="calendar/style.css" media="screen"/> + <div style="text-align:left;"><h2>- Manage Calendar & Events</h2></div> +<?php + +if(!defined("ADMIN_FILE")) +{ + die("Access denied."); +} + +include $basedir.'calendar/functions.php'; + + +?> + +<!-- +<hr /> + <table width="100%" style="text-align:center;"> + <tr> + <td> + <?php echo LinkInternal('Add Events','?op=calendar&create=true'); ?> + </td> + <td> + <?php echo LinkInternal('Edit Events','?op=calendar&edit='); ?> + </td> + <td> + <?php echo LinkInternal('Delete Events','?op=calendar&delete='); ?> + </td> + </tr> + </table> --> + + <table class="panel" width="100%"> + <tr> + <td style="width:325px; vertical-align:top; text-align:center;"> + <a href="?op=calendar&create=true"><img src="images/add.png" /> Add New Event</a><br /><br /> + <?php PrintCalendar(); ?> + Click on a day to add/edit/delete events + </td> + <td class="panel-box"> + <?php + if(isset($_GET['list'])) + { + $eventDate = $_GET['list']; + ListEvents($eventDate); + //return; + } + else if(isset($_GET['edit'])) + { + $event_id = $_GET['edit']; + EditEvent($event_id); + //return; + } + else if(isset($_GET['delete'])) + { + $event_id = $_GET['delete']; + DeleteEvent($event_id); + //return; + } + else if(isset($_GET['create'])) + { + $create = $_GET['create']; + if($create) + { + NewEvent(); + //return; + } + } + ?> + </td> + </tr> + </table> + diff --git a/admin/calendar/style.css b/admin/calendar/style.css new file mode 100644 index 0000000..167b75f --- /dev/null +++ b/admin/calendar/style.css @@ -0,0 +1,96 @@ +/* START>> CALENDAR STYLES*/ + .monthTitle{ + color:black; + text-align:center; + font-size:12px; + font-weight:bold; + font-family:arial; + } + td.weekday { + width:40px; + height:20px; + background-color:#cb2121; + color:green; + text-align:center; + font-size:10px; + font-weight:bold; + } + th.weekday { + width:40px; + height:29px; + background-color:white; + color:black; + text-align:center; + font-size:11px; + font-weight:bold; + } + .monthday { + width:40px; + height:20px; + background-color:#aea2a2; + color:white; + text-align:left; + font-size:10pt; + font-weight:bold; + + } + .monthtoday { + width:38px; + height:38px; + /* background-color:#3666ba; */ + color:#225eac; + text-align:center; + font-size:14px; + font-weight:bold; + border:1px solid #333333; + } + .event { + width:38px; + height:38px; + background-color:#225eac; + text-align:center; + border:1px solid #333333; + } + table.calendar a, table.calendar a:visited, table.calendar a:active, table.calendar a:hover { + color:white; + } + .eventtoday{ + width:38px; + height:38px; + background-color:#225eac; + color:#ef8e25; + text-align:center; + font-size:14px; + font-weight:bold; + border:1px solid #333333; + } + td.cal_weekday { + width:40px; + height:40px; + background-color:#a1a1a1; + vertical-align:top; + color:#eeeeee; + font-family:arial; + text-align:center; + font-size:14px; + } + td.cal_weekend { + width:40px; + height:40px; + background-color:#8f8f8f; + vertical-align:top; + color:#eeeeee; + font-family:arial; + text-align:center; + font-size:14px; + } + td.cal_notmonth { + width:40px; + height:40px; + background-color:#6e6e6e; + vertical-align:top; + color:#d4d4d4; + text-align:left; + font-size:11px; + } +/* END>> CALENDAR STYLES */
\ No newline at end of file |