phpScheduleIt
May 22, 2013, 03:47:32 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Modifications
>
Request Modification
>
Grouping resources in calendar day view
Pages: [
1
]
« previous
next »
Print
Author
Topic: Grouping resources in calendar day view (Read 665 times)
ylnahar
Newbie
Karma: 0
Posts: 9
Grouping resources in calendar day view
«
on:
May 10, 2011, 10:49:23 AM »
We have a unique need to use the scheduler for scheduling OR rooms. We would like the medical staff to basically see the OR room no. (resources) and then the procedures scheduled under them for various times. Therefore all scheduled times for a particular resource should be grouped together for the same resource. This way we want to display 15 resources one after the other.
I feel this would definitely be possible by altering the day view of the calendar. But if someone could give me some info on the modifications and where they need to be applied, I would greatly appreciate your help.
Thank you.
Yogi
Logged
Nick
Administrator
Hero Member
Karma: 15
Posts: 5419
Re: Grouping resources in calendar day view
«
Reply #1 on:
May 16, 2011, 01:56:11 PM »
Can you give an example to help me understand? Are you saying if you have resource 1 booked from 1-2, 2-3, 3-4, and resource 2 booked 12-1, 1-2, 2-3, you want to see
resource 1 1-2
resource 1 2-3
resource 1 3-4
resource 2 12-1
resource 2 1-2
resource 2 2-4
Logged
ylnahar
Newbie
Karma: 0
Posts: 9
Re: Grouping resources in calendar day view
«
Reply #2 on:
May 17, 2011, 03:18:08 PM »
Exactly. We would like to re-organize the day/week view like that.
Please advice on how to customize this. Thank you.
Yogi
Logged
Nick
Administrator
Hero Member
Karma: 15
Posts: 5419
Re: Grouping resources in calendar day view
«
Reply #3 on:
May 20, 2011, 03:22:57 PM »
I'm going to have to think about this one. You may be able to add a couple of sorts in the lib\mycalendar.class.php or lib\rescalendar.class.php functions that pull or display the reservations.
Logged
ylnahar
Newbie
Karma: 0
Posts: 9
Re: Grouping resources in calendar day view
«
Reply #4 on:
May 24, 2011, 11:38:23 AM »
Please let me know if you think this would work with the sorting functions. Thank you.
Yogi
Logged
Nick
Administrator
Hero Member
Karma: 15
Posts: 5419
Re: Grouping resources in calendar day view
«
Reply #5 on:
June 06, 2011, 01:53:01 PM »
I think this would probably be the simplest option. As a start, try changing line 62 of lib\db\mycalendardb.class.php to:
$sql .= ' ORDER BY resources.name, res.start_date, res.starttime, res.end_date, res.endtime';
And line 59 of lib\db\rescalendardb.class.php to:
$sql .= ' ORDER BY resources.name, res.start_date, res.starttime, res.end_date, res.endtime';
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...