mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
calendar removed from api
This commit is contained in:
parent
65fd880cfc
commit
cbc8000109
@ -14,7 +14,7 @@
|
||||
|
||||
/* $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){
|
||||
$phpgw_info["flags"]["noheader"] = True;
|
||||
|
@ -13,8 +13,7 @@
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True,
|
||||
"noheader" => True, "nonavbar" => True, "enable_nextmatchs_class" => True);
|
||||
$phpgw_info["flags"] = array("currentapp" => "calendar", "noheader" => True, "nonavbar" => True, "enable_nextmatchs_class" => True);
|
||||
include("../header.inc.php");
|
||||
|
||||
if ($id > 0) {
|
||||
@ -24,9 +23,7 @@
|
||||
$thisyear = intval($phpgw->common->show_date($phpgw->db->f("cal_datetime"),"Y"));
|
||||
$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->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__);
|
||||
$phpgw->calendar->delete($id);
|
||||
}
|
||||
|
||||
Header("Location: " . $phpgw->link("index.php","year=$thisyear&month=$thismonth"));
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
/* $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($phpgw_info["server"]["api_inc"] . "/phpgw_utilities_sbox.inc.php");
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
/* $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");
|
||||
|
||||
$cal_info = new calendar_item;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -13,7 +13,7 @@
|
||||
|
||||
/* $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){
|
||||
$phpgw_info["flags"]["noheader"] = True;
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
/* $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");
|
||||
|
||||
|
@ -11,10 +11,7 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_calendar_class" => True,
|
||||
"enable_nextmatchs_class" => True,
|
||||
"noheader" => True, "nonavbar" => True,
|
||||
"nocalendarheader" => True, "nocalendarfooter" => True);
|
||||
$phpgw_info["flags"] = array("currentapp" => "calendar", "enable_nextmatchs_class" => True, "noheader" => True, "nonavbar" => True, "noappheader" => True, "noappfooter" => True);
|
||||
include("../header.inc.php");
|
||||
|
||||
if ($submit) {
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
/* $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 we reach this, it is because they didn't search for anything,
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
/* $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");
|
||||
|
||||
if ($id < 1) {
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
$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");
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
/* $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){
|
||||
$phpgw_info["flags"]["noheader"] = True;
|
||||
|
@ -18,7 +18,7 @@
|
||||
$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");
|
||||
|
||||
$view = "year";
|
||||
|
@ -18,8 +18,8 @@
|
||||
}
|
||||
|
||||
$phpgw_info["flags"] = array("noheader" => True, "nonavbar" => True, "currentapp" => "home",
|
||||
"enable_network_class" => True, "enable_calendar_class" => True,
|
||||
"enable_todo_class" => True, "enable_addressbook_class" => True
|
||||
"enable_network_class" => True, "enable_todo_class" => True,
|
||||
"enable_addressbook_class" => True
|
||||
);
|
||||
include("header.inc.php");
|
||||
// Note: I need to add checks to make sure these apps are installed.
|
||||
@ -153,6 +153,7 @@
|
||||
|
||||
if ($phpgw_info["user"]["apps"]["calendar"]
|
||||
&& $phpgw_info["user"]["preferences"]["calendar"]["mainscreen_showevents"]) {
|
||||
include($phpgw_info["server"]["server_root"]."/calendar/inc/functions.inc.php");
|
||||
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"]));
|
||||
|
||||
@ -170,4 +171,4 @@
|
||||
</TABLE>
|
||||
<?php
|
||||
include($phpgw_info["server"]["api_inc"] . "/footer.inc.php");
|
||||
?>
|
||||
?>
|
||||
|
@ -100,11 +100,6 @@
|
||||
$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"]) {
|
||||
include($phpgw_info["server"]["api_inc"] . "/phpgw_addressbook.inc.php");
|
||||
$phpgw->addressbook = new addressbook;
|
||||
@ -340,10 +335,7 @@
|
||||
|
||||
phpgw_fillarray();
|
||||
$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"]){
|
||||
$phpgw->utilities->utilities_();
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user