osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now
[MOD] - Due Date on Client New Ticket Form
This is my first MOD guide (As requested by a few forum member) which will allow your clients to select a due date and time when raising a ticket. If you have any problems because it isn't clear or if you find anything that I could have done better please reply!
1. Create a folder called js in main directory. So path would be /js/
2. Copy calendar.js from /scp/js/ and paste in to newly created /js/
2a. Copy arrowleftmonth.gif
from /scp/images/ and paste in to /images/
3. Open /include/client/header.inc.php and below
save and close header.inc.php
4. Open /include/client/open.inc.php and below
"> * <?=$errors['subject']?>
save and close open.inc.php
5.Finally open /include/class.ticket.php
find (around line 1307)
$sql= 'INSERT INTO '.TICKET_TABLE.' SET created=NOW() '.
',duedate='.db_input(date('Y-m-d G:i',Misc::dbtime($var['duedate'].' '.$var['time']))).
Save and close class.ticket.php and go and test your due date field with date picker.
If your want your due date to be displayed as DD/MM/YY see this thread!http://osticket.com/forums/showpost.php?p=16926&postcount=4