Add new views.
authorJan Schneider <jan@fe1-webmail.dev.sapo.pt>
Fri, 15 May 2009 13:12:59 +0000 (14:12 +0100)
committerJan Schneider <jan@horde.org>
Fri, 15 May 2009 13:32:55 +0000 (15:32 +0200)
kronolith/templates/index/agenda.inc [new file with mode: 0644]
kronolith/templates/index/tasks.inc [new file with mode: 0644]
kronolith/templates/index/year.inc [new file with mode: 0644]

diff --git a/kronolith/templates/index/agenda.inc b/kronolith/templates/index/agenda.inc
new file mode 100644 (file)
index 0000000..6d5d727
--- /dev/null
@@ -0,0 +1,32 @@
+<div id="kronolithViewAgenda" class="kronolithView kronolithViewAgenda" style="display:none">
+
+<table class="kronolithView kronolithViewAgenda">
+<caption>
+    <a title="<?php echo _("Today") ?>" class="kronolithToday"><?php echo _("Today") ?></a>
+    <a title="<?php echo _("Previous") ?>" class="kronolithPrev">&lt;</a>
+    <a title="<?php echo _("Next") ?>" class="kronolithNext">&gt;</a>
+    <span><?php echo _("Agenda") ?></span>
+</caption>
+<tbody class="kronolithViewBody">
+<?php
+for ( $i = 1; $i < 8; $i++ ) {
+?>
+<tr class="kronolithRow kronolithRow<?= fmod($i,2) ? 'Even' : 'Odd' ?>">
+<td class="kronolithFirstCol">Mon, Apr <?= 6+$i ?></td>
+<td class="kronolithCol">
+
+    <div id="kronolithEventmonthinternal|filipe4b0da45c36b92f7e1b297becfadefdf0" calendar="internal|filipe" eventid="4b0da45c36b92f7e1b297becfadefdf0" class="kronolithEvent" style="color: rgb(255, 185, 18); -moz-user-select: none;"><span class="kronolithDate">10h00</span> <span class="kronolithSep">&middot;</span> assssssssssas</div>
+    <div id="kronolithEventmonthinternal|filipe4b0da45c36b92f7e1b297becfadefdf0" calendar="internal|filipe" eventid="4b0da45c36b92f7e1b297becfadefdf0" class="kronolithEvent" style="color: rgb(255, 185, 18); -moz-user-select: none;">assssssssssas</div>
+    <div id="kronolithEventmonthinternal|filipe4b0da45c36b92f7e1b297becfadefdf0" calendar="internal|filipe" eventid="4b0da45c36b92f7e1b297becfadefdf0" class="kronolithEvent" style="color: rgb(255, 185, 18); -moz-user-select: none;">assssssssssas</div>
+    <div id="kronolithEventmonthinternal|filipe4b0da45c36b92f7e1b297becfadefdf0" calendar="internal|filipe" eventid="4b0da45c36b92f7e1b297becfadefdf0" class="kronolithEvent" style="color: rgb(0, 136, 217); -moz-user-select: none;"><span class="kronolithDate">12h00</span> <span class="kronolithSep">&middot;</span> assssssssssas</div>
+                       
+</td>
+</tr>
+<?php
+}
+?>
+
+</tbody>
+</table>
+
+</div>
diff --git a/kronolith/templates/index/tasks.inc b/kronolith/templates/index/tasks.inc
new file mode 100644 (file)
index 0000000..606af8a
--- /dev/null
@@ -0,0 +1,41 @@
+<div id="kronolithViewTasks" class="kronolithView kronolithViewTasks" style="display:none">
+
+<table class="kronolithView kronolithViewTasks">
+<caption>
+    <span><?php echo _("Tasks") ?></span>
+</caption>
+
+<tbody class="kronolithViewBody">
+<?php
+for ( $i = 0; $i < 10; $i++ ) {
+?>
+<tr class="kronolithRow">
+<td class="kronolithCol kronolithTask<?php echo ($i == 1) ? 'Completed' : '' ?><?php echo ($i >= 8) ? ' kronolithTaskDue' : '' ?>">
+    Verify IE compatibility
+<?php
+if ( $i == 5 ) {
+?>
+    <span class="kronolithSep">&middot;</span>
+    <span class="kronolithDate">Apr 12, 2009</span>
+    <span class="kronolithSep">&middot;</span>
+<?php
+}
+if ( $i >= 8 ) {
+?>
+    <span class="kronolithSep">&middot;</span>
+    <span class="kronolithDate">Apr 8, 2009</span>
+    <span class="kronolithSep">&middot;</span>
+<?php
+}
+?>
+<span class="kronolithInfo">Probably there should be changes in IE's CSS so that it displays properly</span><br />
+</td>
+</tr>
+<?php
+}
+?>
+
+</tbody>
+</table>
+
+</div>
diff --git a/kronolith/templates/index/year.inc b/kronolith/templates/index/year.inc
new file mode 100644 (file)
index 0000000..ccc73d4
--- /dev/null
@@ -0,0 +1,50 @@
+<div id="kronolithViewYear" class="kronolithView kronolithViewYear" style="display:none">
+
+<table class="kronolithView kronolithViewYear">
+<caption>
+    <a title="<?php echo _("Previous") ?>" class="kronolithPrev">&lt;</a>
+    <a title="<?php echo _("Next") ?>" class="kronolithNext">&gt;</a>
+    <span><?php echo $today->format("Y") ?></span>
+</caption>
+</table>
+
+<?php
+$month = array("January", "February","March","April","May","June","July","August","September","October","November","December");
+for ( $i = 0; $i < 12; $i++ ) {
+?>
+<div class="kronolithMinical">
+
+<table cellspacing="1" cellpadding="0" border="0">
+<caption>
+    <span id="kronolithMinicalDate" date="20090401"><?= $month[$i] ?></span>
+</caption>
+<thead>
+<tr>
+   <th class="kronolithMinicalEmpty">&nbsp;</th>
+   <th title="<?php echo _("Sunday") ?>"><?php echo substr(_("Sunday"),0,1) ?></th>
+   <th title="<?php echo _("Monday") ?>"><?php echo substr(_("Monday"),0,1) ?></th>
+   <th title="<?php echo _("Tuesday") ?>"><?php echo substr(_("Tuesday"),0,1) ?></th>
+   <th title="<?php echo _("Wednesday") ?>"><?php echo substr(_("Wednesday"),0,1) ?></th>
+   <th title="<?php echo _("Thursday") ?>"><?php echo substr(_("Thursday"),0,1) ?></th>
+   <th title="<?php echo _("Friday") ?>"><?php echo substr(_("Friday"),0,1) ?></th>
+   <th title="<?php echo _("Saturday") ?>"><?php echo substr(_("Saturday"),0,1) ?></th>
+</tr>
+</thead>
+<tbody>
+
+<!-- this isn't right, needs to be the right month -->
+<tr><td class="kronolithMinicalWeek" date="20090329">13</td><td date="20090329" class="kronolithMinicalEmpty">29</td><td date="20090330" class="kronolithMinicalEmpty">30</td><td date="20090331" class="kronolithMinicalEmpty">31</td><td date="20090401" class="">1</td><td date="20090402" class="">2</td><td date="20090403" class="">3</td><td date="20090404" class="">4</td></tr>
+<tr><td class="kronolithMinicalWeek" date="20090405">14</td><td date="20090405">5</td><td date="20090406">6</td><td date="20090407">7</td><td date="20090408">8</td><td date="20090409">9</td><td date="20090410">10</td><td date="20090411">11</td></tr>
+<tr><td class="kronolithMinicalWeek" date="20090412">15</td><td date="20090412">12</td><td date="20090413">13</td><td date="20090414">14</td><td date="20090415">15</td><td date="20090416">16</td><td date="20090417">17</td><td date="20090418">18</td></tr>
+<tr><td class="kronolithMinicalWeek" date="20090419">16</td><td date="20090419">19</td><td date="20090420">20</td><td date="20090421">21</td><td date="20090422">22</td><td date="20090423">23</td><td date="20090424">24</td><td date="20090425">25</td></tr>
+<tr><td class="kronolithMinicalWeek" date="20090426">17</td><td date="20090426">26</td><td date="20090427">27</td><td date="20090428">28</td><td date="20090429">29</td><td date="20090430">30</td><td date="20090501" class="kronolithMinicalEmpty">1</td><td date="20090502" class="kronolithMinicalEmpty">2</td></tr>
+
+</tbody>
+</table>
+
+</div>
+<?php
+}
+?>
+
+</div>