Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support daylong event.

  • Loading branch information...
commit 1718ed124fb13c92dc8d50dc11300ea225a5eb40 1 parent d4326e4
@k1LoW authored
View
1  views/cal/add.ctp
@@ -10,6 +10,7 @@
echo $this->Form->input('categories', array('type' => 'text'));
echo $this->Form->input('dtstart');
echo $this->Form->input('dtend');
+ echo $this->Form->input('daylong');
echo $this->Form->input('rrule_freq', array('type' => 'select', 'options' => $rrule_freqs, 'empty' => true));
echo $this->Form->input('rrule_count', array('type' => 'text'));
echo $this->Form->input('rrule_interval', array('type' => 'text'));
View
2  views/cal/edit.ctp
@@ -5,12 +5,14 @@
<legend><?php __('Edit Vevent'); ?></legend>
<?php
echo $this->Form->input('id');
+ echo $this->Form->input('uid', array('type' => 'hidden'));
echo $this->Form->input('summary', array('type' => 'text'));
echo $this->Form->input('description');
echo $this->Form->input('location', array('type' => 'text'));
echo $this->Form->input('categories', array('type' => 'text'));
echo $this->Form->input('dtstart');
echo $this->Form->input('dtend');
+ echo $this->Form->input('daylong');
echo $this->Form->input('rrule_freq', array('type' => 'select', 'options' => $rrule_freqs, 'empty' => true));
echo $this->Form->input('rrule_count', array('type' => 'text'));
echo $this->Form->input('rrule_interval', array('type' => 'text'));
View
10 views/cal/index.ctp
@@ -52,10 +52,16 @@
<div class="event <?php if($event['Vevent']['id'] % 2 == 0): ?>even<?php else: ?>odd<?php endif; ?>">
<strong><?php echo $this->Html->link($event['Vevent']['summary'], array('controller' => 'cal', 'action' => 'view', $event['Vevent']['uid'])); ?></strong>
<p>
- <strong>Start: </strong><?php echo $event['Vevent']['dtstart']; ?>
+ <strong>DTSTART: </strong><?php echo $event['Vevent']['dtstart']; ?>
</p>
<p>
- <strong>End&nbsp;&nbsp;: </strong><?php echo $event['Vevent']['dtend']; ?>
+ <strong>DTEND: </strong><?php echo $event['Vevent']['dtend']; ?>
+ </p>
+ <p>
+ <strong>Event Start: </strong><?php echo $event['Vevent']['event_start']; ?>
+ </p>
+ <p>
+ <strong>Event End: </strong><?php echo $event['Vevent']['event_end']; ?>
</p>
</div>
<?php endforeach; ?>
View
5 views/cal/view.ctp
@@ -32,6 +32,11 @@
-
<?php echo $vevent['Vevent']['dtend']; ?>
</dd>
+ <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Daylong'); ?></dt>
+ <dd<?php if ($i++ % 2 == 0) echo $class;?>>
+ <?php echo $vevent['Vevent']['daylong']; ?>
+ &nbsp;
+ </dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rrule Freq'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $vevent['Vevent']['rrule_freq']; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.