phpScheduleIt
June 19, 2013, 02:30:14 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: List resources alphabetically  (Read 468 times)
wingoo
Full Member
***

Karma: 0
Posts: 100


« on: March 09, 2012, 04:24:38 AM »

The resources appear to list in order of creation in the schedules and resources lists. Is it possible to list them alphabetically by resource name?

Also, it would be handy to have the resource image appear on the reservation screen to ensure the right resource is being booked.

Otherwise working great now.

Thank you for all the hard work you put into version 2 Nick.
Logged
funkeirox
Newbie
*

Karma: 0
Posts: 41


« Reply #1 on: March 09, 2012, 03:22:08 PM »

I have same problem wingoo with resource names i looked in template file but can't change this thing, we have to edit some function i just dont know where.
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5506


WWW
« Reply #2 on: March 12, 2012, 03:10:03 PM »

I'm fixing this for 2.1.

The changes are in lib/Database/Commands/DataConstant.php

Code:
const GET_ALL_RESOURCES =
            'SELECT *
FROM resources r
ORDER BY r.name';

Code:
const GET_SCHEDULE_RESOURCES =
            'SELECT
*
FROM
resources r
WHERE
r.schedule_id = @scheduleid AND
r.isactive = 1
ORDER BY r.name';
Logged
wingoo
Full Member
***

Karma: 0
Posts: 100


« Reply #3 on: March 12, 2012, 08:49:10 PM »

Thank you Nick, it is now alphabetic Smiley
Logged
funkeirox
Newbie
*

Karma: 0
Posts: 41


« Reply #4 on: March 12, 2012, 10:56:41 PM »

Thank you for the help nick
Logged
IflyGC
Newbie
*

Karma: 0
Posts: 5


« Reply #5 on: April 12, 2012, 03:12:51 PM »

Nick,

Thanks for posting that.  I just had to go in and put it back to sorting by resource_id and couldn't figure out why it had changed.  :-)

Great program by the way!

Dave
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!