phpScheduleIt
June 19, 2013, 05:58:08 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: Customize My Calendar & Bookings view  (Read 3027 times)
dmars
Newbie
*

Karma: 0
Posts: 2


« on: January 08, 2007, 08:37:44 PM »

Hello....first I must say that this program is great...if I can tweak the views a bit it will fill a great void we have in asset scheduling/management....

I am trying to change the My Calandar veiw (month, week, and day) and the Bookings view.

For the My Calandar view, I would like to display the summary - time - resources fields instead of the time - resource fields for each reservation....I would also like to remove the icons  showing it is a reoccuring event and if I am the owner

For the Bookings view, I would like to remove the name of the reserver from the display and only display the summary data.

Can anyone help me?


Thanks in advance!
Logged
eanderso
Newbie
*

Karma: 0
Posts: 1


« Reply #1 on: January 16, 2007, 05:27:39 PM »

Hi there,

I can't answer all your questions, but after fiddling around here is what I did to replace the reserver's name with the summary information in the monthly calendar view:

(using version 1.1, but likely similar in 1.2.x):

in the lib/ResCalendar.class.php, change this line:

Code:
print_month_reservations($this->reservations, $this->firstDate, array('fname', 'lname'), false);


to this:
Code:
print_month_reservations($this->reservations, $this->firstDate, array('summary'), false, $is_private);


Hope that brings you one step forward!  I imagine the variables to be replaced are similar in the Bookings and other calendars.  Cheers.
Logged
mauricev
Newbie
*

Karma: 0
Posts: 17


« Reply #2 on: March 13, 2008, 06:08:40 PM »

Right now, the month view displays the time of the day and the date, which is totally redundant. I mean I'm looking right at the booking on that very date. So why I would I want to see it again? Is there any way to have it display only the time?


Related to this, is there any to 1) remove the @ symbol in the booking popup (it's kind of redundant when the resource itself is already a room) and also have it display a list of accessories used?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #3 on: March 14, 2008, 12:25:43 PM »

Currently, the summary div that is shown is built the same way on "My Calendar" and "Schedule Calendar", which is why it shows unnecessary data.

The changes for this will be complicated and make the code messy, but you probably could do it by passing flags into the print_summary_div() method in templates/mycalendar.template.php.

This will be much easier in the 2.0 rewrite, where smarty templates will handle all the display.
Logged
mauricev
Newbie
*

Karma: 0
Posts: 17


« Reply #4 on: March 14, 2008, 01:20:57 PM »

Hmm, I'm not sure we are talking about the same thing, so I apologize for the confusion. What I am talking about is the booking text as it is printed on any given calendar. Now I see that only it prints the dates only for repeated events. That's redundant in my mind. I can already the dates and events, so only the times are relevant.
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!