Abdominal pains in form of cramps, loose, green stools, many in one day, accompanied with fever are all symptoms of gastroenteritis, or bowels infection with virus, bacteria or parasite.
It is better to stop Imodium use, since its benefits aren't important ones (controls the diarrhea, green liquid stool, but, it should be avoided when fever is present).
Try to stay hydrated well, to replace the water and electrolytes you lose through watery and frequent stools.
Eat food with probiotics in order to control diarrhea.
Most of the cases of gastroenteritis solve on their own within a week.
Avoid food rich in sugars and fat, instead eat rice, toast bread, bananas.