Base Time Field & Ticket Class

This is the base Ticket Class edited and fields added to the SCP front
end.

These mods are based on the work from Edge with lots of thanks.
http://osticket.com/forum/discussion/78064/time-spent-manual-mod
Added Base time type & fields

I have updated the database and code using the information provided by
Edge to add a time type to the tickets. The next step is to replicate
the code for ticket statuses allowing users to create their own time
types.

I have also created a core stream called 731b6166.patch.sql which
contains the database modifications required for this to work.
Convert Static Time Type to Custom List

The original idea was to create a individual table for the time types
like ticket status but have opted for using the already working Custom
Lists.

Have updated the patch file to include most required SQL changes.

Added a new function to class.list.php to retrieve list types
information.

Updated ticket-view.inc.php to use dynamic lists.
Thread time and type

Added additional banner at the top of each threat to contain the time
and type per thread update.

Later this needs additional logic to not include this information from
clients as they will not allocate time.
Client View

Have added ticket total time to the client side view and corrected the
class.thread.php types to float and int to match the database.
Bug fix & Enhanced ticket view

Fixed bug / missing lines in class.thread.php to write information to
the ticket thread on the time along with adding logic to
ticket-view.inc.php to not show 0.00 time as not useful
Finished

Fully finished, bugs cleaned up and views now display all the correct
information as required.

Non-required logic removed from class.thread.php trying to keep this
clean as notes in class state.