settings.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
  4. * Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
  5. * This file is licensed under the Affero General Public License version 3 or
  6. * later.
  7. * See the COPYING-README file.
  8. */
  9. ?>
  10. <form id="calendar">
  11. <fieldset class="personalblock">
  12. <legend><?php echo $l->t('Calendar'); ?></legend>
  13. <table class="nostyle">
  14. <tr><td><label for="timezone" class="bold"><?php echo $l->t('Timezone');?></label></td><td><select style="display: none;" id="timezone" name="timezone">
  15. <?php
  16. $continent = '';
  17. foreach($_['timezones'] as $timezone):
  18. $ex=explode('/', $timezone, 2);//obtain continent,city
  19. if (!isset($ex[1])) {
  20. $ex[1] = $ex[0];
  21. $ex[0] = "Other";
  22. }
  23. if ($continent!=$ex[0]):
  24. if ($continent!="") echo '</optgroup>';
  25. echo '<optgroup label="'.$ex[0].'">';
  26. endif;
  27. $city=strtr($ex[1], '_', ' ');
  28. $continent=$ex[0];
  29. echo '<option value="'.$timezone.'"'.($_['timezone'] == $timezone?' selected="selected"':'').'>'.$city.'</option>';
  30. endforeach;?>
  31. </select><input type="checkbox" name="timezonedetection" id="timezonedetection"><label for="timezonedetection"><?php echo $l->t('Check always for changes of the timezone'); ?></label></td></tr>
  32. <tr><td><label for="timeformat" class="bold"><?php echo $l->t('Timeformat');?></label></td><td>
  33. <select style="display: none; width: 60px;" id="timeformat" title="<?php echo "timeformat"; ?>" name="timeformat">
  34. <option value="24" id="24h"><?php echo $l->t("24h"); ?></option>
  35. <option value="ampm" id="ampm"><?php echo $l->t("12h"); ?></option>
  36. </select>
  37. </td></tr>
  38. <tr><td><label for="firstday" class="bold"><?php echo $l->t('First day of the week');?></label></td><td>
  39. <select style="display: none;" id="firstday" title="<?php echo "First day"; ?>" name="firstday">
  40. <option value="mo" id="mo"><?php echo $l->t("Monday"); ?></option>
  41. <option value="su" id="su"><?php echo $l->t("Sunday"); ?></option>
  42. </select>
  43. </td></tr>
  44. </table>
  45. <?php echo $l->t('Calendar CalDAV syncing addresses'); ?> (<a href="http://owncloud.org/synchronisation/" target="_blank"><?php echo $l->t('more info'); ?></a>)
  46. <dl>
  47. <dt><?php echo $l->t('Primary address (Kontact et al)'); ?></dt>
  48. <dd><code><?php echo OCP\Util::linkToRemote('caldav'); ?></code></dd>
  49. <dt><?php echo $l->t('iOS/OS X'); ?></dt>
  50. <dd><code><?php echo OCP\Util::linkToRemote('caldav'); ?>principals/<?php echo OCP\USER::getUser(); ?></code>/</dd>
  51. </dl>
  52. </fieldset>
  53. </form>