<div class="form-group row"> <label class="col-sm-3 control-label"><?php echo $addons->__('addon_setting_show_languages'); ?> </label> <div class="col-sm-6"> <?php echo displayRadio('show_languages', $data['settings'], 'show_languages', 1); ?> </div> </div>
</h3> <ul> <? if ($qqs['questionType'] == "text") { ?> <li><? displayInput($codefieldName."question".$qqs['quizquestionid'],"text",""); ?></li> <? } else if ($qqs['questionType'] == "true/false") { ?> <li><? displayRadio($codefieldName."question".$qqs['quizquestionid'],"0|true")?><label for="0|true">True</label></li> <li><? displayRadio($codefieldName."question".$qqs['quizquestionid'],"0|false")?><label for="0|false">False</label></li> <? } else { ?> <? $answerList = $db->query("SELECT quizanswerid, answer from quizAnswer where quizquestionid=".$qqs['quizquestionid']." ORDER BY RAND()"); //$answerList = $db->select("quizAnswer",array("quizanswerid","answer"),array("quizquestionid"=>$qqs['quizquestionid'],"ORDER"=>"RAND()")); $aCount=0; foreach($answerList as $ans) { $aCount++; ?> <li><? displayRadio($codefieldName."question".$qqs['quizquestionid'],$ans['quizanswerid']."|".htmlentities($ans['answer']))?><label for="<?php echo $ans['quizanswerid']; ?> |<?php echo htmlentities($ans['answer']); ?> "><?php echo $ans['answer']; ?> </label> <? } //end answer foreach ?> <? } //end if question type ?> </ul> <?} //end question foreach ?> <button type="submit" value="Submit" class="submit">Submit Quiz</button>
<div class="form-group row"> <label class="col-sm-5 control-label">Allow Add Team</label> <div class="col-sm-6"> <?php echo displayRadio('show_add_team', $data['settings'], 'show_add_team'); ?> </div> </div> <div class="form-group row"> <label class="col-sm-5 control-label">Allow Add QRcode</label> <div class="col-sm-6"> <?php echo displayRadio('show_add_qrcode', $data['settings'], 'show_add_qrcode'); ?> </div> </div> </div> </div> <!-- end Config --> <!-- start setting lang --> <div class="tab-pane" id="language"> <div class="alert alert-info"> <button class="close" data-dismiss="alert"> × </button> <i class="fa fa-info-circle"></i> <strong><?php lang('settings_lang_training_edit_language_title');
<div class="col-sm-6"> <?php echo displayRadio('show_color_used', $data['settings'], 'show_color_used'); ?> </div> </div> <div class="form-group row"> <label class="col-sm-5 control-label"><?php lang('settings_lang_menu_show_screen_size'); ?> </label> <div class="col-sm-6"> <?php echo displayRadio('show_screen_size', $data['settings'], 'show_screen_size'); ?> </div> </div> </div> </div> <!-- end Config --> <!-- start setting lang --> <div class="tab-pane" id="language"> <div class="alert alert-info"> <button class="close" data-dismiss="alert"> × </button> <i class="fa fa-info-circle"></i> <strong><?php lang('settings_lang_training_edit_language_title');