part.showevent.php 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <div id="event" title="<?php echo $l->t("View an event");?>">
  2. <ul>
  3. <li><a href="#tabs-1"><?php echo $l->t('Eventinfo'); ?></a></li>
  4. <li><a href="#tabs-2"><?php echo $l->t('Repeating'); ?></a></li>
  5. <!--<li><a href="#tabs-3"><?php echo $l->t('Alarm'); ?></a></li>
  6. <li><a href="#tabs-4"><?php echo $l->t('Attendees'); ?></a></li>-->
  7. </ul>
  8. <div id="tabs-1">
  9. <table width="100%">
  10. <tr>
  11. <th width="75px"><?php echo $l->t("Title");?>:</th>
  12. <td>
  13. <?php echo isset($_['title']) ? $_['title'] : '' ?>
  14. </td>
  15. </tr>
  16. </table>
  17. <table width="100%">
  18. <tr>
  19. <th width="75px"><?php echo $l->t("Category");?>:</th>
  20. <td>
  21. <?php
  22. if(count($_['categories']) == 0 || $_['categories'] == ''){
  23. echo $l->t('No categories selected');
  24. }else{
  25. echo '<ul>';
  26. foreach($_['categories'] as $categorie){
  27. echo '<li>' . $categorie . '</li>';
  28. }
  29. echo '</ul>';
  30. }
  31. ?>
  32. </td>
  33. <th width="75px">&nbsp;&nbsp;&nbsp;<?php echo $l->t("Calendar");?>:</th>
  34. <td>
  35. <?php
  36. $calendar = OC_Calendar_App::getCalendar($_['calendar'], false, false);
  37. echo $calendar['displayname'] . ' ' . $l->t('of') . ' ' . $calendar['userid'];
  38. ?>
  39. </td>
  40. <th width="75px">&nbsp;</th>
  41. <td>
  42. <input type="hidden" name="calendar" value="<?php echo $_['calendar_options'][0]['id'] ?>">
  43. </td>
  44. </tr>
  45. </table>
  46. <hr>
  47. <table width="100%">
  48. <tr>
  49. <th width="75px"></th>
  50. <td>
  51. <input onclick="Calendar.UI.lockTime();" type="checkbox"<?php if($_['allday']){echo 'checked="checked"';} ?> id="allday_checkbox" name="allday" disabled="disabled">
  52. <?php echo $l->t("All Day Event");?>
  53. </td>
  54. </tr>
  55. <tr>
  56. <th width="75px"><?php echo $l->t("From");?>:</th>
  57. <td>
  58. <?php echo $_['startdate'];?>
  59. &nbsp;&nbsp; <?php echo (!$_['allday'])?$l->t('at'):''; ?> &nbsp;&nbsp;
  60. <?php echo $_['starttime'];?>
  61. </td>
  62. </tr>
  63. <tr>
  64. <th width="75px"><?php echo $l->t("To");?>:</th>
  65. <td>
  66. <?php echo $_['enddate'];?>
  67. &nbsp;&nbsp; <?php echo (!$_['allday'])?$l->t('at'):''; ?> &nbsp;&nbsp;
  68. <?php echo $_['endtime'];?>
  69. </td>
  70. </tr>
  71. </table>
  72. <input type="button" class="submit" value="<?php echo $l->t("Advanced options"); ?>" onclick="Calendar.UI.showadvancedoptions();" id="advanced_options_button">
  73. <div id="advanced_options" style="display: none;">
  74. <hr>
  75. <table>
  76. <tr>
  77. <th width="85px"><?php echo $l->t("Location");?>:</th>
  78. <td>
  79. <?php echo isset($_['location']) ? $_['location'] : '' ?>
  80. </td>
  81. </tr>
  82. </table>
  83. <table>
  84. <tr>
  85. <th width="85px" style="vertical-align: top;"><?php echo $l->t("Description");?>:</th>
  86. <td>
  87. <?php echo isset($_['description']) ? $_['description'] : '' ?></textarea>
  88. </tr>
  89. </table>
  90. </div>
  91. </div>
  92. <div id="tabs-2">
  93. <table style="width:100%">
  94. <tr>
  95. <th width="75px"><?php echo $l->t("Repeat");?>:</th>
  96. <td>
  97. <select id="repeat" name="repeat">
  98. <?php
  99. echo OCP\html_select_options(array($_['repeat_options'][$_['repeat']]), $_['repeat']);
  100. ?>
  101. </select></td>
  102. <td><input type="button" style="float:right;" class="submit" value="<?php echo $l->t("Advanced"); ?>" onclick="Calendar.UI.showadvancedoptionsforrepeating();" id="advanced_options_button"></td>
  103. </tr>
  104. </table>
  105. <div id="advanced_options_repeating" style="display:none;">
  106. <table style="width:100%">
  107. <tr id="advanced_month" style="display:none;">
  108. <th width="75px"></th>
  109. <td>
  110. <select id="advanced_month_select" name="advanced_month_select">
  111. <?php
  112. echo OCP\html_select_options(array($_['repeat_month_options'][$_['repeat_month']]), $_['repeat_month']);
  113. ?>
  114. </select>
  115. </td>
  116. </tr>
  117. </table>
  118. <table style="width:100%">
  119. <tr id="advanced_year" style="display:none;">
  120. <th width="75px"></th>
  121. <td>
  122. <select id="advanced_year_select" name="advanced_year_select">
  123. <?php
  124. echo OCP\html_select_options(array($_['repeat_year_options'][$_['repeat_year']]), $_['repeat_year']);
  125. ?>
  126. </select>
  127. </td>
  128. </tr>
  129. </table>
  130. <table style="width:100%">
  131. <tr id="advanced_weekofmonth" style="display:none;">
  132. <th width="75px"></th>
  133. <td id="weekofmonthcheckbox">
  134. <select id="weekofmonthoptions" name="weekofmonthoptions">
  135. <?php
  136. echo OCP\html_select_options(array($_['repeat_weekofmonth_options'][$_['repeat_weekofmonth']]), $_['repeat_weekofmonth']);
  137. ?>
  138. </select>
  139. </td>
  140. </tr>
  141. </table>
  142. <table style="width:100%">
  143. <tr id="advanced_weekday" style="display:none;">
  144. <th width="75px"></th>
  145. <td id="weeklycheckbox">
  146. <select id="weeklyoptions" name="weeklyoptions[]" multiple="multiple" style="width: 150px;" title="<?php echo $l->t("Select weekdays") ?>">
  147. <?php
  148. if (!isset($_['weekdays'])) {$_['weekdays'] = array();}
  149. echo OCP\html_select_options(array($_['repeat_weekly_options'][$_['repeat_weekdays']]), $_['repeat_weekdays'], array('combine'=>true));
  150. ?>
  151. </select>
  152. </td>
  153. </tr>
  154. </table>
  155. <table style="width:100%">
  156. <tr id="advanced_byyearday" style="display:none;">
  157. <th width="75px"></th>
  158. <td id="byyeardaycheckbox">
  159. <select id="byyearday" name="byyearday[]" multiple="multiple" title="<?php echo $l->t("Select days") ?>">
  160. <?php
  161. if (!isset($_['repeat_byyearday'])) {$_['repeat_byyearday'] = array();}
  162. echo OCP\html_select_options(array($_['repeat_byyearday_options'][$_['repeat_byyearday']]), $_['repeat_byyearday'], array('combine'=>true));
  163. ?>
  164. </select><?php echo $l->t('and the events day of year.'); ?>
  165. </td>
  166. </tr>
  167. </table>
  168. <table style="width:100%">
  169. <tr id="advanced_bymonthday" style="display:none;">
  170. <th width="75px"></th>
  171. <td id="bymonthdaycheckbox">
  172. <select id="bymonthday" name="bymonthday[]" multiple="multiple" title="<?php echo $l->t("Select days") ?>">
  173. <?php
  174. if (!isset($_['repeat_bymonthday'])) {$_['repeat_bymonthday'] = array();}
  175. echo OCP\html_select_options(array($_['repeat_bymonthday_options'][$_['repeat_bymonthday']]), $_['repeat_bymonthday'], array('combine'=>true));
  176. ?>
  177. </select><?php echo $l->t('and the events day of month.'); ?>
  178. </td>
  179. </tr>
  180. </table>
  181. <table style="width:100%">
  182. <tr id="advanced_bymonth" style="display:none;">
  183. <th width="75px"></th>
  184. <td id="bymonthcheckbox">
  185. <select id="bymonth" name="bymonth[]" multiple="multiple" title="<?php echo $l->t("Select months") ?>">
  186. <?php
  187. if (!isset($_['repeat_bymonth'])) {$_['repeat_bymonth'] = array();}
  188. echo OCP\html_select_options(array($_['repeat_bymonth_options'][$_['repeat_bymonth']]), $_['repeat_bymonth'], array('combine'=>true));
  189. ?>
  190. </select>
  191. </td>
  192. </tr>
  193. </table>
  194. <table style="width:100%">
  195. <tr id="advanced_byweekno" style="display:none;">
  196. <th width="75px"></th>
  197. <td id="bymonthcheckbox">
  198. <select id="byweekno" name="byweekno[]" multiple="multiple" title="<?php echo $l->t("Select weeks") ?>">
  199. <?php
  200. if (!isset($_['repeat_byweekno'])) {$_['repeat_byweekno'] = array();}
  201. echo OCP\html_select_options(array($_['repeat_byweekno_options'][$_['repeat_byweekno']]), $_['repeat_byweekno'], array('combine'=>true));
  202. ?>
  203. </select><?php echo $l->t('and the events week of year.'); ?>
  204. </td>
  205. </tr>
  206. </table>
  207. <table style="width:100%">
  208. <tr>
  209. <th width="75px"><?php echo $l->t('Interval'); ?>:</th>
  210. <td>
  211. <?php echo isset($_['repeat_interval']) ? $_['repeat_interval'] : '1'; ?>
  212. </td>
  213. </tr>
  214. <tr>
  215. <th width="75px"><?php echo $l->t('End'); ?>:</th>
  216. <td>
  217. <select id="end" name="end">
  218. <?php
  219. if($_['repeat_end'] == '') $_['repeat_end'] = 'never';
  220. echo OCP\html_select_options(array($_['repeat_end_options'][$_['repeat_end']]), $_['repeat_end']);
  221. ?>
  222. </select>
  223. </td>
  224. </tr>
  225. <tr>
  226. <th></th>
  227. <td id="byoccurrences" style="display:none;">
  228. <?php echo $_['repeat_count'] . ' ' . $l->t('occurrences'); ?>
  229. </td>
  230. </tr>
  231. <tr>
  232. <th></th>
  233. <td id="bydate" style="display:none;">
  234. <?php echo $_['repeat_date']; ?>
  235. </td>
  236. </tr>
  237. </table>
  238. </div>
  239. </div>
  240. <!--<div id="tabs-3">//Alarm</div>
  241. <div id="tabs-4">//Attendees</div>-->
  242. </div>