====== phpSupport code changes ====== * commented, re-aligned ALL of soa.php file * **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; FIXME 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 * changed spacing in config.php * **Alternate Open Date / start date** when opening a ticket was added; put in an extra input field into the 'create_ticket_form' function in functions.php to show when a user is opening a new ticket; currently it only works for non user-made tickets. FIXME make this an option that can be turned on or off by the admin; have it turned off by default * commented, re-aligned the 'create' and 'create_go' sections of index.php * added logic to sql insert variable, so that if user has entered a custom start date, it goes in when a new ticket is created /* 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 " $font Ticket Started On: "; /*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',' ',..... * increased size of textarea for update message in index.php === old === === new ===