2000-08-18 05:24:22 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - Calendar *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
|
|
|
|
* http://www.radix.net/~cknudsen *
|
2001-01-17 13:35:43 +01:00
|
|
|
* Modified by Mark Peters <skeeter@phpgroupware.org> *
|
2000-08-18 05:24:22 +02:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
2001-01-03 02:51:26 +01:00
|
|
|
$phpgw_info["flags"] = array("currentapp" => "calendar", "noheader" => True, "nonavbar" => True);
|
2000-08-18 05:24:22 +02:00
|
|
|
include("../header.inc.php");
|
|
|
|
|
|
|
|
if ($id > 0) {
|
2000-12-01 05:25:39 +01:00
|
|
|
$phpgw->db->query("SELECT cal_datetime FROM calendar_entry WHERE cal_id = $id",__LINE__,__FILE__);
|
2000-08-18 05:24:22 +02:00
|
|
|
$phpgw->db->next_record();
|
|
|
|
|
2000-12-01 05:25:39 +01:00
|
|
|
$thisyear = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"Y"));
|
|
|
|
$thismonth = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"n"));
|
2000-08-18 05:24:22 +02:00
|
|
|
|
2001-01-03 02:51:26 +01:00
|
|
|
$phpgw->calendar->delete(intval($id));
|
2000-08-18 05:24:22 +02:00
|
|
|
}
|
|
|
|
|
2000-09-05 08:35:34 +02:00
|
|
|
Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth"));
|
2000-12-01 05:25:39 +01:00
|
|
|
?>
|