// $("#images").append(imgHtml); document.addeditquiz.questionImage.value = response; } } }); }); </script> </li> <li> <label for="questionType">Type</label> <? displayDropDown($questionTypeItems,'questionType',$question['questionType']); ?> </li> <li> <label for="status">Status</label> <? displayDropDown($quizStatusItems,'status',$question['status']); ?> </li> <li> <label for="active">Active</label> <input type="checkbox" name="active" id="active" value="1"<? if ($question['active']==1) { echo " checked"; }?>> </li> <li><h2>Answers</h2></li> <? $answersFieldList = array("quizanswerid","answer","correct"); $answersList = $db->select("quizAnswer",$answersFieldList,array("quizquestionid"=>$quizquestionid)); $ansCount = 0; foreach ($answersList as $ans) { $ansCount++; ?> <li><label for="answer[<?php echo $ans['quizanswerid'];
//echo "</pre>"; ?> <input type="hidden" name="quizid" id="quizid" value="<?php echo $quiz['quizid']; ?> "> <ul> <li><label for="quizName">Quiz name </label> <?php echo displayInput("quizName", "text", $quiz["quizName"]); ?> </li> <li><label for="quizHeading">Quiz heading </label> <?php echo displayInput("quizHeading", "text", $quiz["quizHeading"]); ?> </li> <li><label for="status">Status</label> <? displayDropDown($quizStatusItems,'status',$quiz['status']); ?></li> <li><label for="availableDate">Available Date</label> <?php echo displayInput("availableDate", "date", $quiz["availableDate"]); ?> </li> <li><label for="endAvailableDate">End Date</label> <?php echo displayInput("endAvailableDate", "date", $quiz["endAvailableDate"]); ?> </li> <li><label for="active">Active</label> <input type="checkbox" name="active" id="active" value="1"<? if ($quiz['active']==1) { echo " checked"; }?>></li> </ul> <? if ($quizid != 0) { ?> <h2>Questions in this quiz</h2> <ul class="qinq"> <?