<?php
/* This template determines the overall layout of a question. It is included by the 
 * print_question() method.
 */
?>
<table id="q<?php echo $question->id; ?>" class="question <?php echo $this->name(); ?>"><tr><td>
  <div class="info">
    <span class="no"><?php echo $number; ?></span>
    <span class="edit"><?php echo $editlink; ?></span>
    <?php if ($grade) { ?>
      <div class="grade">
        <?php echo get_string('marks', 'quiz').': '.$grade; ?>
      </div>
    <?php } ?>
  </div>
  <div class="content">
    <?php $this->print_question_formulation_and_controls($question, $state, $cmoptions, $options); ?>
  </div>
  <div class="grading">
    <?php $this->print_question_grading_details($question, $state, $cmoptions, $options); ?>
	</div>
	<?php if ($history) { ?>
		<div class="history">
			<?php echo $history; ?>
		</div>
	<?php } ?>
</td></tr></table>
