print notes

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
pitsllc
Posts: 8
Joined: Thu Dec 29, 2011 3:55 am

print notes

Post by pitsllc »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I would like to be able to print the notes that are hidden from users. Is it possible to have a separate ticket print for support with the notes on it?
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: print notes

Post by Klemen »

Not with current version, but please feel free to suggest this as a feature here (so I can better track it):
https://hesk.uservoice.com/forums/69851-general
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
steve
Posts: 147
Joined: Tue Mar 27, 2012 9:32 pm

Re: print notes

Post by steve »

If you want to show notes on print.php follow these steps:

Open print.php

find (around line 214)

Code: Select all

echo $hesklang['end_ticket'];
Right above that paste

Code: Select all

/* Notes */
$sql = 'SELECT t1.*, t2.`name` FROM `'.hesk_dbEscape($hesk_settings['db_pfix']).'notes` AS t1 LEFT JOIN `'.hesk_dbEscape($hesk_settings['db_pfix']).'users` AS t2 ON t1.`who` = t2.`id` WHERE `ticket`='.hesk_dbEscape($ticket['id']).' ORDER BY t1.`dt` ASC';
$res = hesk_dbQuery($sql);

echo "</br><b>Notes</b></br></br>";

while ($note = hesk_dbFetchAssoc($res))
{
$note['dt'] = hesk_date($note['dt']);

echo "

<b>Note By:</b> $note[name] - $note[dt]</br>
$note[message]</br><hr/>

";
}
i hope this helps.
-Steve
Post Reply