<ul class="page-action"> <li><a href="<?php echo ENTRADA_URL; ?> /admin/evaluations/questions?form_id=<?php echo $FORM_ID; ?> ">Attach Evaluation Questions</a></li> </ul> </div> <?php } $query = "SELECT a.*, b.*\n\t\t\t\t\t\t\t\t\t\t\tFROM `evaluation_form_questions` AS a\n\t\t\t\t\t\t\t\t\t\t\tJOIN `evaluations_lu_questions` AS b\n\t\t\t\t\t\t\t\t\t\t\tON a.`equestion_id` = b.`equestion_id`\n\t\t\t\t\t\t\t\t\t\t\tWHERE a.`eform_id` = " . $db->qstr($FORM_ID) . "\n\t\t\t\t\t\t\t\t\t\t\tORDER BY a.`question_order` ASC"; $questions = $db->GetAll($query); if ($questions) { Models_Evaluation::getQuestionAnswerControls($questions, $FORM_ID, $ALLOW_QUESTION_MODIFICATIONS); } else { $ONLOAD[] = "\$('display-no-question-message').show()"; } ?> <div id="display-no-question-message" class="display-generic" style="display: none"> There are currently <strong>no questions</strong> associated with this evaluation form.<br /><br />To create questions in this form click the <strong>Attach Evaluation Questions</strong> link above. </div> </td> </tr> </tbody> </table> <div id="disable-form-confirmation-box" class="modal-confirmation"> <form action="<?php echo ENTRADA_URL; ?>
?> <input type="hidden" name="request_code" value="<?php echo $code; ?> " /> <?php } ?> <input type="hidden" name="step" value="2" /> <?php $query = "\tSELECT a.*, b.*, c.`questiontype_shortname`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM `evaluation_form_questions` AS a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN `evaluations_lu_questions` AS b\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON a.`equestion_id` = b.`equestion_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tJOIN `evaluations_lu_questiontypes` AS c\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tON b.`questiontype_id` = c.`questiontype_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE a.`eform_id` = " . $db->qstr($evaluation_record["eform_id"]) . "\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tORDER BY a.`question_order` ASC"; $questions = $db->GetAll($query); $total_questions = 0; if ($questions) { $total_questions = count($questions); echo Models_Evaluation::getQuestionAnswerControls($questions, $PROCESSED["eform_id"], false, true, $eprogress_id); } else { $ERROR++; $ERRORSTR[] = "There are no questions currently available for this evaluation. This problem has been reported to a system administrator; please try again later."; application_log("error", "Unable to locate any questions for evaluation [" . $evaluation_record["evaluation_id"] . "]. Database said: " . $db->ErrorMsg()); } ?> <div class="space-above medium"> <input type="button" class="btn" style="float: left; margin-right: 10px" onclick="window.location = '<?php echo ENTRADA_URL; ?> /evaluations'" value="Exit Evaluation" /> <input type="submit" class="btn btn-primary" style="float: right" value="Submit Evaluation" /> </div> <div class="clear"></div> </form>