</configswitch>
</configsection>
- <configsection name="metadata">
- <configheader>Metadata Settings</configheader>
- <configboolean name="keywords" desc="Should keywords be loaded from
- config/keywords.php to be assigned to events?">false</configboolean>
- </configsection>
-
<configsection name="reminder">
<configheader>Reminder Settings</configheader>
<configstring name="server_name" desc="Server name from which reminder
$status = Kronolith::statusToString($this->event->getStatus());
$attendees = $this->event->getAttendees();
- if ($conf['metadata']['keywords']) {
- include KRONOLITH_BASE . '/config/keywords.php';
- $keyword_list = array();
- foreach ($keywords as $cat => $list) {
- $sub_list = array();
- foreach ($list as $entry) {
- if ($this->event->hasKeyword($entry)) {
- $sub_list[] = htmlspecialchars($entry);
- }
- }
- if (count($sub_list)) {
- $keyword_list[$cat] = $sub_list;
- }
- }
- }
-
if ($datetime = Util::getFormData('datetime')) {
$datetime = new Horde_Date($datetime);
$month = $datetime->month;
<?php endif; ?>
</tbody>
-<?php if ($GLOBALS['conf']['metadata']['keywords']): ?>
-<!-- keywords -->
-<tr>
- <td colspan="5" class="control toggle" onclick="toggleSection('keywords')">
- <?php echo Horde::img('tree/blank.png', '', array('id' => 'toggle_keywords'), $GLOBALS['registry']->getImageDir('horde')) . ' <strong>' . _("Keywords") ?></strong>
- <span class="extra" id="extra_keywords"><?php echo implode(', ', $event->getKeywords()) ?></span>
- </td>
-</tr>
-<tr id="section_keywords">
- <td></td>
- <td colspan="4">
- <table cellspacing="2">
- <?php include KRONOLITH_BASE . '/config/keywords.php'; $count = 0 ?>
- <?php foreach ($keywords as $cat => $list):
- if ($count % 3 == 0): ?>
- <tr>
- <?php endif; ?>
- <td valign="top">
- <strong><?php echo $cat ?></strong><br />
- <?php for ($k = 0; $k < count($list); ++$k): ?>
- <input type="checkbox" class="checkbox" id="keyword<?php echo htmlspecialchars($k) ?>" name="keywords[]" value="<?php echo htmlspecialchars($list[$k]) ?>"<?php if ($event->hasKeyword($list[$k])) echo ' checked="checked"' ?> />
- <?php echo Horde::label('keyword' . $k, htmlspecialchars($list[$k])) ?><br />
- <?php endfor; ?>
- </td>
- <?php if (($count % 3 == 2) || ($count == count($keywords) - 1)): ?>
- </tr>
- <?php endif; ++$count ?>
- <?php endforeach; ?>
- </table>
- </td>
-</tr>
-<?php endif; ?>
-
<!-- tags -->
<tr>
<td colspan="5" class="control toggle" onclick="toggleSection('tags')">