Page 1 of 1

print notes

Posted: Tue Jan 31, 2012 1:14 am
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?

Re: print notes

Posted: Tue Jan 31, 2012 3:34 pm
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

Re: print notes

Posted: Tue Sep 25, 2012 10:32 pm
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.