Shaking in your dog is due to pain because he has got accidents. Shaking or shivering is common response of dogs against pain. Pain in dogs can also lead to loss of appetite which can cause weakness. Other causes of shaking in dogs are nervousness and skin parasites. In my opinion, take your dog to vet to find out any external or internal injury and get most appropriate treatment.