Sort categories

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
jackjoe
Posts: 3
Joined: Fri Feb 03, 2006 10:04 am

Sort categories

Post by jackjoe »

Script URL: kressnernetwork.de/support/helpdesk
Version of script: 0.931
Version of PHP: 4.3x
Hosting company: Hosteurope
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: category

Write your message below:

How could I sort the categories in alphabetically order?

Greetings Jan
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Interesting question, might be useful for others too. You will have to edit files index.php, find this code inside:

Code: Select all

$sql = "SELECT * FROM `hesk_categories`";
change it to

Code: Select all

$sql = "SELECT * FROM `hesk_categories` ORDER BY `name`";
That should do the trick.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
jackjoe
Posts: 3
Joined: Fri Feb 03, 2006 10:04 am

Thanks and an other question

Post by jackjoe »

Thanks I've found it quickly.

I have an other question. on start page, if I would write a new ticket, I could not see the recorded date of the ticket:
example:
https://www.kressnernetwork.de/support/ ... .php?a=add

and this is the codeline:

Code: Select all

<li><?php echo $hesklang['recorded_time']; ?></li>
I think in this line is a fault but I dont found them.

Greetings
Jan
Klemen
Site Admin
Posts: 10141
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It doesn't display the date, just a message saying it has been recorded. See http://www.phpjunkyard.com/hesk/index.php?a=add
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
jackjoe
Posts: 3
Joined: Fri Feb 03, 2006 10:04 am

Post by jackjoe »

Is it possible to display the recorded time and date?
blair.sawler
Posts: 8
Joined: Fri Jun 09, 2006 1:41 pm

Sorting Categories in Admin_Main

Post by blair.sawler »

Thanks for the tip on sorting categories for submitting a ticket. I am trying to get the category drop down menu on the admin_main.php screen to sort by name.

How would one go about doing that?

Thanks, the software is great!
Post Reply