calendar removed from api

This commit is contained in:
skeeter 2000-12-26 20:13:34 +00:00
parent 65fd880cfc
commit cbc8000109
16 changed files with 1463 additions and 2120 deletions

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True, "enable_template_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
if (isset($friendly) && $friendly){ if (isset($friendly) && $friendly){
$phpgw_info["flags"]["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;

View File

@ -13,8 +13,7 @@
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, $phpgw_info["flags"] = array("currentapp" => "calendar", "noheader" => True, "nonavbar" => True, "enable_nextmatchs_class" => True);
"noheader" => True, "nonavbar" => True, "enable_nextmatchs_class" => True);
include("../header.inc.php"); include("../header.inc.php");
if ($id > 0) { if ($id > 0) {
@ -24,9 +23,7 @@
$thisyear = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"Y")); $thisyear = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"Y"));
$thismonth = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"n")); $thismonth = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"n"));
$phpgw->db->query("DELETE FROM calendar_entry WHERE cal_id = $id",__LINE__,__FILE__); $phpgw->calendar->delete($id);
$phpgw->db->query("DELETE FROM calendar_entry_user WHERE cal_id = $id",__LINE__,__FILE__);
$phpgw->db->query("DELETE FROM calendar_entry_repeats WHERE cal_id = $id",__LINE__,__FILE__);
} }
Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth")); Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth"));

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
include("../header.inc.php"); include("../header.inc.php");
include($phpgw_info["server"]["api_inc"] . "/phpgw_utilities_sbox.inc.php"); include($phpgw_info["server"]["api_inc"] . "/phpgw_utilities_sbox.inc.php");

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "noheader" => True, "nonavbar" => True, "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "noheader" => True, "nonavbar" => True, "enable_nextmatchs_class" => True, "noappheader" => True, "noappfooter" => True);
include("../header.inc.php"); include("../header.inc.php");
$cal_info = new calendar_item; $cal_info = new calendar_item;

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
if (isset($friendly) && $friendly){ if (isset($friendly) && $friendly){
$phpgw_info["flags"]["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True, "parent_page" => "index.php"); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True, "parent_page" => "index.php");
include("../header.inc.php"); include("../header.inc.php");

View File

@ -11,10 +11,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True, "noheader" => True, "nonavbar" => True, "noappheader" => True, "noappfooter" => True);
"enable_nextmatchs_class" => True,
"noheader" => True, "nonavbar" => True,
"nocalendarheader" => True, "nocalendarfooter" => True);
include("../header.inc.php"); include("../header.inc.php");
if ($submit) { if ($submit) {

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
if (! $keywords) { if (! $keywords) {
// If we reach this, it is because they didn't search for anything, // If we reach this, it is because they didn't search for anything,

View File

@ -13,7 +13,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
include("../header.inc.php"); include("../header.inc.php");
if ($id < 1) { if ($id < 1) {

View File

@ -15,7 +15,7 @@
$matrix = $matrixtype; $matrix = $matrixtype;
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True, "parent_page" => "matrixselect.php"); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True, "parent_page" => "matrixselect.php");
include("../header.inc.php"); include("../header.inc.php");

View File

@ -14,7 +14,7 @@
/* $Id$ */ /* $Id$ */
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
if (isset($friendly) && $friendly){ if (isset($friendly) && $friendly){
$phpgw_info["flags"]["noheader"] = True; $phpgw_info["flags"]["noheader"] = True;

View File

@ -18,7 +18,7 @@
$friendly = 0; $friendly = 0;
} }
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True, "enable_nextmatchs_class" => True); $phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True);
include("../header.inc.php"); include("../header.inc.php");
$view = "year"; $view = "year";

View File

@ -18,8 +18,8 @@
} }
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home", $phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home",
"enable_network_class" => True, "enable_calendar_class" => True, "enable_network_class" => True, "enable_todo_class" => True,
"enable_todo_class" => True, "enable_addressbook_class" => True "enable_addressbook_class" => True
); );
include("header.inc.php"); include("header.inc.php");
// Note: I need to add checks to make sure these apps are installed. // Note: I need to add checks to make sure these apps are installed.
@ -153,6 +153,7 @@
if ($phpgw_info["user"]["apps"]["calendar"] if ($phpgw_info["user"]["apps"]["calendar"]
&& $phpgw_info["user"]["preferences"]["calendar"]["mainscreen_showevents"]) { && $phpgw_info["user"]["preferences"]["calendar"]["mainscreen_showevents"]) {
include($phpgw_info["server"]["server_root"]."/calendar/inc/functions.inc.php");
echo "<!-- Calendar info -->\n"; echo "<!-- Calendar info -->\n";
$now = $phpgw->calendar->splitdate(mktime (0, 0, 0, $phpgw->calendar->today["month"], $phpgw->calendar->today["day"], $phpgw->calendar->today["year"]) - ((60 * 60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"])); $now = $phpgw->calendar->splitdate(mktime (0, 0, 0, $phpgw->calendar->today["month"], $phpgw->calendar->today["day"], $phpgw->calendar->today["year"]) - ((60 * 60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]));
@ -170,4 +171,4 @@
</TABLE> </TABLE>
<?php <?php
include($phpgw_info["server"]["api_inc"] . "/footer.inc.php"); include($phpgw_info["server"]["api_inc"] . "/footer.inc.php");
?> ?>

View File

@ -100,11 +100,6 @@
$phpgw->todo = new todo; $phpgw->todo = new todo;
} }
if ($phpgw_info["flags"]["enable_calendar_class"]) {
include($phpgw_info["server"]["api_inc"] . "/phpgw_calendar.inc.php");
$phpgw->calendar = new calendar;
}
if ($phpgw_info["flags"]["enable_addressbook_class"]) { if ($phpgw_info["flags"]["enable_addressbook_class"]) {
include($phpgw_info["server"]["api_inc"] . "/phpgw_addressbook.inc.php"); include($phpgw_info["server"]["api_inc"] . "/phpgw_addressbook.inc.php");
$phpgw->addressbook = new addressbook; $phpgw->addressbook = new addressbook;
@ -340,10 +335,7 @@
phpgw_fillarray(); phpgw_fillarray();
$phpgw->common->common_(); $phpgw->common->common_();
if ($phpgw_info["flags"]["enable_calendar_class"]){
$printer_friendly = ((isset($friendly) && ($friendly==1))?True:False);
$phpgw->calendar->calendar_($printer_friendly);
}
if ($phpgw_info["flags"]["enable_utilities_class"]){ if ($phpgw_info["flags"]["enable_utilities_class"]){
$phpgw->utilities->utilities_(); $phpgw->utilities->utilities_();
} }

File diff suppressed because it is too large Load Diff