should be good enough for this week, UI needs to be replaced :( It was /ok/ 3 years ago but I don't think
I would ever reccomend using jquery / jqgrid /jq anything
 as heavily for something other than a mock. My friend wants
 to sell me on Angular JS but it just sounds like another flavor of the week... maybe its time to just start writing things
 in DOM and follow best patterns and practices (organize things well with namespacing techniques.)

 the middle tier code looks like shitty ass php code and
 needs to be re-written too but its been updated (retrofitted for the 100th time) to do what its supposed to. Anybody up for the challenge of rewriting this *completely* because I certainly do not give a fuck.