phpSupport code changes
Alternate Close_Date / finished_date when closing added; put in an extra input field when closing that defaults to the current system time, but can be altered by the user; this allows for tickets that were closed long ago, and forgot about, to be properly tracked by the database; it also opens up trust issues and who you have using the system; someone could lie and mess up the stats;

make this an option that can be turned on or off by the admin; have it turned off by default
commented, re-aligned the ‘close’ and ‘closenow’ sections of index.php
added variable to sql update command so that ticket_finished_date is populated also. This variable can now be used to show close date, instead of the combo of ticket_lastaction_date and ticket_status
/* I first had to manually align the code in each section so it was readable (I could not find a code aligner that worked for the life of me), then,
I did it with the addition of this php code in the output:*/
echo " <tr>
<td width='22%' align='left' valign='top'>$font Ticket Started On:</td>
<td width='78%' align='left' valign='top'><input type='text' value='".date("Y-m-d H:i:s")."' name='opened_date' size='25'></td>
</tr>";
/*This code in the ticket creation:*/
$opened_date = $_POST['opened_date'];
...
/* either set the opened date entered by user, or todays/default date */
if($opened_date){
$addeddate=$opened_date;
} else {
$addeddate=date("Y-m-d H:i:s");
}
/*Which is then added to the mysql database table via the existing:*/
$sql_query="insert into $db_prefix"."list values(NULL,'$addeddate','$addeddate',' ',.....
=== old ===
<textarea rows='7' name='updateinfo' cols='45'></textarea>
=== new ===
<textarea rows='20' name='updateinfo' cols='100'></textarea>