It must be the foreach() tag. When you move it to somewhere else, it can't connect to read from DB. Open the fuelcalculator.tpl and go to line 23. Place the following in line 22 before the "<?php" tag:
$aircrafts = FuelCalculatorData::findaircraft();
Let me know if it's fixed.