BUG fixed

Fixed some BUGs in the layout of server.php.
Begin to write a new function that can generate new order from current
existing location.