phpScheduleIt
May 25, 2013, 05:00:15 AM
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
>
Help and Support
>
phpScheduleIt 2.x
>
List resources alphabetically
Pages: [
1
]
« previous
next »
Print
Author
Topic: List resources alphabetically (Read 460 times)
wingoo
Full Member
Karma: 0
Posts: 100
List resources alphabetically
«
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
Re: List resources alphabetically
«
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: 5419
Re: List resources alphabetically
«
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
Re: List resources alphabetically
«
Reply #3 on:
March 12, 2012, 08:49:10 PM »
Thank you Nick, it is now alphabetic
Logged
funkeirox
Newbie
Karma: 0
Posts: 41
Re: List resources alphabetically
«
Reply #4 on:
March 12, 2012, 10:56:41 PM »
Thank you for the help nick
Logged
IflyGC
Newbie
Karma: 0
Posts: 5
Re: List resources alphabetically
«
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
« 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...