function paint_feedback($sid, $rid, $sec, $additional = array()) { // get all the feedback so far, if any $hasFeedback = get_feedback($feedback, $totalCredit, $sid, $rid, $sec); // if there are is feedback, paint it and exit if ($hasFeedback) { // open the form paint_submission_form_open($additional); // paint feedback to each response echo '<table>'; array_walk($feedback, 'paint_feedback_row'); echo '</table>'; // paint total credit if (!is_null($totalCredit)) { echo _('Total credit:') . ' ' . $totalCredit; } // paint the next button // NOTE: don't call it "next", because the logic above has specific expectations about // NOTE: the cases when that button is pressed echo '<fieldset>'; echo mksubmit("go", _('Next Page')); echo '</fieldset>'; // close the form paint_submission_form_close(); // all done exit; } }
<tr> <td><?php echo $rqd; ?> </td> <th><?php echo _('Confirm Password'); ?> :</th> <td><?php echo mkpass('password2'); ?> </td> </tr> <tr> <td> </td> <td colspan="2"><?php echo mksubmit('submit'); ?> </td> </tr> </tbody></table> </form> <?php if (!$embed) { ?> </body> </html> <?php } // !$embed