Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 3 files changed
  • 0 comments
  • 1 contributor
16 SmartyTemplates/Source/Object_Talk.html
... ... @@ -0,0 +1,16 @@
  1 +{include file="header.tpl" title="Timetable"}
  2 +{foreach $Object_Talk as $talk}
  3 +<div class="Talk" id="talk_{$talk@key}">
  4 + <div class="strTalkTitle">{$talk.strTalkTitle}</div>
  5 + <div class="label_strUserName">by <span class="strUserName">{$talk.arrUser.strUserName}</span></div>
  6 + <div class="strTalkSummary">{$talk.strTalkSummary}</div>
  7 + <div class="label_strRoomName">in <span class="strRoomName">{$talk.arrRoom.strRoomName}</span></div>
  8 + <div class="label_timeStartEnd">from {if $talk.arrSlot_start.dateStart != date('Y-m-d')}{$talk.arrSlot_start.dateStart}{/if}<span class="timeStart">{$talk.arrSlot_start.timeStart}</span> to <span class="timeEnd">{$talk.arrSlot_stop.timeEnd}</span></div>
  9 + <div class="arrLinks">
  10 +{foreach $talk.arrLinks as $link}
  11 + <div class="strLink"><a href="{$link}">{$link@key}</a></div>
  12 +{/foreach}
  13 + </div>
  14 +</div>
  15 +{/foreach}
  16 +{include file="footer.tpl"}
17 classes/Object/Talk.php
@@ -92,9 +92,20 @@ function getSelf()
92 92 $objSlot = Object_Slot::brokerByID($this->intSlotID);
93 93 if (is_object($objSlot)) {
94 94 $objSlot->setFull(true);
95   - $self['arrSlot'] = $objSlot->getSelf();
96   - if ($self['arrSlot']['lastChange'] > $self['lastChange']) {
97   - $self['lastChange'] = $self['arrSlot']['lastChange'];
  95 + $self['arrSlot_start'] = $objSlot->getSelf();
  96 + if ($self['arrSlot_start']['lastChange'] > $self['lastChange']) {
  97 + $self['lastChange'] = $self['arrSlot_start']['lastChange'];
  98 + }
  99 + $self['arrSlot_stop'] = $objSlot->getSelf();
  100 + }
  101 + if ($this->intLength > 1) {
  102 + $objSlot = Object_Slot::brokerByID($this->intSlotID + ($this->intLength - 1));
  103 + if (is_object($objSlot)) {
  104 + $objSlot->setFull(true);
  105 + $self['arrSlot_stop'] = $objSlot->getSelf();
  106 + if ($self['arrSlot_stop']['lastChange'] > $self['lastChange']) {
  107 + $self['lastChange'] = $self['arrSlot_stop']['lastChange'];
  108 + }
98 109 }
99 110 }
100 111 }
6 index.php
@@ -123,6 +123,9 @@
123 123 */
124 124 $renderPage = null;
125 125
  126 +$useObjects['Object_User'] = 'current';
  127 +$arrObjects['Object_User']['current'] = Object_User::brokerCurrent();
  128 +
126 129 if (is_array($arrRequestData['pathItems']) && count($arrRequestData['pathItems']) > 0 && $arrRequestData['pathItems'][0] != '') {
127 130 foreach ($arrRequestData['pathItems'] as $pathItem) {
128 131 if (isset($arrValidObjects[$pathItem])) {
@@ -215,9 +218,6 @@
215 218 Base_Response::redirectTo('timetable');
216 219 }
217 220
218   -$useObjects['Object_User'] = 'current';
219   -$arrObjects['Object_User']['current'] = Object_User::brokerCurrent();
220   -
221 221 foreach ($arrObjects as $object_group => $data) {
222 222 foreach ($data as $key => $object) {
223 223 if (is_object($object)) {

No commit comments for this range

Something went wrong with that request. Please try again.