phpScheduleIt
May 23, 2013, 05:09:49 AM *
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: Help to add a column to Approve/Manage Reservations  (Read 1081 times)
MeGo
Newbie
*

Karma: 0
Posts: 8


« on: February 27, 2008, 07:01:21 PM »

Good afternoon,
First of all, thanks for all the hard work you've done to create this wonderful app.

Here is my question.   I have created two schedules for managing a group of 12 people.  One schedule is to request time off, and the other one to show availiability for over time.  Each person was created as a resource under each schedule.  With this setup, I have been able to accomplish exactly what I need to manage the group, except for one thing.  When I hit the Approve/Manage Reservations, I am presented with a table showing Start/End Date, User, Resource Name, Start/End Time, View, Modify/Approve, and Delete.   The problem is, I am able to see the reservations, but I am unable to see if it was made on the Time Off, or the Overtime schedules.  Is there any way to add the Schedule Name to the table?

Thank you very much in advance for your time and assistance.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: February 28, 2008, 09:43:40 AM »

To do this you would need to make 2 modifications:

1) lib/db/AuthDB.class.php, change the query on line 79 to join on to schedules for each reservation and return the schedule_name.

2) templates/admin.template.php, add a row after line 728 to display the schedule name, just like the other columns do.
Logged
MeGo
Newbie
*

Karma: 0
Posts: 8


« Reply #2 on: March 07, 2008, 03:11:22 PM »

Nick, thanks for your reply.  However, I have been unable to find the query you refer to on line 79 of the lib/db/AuthDB.class.php file.  Could you please post a sample of the code?

Thank you very much.  I am fairly new to this, so please excuse my stupidity  :wink:
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: March 10, 2008, 09:56:09 AM »

Sorry about that, it's AdminDB.class.php, not AuthDB.class.php
Logged
MeGo
Newbie
*

Karma: 0
Posts: 8


« Reply #4 on: May 13, 2008, 09:28:19 AM »

Nick, thanks a lot for your reply.

Sorry to be a pain in the butt, but due to my limited PHP knowledge I have struggled trying to make these simple changes.  Do you think is possible for you to post the code for the modified query?

Thank you very much for your help.
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!