task #9747: Can show content of external calendar (ical) into agenda
This commit is contained in:
parent
90c79d4ac0
commit
134263416c
73
htdocs/admin/agenda_extsites.php
Normal file
73
htdocs/admin/agenda_extsites.php
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* 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, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file htdocs/admin/agenda_extsites.php
|
||||||
|
* \ingroup agenda
|
||||||
|
* \brief Page to setup external calendars for agenda module
|
||||||
|
* \version $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
require("../main.inc.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/agenda.lib.php");
|
||||||
|
|
||||||
|
if (!$user->admin)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
|
$langs->load("admin");
|
||||||
|
$langs->load("other");
|
||||||
|
$langs->load("agenda");
|
||||||
|
|
||||||
|
$action=$_POST["action"];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Actions
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* View
|
||||||
|
*/
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
|
||||||
|
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
|
print_fiche_titre($langs->trans("AgendaSetup"),$linkback,'setup');
|
||||||
|
print "<br>\n";
|
||||||
|
|
||||||
|
print $langs->trans("AgendaExtSitesDesc")."<br>\n";
|
||||||
|
print "<br>\n";
|
||||||
|
|
||||||
|
$head=agenda_prepare_head();
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'extsites', $langs->trans("Agenda"));
|
||||||
|
|
||||||
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
|
print '<input type="hidden" name="action" value="save">';
|
||||||
|
|
||||||
|
$var=true;
|
||||||
|
|
||||||
|
print "</form>\n";
|
||||||
|
|
||||||
|
if ($mesg) print "<br>$mesg<br>";
|
||||||
|
print "<br>";
|
||||||
|
|
||||||
|
llxFooter('$Date$ - $Revision$');
|
||||||
|
?>
|
||||||
@ -31,6 +31,7 @@ ViewWithPredefinedFilters= Veure amb els filtres predefinits
|
|||||||
AutoActions= Inclusió automàtica a l'agenda
|
AutoActions= Inclusió automàtica a l'agenda
|
||||||
AgendaAutoActionDesc= Definir els esdeveniments aquí per què voleu que Dolibarr creu automàticament una acció en l'ordre del dia. Si no està marcada (per defecte), es podran crear manualment.
|
AgendaAutoActionDesc= Definir els esdeveniments aquí per què voleu que Dolibarr creu automàticament una acció en l'ordre del dia. Si no està marcada (per defecte), es podran crear manualment.
|
||||||
AgendaSetupOtherDesc= Aquesta pàgina us permet configurar altres paràmetres del mòdul agenda.
|
AgendaSetupOtherDesc= Aquesta pàgina us permet configurar altres paràmetres del mòdul agenda.
|
||||||
|
AgendaExtSitesDesc=Aquesta pàgina us permet configurar calendaris externs.
|
||||||
ActionsEvents= Esdeveniments per a què Dolibarr crei una acció de forma automàtica
|
ActionsEvents= Esdeveniments per a què Dolibarr crei una acció de forma automàtica
|
||||||
PropalValidatedInDolibarr= Pressupost %s validat
|
PropalValidatedInDolibarr= Pressupost %s validat
|
||||||
InvoiceValidatedInDolibarr= Factura %s validada
|
InvoiceValidatedInDolibarr= Factura %s validada
|
||||||
@ -55,3 +56,4 @@ AgendaUrlOptions4= <b>logint=%s</b> per a restringir insercions a accions que af
|
|||||||
AgendaUrlOptions5= <b>logind= %s</b> per a restringir insercions a accions realitzades per l'usuari <b>%s</b>.
|
AgendaUrlOptions5= <b>logind= %s</b> per a restringir insercions a accions realitzades per l'usuari <b>%s</b>.
|
||||||
AgendaShowBirthdayEvents= Mostra aniversari dels contactes
|
AgendaShowBirthdayEvents= Mostra aniversari dels contactes
|
||||||
AgendaHideBirthdayEvents= Amaga aniversari dels contacte
|
AgendaHideBirthdayEvents= Amaga aniversari dels contacte
|
||||||
|
ExtSites=Calendaris externs
|
||||||
@ -31,6 +31,7 @@ ViewWithPredefinedFilters= View with predefined filters
|
|||||||
AutoActions= Automatic filling of agenda
|
AutoActions= Automatic filling of agenda
|
||||||
AgendaAutoActionDesc= Define here events for which you want Dolibarr to create automatically an action in agenda. If nothing is checked (by default), only manual actions will be included in agenda.
|
AgendaAutoActionDesc= Define here events for which you want Dolibarr to create automatically an action in agenda. If nothing is checked (by default), only manual actions will be included in agenda.
|
||||||
AgendaSetupOtherDesc= This page allows to configure other parameters of agenda module.
|
AgendaSetupOtherDesc= This page allows to configure other parameters of agenda module.
|
||||||
|
AgendaExtSitesDesc=This page allows to configure external calendars.
|
||||||
ActionsEvents= Events for which Dolibarr will create an action in agenda automatically
|
ActionsEvents= Events for which Dolibarr will create an action in agenda automatically
|
||||||
PropalValidatedInDolibarr= Proposal %s validated
|
PropalValidatedInDolibarr= Proposal %s validated
|
||||||
InvoiceValidatedInDolibarr= Invoice %s validated
|
InvoiceValidatedInDolibarr= Invoice %s validated
|
||||||
@ -55,3 +56,4 @@ AgendaUrlOptions4=<b>logint=%s</b> to restrict output to actions affected to use
|
|||||||
AgendaUrlOptions5=<b>logind=%s</b> to restrict output to actions done by user <b>%s</b>.
|
AgendaUrlOptions5=<b>logind=%s</b> to restrict output to actions done by user <b>%s</b>.
|
||||||
AgendaShowBirthdayEvents=Show birthday's contacts
|
AgendaShowBirthdayEvents=Show birthday's contacts
|
||||||
AgendaHideBirthdayEvents=Hide birthday's contacts
|
AgendaHideBirthdayEvents=Hide birthday's contacts
|
||||||
|
ExtSites=External calendars
|
||||||
@ -31,6 +31,7 @@ ViewWithPredefinedFilters=Ver con los filtros predefinidos
|
|||||||
AutoActions=Inclusión automática en la agenda
|
AutoActions=Inclusión automática en la agenda
|
||||||
AgendaAutoActionDesc=Definir los eventos aquí para los que desea que Dolibarr cree automáticamente una acción en el orden del día. Si no está marcada (por defecto), se podrán crear manualmente.
|
AgendaAutoActionDesc=Definir los eventos aquí para los que desea que Dolibarr cree automáticamente una acción en el orden del día. Si no está marcada (por defecto), se podrán crear manualmente.
|
||||||
AgendaSetupOtherDesc=Esta página le permite configurar otros parámetros del módulo agenda.
|
AgendaSetupOtherDesc=Esta página le permite configurar otros parámetros del módulo agenda.
|
||||||
|
AgendaExtSitesDesc=Esta página le permite configurar calendarios externos.
|
||||||
ActionsEvents=Eventos para que Dolibarr cree una acción de forma automática
|
ActionsEvents=Eventos para que Dolibarr cree una acción de forma automática
|
||||||
PropalValidatedInDolibarr=Presupuesto %s validado
|
PropalValidatedInDolibarr=Presupuesto %s validado
|
||||||
InvoiceValidatedInDolibarr=Factura %s validada
|
InvoiceValidatedInDolibarr=Factura %s validada
|
||||||
@ -55,3 +56,4 @@ AgendaUrlOptions4=<b>logint=%s</b> para restringir inserciones a acciones que af
|
|||||||
AgendaUrlOptions5=<b>logind=%s</b> para restringir inserciones a acciones realizadas por el usuario <b>%s</b>.
|
AgendaUrlOptions5=<b>logind=%s</b> para restringir inserciones a acciones realizadas por el usuario <b>%s</b>.
|
||||||
AgendaShowBirthdayEvents=Mostrar cumpleaños de los contactos
|
AgendaShowBirthdayEvents=Mostrar cumpleaños de los contactos
|
||||||
AgendaHideBirthdayEvents=Ocultar cumpleaños de los contactos
|
AgendaHideBirthdayEvents=Ocultar cumpleaños de los contactos
|
||||||
|
ExtSites=Calendarios externos
|
||||||
@ -31,6 +31,7 @@ ViewWithPredefinedFilters=Vues avec filtres prédéfinis
|
|||||||
AutoActions=Alimentation automatique de l'agenda
|
AutoActions=Alimentation automatique de l'agenda
|
||||||
AgendaAutoActionDesc=Définissez dans cet onglet les événements pour lesquels dolibarr créera automatiquement une action dans l'agenda. Si aucune case n'est cochée (par défaut), seules les actions manuelles seront incluses dans l'agenda.
|
AgendaAutoActionDesc=Définissez dans cet onglet les événements pour lesquels dolibarr créera automatiquement une action dans l'agenda. Si aucune case n'est cochée (par défaut), seules les actions manuelles seront incluses dans l'agenda.
|
||||||
AgendaSetupOtherDesc=Cette page permet de configurer les autres paramètres du module agenda.
|
AgendaSetupOtherDesc=Cette page permet de configurer les autres paramètres du module agenda.
|
||||||
|
AgendaExtSitesDesc=Cette page permet de configurer les calendriers externes.
|
||||||
ActionsEvents=Événements pour lesquels Dolibarr doit créer une action dans l'agenda en automatique.
|
ActionsEvents=Événements pour lesquels Dolibarr doit créer une action dans l'agenda en automatique.
|
||||||
PropalValidatedInDolibarr=Proposition %s validée
|
PropalValidatedInDolibarr=Proposition %s validée
|
||||||
InvoiceValidatedInDolibarr=Facture %s validée
|
InvoiceValidatedInDolibarr=Facture %s validée
|
||||||
@ -55,3 +56,4 @@ AgendaUrlOptions4=<b>logint=%s</b> pour limiter l'export aux actions affectées
|
|||||||
AgendaUrlOptions5=<b>logind=%s</b> pour limiter l'export aux actions réalisées par l'utilisateur <b>%s</b>.
|
AgendaUrlOptions5=<b>logind=%s</b> pour limiter l'export aux actions réalisées par l'utilisateur <b>%s</b>.
|
||||||
AgendaShowBirthdayEvents=Afficher anniversaires contacts
|
AgendaShowBirthdayEvents=Afficher anniversaires contacts
|
||||||
AgendaHideBirthdayEvents=Cacher anniversaires contacts
|
AgendaHideBirthdayEvents=Cacher anniversaires contacts
|
||||||
|
ExtSites=Calendriers externes
|
||||||
@ -312,6 +312,12 @@ function agenda_prepare_head()
|
|||||||
$head[$h][2] = 'xcal';
|
$head[$h][2] = 'xcal';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$head[$h][0] = DOL_URL_ROOT."/admin/agenda_extsites.php";
|
||||||
|
$head[$h][1] = $langs->trans("ExtSites");
|
||||||
|
$head[$h][2] = 'extsites';
|
||||||
|
$h++;
|
||||||
|
|
||||||
|
|
||||||
return $head;
|
return $head;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user