added a large portion of order.php functionality
Merge branch 'KyleBranch'