%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<div class="main-wapper-inner"> <div class="top-menus"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h3><?php echo $title;?></h3> </div><!-- /input-group --> </div> </div><!-- /.col-lg-6 --> </div> <div class="home-inners"> <div class="container-fluid"> <div class="row"> <form method="post" action="<?php echo site_url('quiz/insert_quiz/');?>"> <div class="col-md-12"> <div class="form-submit"> <?php if($this->session->flashdata('message')){ echo $this->session->flashdata('message'); } ?> <div class="col-md-12"> <div class="form-group "> <label>Quiz Name <span style="color:red;">*</span></label> <!--<label for="inputEmail" class="sr-only"><?php echo $this->lang->line('quiz_name');?></label> --> <input type="text" name="quiz_name" class="form-control" placeholder="<?php echo $this->lang->line('quiz_name');?>" required autofocus> </div> </div> <div class="col-md-12"> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('description');?></label> <textarea name="description" class="form-control tinymce_textarea" ></textarea> </div> </div> <div class="col-md-6"> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('start_date');?> <span style="color:red;">*</span></label> <input type="text" name="start_date" value="<?php echo date('Y-m-d H:i:s',time());?>" class="form-control" placeholder="<?php echo $this->lang->line('start_date');?>" required > </div> <div class="form-group "> <label for="inputEmail"><?php echo $this->lang->line('duration');?> <span style="color:red;">*</span></label> <input type="text" name="duration" onkeyup="this.value=this.value.replace(/[^\d]/,'')" value="10" class="form-control" placeholder="<?php echo $this->lang->line('duration');?>" required > </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('correct_score');?> <span style="color:red;">*</span></label> <input type="text" name="correct_score" value="1" class="form-control" placeholder="<?php echo $this->lang->line('correct_score');?>" required > </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('pass_percentage');?> <span style="color:red;">*</span></label> <input type="text" name="pass_percentage" value="50" class="form-control" placeholder="<?php echo $this->lang->line('pass_percentage');?>" onkeyup="this.value=this.value.replace(/[^\d]/,'')" required > </div> <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('total_ques');?> <span style="color:red;">*</span></label> <input type="text" name="maximum_questions" value="1" class="form-control" placeholder="<?php echo $this->lang->line('total_ques');?>" onkeyup="this.value=this.value.replace(/[^\d]/,'')" required > </div> <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('time_per_question');?> </label> <br/> <input type="radio" name="time_per_question" value="1" > <?php echo $this->lang->line('yes');?> <input type="radio" name="time_per_question" value="0" checked > <?php echo $this->lang->line('no');?> </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('maximum_all_sub_questions');?> <span style="color:red;">*</span></label> <br/> <input type="radio" name="maximum_all_sub_questions" value="1" > <?php echo $this->lang->line('yes');?> <input type="radio" name="maximum_all_sub_questions" value="0" checked > <?php echo $this->lang->line('no');?> </div> <!--<div class="form-group col-md-6"> <label for="inputEmail" ><?php echo $this->lang->line('maximum_questions_each_subject');?></label> <input type="text" name="maximum_eng_questions" value="0" class="form-control" placeholder="<?php echo $this->lang->line('maximum_questions_each_subject');?>" required > </div> --> <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('q_leaderboard');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="display_leaderboard" value="1"> <?php echo $this->lang->line('yes');?> <input type="radio" name="display_leaderboard" value="0" checked> <?php echo $this->lang->line('no');?> </div> </div> <div class="col-md-6"> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('end_date');?> <span style="color:red;">*</span></label> <input type="text" name="end_date" value="<?php echo date('Y-m-d H:i:s',(time()+(60*60*24*1)));?>" class="form-control" placeholder="<?php echo $this->lang->line('end_date');?>" required > </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('maximum_attempts');?> <span style="color:red;">*</span></label> <input type="text" name="maximum_attempts" onkeyup="this.value=this.value.replace(/[^\d]/,'')" value="10" class="form-control" placeholder="<?php echo $this->lang->line('maximum_attempts');?>" required > </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('incorrect_score');?> <span style="color:red;">*</span></label> <input type="text" name="incorrect_score" onkeyup="this.value=this.value.replace(/[^\d]/,'')" value="0" class="form-control" placeholder="<?php echo $this->lang->line('incorrect_score');?>" required > </div> <div class="form-group " style="display:none;"> <label for="inputEmail" ><?php echo $this->lang->line('ip_address');?> <span style="color:red;">*</span></label> <input type="text" name="ip_address" value="" class="form-control" placeholder="<?php echo $this->lang->line('ip_address');?>" > </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('view_answer');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="view_answer" value="1" checked > <?php echo $this->lang->line('yes');?> <input type="radio" name="view_answer" value="0" > <?php echo $this->lang->line('no');?> </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('show_result');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="show_result" value="1" checked > <?php echo $this->lang->line('yes');?> <input type="radio" name="show_result" value="0" > <?php echo $this->lang->line('no');?> </div> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('form_display');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="form_display" value="1" > <?php echo $this->lang->line('yes');?> <input type="radio" name="form_display" value="0" checked> <?php echo $this->lang->line('no');?> </div> <div class="form-group "> <label for="inputEmail" >Quiz Type <span style="color:red;">*</span></label> <br> <input type="radio" name="quiz_type" value="1" checked> Quiz <input type="radio" name="quiz_type" value="0"> Practice Test </div> <?php if($this->config->item('webcam')==true){ ?> <div class="form-group "> <label for="inputEmail" ><?php echo $this->lang->line('capture_photo');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="camera_req" value="1"> <?php echo $this->lang->line('yes');?> <input type="radio" name="camera_req" value="0" checked > <?php echo $this->lang->line('no');?> </div> <?php } else { ?> <input type="hidden" name="camera_req" value="0"> <?php } ?> </div> <div class="col-md-12"> <div class="form-group"> <label><?php echo $this->lang->line('select_group');?> <span style="color:red;">*</span></label><br> <?php $gArray = explode(',',$val['gid']); foreach($group_list as $key => $val){ ?> <div class="col-sm-3"> <!-- <input type="radio" name="gids" value="<?php echo $val['gid'];?>" <?php if($key==0){ echo 'checked'; } ?> >--> <input type="checkbox" name="gids[]" value="<?php echo $val['gid'];?>" <?php if(in_array($val['gid'],$gArray)){ echo 'selected'; } ?> > <?php echo $val['group_name'];?> </div> <?php } ?> <span class="checkboxStatus"></span> </div> </div> <div class="col-md-12"> <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('question_selection');?> <span style="color:red;">*</span></label> <br> <input type="radio" name="question_selection" value="1" > <?php echo $this->lang->line('automatically');?><br> <input type="radio" name="question_selection" value="0" checked > <?php echo $this->lang->line('manually');?> </div> <!-- <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('generate_certificate');?></label> <br> <input type="radio" name="gen_certificate" value="1" > <?php echo $this->lang->line('yes');?><br> <input type="radio" name="gen_certificate" value="0" checked > <?php echo $this->lang->line('no');?> </div> <div class="form-group"> <label for="inputEmail" ><?php echo $this->lang->line('certificate_text');?></label> <textarea name="certificate_text" class="form-control" ></textarea><br> <?php echo $this->lang->line('tags_use');?> <?php echo htmlentities("<br> <center></center> <b></b> <h1></h1> <h2></h2> <h3></h3> <font></font>");?><br> {email}, {first_name}, {last_name}, {quiz_name}, {percentage_obtained}, {score_obtained}, {result}, {generated_date}, {result_id}, {qr_code} </div> --> </div> <input type="hidden" value="0" name="gen_certificate" /> <div class="form-group col-md-12"> <button class="btn btn-success button3" type="submit" onclick="return validateQuiz();"><?php echo $this->lang->line('next');?></button> <a class="btn btn-default button6" href="<?=base_url('quiz')?>"><?php echo $this->lang->line('cancel');?></a> </div> </div> </div> </form> </div> </div> </div> </div> </div> <script> function validateQuiz() { if($('[type="checkbox"]').is(":checked")){ return true }else{ $('.checkboxStatus').html("<p class='alert alert-danger'>Please assign at least one user group for this Quiz.</p>"); } return false; } </script>