phpScheduleIt
May 21, 2013, 09:23:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Add summary to the table cell for rescalendar.php view (rescalendar.template.php  (Read 582 times)
Kyle
Newbie
*

Karma: 0
Posts: 3


« on: October 08, 2010, 09:03:08 PM »

I tried the suggestion from the topic below but I can't get it to show up on rescalendar.php

http://php.brickhost.com/forums/index.php?topic=1995.msg3701#msg3701

What I am trying to do is get the summary to show up on the day view of calendar schedule so that we can use it to print off a sheet to post of what meetings are happening for a particular day. The summary for us contains the group meeting or the name of the meeting such as "board of directors" or "conference planning meeting".

I add $res['summary'] numerous places and even did "echo 'Test'" in various places in rescalendar.template.php but can't get anything to show up on rescalendar.php when I view the schedule. Am I working with the wrong file? I can't figure out where else this might be.
Logged
Kyle
Newbie
*

Karma: 0
Posts: 3


« Reply #1 on: October 11, 2010, 08:51:00 PM »

I was able to find this under mycalendar.templates.php

I added this around line 180

$thissummary = $res['summary'];   
               echo "<p>&#8226; <a $js href=\"javascript:reserve('" . RES_TYPE_MODIFY. "','','','{$res['resid']}','{$res['scheduleid']}');\">" . Time::formatTime($res['starttime']) . (($res['start_date'] < $datestamps[$date]) ? ' [' . translate_date('general_date', $res['start_date']) . ']' : '') . ' - '  . Time::formatTime($res['endtime']) . (($res['end_date'] > $datestamps[$date]) ? ' [' . translate_date('general_date', $res['end_date']) . ']' : '') . ' ' . $res['name'] . '</a> - <strong>' . $thissummary . '</strong>';


there's no reason you need the $thissummary and can't just use $res['summary'] AFAIK but I threw that in there to make it easier to see the change I made in the long echoed line.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!