change quiz-report-form.tpl.php

hi every one; I need to change this template to have as a final result a view similar to the quiz take template. i want to have only one question result by the form with a next button that displays the next question result form. i added a div that have a button in the bottom of the div, I think that i have to remove the "foreach" loop and add a function to the button that incmrements the $ key... this is my idea, but i have a problem to make it well coded in php. Can you give a help please. thank you Sanachr