2014-01-20 01:06:09 +00:00
< ? php if ( isset ( $_ [ 'link_shared_event' ])) { ?>
2014-02-09 21:43:59 +00:00
< header id = " linksharedinfo " >
< div class = " header-right " >
< span id = " details " >< ? php p ( $l -> t ( 'shared by %s' , array ( $_ [ 'link_shared_event' ][ 'uid_owner' ]))) ?> </span>
</ div >
< a href = " <?php print_unescaped(link_to('', 'index.php')); ?> " title = " " id = " owncloud " >< img class = " svg "
src = " <?php print_unescaped(image_path('', 'logo-wide.svg')); ?> " alt = " <?php p( $theme->getName ()); ?> "
/></ a >
< div id = " logo-claim " style = " display:none; " >< ? php p ( $theme -> getLogoClaim ()); ?> </div>
< div >< ? php p ( $l -> t ( 'Event' )) ?> "<?php p($_['link_shared_event']['item_target'])?>"; <?php p($l->t('download or use in your calendar application:'))?> <a class="download-link" href="<?php echo $_['link_shared_event_url']; ?>&download"><?php p($l->t('Download'))?></a></div>
</ header >
2014-02-11 01:39:01 +00:00
< div class = " settings timezonesettings " >
< label for = " timezone " title = " <?php p( $l->t ('Timezone settings')); ?> " >< ? php p ( $l -> t ( 'Timezone' )) ?> </label>
< select id = " timezone " name = " timezone " >
< ? php
$continent = '' ;
foreach ( $_ [ 'timezones' ] as $timezone ) :
$ex = explode ( '/' , $timezone , 2 ); //obtain continent,city
if ( ! isset ( $ex [ 1 ])) {
$ex [ 1 ] = $ex [ 0 ];
$ex [ 0 ] = " Other " ;
}
if ( $continent != $ex [ 0 ]) :
if ( $continent != " " ) print_unescaped ( '</optgroup>' );
print_unescaped ( '<optgroup label="' . OC_Util :: sanitizeHTML ( $ex [ 0 ]) . '">' );
endif ;
$city = strtr ( $ex [ 1 ], '_' , ' ' );
$continent = $ex [ 0 ];
print_unescaped ( '<option value="' . OC_Util :: sanitizeHTML ( $timezone ) . '"' . ( $_ [ 'timezone' ] == $timezone ? ' selected="selected"' : '' ) . '>' . OC_Util :: sanitizeHTML ( $city ) . '</option>' );
endforeach ; ?>
</ select >
</ div >
2014-01-20 01:06:09 +00:00
< ? php } ?>
< div id = " event " class = " event <?php if(isset( $_['link_shared_event'] )): ?>link-shared<?php endif; ?> " title = " <?php p( $l->t ( " View an event " ));?> " >
< ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?>
2012-03-26 13:24:43 +00:00
< ul >
2013-02-28 15:27:14 +00:00
< li >< a href = " #tabs-1 " >< ? php p ( $l -> t ( 'Eventinfo' )); ?> </a></li>
< li >< a href = " #tabs-2 " >< ? php p ( $l -> t ( 'Repeating' )); ?> </a></li>
<!--< li >< a href = " #tabs-3 " >< ? php p ( $l -> t ( 'Alarm' )); ?> </a></li>
< li >< a href = " #tabs-4 " >< ? php p ( $l -> t ( 'Attendees' )); ?> </a></li>-->
2012-03-26 13:24:43 +00:00
</ ul >
2014-01-20 01:06:09 +00:00
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
< div id = " tabs-1 " >
< table width = " 100% " >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " Title " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " title " >
2013-02-28 17:59:44 +00:00
< ? php p ( isset ( $_ [ 'title' ]) ? $_ [ 'title' ] : '' ) ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
< table width = " 100% " >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " Category " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " categories " >
2012-03-26 13:24:43 +00:00
< ? php
2012-09-07 13:21:03 +00:00
if ( count ( $_ [ 'categories' ]) == 0 || $_ [ 'categories' ] == '' ) {
2013-02-28 15:27:14 +00:00
p ( $l -> t ( 'No categories selected' ));
2012-03-26 13:24:43 +00:00
} else {
2013-02-28 17:59:44 +00:00
print_unescaped ( '<ul>' );
2013-03-04 19:37:07 +00:00
if ( is_array ( $_ [ 'categories' ])){
foreach ( $_ [ 'categories' ] as $categorie ) {
print_unescaped ( '<li>' . OC_Util :: sanitizeHTML ( $categorie ) . '</li>' );
}
} else {
2013-03-04 19:59:42 +00:00
print_unescaped ( '<li>' . OC_Util :: sanitizeHTML ( $_ [ 'categories' ]) . '</li>' );
2012-06-13 20:20:43 +00:00
}
2013-02-28 17:59:44 +00:00
print_unescaped ( '</ul>' );
2012-03-26 13:24:43 +00:00
}
?>
</ td >
2014-01-20 01:06:09 +00:00
< ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?>
2013-02-28 15:27:14 +00:00
< th width = " 75px " >& nbsp ; & nbsp ; & nbsp ; < ? php p ( $l -> t ( " Calendar " )); ?> :</th>
2012-03-26 13:24:43 +00:00
< td >
2012-06-13 20:14:40 +00:00
< ? php
$calendar = OC_Calendar_App :: getCalendar ( $_ [ 'calendar' ], false , false );
2013-02-28 17:59:44 +00:00
p ( $calendar [ 'displayname' ]) . ' ' . $l -> t ( 'of' ) . ' ' . $calendar [ 'userid' ];
2012-06-13 20:14:40 +00:00
?>
2012-03-26 13:24:43 +00:00
</ td >
< th width = " 75px " >& nbsp ; </ th >
< td >
2013-02-28 16:21:45 +00:00
< input type = " hidden " name = " calendar " value = " <?php p( $_['calendar_options'] [0]['id']) ?> " >
2012-03-26 13:24:43 +00:00
</ td >
2014-01-20 01:06:09 +00:00
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
</ tr >
2014-01-20 01:06:09 +00:00
< ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?>
2012-12-07 21:05:19 +00:00
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " Access Class " )); ?> :</th>
2012-12-07 21:05:19 +00:00
< td >
< select id = " accessclass " name = " accessclass " >
< ? php
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'access_class_options' ][ $_ [ 'accessclass' ]]), $_ [ 'accessclass' ]));
2012-12-07 21:05:19 +00:00
?>
</ select >
</ td >
</ tr >
2014-01-20 01:06:09 +00:00
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
</ table >
< hr >
< table width = " 100% " >
< tr >
< th width = " 75px " ></ th >
< td >
2013-02-28 17:59:44 +00:00
< input type = " checkbox " < ? php if ( $_ [ 'allday' ]) { print_unescaped ( 'checked="checked"' );} ?> id="allday_checkbox" name="allday" disabled="disabled">
2013-02-28 15:27:14 +00:00
< ? php p ( $l -> t ( " All Day Event " )); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " From " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " date from " >
2013-02-28 16:35:22 +00:00
< ? php p ( $_ [ 'startdate' ]); ?>
2013-02-28 17:59:44 +00:00
& nbsp ; & nbsp ; < ? php p (( ! $_ [ 'allday' ]) ? $l -> t ( 'at' ) : '' ); ?>
2013-02-28 16:35:22 +00:00
< ? php p ( $_ [ 'starttime' ]); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " To " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " date from " >
2013-02-28 16:35:22 +00:00
< ? php p ( $_ [ 'enddate' ]); ?>
2013-02-28 17:59:44 +00:00
& nbsp ; & nbsp ; < ? php p (( ! $_ [ 'allday' ]) ? $l -> t ( 'at' ) : '' ); ?>
2013-02-28 16:35:22 +00:00
< ? php p ( $_ [ 'endtime' ]); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
2014-01-20 01:06:09 +00:00
< ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?>
2013-02-28 15:27:14 +00:00
< input type = " button " class = " submit " value = " <?php p( $l->t ( " Advanced options " )); ?> " id = " advanced_options_button " >
2012-03-26 13:24:43 +00:00
< div id = " advanced_options " style = " display: none; " >
2014-01-20 01:06:09 +00:00
< ? php else : ?>
< div class = " event-info " >
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
< hr >
< table >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 85px " >< ? php p ( $l -> t ( " Location " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " location " >
2013-02-28 17:59:44 +00:00
< ? php p ( isset ( $_ [ 'location' ]) ? $_ [ 'location' ] : '' ) ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
< table >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 85px " style = " vertical-align: top; " >< ? php p ( $l -> t ( " Description " )); ?> :</th>
2014-01-20 01:06:09 +00:00
< td class = " description " >
2013-02-28 17:59:44 +00:00
< ? php p ( isset ( $_ [ 'description' ]) ? $_ [ 'description' ] : '' ) ?> </textarea>
2012-03-26 13:24:43 +00:00
</ tr >
</ table >
</ div >
</ div >
< div id = " tabs-2 " >
< table style = " width:100% " >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( " Repeat " )); ?> :</th>
2012-03-26 13:24:43 +00:00
< td >
< select id = " repeat " name = " repeat " >
< ? php
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_options' ][ $_ [ 'repeat' ]]), $_ [ 'repeat' ]));
2012-03-26 13:24:43 +00:00
?>
</ select ></ td >
2014-01-20 01:06:09 +00:00
< ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?>
2013-02-28 15:27:14 +00:00
< td >< input type = " button " style = " float:right; " class = " submit " value = " <?php p( $l->t ( " Advanced " )); ?> " id = " advanced_options_button_repeat " ></ td >
2014-01-20 01:06:09 +00:00
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
</ tr >
</ table >
2014-01-20 01:06:09 +00:00
< ? php if ( $_ [ 'repeat' ] !== 'doesnotrepeat' ) : ?>
< div id = " advanced_options_repeating " < ? php if ( ! isset ( $_ [ 'link_shared_event' ])) : ?> style="display:none;" <?php endif; ?>>
2012-03-26 13:24:43 +00:00
< table style = " width:100% " >
< tr id = " advanced_month " style = " display:none; " >
< th width = " 75px " ></ th >
< td >
< select id = " advanced_month_select " name = " advanced_month_select " >
< ? php
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_month_options' ][ $_ [ 'repeat_month' ]]), $_ [ 'repeat_month' ]));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_year " style = " display:none; " >
< th width = " 75px " ></ th >
< td >
< select id = " advanced_year_select " name = " advanced_year_select " >
< ? php
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_year_options' ][ $_ [ 'repeat_year' ]]), $_ [ 'repeat_year' ]));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_weekofmonth " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " weekofmonthcheckbox " >
< select id = " weekofmonthoptions " name = " weekofmonthoptions " >
< ? php
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_weekofmonth_options' ][ $_ [ 'repeat_weekofmonth' ]]), $_ [ 'repeat_weekofmonth' ]));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_weekday " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " weeklycheckbox " >
2013-02-28 15:27:14 +00:00
< select id = " weeklyoptions " name = " weeklyoptions[] " multiple = " multiple " style = " width: 150px; " title = " <?php p( $l->t ( " Select weekdays " )) ?> " >
2012-03-26 13:24:43 +00:00
< ? php
if ( ! isset ( $_ [ 'weekdays' ])) { $_ [ 'weekdays' ] = array ();}
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_weekly_options' ][ $_ [ 'repeat_weekdays' ]]), $_ [ 'repeat_weekdays' ], array ( 'combine' => true )));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_byyearday " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " byyeardaycheckbox " >
2013-02-28 15:27:14 +00:00
< select id = " byyearday " name = " byyearday[] " multiple = " multiple " title = " <?php p( $l->t ( " Select days " )) ?> " >
2012-03-26 13:24:43 +00:00
< ? php
if ( ! isset ( $_ [ 'repeat_byyearday' ])) { $_ [ 'repeat_byyearday' ] = array ();}
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_byyearday_options' ][ $_ [ 'repeat_byyearday' ]]), $_ [ 'repeat_byyearday' ], array ( 'combine' => true )));
2012-03-26 13:24:43 +00:00
?>
2013-02-28 15:27:14 +00:00
</ select >< ? php p ( $l -> t ( 'and the events day of year.' )); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_bymonthday " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " bymonthdaycheckbox " >
2013-02-28 15:27:14 +00:00
< select id = " bymonthday " name = " bymonthday[] " multiple = " multiple " title = " <?php p( $l->t ( " Select days " )) ?> " >
2012-03-26 13:24:43 +00:00
< ? php
if ( ! isset ( $_ [ 'repeat_bymonthday' ])) { $_ [ 'repeat_bymonthday' ] = array ();}
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_bymonthday_options' ][ $_ [ 'repeat_bymonthday' ]]), $_ [ 'repeat_bymonthday' ], array ( 'combine' => true )));
2012-03-26 13:24:43 +00:00
?>
2013-02-28 15:27:14 +00:00
</ select >< ? php p ( $l -> t ( 'and the events day of month.' )); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_bymonth " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " bymonthcheckbox " >
2013-02-28 15:27:14 +00:00
< select id = " bymonth " name = " bymonth[] " multiple = " multiple " title = " <?php p( $l->t ( " Select months " )) ?> " >
2012-03-26 13:24:43 +00:00
< ? php
if ( ! isset ( $_ [ 'repeat_bymonth' ])) { $_ [ 'repeat_bymonth' ] = array ();}
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_bymonth_options' ][ $_ [ 'repeat_bymonth' ]]), $_ [ 'repeat_bymonth' ], array ( 'combine' => true )));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr id = " advanced_byweekno " style = " display:none; " >
< th width = " 75px " ></ th >
< td id = " bymonthcheckbox " >
2013-02-28 15:27:14 +00:00
< select id = " byweekno " name = " byweekno[] " multiple = " multiple " title = " <?php p( $l->t ( " Select weeks " )) ?> " >
2012-03-26 13:24:43 +00:00
< ? php
if ( ! isset ( $_ [ 'repeat_byweekno' ])) { $_ [ 'repeat_byweekno' ] = array ();}
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_byweekno_options' ][ $_ [ 'repeat_byweekno' ]]), $_ [ 'repeat_byweekno' ], array ( 'combine' => true )));
2012-03-26 13:24:43 +00:00
?>
2013-02-28 15:27:14 +00:00
</ select >< ? php p ( $l -> t ( 'and the events week of year.' )); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
< table style = " width:100% " >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( 'Interval' )); ?> :</th>
2012-03-26 13:24:43 +00:00
< td >
2013-02-28 17:59:44 +00:00
< ? php p ( isset ( $_ [ 'repeat_interval' ]) ? $_ [ 'repeat_interval' ] : '1' ); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
< tr >
2013-02-28 15:27:14 +00:00
< th width = " 75px " >< ? php p ( $l -> t ( 'End' )); ?> :</th>
2012-03-26 13:24:43 +00:00
< td >
< select id = " end " name = " end " >
< ? php
if ( $_ [ 'repeat_end' ] == '' ) $_ [ 'repeat_end' ] = 'never' ;
2013-02-28 15:54:22 +00:00
print_unescaped ( OCP\html_select_options ( array ( $_ [ 'repeat_end_options' ][ $_ [ 'repeat_end' ]]), $_ [ 'repeat_end' ]));
2012-03-26 13:24:43 +00:00
?>
</ select >
</ td >
</ tr >
< tr >
< th ></ th >
< td id = " byoccurrences " style = " display:none; " >
2013-02-28 17:33:57 +00:00
< ? php p ( $_ [ 'repeat_count' ] . ' ' . $l -> t ( 'occurrences' )); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
< tr >
< th ></ th >
< td id = " bydate " style = " display:none; " >
2013-02-28 16:35:22 +00:00
< ? php p ( $_ [ 'repeat_date' ]); ?>
2012-03-26 13:24:43 +00:00
</ td >
</ tr >
</ table >
</ div >
2014-01-20 01:06:09 +00:00
< ? php endif ; ?>
2012-03-26 13:24:43 +00:00
</ div >
2012-04-22 11:15:03 +00:00
<!--< div id = " tabs-3 " >// Alarm </ div >
< div id = " tabs-4 " >// Attendees </ div >-->
2014-02-10 23:59:58 +00:00
2012-03-26 13:24:43 +00:00
</ div >