diff options
Diffstat (limited to 'apps/calendar/templates/part.showevent.php')
-rw-r--r-- | apps/calendar/templates/part.showevent.php | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/apps/calendar/templates/part.showevent.php b/apps/calendar/templates/part.showevent.php index 3646baf5bb7..59684d831e5 100644 --- a/apps/calendar/templates/part.showevent.php +++ b/apps/calendar/templates/part.showevent.php @@ -10,7 +10,7 @@ <tr> <th width="75px"><?php echo $l->t("Title");?>:</th> <td> - <?php echo isset($_['title']) ? htmlspecialchars($_['title']) : '' ?> + <?php echo isset($_['title']) ? $_['title'] : '' ?> </td> </tr> </table> @@ -19,26 +19,23 @@ <th width="75px"><?php echo $l->t("Category");?>:</th> <td> <?php - if(count($_['categories']) == 0){ + if(count($_['categories']) == 0 || $_['categories'] == ''){ echo $l->t('No categories selected'); }else{ - echo '<select id="category" name="categories[]" multiple="multiple" title="' . $l->t("Select category") . '">'; - echo OCP\html_select_options($_['categories'], $_['categories'], array('combine'=>true)); - echo '</select>'; + echo '<ul>'; + foreach($_['categories'] as $categorie){ + echo '<li>' . $categorie . '</li>'; + } + echo '</ul>'; } ?> </td> <th width="75px"> <?php echo $l->t("Calendar");?>:</th> <td> - <select name="calendar" disabled="disabled"> - <option> - <?php - $calendar = OC_Calendar_App::getCalendar($_['calendar']); - echo $calendar['displayname'] . ' ' . $l->t('of') . ' ' . $calendar['userid']; - ?> - </option> - - </select> + <?php + $calendar = OC_Calendar_App::getCalendar($_['calendar'], false, false); + echo $calendar['displayname'] . ' ' . $l->t('of') . ' ' . $calendar['userid']; + ?> </td> <th width="75px"> </th> <td> @@ -79,7 +76,7 @@ <tr> <th width="85px"><?php echo $l->t("Location");?>:</th> <td> - <?php echo isset($_['location']) ? htmlspecialchars($_['location']) : '' ?> + <?php echo isset($_['location']) ? $_['location'] : '' ?> </td> </tr> </table> @@ -87,7 +84,7 @@ <tr> <th width="85px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th> <td> - <?php echo isset($_['description']) ? htmlspecialchars($_['description']) : '' ?></textarea> + <?php echo isset($_['description']) ? $_['description'] : '' ?></textarea> </tr> </table> </div> |