switch (type) {
case 'internal':
case 'tasklists':
+ $('kronolithCalendar' + type + 'LinkImportExport').up().hide();
fields.push('Description');
break;
case 'remote':
switch (type) {
case 'internal':
- case 'tasklists':
$('kronolithCalendarinternalDescription').setValue(info.desc);
+ $('kronolithCalendarinternalLinkImportExport').up().show();
+ $('kronolithCalendarinternalExport').href = Kronolith.conf.URI_CALENDAR_EXPORT + '=' + calendar;
+ break;
+ case 'tasklists':
+ $('kronolithCalendartasklistsDescription').setValue(info.desc);
+ $('kronolithCalendartasklistsLinkImportExport').up().show();
+ $('kronolithCalendartasklistsExport').href = Kronolith.conf.tasks.URI_TASKLIST_EXPORT + '=' + calendar.substring(6);
break;
case 'remote':
$('kronolithCalendarremoteUrl').setValue(calendar);
'URI_AJAX' => (string)Horde::getServiceLink('ajax', 'kronolith'),
'URI_IMG' => $registry->getImageDir() . '/',
'URI_SNOOZE' => (string)Horde::url($registry->get('webroot', 'horde') . '/services/snooze.php', true, -1),
+ 'URI_CALENDAR_EXPORT' => (string)Horde::url('data.php', true)->add(array('actionID' => 'export', 'all_events' => 1, 'exportID' => Horde_Data::EXPORT_ICALENDAR, 'exportCal' => '')),
'SESSION_ID' => defined('SID') ? SID : '',
'user' => Horde_Auth::getAuth(),
'prefs_url' => str_replace('&', '&', Horde::getServiceLink('options', 'kronolith')),
<li class="activeTab"><a href="#" class="kronolithTabLink" id="kronolithCalendarinternalLinkDescription"><?php echo _("Description") ?></a></li>
<li><a href="#" class="kronolithTabLink" id="kronolithCalendarinternalLinkTags"><?php echo _("Tags") ?></a></li>
<li><a href="#" class="kronolithTabLink" id="kronolithCalendarinternalLinkPerms"><?php echo _("Permissions") ?></a></li>
+ <li><a href="#" class="kronolithTabLink" id="kronolithCalendarinternalLinkImportExport"><?php echo _("Export") /*_("Import/Export")*/ ?></a></li>
</ul>
</div>
<br class="clear" />
tbd
</div>
+<div id="kronolithCalendarinternalTabImportExport" class="kronolithTabsOption" style="display:none">
+ <div class="kronolithTabInfo"><?php echo _("iCalendar is a computer file format which allows internet users to send meeting requests and tasks to other internet users, via email, or sharing files with an extension of .ics. Recipients of the iCalendar data file (with supporting software, such as an email client or calendar application) can respond to the sender easily or counter propose another meeting date/time.") ?></div>
+ <?php /* ?>
+ <label><?php echo _("Import ICS file") ?>:
+ <input type="file" name="import_file" />
+ </label>
+ <br />
+ <?php */ ?>
+ <label><?php echo _("Export ICS file") ?>:</label>
+ <a id="kronolithCalendarinternalExport"><?php echo _("Calendar ICS file") ?></a>
+</div>
+
<div class="kronolithFormActions">
<input type="button" value="<?php echo _("Save") ?>" class="kronolithCalendarSave button ok" />
<input type="button" value="<?php echo _("Delete") ?>" class="kronolithCalendarDelete button ko" />
<ul>
<li class="activeTab"><a href="#" class="kronolithTabLink" id="kronolithCalendartasklistsLinkDescription"><?php echo _("Description") ?></a></li>
<li><a href="#" class="kronolithTabLink" id="kronolithCalendartasklistsLinkPerms"><?php echo _("Permissions") ?></a></li>
+ <li><a href="#" class="kronolithTabLink" id="kronolithCalendartasklistsLinkImportExport"><?php echo _("Export") /*_("Import/Export")*/ ?></a></li>
</ul>
</div>
<br class="clear" />
tbd
</div>
+<div id="kronolithCalendartasklistsTabImportExport" class="kronolithTabsOption" style="display:none">
+ <div class="kronolithTabInfo"><?php echo _("iCalendar is a computer file format which allows internet users to send meeting requests and tasks to other internet users, via email, or sharing files with an extension of .ics. Recipients of the iCalendar data file (with supporting software, such as an email client or calendar application) can respond to the sender easily or counter propose another meeting date/time.") ?></div>
+ <?php /* ?>
+ <label><?php echo _("Import ICS file") ?>:
+ <input type="file" name="import_file" />
+ </label>
+ <br />
+ <?php */ ?>
+ <label><?php echo _("Export ICS file") ?>:</label>
+ <a id="kronolithCalendartasklistsExport"><?php echo _("Calendar ICS file") ?></a>
+</div>
+
<div class="kronolithFormActions">
<input type="button" value="<?php echo _("Save") ?>" class="kronolithCalendarSave button ok" />
<input type="button" value="<?php echo _("Delete") ?>" class="kronolithCalendarDelete button ko" />
public function ajaxDefaults()
{
return array(
+ 'URI_TASKLIST_EXPORT' => (string)Horde::url('data.php', true)->add(array('actionID' => 'export', 'exportTasks' => 1, 'exportID' => Horde_Data::EXPORT_ICALENDAR, 'exportList' => '')),
'default_tasklist' => Nag::getDefaultTasklist(Horde_Perms::EDIT),
'default_due' => (bool)$GLOBALS['prefs']->getValue('default_due'),
'default_due_days' => (int)$GLOBALS['prefs']->getValue('default_due_days'),