// set the quiz as published
            $quiz->republish($member->id);
        }
    } else {
        $quiz_exist = false;
    }
} else {
    $quiz_exist = false;
}
if ($quiz_exist) {
    ?>
<div class="framePanel rounded">
<h2 id="title_quiz_result">Quiz Updated!</h2>
<div class="content-container"><p>
You have successfully updated your quiz. Your quiz will now be available under the topic <?php 
    echo $quiz->category();
    ?>
. It will also turn up in search queries. You will continue to receive points when users take your quiz! Good luck!</p>
</div></div>
<div id="takequiz-preview" class="frame rounded">
  <h2><?php 
    echo $quiz->quiz_name;
    ?>
</h2>
  <?php 
    if ($quiz->quiz_picture != "none.gif") {
        ?>
  <img src="../quiz_images/imgcrop.php?w=320&amp;h=213&amp;f=<?php 
        echo $quiz->quiz_picture;
        ?>
" width="320" height="213" alt="" />