commitall
This commit is contained in:
76
application/views/teacher/TF-evaluation-action.php
Normal file
76
application/views/teacher/TF-evaluation-action.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
<div class="stud-drade-wrap">
|
||||
<a href="<?php echo base_url('teacher/exam-evaluate') ?>" class="from-group text-dark mr-2" style="font-size:23px">
|
||||
<i class="fas fa-long-arrow-alt-left">
|
||||
</i>
|
||||
</a>
|
||||
<h4 class="content-heading-sec">Evaluation</h4>
|
||||
</div>
|
||||
<div class="exam-evl-action">
|
||||
<?php if(isset($questions_details) && !empty($questions_details))
|
||||
{ ?>
|
||||
|
||||
<div class="exam-eval-action-header"><?php echo $questions_details['e_name'] .' - ' . $questions_details['bs_date'] ?></div>
|
||||
|
||||
<table class="action-sec">
|
||||
<tr class="action-tab-heading">
|
||||
<th>Name</th>
|
||||
<th>Status</th>
|
||||
<th>Date</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
|
||||
<?php if(isset($students_data) && !empty($students_data)){
|
||||
|
||||
foreach ($students_data as $key => $value) {
|
||||
|
||||
if ($value['appeared'] == 'yes') { ?>
|
||||
|
||||
<tr>
|
||||
<td class="name-strong"><?php echo $value['student_name']; ?></td>
|
||||
<td>Submitted</td>
|
||||
<td><?php echo date('d-m-Y', strtotime($value['date_of_exam'])) ; ?></td>
|
||||
<td>
|
||||
<?php if ($value['status'] == 1) { ?>
|
||||
|
||||
<a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>">
|
||||
<input type="button" class="tabl-evl-btn" value="Re-Evaluate">
|
||||
</a>
|
||||
|
||||
<?php }else if($value['status'] == 2){ ?>
|
||||
|
||||
<a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>">
|
||||
<input type="button" class="tabl-evl-btn" value="View">
|
||||
</a>
|
||||
|
||||
<?php } else{?>
|
||||
<a href="<?php echo base_url() ?>teacher/evaluate-questions-paper/<?php echo $questions_details['id'] .'/'. $value['student_id'];?>">
|
||||
<input type="button" class="tabl-evl-btn" value="Evaluate">
|
||||
</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }else{ ?>
|
||||
|
||||
<tr>
|
||||
<td class="name-strong"><?php echo $value['student_name']; ?></td>
|
||||
<td>Pending</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
</tr>
|
||||
|
||||
<?php }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
</main>
|
84
application/views/teacher/TF-evaluation-details.php
Normal file
84
application/views/teacher/TF-evaluation-details.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap main-inner-content main-inner-content-new ">
|
||||
<div class="stud-drade-wrap">
|
||||
<div class="from-group back_btn mr-2" style="font-size:23px">
|
||||
<i class="fas fa-long-arrow-alt-left">
|
||||
</i>
|
||||
</div>
|
||||
<h4 class="content-heading-sec">Evaluation</h4>
|
||||
</div>
|
||||
|
||||
<div class="stud-dev-wrap">
|
||||
<div class="stud-wrap-left">
|
||||
|
||||
<?php if (isset($session_results) && $session_results != '') {
|
||||
|
||||
foreach ($session_results as $key => $value) {
|
||||
?>
|
||||
|
||||
<div class="stud-row-one">
|
||||
<h6><?php echo $value['e_name'] .' '. $value['bs_date'] ?></h6>
|
||||
<input type="button" class="phy-evlauate" value="View" onclick="get_subjects(<?php echo $value['exam_id']; ?>)">
|
||||
</div>
|
||||
|
||||
<?php } } ?>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="eval-wrap-right">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
|
||||
function get_subjects(exam_id)
|
||||
{
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/get_exam_subject_details/'+exam_id,
|
||||
type:'POST',
|
||||
success: function(result) {
|
||||
let header_one = '';
|
||||
|
||||
var res = JSON.parse(result);
|
||||
console.log(res);
|
||||
if (res.length=== 0) {
|
||||
ul_data = '<div class="stud-evalutaion-detail-header">No Data Found</div><ul class="eval-sub"></ul>';
|
||||
$('.eval-wrap-right').append(ul_data);
|
||||
}else{
|
||||
console.log(res.length)
|
||||
var i = 0;
|
||||
$.each(res, function(index, value){
|
||||
// console.log(value['question_id']);
|
||||
if (i==0) {
|
||||
ul_data = '<div class="stud-evalutaion-detail-header">'+ value['e_name'] +'</div><ul class="eval-sub"></ul>';
|
||||
} i++;
|
||||
|
||||
header_one +='<li><div class="phy-sec-start"><img src="<?php echo base_url() ?>assets_admin/images/icons/'+ value['subject_icon']+'" class="mx-auto d-block img-fluid"></div><div class="phy-sec-mid"><p>'+ value['subject_name'] +'</p><p>By: '+ value['teacher_name'] +' Date : '+ value['exam_date'] +'</p> </div><div class="phy-sec-last"><a href="<?php echo base_url() ?>teacher/evaluate-questions/'+ value['question_id'] +'"><input type="button" class="phy-evlauate" value="Evaluate"></a></div></li>';
|
||||
});
|
||||
|
||||
$('.eval-wrap-right').html(ul_data);
|
||||
$('.eval-sub').html(header_one);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function(){
|
||||
$('.back_btn').click(function(){
|
||||
parent.history.back();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</main>
|
||||
|
361
application/views/teacher/TF-evaluation-qn1.php
Normal file
361
application/views/teacher/TF-evaluation-qn1.php
Normal file
@@ -0,0 +1,361 @@
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style2.css">
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
<div class="stud-drade-wrap">
|
||||
<a href="<?php echo base_url('teacher/evaluate-questions/'.$questions_id); ?>" class="text-dark" style="font-size:23px">
|
||||
<i class="fas fa-long-arrow-alt-left"> </i>
|
||||
</a>
|
||||
<h4 class="content-heading-sec">Evaluation</h4>
|
||||
</div>
|
||||
<div class="evaluation_head">
|
||||
<?php if (isset($exam_data) && !empty($exam_data)) { ?>
|
||||
|
||||
<div class="test_heading">
|
||||
<h6>Tests & Exams /<span><?php echo $exam_data['subject_name'] . ' : '. $exam_data['e_name'] ?></span></h6>
|
||||
</div>
|
||||
<div class="test_score">
|
||||
<?php echo $exam_data['total_marks'] ?> marks
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if(isset($questions_data) && !empty($questions_data)){
|
||||
$number = 0;
|
||||
foreach ($questions_data as $key => $value) {
|
||||
$number++;
|
||||
|
||||
if ($value['question_type_id'] == 1) { ?>
|
||||
|
||||
<div class="evaluation-wrap <?php echo 'counter_'.$number; ?>" id="<?php echo 'q'.$value['id'] ?>">
|
||||
<div class="evaluation_q">
|
||||
<h5>Question : <?php echo $number; ?></h5>
|
||||
<p><?php echo $value['question_name']; ?></p>
|
||||
<?php if (isset($value['image']) && !empty($value['image'])) {?>
|
||||
<img src="<?php echo base_url() .''. $value['image'] ?>" width="auto" height="120">
|
||||
<?php } ?>
|
||||
<h5>Select your answer from below options:</h5>
|
||||
|
||||
<?php if ($value['answer'] == 'A' ) { ?>
|
||||
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked></div>
|
||||
<div class="option-select-left"><?php echo $value['option_a']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_b']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_c']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_d']; ?></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($value['answer'] == 'B' ) { ?>
|
||||
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_a']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked></div>
|
||||
<div class="option-select-left"><?php echo $value['option_b']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_c']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_d']; ?></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($value['answer'] == 'C' ) { ?>
|
||||
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" ></div>
|
||||
<div class="option-select-left"><?php echo $value['option_a']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_b']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked></div>
|
||||
<div class="option-select-left"><?php echo $value['option_c']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_d']; ?></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php if ($value['answer'] == 'D' ) { ?>
|
||||
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" ></div>
|
||||
<div class="option-select-left"><?php echo $value['option_a']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_b']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value=""></div>
|
||||
<div class="option-select-left"><?php echo $value['option_c']; ?></div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked></div>
|
||||
<div class="option-select-left"><?php echo $value['option_d']; ?></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="score_display <?php echo ($value['correct_answer'] == $value['answer']) ? 'score_correct' : "score_wrong" ?>">
|
||||
<h5><?php echo ($value['correct_answer'] == $value['answer']) ? 'Correct' : "Incorrect" ?></h5>
|
||||
<p>Selected answer is "<?php echo $value['answer'] ?>", Correct answer is "<?php echo $value['correct_answer'] ?>"</p>
|
||||
</div>
|
||||
<div class="score_sec">
|
||||
<span>Scored</span>
|
||||
<div class="score ">
|
||||
<?php echo $value['correct_answer'] == $value['answer'] ? $value['question_mark'] : 0 ?>
|
||||
</div>
|
||||
<span> out of <?php echo $value['question_mark'] ?></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php }else if( $value['question_type_id'] == 2){ ?>
|
||||
|
||||
<div class="evaluation-wrap <?php echo 'counter_'.$number; ?>" id="<?php echo 'q'.$value['id'] ?>" >
|
||||
<div class="evaluation_q">
|
||||
<h5>Question : <?php echo $number; ?></h5>
|
||||
<p><?php echo $value['question_name']; ?></p>
|
||||
<?php if (isset($value['image']) && !empty($value['image'])) {?>
|
||||
<img src="<?php echo base_url() .''. $value['image'] ?>" width="auto" height="120">
|
||||
<?php } ?>
|
||||
<h5>Select your answer from below options:</h5>
|
||||
<?php if ($value['answer'] == 1) { ?>
|
||||
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked></div>
|
||||
<div class="option-select-left">True</div>
|
||||
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" ></div>
|
||||
<div class="option-select-left">False</div>
|
||||
</div>
|
||||
<?php } else if ($value['answer'] == 0) {?>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" ></div>
|
||||
<div class="option-select-left">True</div>
|
||||
</div>
|
||||
<div class="option-select-sec">
|
||||
<div class="option-select-right"><input type="radio" value="" checked=""></div>
|
||||
<div class="option-select-left">False</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="score_display <?php echo ($value['correct_answer'] == $value['answer']) ? 'score_correct' : "score_wrong" ?>">
|
||||
<h5><?php echo ($value['correct_answer'] == $value['answer']) ? 'Correct' : "Incorrect" ?></h5>
|
||||
<p>Selected answer is "<?php echo ($value['answer'] == '1') ? 'True' : "False"; ?>", Correct answer is "<?php echo ($value['correct_answer'] == '1') ? 'True' : "False";?>"</p>
|
||||
</div>
|
||||
<div class="score_sec">
|
||||
<span>Scored</span>
|
||||
<div class="score">
|
||||
<?php echo ($value['correct_answer'] == $value['answer']) ? $value['question_mark'] : 0 ?>
|
||||
</div>
|
||||
<span> out of <?php echo $value['question_mark'] ?></span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php }else if( $value['question_type_id'] == 3 || $value['question_type_id'] == 4){ ?>
|
||||
|
||||
|
||||
<div class="evaluation-wrap <?php echo 'counter_'.$number; ?>" id="<?php echo 'q'.$value['id'] ?>">
|
||||
<div class="evaluation_q">
|
||||
<h5>Question : <?php echo $number; ?></h5>
|
||||
<p><?php echo $value['question_name']; ?></p>
|
||||
<?php if (isset($value['image']) && !empty($value['image'])) {?>
|
||||
<img src="<?php echo base_url() .''. $value['image'] ?>" width="auto" height="120">
|
||||
<?php } ?>
|
||||
<h5>Answer</h5>
|
||||
<p><?php echo $value['answer']; ?></p>
|
||||
</div>
|
||||
<div class="score_sec">
|
||||
<span>Scored</span>
|
||||
<div class="score">
|
||||
<input type="text" class="answer score" name="answer" id="<?php echo 'text_'.$value['id'] ?>" value="<?php echo $value['review']; ?>">
|
||||
|
||||
<input type="hidden" name="out_of" id="<?php echo 'max_'.$value['id'] ?>" value="<?php echo $value['question_mark'] ?>">
|
||||
|
||||
</div>
|
||||
<span> out of <?php echo $value['question_mark'] ?></span>
|
||||
<button class="score_submit" id="<?php echo 'scoreSubmit_'.$value['id'] ?>" onclick="submit_ans(this.id)">Submit</button>
|
||||
</div>
|
||||
<span class="text-success msg"></span>
|
||||
</div>
|
||||
<?php }
|
||||
}
|
||||
} ?>
|
||||
|
||||
<div class="btn-previous-sec">
|
||||
<div class="btn-pre-one">
|
||||
<input type="button" value="Previous question" class="btn-pre-inner" onclick="prev()">
|
||||
</div>
|
||||
<div class="btn-pre-one">
|
||||
<button type="button" value="" class="btn-next-inner" onclick="next()">Next question</button>
|
||||
</div>
|
||||
|
||||
<div class="btn-pre-one btn-submit">
|
||||
<button type="button" value="" class="phy-evlauate btn btn-success" style="background:#28a745; font-size: 13px;" data-toggle="modal" data-target="#submitModal">Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- model for click -->
|
||||
<div class="viewDoc delete-modal-wrap" >
|
||||
<div class="modal fade" id="submitModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<form action="<?php echo base_url()?>teacher/teacher_review_status" method="post">
|
||||
<?php if (isset($exam_data) && !empty($exam_data)) { ?>
|
||||
<input type="hidden" name="exams_id" value="<?php echo $exam_data['id']; ?>">
|
||||
<?php } ?>
|
||||
|
||||
<?php if(isset($questions_data) && !empty($questions_data)){ ?>
|
||||
<input type="hidden" name="student_id" value="<?php echo $questions_data[0]['student_id']; ?>">
|
||||
<input type="hidden" name="status" value="<?php echo $questions_data[0]['status']; ?>">
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="delete-modal">
|
||||
<i class="fas fa-exclamation-circle"></i>
|
||||
<input type="hidden" id="sdid" />
|
||||
<h4 >Are you sure?</h4>
|
||||
<p>Are you sure you want to submit the record?</p>
|
||||
<div class="delete-modal-btn">
|
||||
<button type="submit" class="subject_addbtn subject_addbtn_green btn_submit_answer" >Submit</button>
|
||||
<button type="button" class="subject_addbtn subject_addbtn_cancel" data-dismiss="modal">Cancel</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php if(isset($questions_data) && !empty($questions_data)){
|
||||
|
||||
if ($questions_data[0]['status'] == 2) {
|
||||
?>
|
||||
<style type="text/css">
|
||||
.btn-success, .score_submit{
|
||||
display: none;
|
||||
}
|
||||
|
||||
</style>
|
||||
<script >
|
||||
$('.answer').attr('readonly', true);
|
||||
</script>
|
||||
<?php } } ?>
|
||||
|
||||
<script>
|
||||
|
||||
|
||||
var visibleDiv = 0;
|
||||
function showDiv()
|
||||
{
|
||||
$('.evaluation-wrap').hide();
|
||||
$(".evaluation-wrap:eq("+ visibleDiv +")").show();
|
||||
}
|
||||
showDiv();
|
||||
|
||||
function next() {
|
||||
$('.msg').text('');
|
||||
if (visibleDiv == $('.evaluation-wrap').length-1) {
|
||||
visibleDiv = 0;
|
||||
}else{
|
||||
visibleDiv ++;
|
||||
}
|
||||
|
||||
showDiv();
|
||||
}
|
||||
|
||||
function prev()
|
||||
{
|
||||
$('.msg').text('');
|
||||
if (visibleDiv == 0) {
|
||||
visibleDiv = $('.evaluation-wrap').length-1;
|
||||
}
|
||||
else{
|
||||
visibleDiv --;
|
||||
}
|
||||
showDiv();
|
||||
}
|
||||
|
||||
function submit_ans(id)
|
||||
{
|
||||
var data = id;
|
||||
var split = data.split('_',2);
|
||||
var exam_ans_id = split[1];
|
||||
var mark = $("#text_"+exam_ans_id).val();
|
||||
var limit_mark = $("#max_"+exam_ans_id).val();
|
||||
|
||||
if (Number(mark) <= Number(limit_mark)) {
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append('exam_answer_id', exam_ans_id);
|
||||
formData.append('marks',mark);
|
||||
$.ajax({
|
||||
url: '<?php echo base_url().'teacher/get_questionsAndAnswerEvaluation/'?>',
|
||||
type:'POST',
|
||||
data:formData,
|
||||
contentType:false,
|
||||
processData:false,
|
||||
success: function(result) {
|
||||
if (result == 1) {
|
||||
$('#text_'+ exam_ans_id).val(mark);
|
||||
$('.msg').text('Marks added into Database');
|
||||
}else{
|
||||
alert('cannot enter more than out of marks');
|
||||
$('#text_'+ exam_ans_id).val('');
|
||||
$("#text_"+exam_ans_id).focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}else{
|
||||
alert('cannot enter more than out of marks');
|
||||
$('#text_'+ exam_ans_id).val('');
|
||||
$("#text_"+exam_ans_id).focus();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// function pop_up_message() {
|
||||
// $('#timeUpModal').modal({
|
||||
// backdrop: 'static',
|
||||
// keyboard: false
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
</script>
|
143
application/views/teacher/TF-grade-exam-details.php
Normal file
143
application/views/teacher/TF-grade-exam-details.php
Normal file
@@ -0,0 +1,143 @@
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style2.css">
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
|
||||
<div class="class-head">
|
||||
|
||||
<a href="<?php echo base_url().'teacher/teacher_grades'; ?>" style="text-decoration-line: none;color: inherit;">
|
||||
<h3 class="common-heading"> <i class="fas fa-long-arrow-alt-left"></i>Student Grades </h3> </a>
|
||||
<div class="date-month-picker">
|
||||
<!-- <input type="month" id="start" name="start" min="2018-03" value="2018-05"> -->
|
||||
<div class="calendar-main test-exam-datepicker">
|
||||
<div class="calendar-cover" id="calendar">
|
||||
<!-- <div class="calendar-date-year">
|
||||
<img src="<?= base_url(); ?>assets_student/images/calendar2.png">
|
||||
</div>
|
||||
<div id="Datepicker1" ></div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="stud-dev-wrap stud-dev-wrap-new">
|
||||
<div class="stud-wrap-left">
|
||||
|
||||
<?php if (isset($session_results) && $session_results != '') {
|
||||
foreach ($session_results as $key => $value) {
|
||||
?>
|
||||
|
||||
<div class="stud-row-one">
|
||||
<h6><?php echo $value['e_name'] .' '. $value['bs_date'] ?></h6>
|
||||
<input type="button" class="phy-evlauate" value="View Grades" onclick="get_grades(<?php echo $value['exam_id'] .','. $value['classroom_id']; ?>)">
|
||||
</div>
|
||||
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="stud-wrap-right" style="display: none;">
|
||||
<div class="stud-exam-detail-header"></div>
|
||||
<div class="student-info-wrap">
|
||||
<h6>Name</h6>
|
||||
<h6>Grades</h6>
|
||||
</div>
|
||||
<ul class="stud-info-list">
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($session_results) && $session_results == '') {
|
||||
?>
|
||||
<div class="no_data_div">
|
||||
<div class="No_data">
|
||||
<span>
|
||||
<h5>No Student Grades</h5></span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
$('#start').on('change', function(){
|
||||
var date = $(this).val();
|
||||
var cls_id = <?php echo $classroom_id ? $classroom_id : 0; ?>;
|
||||
// alert($(this).val());
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/get_datewises_exam_details/'+cls_id+'/'+ date,
|
||||
type:'POST',
|
||||
success: function(result) {
|
||||
let header_one = '';
|
||||
console.log(result.length);
|
||||
var res = JSON.parse(result);
|
||||
|
||||
if (res.length === 0) {
|
||||
$('.stud-row-one').hide();
|
||||
ul_data = '<div class="stud-row-one"><h6>No Data Found</h6></div>';
|
||||
$('.stud-wrap-left').append(ul_data);
|
||||
}else{
|
||||
|
||||
$.each(res, function(index, value){
|
||||
|
||||
header_one +='<div class="stud-row-one"><h6>'+value['e_name'] +' - '+ moment(value['exam_date']).format('MMMM-YYYY') +'</h6><input type="button" class="phy-evlauate" value="View Grades" onclick="get_grades('+ value['exam_id']+','+value['classroom_id'] +')"></div>';
|
||||
|
||||
|
||||
});
|
||||
|
||||
// $('.eval-wrap-right').html(ul_data);
|
||||
$('.stud-wrap-left').html(header_one);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
function get_grades(exam_id, $clas_id)
|
||||
{
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/get_exam_grade_details/'+exam_id+'/'+$clas_id,
|
||||
type:'POST',
|
||||
success: function(result) {
|
||||
let header_one = '';
|
||||
|
||||
var res = JSON.parse(result);
|
||||
console.log(res);
|
||||
if (res.length=== 0) {
|
||||
|
||||
ul_data = '<div class="stud-evalutaion-detail-header">No Data Found</div><ul class="eval-sub"></ul>';
|
||||
$('.eval-wrap-right').append(ul_data);
|
||||
}else{
|
||||
$('.stud-wrap-right').show();
|
||||
console.log(res.length)
|
||||
$.each(res, function(index, value){
|
||||
// console.log(value['question_id']);
|
||||
|
||||
// ul_data = '<div class="stud-exam-detail-header">'+ value['e_name'] +'</div><ul class="stud-info-list"></ul>';
|
||||
$('.stud-exam-detail-header').text(value['e_name']);
|
||||
|
||||
|
||||
|
||||
header_one +='<li><p>'+ value['name'] +'</p><div class="end-btn-grd"><a href="<?php echo base_url() ?>teacher/teacher_grade_details/'+ value['student_id'] +'/'+ value['exam_id']+'"><input type="button" class="list-end-btn" value="View Grade"></a></div></li>';
|
||||
|
||||
|
||||
});
|
||||
|
||||
// $('.eval-wrap-right').html(ul_data);
|
||||
$('.stud-info-list').html(header_one);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
|
90
application/views/teacher/TF-student-grade-table.php
Normal file
90
application/views/teacher/TF-student-grade-table.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap">
|
||||
<div class="stud-drade-wrap">
|
||||
|
||||
<a href="<?php echo base_url().'teacher/teacher_grades'; ?>" style="text-decoration-line: none;color: inherit;">
|
||||
<h3 class="common-heading"> <i class="fas fa-long-arrow-alt-left"></i>Student Grades </h3> </a>
|
||||
</div>
|
||||
<?php if (isset($student_results) && $student_results != '') {
|
||||
$total_mark = 0;$total_scored_mark=0; ?>
|
||||
<div class="stud-table-wrap">
|
||||
<h4><?php echo $student_results[0]['name']; ?></h4>
|
||||
<h6><?php echo $student_results[0]['e_name'] .' '. $student_results[0]['bs_date'] ?></h6>
|
||||
<?php foreach ($student_results as $key => $value) {
|
||||
|
||||
$total_mark = $total_mark+$value['total_marks'];
|
||||
$total_scored_mark = $total_scored_mark+$value['get_marks'];
|
||||
|
||||
} ?>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Subject</th>
|
||||
<th>Total Marks</th>
|
||||
<th>Passing marks</th>
|
||||
<th>Scored</th>
|
||||
<th>Grade</th>
|
||||
|
||||
</tr>
|
||||
<?php foreach ($student_results as $key => $value) { ?>
|
||||
<tr>
|
||||
<td><?php echo $value['subject_name']; ?></td>
|
||||
<td><?php echo $value['total_marks']; ?></td>
|
||||
<td><?php echo $value['passing_marks']; ?></td>
|
||||
<td><?php echo $value['get_marks']; ?></td>
|
||||
<td><?php echo $value['grade_name']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<tr class="total-bold">
|
||||
<td>Grand Total</td>
|
||||
<td><?php echo $total_mark; ?></td>
|
||||
<td></td>
|
||||
<td><?php echo $total_scored_mark; ?></td>
|
||||
<?php
|
||||
$scored_percentage = round((($total_scored_mark*100)/$total_mark), 2);
|
||||
$grade = student_grade_show($scored_percentage);
|
||||
?>
|
||||
<td><?php echo $grade['grade_name'] ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<style type="text/css">
|
||||
table th {
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
background-color: #032DA1;
|
||||
padding: 5px 0;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
table tr {
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
height: 45px;
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
margin: 3% 0 0 0;
|
||||
}
|
||||
table th {
|
||||
width: 20%;
|
||||
text-align: center;
|
||||
background-color: #032DA1;
|
||||
padding: 5px 0;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
}
|
||||
table td {
|
||||
font-size: 14px;
|
||||
}
|
||||
table th:nth-child(1) {
|
||||
border-radius: 50px 0 0 50px;
|
||||
}
|
||||
|
||||
table tr:nth-child(8) {
|
||||
border-top: 1px solid #000;
|
||||
}
|
||||
</style>
|
212
application/views/teacher/TF_evaluation.php
Normal file
212
application/views/teacher/TF_evaluation.php
Normal file
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>ERISN Classroom</title>
|
||||
<!--styles links-->
|
||||
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="assets/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" href="assets/css/font-family.css">
|
||||
<link rel="stylesheet" href="assets/css/all.css">
|
||||
<link rel="stylesheet" href="assets/owl-carousel/css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="assets/css/fontawesome.min.css" />
|
||||
<link rel="stylesheet" href="assets/css/style.css">
|
||||
<link rel="stylesheet" href="assets/css/style2.css">
|
||||
<link rel="stylesheet" href="assets/css/mobile.css">
|
||||
<link rel="stylesheet" href="assets/css/style-responsive.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="search-bar-wrap">
|
||||
<input type="text" name="" placeholder="Search..">
|
||||
</div>
|
||||
<div class="user-login-section">
|
||||
<div class="notification-icon-wrap">
|
||||
<img src="assets/images/notification.png">
|
||||
<span></span>
|
||||
<div class="notifications-wrap">
|
||||
<div class="notifications">
|
||||
<h4>Notifications</h4>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
<li>
|
||||
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor </p>
|
||||
<i class="fas fa-trash-alt"></i>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="user-wrap">
|
||||
<div class="user-login-head">
|
||||
<img src="assets/images/A.png">
|
||||
<h5><span class="user-name">Andrew</span><i class="fa fa-caret-down" aria-hidden="true"></i><i class="fa fa-caret-up" aria-hidden="true"></i></h5>
|
||||
</div>
|
||||
<div class="login-wrap-open">
|
||||
<ul>
|
||||
<li><span><i class="fa fa-user" aria-hidden="true"></i></span>My Profile</li>
|
||||
<li><span><i class="fas fa-sign-out-alt"></i></span>Sign Out</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mobileMenu">
|
||||
<i class="fas fa-bars"></i>
|
||||
</div>
|
||||
</header>
|
||||
<aside id="mySidebar" class="sideMenu" >
|
||||
<div class="logo-wrap">
|
||||
<img src="assets/images/logo1 (2).png">
|
||||
<div class="logo-name">
|
||||
<h3>Erisn</h3>
|
||||
<p>Classrooms</p>
|
||||
</div>
|
||||
</div>
|
||||
<ul>
|
||||
<li class="list ">
|
||||
<a href="teachers-classes-my-classes.html">
|
||||
<img src="assets/images/myclasses1.png" class="icon-inactive">
|
||||
<img src="assets/images/myclasses2.png" class="icon-active">
|
||||
<span>My Classes</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list">
|
||||
<a href="teachers-attendance.html">
|
||||
<img src="assets/images/attendance1.png" class="icon-inactive">
|
||||
<img src="assets/images/attendance2.png" class="icon-active">
|
||||
<span>Attendance</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list">
|
||||
<a href="teachers-calendar.html">
|
||||
<img src="assets/images/calendar1.png" class="icon-inactive">
|
||||
<img src="assets/images/calendar2.png" class="icon-active">
|
||||
<span>Calendar</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list">
|
||||
<a href="teachers-assignments.html">
|
||||
<img src="assets/images/assignments1.png" class="icon-inactive">
|
||||
<img src="assets/images/assignments2.png" class="icon-active">
|
||||
<span>Assignments</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list active ">
|
||||
<a href="Teacher-flow-testexam.html">
|
||||
<img src="assets/images/tests1.png" class="icon-inactive">
|
||||
<img src="assets/images/tests2.png" class="icon-active">
|
||||
<span>Tests/Exams</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list ">
|
||||
<a href="TF_grade.html">
|
||||
<img src="assets/images/mygrade1.png" class="icon-inactive">
|
||||
<img src="assets/images/mygrade2.png" class="icon-active">
|
||||
<span>My Grades</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list ">
|
||||
<a href="teachers-notification.html">
|
||||
<img src="assets/images/bell1.png" class="icon-inactive">
|
||||
<img src="assets/images/bell2.png" class="icon-active">
|
||||
<span>Notifications</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list">
|
||||
<a href="#">
|
||||
<img src="assets/images/settings1.png" class="icon-inactive">
|
||||
<img src="assets/images/settings2.png" class="icon-active">
|
||||
<span>Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</aside>
|
||||
<main class="" id="main">
|
||||
<div class="main-inner-content main-wrap ">
|
||||
<h4 class="content-heading-sec">Evaluation</h4>
|
||||
|
||||
<div class=" ">
|
||||
<div class=" row grade-container-sec">
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="TF-evaluation-details.html">
|
||||
<div class="t-flow-class-img"> <img src="assets/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p>6th Grade</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!--------->
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="#">
|
||||
<div class="t-flow-class-img"> <img src="assets/images/class2.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p>7th Grade</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!------------------->
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="#">
|
||||
<div class="t-flow-class-img"> <img src="assets/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p>8th Grade</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!----------------->
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="#">
|
||||
<div class="t-flow-class-img"> <img src="assets/images/class2.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p>9th Grade</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!----------------->
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="#">
|
||||
<div class="t-flow-class-img"> <img src="assets/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p>10th Grade</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<!----------------->
|
||||
</div>
|
||||
<!---------------------------------------------------------------->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script src="assets/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="assets/js/jquery-ui.min.js"></script>
|
||||
<script src="assets/js/popper.min.js"></script>
|
||||
<script src="assets/js/bootstrap.min.js"></script>
|
||||
<script defer src="assets/js/all.js"></script>
|
||||
<script defer src="assets/js/main.js"></script>
|
||||
<script src="assets/owl-carousel/js/owl.carousel.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
25
application/views/teacher/TF_grade.php
Normal file
25
application/views/teacher/TF_grade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap ">
|
||||
<h4 class="content-heading-sec">Student Grades</h4>
|
||||
|
||||
<div class=" ">
|
||||
<div class=" row grade-container-sec">
|
||||
|
||||
<?php foreach ($result as $key => $value) { ?>
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="<?php echo base_url() ?>teacher/exam-details/<?php echo $result[$key]['classroom_id'] ?>">
|
||||
<div class="t-flow-class-img"> <img src="<?php echo base_url() ?>assets_teacher/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p><?php echo $result[$key]['course_name'] ?></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</div>
|
||||
<!---------------------------------------------------------------->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
595
application/views/teacher/Teacher-flow-exam-correction-mc.php
Normal file
595
application/views/teacher/Teacher-flow-exam-correction-mc.php
Normal file
@@ -0,0 +1,595 @@
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
.marks_text {
|
||||
font-weight: 600;
|
||||
text-align: right;
|
||||
font-size: 12px;
|
||||
width: 120px;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap main-inner-content main-inner-content-new">
|
||||
<h3 class="common-heading">
|
||||
<a href="<?php echo base_url() ?>teacher/exam-details/<?php echo $classroom_id; ?>" style="text-decoration: none;color: inherit;">
|
||||
<i class="fas fa-long-arrow-alt-left">
|
||||
</i>
|
||||
</a>
|
||||
Test/Exams
|
||||
</h4>
|
||||
<?php if($get_questions != '' && !empty($get_questions)) {
|
||||
$marks_data = json_decode($get_questions['exam_question_format']);
|
||||
|
||||
function comparator($object1, $object2) {
|
||||
return $object1->marks > $object2->marks;
|
||||
}
|
||||
usort($marks_data, 'comparator');
|
||||
?>
|
||||
<?php } ?>
|
||||
<div class=" ">
|
||||
<div class="mid-paper-sec">
|
||||
<div class="mid-paper-sec-left">
|
||||
<div class="quest-box-ouuter">
|
||||
<div class="quest-box-header" id="box_heading_one">
|
||||
</div>
|
||||
<div class="quest-box-body-scroll">
|
||||
<?php $count = 0;$timer= 0;
|
||||
|
||||
|
||||
foreach($marks_data as $key) {
|
||||
|
||||
for ($i=1; $i <= $key->que ; $i++) {
|
||||
|
||||
$sql = 'select * from exam_questions where exam_id ='. $get_questions['id'].' and question_mark = '.$key->marks;
|
||||
$query = $this->db->query($sql);
|
||||
$stu = $query->result_array();
|
||||
|
||||
if ($i <= count($stu)) {
|
||||
foreach ($stu as $row) {
|
||||
$count++;
|
||||
?>
|
||||
<div class="quest-added-row <?php echo 'tick_'.$key->marks; ?>" id="<?php echo 'box_'.$key->marks .'_'.$i ?>">
|
||||
<div class="quest-added quest-added-green" id="<?php echo 'success_'.$key->marks .'_'.$i ?>"><i class="fas fa-check"></i></div>
|
||||
<ul class="quest-added-one " id="<?php echo 'listMarks_'.$key->marks .'_'.$i ?>">
|
||||
<li class="count"><?php echo $count; ?></li>
|
||||
<li class="question_text_content" style='width:70%;font: size 12px;'>
|
||||
<?php echo substr($row['question_name'], 0,50).'...'; ?>
|
||||
</li>
|
||||
<li class="update_pen_icon" id="<?php echo 'updatePen_'.$key->marks .'_'.$i ?>" style="width: 6%; ">
|
||||
<div onclick="show_right_data(<?php echo $key->marks .','.$i.','.$row['id'] ?>)" id="<?php echo 'updateIcon_'.$key->marks .'_'.$i ?>" style="text-decoration: none;color: black;"><i class="<?php echo ($date_checker) ? "fa fa-eye" : "fas fa-pen" ?>"></i></div>
|
||||
</li>
|
||||
<li ><?php echo $key->marks . ' marks'; ?>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
if ($i > $key->que) {
|
||||
$timer = 0;
|
||||
break;
|
||||
}
|
||||
$count++; ?>
|
||||
<div class="quest-added-row <?php echo 'tick_'.$key->marks; ?>" id="<?php echo 'box_'.$key->marks .'_'.$i ?>">
|
||||
<div class="quest-added" id="<?php echo 'success_'.$key->marks .'_'.$i ?>"><i class="fas fa-check"></i></div>
|
||||
<ul class="quest-added-one" id="<?php echo 'listMarks_'.$key->marks .'_'.$i ?>">
|
||||
<li class="count"><?php echo $count; ?></li>
|
||||
<li id="<?php echo 'addList_'.$key->marks .'_'.$i ?>" ><input type="button" class="add-tec-quest" value="+" id="<?php echo 'addButton_'.$key->marks .'_'.$i ?>" onclick="show_right_data(<?php echo $key->marks .','.$i.',0' ;?>)">Add Question</li>
|
||||
<li class="question_text_content" style='width:70%;font: size 12px;' ></li>
|
||||
<li class="update_pen_icon" id="<?php echo 'updatePen_'.$key->marks .'_'.$i ?>" style="width: 6%;display: none;">
|
||||
|
||||
</li>
|
||||
<li></li>
|
||||
<li class="marks_text"><?php echo $key->marks . ' marks'; ?>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
<div class="quest-box-footer">
|
||||
<?php if($get_questions != '' && !empty($get_questions)) {
|
||||
?>
|
||||
|
||||
<ul class="quest-foot-marks">
|
||||
<?php foreach($marks_data as $key) { ?>
|
||||
<li class="check-inactive <?php echo 'check_'.$key->marks ?>"><?php echo $key->marks.'x'.$key->que; ?> <i class="fas fa-check mark-around"></i></li>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (!$date_checker) { ?>
|
||||
<li>
|
||||
<a href="<?php echo base_url() ?>teacher/exam-details/<?php echo $classroom_id; ?>">
|
||||
<input type="button" value="Submit question paper" class="sub-quest-paper ">
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!----------right side------------------->
|
||||
<div class="mid-paper-sec-right">
|
||||
<form method="post" id="submit_data">
|
||||
<div class="quest-info-header">
|
||||
|
||||
<p class="question_content_one"></p>
|
||||
<p class="question_content_two"></p>
|
||||
</div>
|
||||
<input type="hidden" name="" id="exam_id" value="<?php echo ($get_questions != '') ? $get_questions['id'] : '' ?>" >
|
||||
<input type="hidden" name="" id="subject_id" value="<?php echo ($get_questions != '') ? $get_questions['subject_id'] : '' ?>" >
|
||||
<input type="hidden" name="" id="marks_total" value="" >
|
||||
<input type="hidden" name="" id="subject_id" value="<?php echo ($get_questions != '') ? $get_questions['subject_id'] : '' ?>" >
|
||||
<input type="hidden" name="" id="exam_questions_id" value="" >
|
||||
<div class="sel-quest-type"><label>Select Question Type: </label>
|
||||
<select id="exam-choice"class="sel-multiple" name="choice_question_select">
|
||||
<option value="1">Multiple Choice</option>
|
||||
<option value="2">True or false</option>
|
||||
<option value="3">Short Answers</option>
|
||||
<option value="4">Long Answers</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="enter-quest-place">
|
||||
<label class="que_number_place"> 03</label>
|
||||
<textarea placeholder="Type your question ...." name="text_area_content" class="quest-add-inside" required></textarea>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<span class=" err error_text_content text-danger"></span>
|
||||
</div>
|
||||
<div class="insert-prop">
|
||||
<input id="upload" name="file" type="file" accept=".jpg, .png, .jpeg" />
|
||||
<P>Would you like to add an image?<span class="input-image" id="upload_link">Click here</span></P>
|
||||
|
||||
<img id="previewImg" src="" alt="Placeholder" width="auto" height="120">
|
||||
</div>
|
||||
<div class="ans-opt-box">
|
||||
<div class="ans-opt-one"><strong>A .</strong> <input type="text" class="add-opt-ans option_one" required name="option_A">
|
||||
</div>
|
||||
<div class="ans-opt-one"><strong>B .</strong> <input type="text" class="add-opt-ans option_two" required name="option_B">
|
||||
</div>
|
||||
<div class="ans-opt-one"><strong>C .</strong> <input type="text" class="add-opt-ans option_three" required name="option_C">
|
||||
</div>
|
||||
<div class="ans-opt-one"><strong>D .</strong> <input type="text" class="add-opt-ans option_four" required name="option_D">
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<span class="err error_option text-danger"></span>
|
||||
</div>
|
||||
<div class="selected-ans-type"><label><strong>Select the correct answer:</strong></label>
|
||||
<select class="correct-opt" id="correctAns" value="" name="multiple_choice_ans">
|
||||
<option selected disabled value="">Options</option>
|
||||
<option value="A">Option A</option>
|
||||
<option value="B">Option B</option>
|
||||
<option value="C">Option C</option>
|
||||
<option value="D">Option D</option>
|
||||
</select>
|
||||
|
||||
<select class="correct-opt" id="correctAnsTrueFalse" value="" name="trueFalse_ans" style="display: none;">
|
||||
<option selected disabled value="">Options</option>
|
||||
<option value="1">True</option>
|
||||
<option value="0">False</option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<span class="err error_option_TF text-danger"></span>
|
||||
</div>
|
||||
<?php if ($date_checker) { ?>
|
||||
|
||||
<?php }else{ ?>
|
||||
<div class="opt-footer-btns">
|
||||
<input type="submit" value="Done" class="done-btn">
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<style type="text/css">
|
||||
#upload_link{
|
||||
text-decoration:none;
|
||||
}
|
||||
#upload{
|
||||
display:none
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
// geting all the data of question
|
||||
var que_id = <?php echo $exam_id; ?>;
|
||||
|
||||
get_all_question_data(que_id);
|
||||
$('.mid-paper-sec-right').hide();
|
||||
// $('#previewImg, .question_text_content, .update_pen_icon').hide();
|
||||
var Flag = false;
|
||||
var mark = '';
|
||||
var count='1'; //for getting the count for the tick mark
|
||||
tick_marks_code(mark,que_id,count);
|
||||
});
|
||||
|
||||
|
||||
|
||||
function get_all_question_data(que_id)
|
||||
{
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/get_exam_question_details/'+que_id,
|
||||
type:'POST',
|
||||
success: function(result) {
|
||||
let header_one = '';
|
||||
|
||||
var res = JSON.parse(result);
|
||||
console.log(res);
|
||||
if (res.length=== 0) {
|
||||
|
||||
}else{
|
||||
|
||||
header_one += '<p>'+ res.subject_name +' - '+ res.e_name +'</p><p>Total: '+res.total_marks+' Marks</p>'
|
||||
$('#box_heading_one').html(header_one);
|
||||
|
||||
let NDate = NepaliFunctions.GetCurrentBsDate();
|
||||
let todayDate = `${NDate.year}-${NDate.month}-${NDate.day}`;
|
||||
|
||||
var CurrentDate = new Date(todayDate).getTime();
|
||||
|
||||
var SelectedDate = new Date(res.exam_date).getTime();
|
||||
console.log(CurrentDate);console.log(SelectedDate);
|
||||
|
||||
if(CurrentDate >= SelectedDate){
|
||||
console.log('helo');
|
||||
$('.done-btn, .sub-quest-paper ').css('display','none');
|
||||
// $('.done-btn').css('display','none');
|
||||
// $('.update_pen_icon i.fas').removeClass('fa-pen');
|
||||
// $('.update_pen_icon i.fas').addClass('fa-eye');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function show_right_data(marks_for_question,counter, que_id)
|
||||
{
|
||||
clear_all();
|
||||
$('.err').text('');
|
||||
$('#previewImg').hide();
|
||||
$('.mid-paper-sec-right').show();
|
||||
var numItems = $('.count').length;
|
||||
// alert(numItems);
|
||||
|
||||
$('#upload_link').attr('src',"");
|
||||
$('#upload').val('');
|
||||
|
||||
var qus_numner = $('#listMarks_'+ marks_for_question +'_'+ counter +' > .count').text();
|
||||
|
||||
$('.question_content_one').text('Question:'+ qus_numner+ '/'+ numItems);
|
||||
$('.question_content_two').text('Value:'+ marks_for_question +' marks');
|
||||
$('.que_number_place').text(qus_numner);
|
||||
|
||||
$('.done-btn').attr('id','submit_'+marks_for_question+'_'+counter);
|
||||
|
||||
$('#marks_total').val(marks_for_question);
|
||||
$('#exam_questions_id').val('');
|
||||
$('#submit_'+ marks_for_question +'_'+ counter).val('Done');
|
||||
|
||||
if (que_id != 0) {
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/add_edit_question_details/'+que_id,
|
||||
type:'POST',
|
||||
success: function(result) {
|
||||
var res = JSON.parse(result);
|
||||
console.log(res);
|
||||
$('.quest-add-inside').val(res['question_name']);
|
||||
$('select#exam-choice').val(res['question_type_id']);
|
||||
if (res['image'] !='') {
|
||||
$("#previewImg").attr("src", '<?php echo base_url() ?>'+res['image']);
|
||||
$("#previewImg").show();
|
||||
}
|
||||
|
||||
if (res['question_type_id'] == 1) {
|
||||
|
||||
$('#correctAns').val(res['correct_answer']);
|
||||
$('.option_one').val(res['option_a']);
|
||||
$('.option_two').val(res['option_b']);
|
||||
$('.option_three').val(res['option_c']);
|
||||
$('.option_four').val(res['option_d']);
|
||||
|
||||
|
||||
}else if(res['question_type_id'] == 2){
|
||||
|
||||
$("#correctAnsTrueFalse option[value="+ res['correct_answer'] +"]").prop("selected", true)
|
||||
|
||||
$('.ans-opt-one > input').val('');
|
||||
$('.selected-ans-type').show();
|
||||
$('.ans-opt-box').hide();
|
||||
$("#correctAns").css('display','none');
|
||||
$("#correctAnsTrueFalse").show();
|
||||
// $('#correctAnsTrueFalse option[value="'+ res['correct_answer']+'"]');
|
||||
$("#correctAnsTrueFalse").val(res['correct_answer']);
|
||||
|
||||
|
||||
}else if (res['question_type_id'] == 3 || res['question_type_id'] == 4) {
|
||||
$('select#correctAnsTrueFalse option:selected').val('');
|
||||
$('select#correctAns option:selected').val('');
|
||||
$('.ans-opt-one > input').val('');
|
||||
$('.selected-ans-type').hide();
|
||||
$('.ans-opt-box').hide();
|
||||
$("#correctAns").css('display','none');
|
||||
$("#correctAnsTrueFalse").hide();
|
||||
}
|
||||
|
||||
$('#submit_'+ marks_for_question +'_'+ counter).val('Update');
|
||||
$('#exam_questions_id').val(res['id'])
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Right Side Dropdown Change Code
|
||||
|
||||
$('#exam-choice').change(function(){
|
||||
$('.err').text('');
|
||||
var value = parseInt($('select#exam-choice option:selected').val());
|
||||
|
||||
if (value == 1) {
|
||||
$('.selected-ans-type').show();
|
||||
$('.ans-opt-box').show();
|
||||
$("#correctAns").css('display','inline-flex');
|
||||
$("#correctAnsTrueFalse").hide();
|
||||
$('select#correctAnsTrueFalse option:selected').val('');
|
||||
|
||||
}
|
||||
else if (value == 2) {
|
||||
$('select#correctAns option:selected').val('');
|
||||
$('.ans-opt-one > input').val('');
|
||||
$('.selected-ans-type').show();
|
||||
$('.ans-opt-box').hide();
|
||||
$("#correctAns").css('display','none');
|
||||
$("#correctAnsTrueFalse").show();
|
||||
|
||||
}
|
||||
else if(value == 3 || value == 4){
|
||||
$('select#correctAnsTrueFalse option:selected').val('');
|
||||
$('select#correctAns option:selected').val('');
|
||||
$('.ans-opt-one > input').val('');
|
||||
$('.selected-ans-type').hide();
|
||||
$('.ans-opt-box').hide();
|
||||
$("#correctAns").css('display','none');
|
||||
$("#correctAnsTrueFalse").hide();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
//file uplaod link trigger
|
||||
|
||||
$(function(){
|
||||
$("#upload_link").on('click', function(e){
|
||||
e.preventDefault();
|
||||
$("#upload:hidden").trigger('click');
|
||||
});
|
||||
});
|
||||
|
||||
//imagePreview
|
||||
$('#upload').change(function(){
|
||||
$('#previewImg').show();
|
||||
var file = $("input[type=file]").get(0).files[0];
|
||||
if(file){
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function(){
|
||||
$("#previewImg").attr("src", reader.result);
|
||||
}
|
||||
|
||||
reader.readAsDataURL(file);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
var v = $("#submit_data").validate({
|
||||
|
||||
ignore: ':hidden',
|
||||
|
||||
rules: {
|
||||
option_A: {
|
||||
required: true
|
||||
},
|
||||
option_B: {
|
||||
required: true
|
||||
},
|
||||
option_C: {
|
||||
required: true
|
||||
},
|
||||
option_D: {
|
||||
required: true
|
||||
},
|
||||
choice_question_select: {
|
||||
required: true
|
||||
},
|
||||
multiple_choice_ans: {
|
||||
required: true
|
||||
},
|
||||
trueFalse_ans: {
|
||||
required: true
|
||||
},
|
||||
text_area_content: {
|
||||
required: true
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
// alert('hello word');
|
||||
|
||||
|
||||
},
|
||||
highlight: function(element, errorClass) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
},
|
||||
unhighlight: function(element, errorClass) {
|
||||
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('.done-btn').click(function(){
|
||||
if ($('#submit_data').valid()) {
|
||||
|
||||
var id = $('.done-btn').attr('id');
|
||||
var splite_data = id.split("_");
|
||||
var marks_for_question = splite_data[1];
|
||||
var counter = splite_data[2];
|
||||
var formData = new FormData();
|
||||
|
||||
formData.append('question_type_id',parseInt($('select#exam-choice option:selected').val()));
|
||||
formData.append('multiple_answer',$('select#correctAns option:selected').val());
|
||||
formData.append('tf_answer',$('select#correctAnsTrueFalse option:selected').val());
|
||||
formData.append('question_name',$('.quest-add-inside').val());
|
||||
formData.append('option_a',$('.option_one').val());
|
||||
formData.append('option_b',$('.option_two').val());
|
||||
formData.append('option_c',$('.option_three').val());
|
||||
formData.append('option_d',$('.option_four').val());
|
||||
formData.append('exam_id',$('#exam_id').val());
|
||||
formData.append('subject_id',$('#subject_id').val());
|
||||
formData.append('question_mark',$('#marks_total').val());
|
||||
formData.append('exam_que_id',$('#exam_questions_id').val());
|
||||
|
||||
var files = $('#upload')[0].files;
|
||||
if (files.length > 0) {
|
||||
formData.append('file',files[0]);
|
||||
}else{
|
||||
formData.append('file','');
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/add_edit_question_details_save',
|
||||
type:'POST',
|
||||
data:formData,
|
||||
contentType:false,
|
||||
processData:false,
|
||||
success: function(result) {
|
||||
// console.log(result);
|
||||
if (result > 0) {
|
||||
$('#addList_'+ marks_for_question+'_'+counter).hide();
|
||||
var data = $('.quest-add-inside').val();
|
||||
$('#listMarks_'+ marks_for_question+'_'+counter+' > .question_text_content').css('display','block');
|
||||
$('#listMarks_'+ marks_for_question+'_'+counter+' > .question_text_content').text(data.substr(0, 35)+'...');
|
||||
$('#listMarks_'+ marks_for_question+'_'+counter+' > .update_pen_icon').css('display','block');
|
||||
|
||||
|
||||
if ($('#updateIcon_'+ marks_for_question+'_'+counter).length)
|
||||
{
|
||||
|
||||
}else{
|
||||
$('#listMarks_'+ marks_for_question+'_'+counter+' > .update_pen_icon').append('<div onclick="show_right_data('+ marks_for_question +','+ counter +','+ result +')" id=updateIcon_'+ marks_for_question +'_'+ counter +' style="text-decoration: none;color: black;"><i class="fas fa-pen"></i></div>');
|
||||
}
|
||||
|
||||
|
||||
$('#box_'+ marks_for_question+'_'+counter+'> .quest-added').addClass("quest-added-green");
|
||||
clear_all();
|
||||
var marks = $('#marks_total').val(); var e_id = $('#exam_id').val();var count =0;
|
||||
tick_marks_code(parseInt(marks), parseInt(e_id), count);
|
||||
$('.mid-paper-sec-right').hide();
|
||||
}else{
|
||||
$('.mid-paper-sec-right').hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
//clear the content of the right side
|
||||
|
||||
function clear_all()
|
||||
{
|
||||
$('.quest-add-inside').val('');
|
||||
$('.selected-ans-type').show();
|
||||
$('.ans-opt-box').show();
|
||||
$("#correctAns").css('display','inline-flex');
|
||||
$("#correctAnsTrueFalse").hide();
|
||||
$('select#exam-choice').val('1')
|
||||
$('select#correctAnsTrueFalse').val('');
|
||||
$('.option_one, .option_two, .option_three , .option_four').val('');
|
||||
$("#correctAns option[value='']").prop("selected", true);
|
||||
}
|
||||
|
||||
|
||||
// Tick Mark Codeing Start Here
|
||||
|
||||
function tick_marks_code(marks, exam_id, count)
|
||||
{
|
||||
var formData = new FormData();
|
||||
formData.append('exam_id', exam_id);
|
||||
formData.append('marks',marks);
|
||||
formData.append('count',count);
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/tick_marks_data_view',
|
||||
type:'POST',
|
||||
data:formData,
|
||||
contentType:false,
|
||||
processData:false,
|
||||
success: function(result) {
|
||||
var res = JSON.parse(result);
|
||||
var length = res.length;
|
||||
|
||||
if (!res.length) {
|
||||
var counter = $('.tick_'+marks).length;
|
||||
|
||||
if (parseInt(counter) == parseInt(result)) {
|
||||
$('.check_'+marks +' > svg').addClass('mark-green');
|
||||
}
|
||||
}else{
|
||||
|
||||
$.each(res, function(index, value){
|
||||
var c = $('.tick_'+ value['que_mark']).length;
|
||||
|
||||
if (parseInt(c) == parseInt(value['count_mark'])) {
|
||||
$('.check_'+value['que_mark'] +' > svg').addClass('mark-green');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
50
application/views/teacher/authorization_ms.php
Normal file
50
application/views/teacher/authorization_ms.php
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
|
||||
<form id="paypalpayment" name="paypalpayment" action="https://login.microsoftonline.com/consumers/oauth2/v2.0/token" method="POST">
|
||||
|
||||
<input type="text" name="client_id" value="0aefd42e-4d1c-4e05-9c8c-d41511aad5a1">
|
||||
<input type="text" name="scope" value="user.read mail.read">
|
||||
<input type="text" name="code" value="<?=$code;?>">
|
||||
<input type="text" name="redirect_uri" value="https://ezydemo.com/erisn-classroom/teacher/auth">
|
||||
<input type="text" name="grant_type" value="authorization_code">
|
||||
<input type="text" name="client_secret" value="ae37c090-d93d-41fe-81b0-e15fd92ad420">
|
||||
<input name="submit" type="submit" id="submit" value="Click to continue if you are not automatically redirected." />
|
||||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
// $(document).ready(function() {
|
||||
// alert("hi");
|
||||
// RedeemToken();
|
||||
// });
|
||||
function RedeemToken(){
|
||||
alert("hello");
|
||||
var myHeaders = new Headers();
|
||||
myHeaders.append("Access-Control-Allow-Origin", "*");
|
||||
myHeaders.append("Access-Control-Allow-Methods", "POST");
|
||||
myHeaders.append("Access-Control-Allow-Headers", "Content-Type");
|
||||
myHeaders.append("Access-Control-Max-Age", "3600");
|
||||
myHeaders.append("Content-Type", "application/x-www-form-urlencoded");
|
||||
|
||||
var urlencoded = new URLSearchParams();
|
||||
urlencoded.append("client_id", "0aefd42e-4d1c-4e05-9c8c-d41511aad5a1");
|
||||
urlencoded.append("scope", "user.read mail.read");
|
||||
urlencoded.append("redirect_uri", "https://ezydemo.com/erisn-classroom/teacher/auth");
|
||||
urlencoded.append("client_secret", "ae37c090-d93d-41fe-81b0-e15fd92ad420");
|
||||
urlencoded.append("code", "<?=$code;?>");
|
||||
urlencoded.append("grant_type", "authorization_code");
|
||||
|
||||
var requestOptions = {
|
||||
method: 'POST',
|
||||
headers: myHeaders,
|
||||
body: urlencoded,
|
||||
redirect: 'follow'
|
||||
};
|
||||
|
||||
fetch("https://login.microsoftonline.com/common/oauth2/v2.0/token HTTP/1.1", requestOptions)
|
||||
.then(response => response.text())
|
||||
.then(result => console.log(result))
|
||||
.catch(error => console.log('error', error));
|
||||
}
|
||||
</script>
|
||||
|
190
application/views/teacher/change-password.php
Normal file
190
application/views/teacher/change-password.php
Normal file
@@ -0,0 +1,190 @@
|
||||
<style>
|
||||
form label.error, #secNameerr {
|
||||
color : red;
|
||||
font-size:13px;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<!----admin template Exam---->
|
||||
<div class="main-wrap">
|
||||
<div class="syllabus-wrap">
|
||||
<div class="syllabus-main">
|
||||
|
||||
<form action="<?php echo base_url() ?>/teacher/teacher-change-password" method="post" id="pwdForm">
|
||||
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<?php if($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="subsec_sec">
|
||||
<div class="subject_l" style="width: 367px;">
|
||||
<div class="subject_lsec">
|
||||
<div class="common-heading" style="margin-left:0;"><?php echo $title ?></div>
|
||||
<div class="subject_lformarea">
|
||||
<div class="form-group">
|
||||
<label for="">Password<span class="text-danger font-weight-bold">*</span></label>
|
||||
<div class="input-group" id="show_password">
|
||||
<input type="password" name="password" class="form-control" placeholder="Enter New Password" />
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<a href="" style="color: inherit;"><i class="fa fa-eye-slash" id="pas_one"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<label id="password-error" class="error" for="password"></label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group w-100">
|
||||
<label for="">Retype New Password<span class="text-danger font-weight-bold">*</span></label>
|
||||
<div class="input-group" id="show_retype_password">
|
||||
<input type="password" name="confirm_password" class="form-control" placeholder="Re-Enter Password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<a href="" style="color: inherit;"><i class="fas fa-eye-slash" id="pas_two"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label id="confirm_password-error" class="error" for="confirm_password"></label>
|
||||
</div>
|
||||
<input type="submit" class="subject_addbtn" value="Save">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!----admin template Exam end---->
|
||||
</main>
|
||||
<!--End right-top side-->
|
||||
<style type="text/css">
|
||||
.subject_addbtn {
|
||||
background: #032da1;
|
||||
border-radius: 3px;
|
||||
color: #fff;
|
||||
padding: 6px 38px;
|
||||
border: none;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
#icon_two, #icon_one {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
right: 8px;
|
||||
cursor: pointer;
|
||||
color: #878a8d;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
$("#icon_one").click(function() {
|
||||
|
||||
$("#icon_one").toggleClass("eye-icon");
|
||||
|
||||
var input = $("#password");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
|
||||
$("#icon_two").click(function() {
|
||||
|
||||
$("#icon_two").toggleClass("eye-icon");
|
||||
|
||||
var input = $("#confirm_password");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional( element ) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!#%*?&])[A-Za-z\d@$#!%*?&]{6,16}$/.test( value );
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
$("#pwdForm").validate({
|
||||
|
||||
ignore: ":hidden",
|
||||
rules: {
|
||||
password: {
|
||||
required: true,
|
||||
minlength: 6,
|
||||
maxlength: 16,
|
||||
passwordregex:true
|
||||
},
|
||||
confirm_password : {
|
||||
required : true,
|
||||
minlength : 6,
|
||||
equalTo : '#password'
|
||||
}
|
||||
},
|
||||
messages: {
|
||||
|
||||
password : {
|
||||
required : 'Please enter a valid password',
|
||||
minlength : 'Password should be more than 6 characters',
|
||||
maxlength : 'Password should not exceed 16 Characters'
|
||||
},
|
||||
confirm_password : {
|
||||
required : 'Please re-enter your password',
|
||||
equalTo : "Please enter the same password again."
|
||||
},
|
||||
|
||||
},
|
||||
submitHandler: function(form) {
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#show_password a").on('click', function(event) {
|
||||
event.preventDefault();
|
||||
if($('#show_password input').attr("type") == "text"){
|
||||
$('#show_password input').attr('type', 'password');
|
||||
$('#pas_one').addClass( "fa-eye-slash" );
|
||||
$('#pas_one').removeClass( "fa-eye" );
|
||||
}else if($('#show_password input').attr("type") == "password"){
|
||||
$('#show_password input').attr('type', 'text');
|
||||
$('#pas_one').removeClass( "fa-eye-slash" );
|
||||
$('#pas_one').addClass( "fa-eye" );
|
||||
}
|
||||
});
|
||||
|
||||
$("#show_retype_password a").on('click', function(event) {
|
||||
event.preventDefault();
|
||||
if($('#show_retype_password input').attr("type") == "text"){
|
||||
$('#show_retype_password input').attr('type', 'password');
|
||||
$('#pas_two').addClass( "fa-eye-slash" );
|
||||
$('#pas_two').removeClass( "fa-eye" );
|
||||
}else if($('#show_retype_password input').attr("type") == "password"){
|
||||
$('#show_retype_password input').attr('type', 'text');
|
||||
$('#pas_two').removeClass( "fa-eye-slash" );
|
||||
$('#pas_two').addClass( "fa-eye" );
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
55
application/views/teacher/dashboard.php
Normal file
55
application/views/teacher/dashboard.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="syllabus-wrap">
|
||||
<div class="syllabus-head">
|
||||
<h3 class="common-heading">My Classes</h3>
|
||||
</div>
|
||||
<div class="check-syllabus-btn ">
|
||||
<a class="check-syllabus" href="<?php echo base_url(); ?>teacher/view-syllabus">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/syllabus.png">
|
||||
<h5>Check Syllabus </h5>
|
||||
</a>
|
||||
</div>
|
||||
<div class="syllabus-main attendance-main">
|
||||
<?php if (!empty($subjects) && isset($subjects)) {
|
||||
foreach ($subjects as $value) {
|
||||
$pday = date("l");
|
||||
$sessionDay = $value['day'];
|
||||
$s = $value['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
$mins = (strtotime($s) - strtotime($p)) / 60;
|
||||
$duration = $value['duration'];
|
||||
$end = date('H:i', strtotime($s) + ($duration * 60));
|
||||
$now = new Datetime("now");
|
||||
$begintime = new DateTime($s);
|
||||
$endtime = new DateTime($end);
|
||||
?>
|
||||
<div class="start-class-wrap">
|
||||
<div class="syllabus-tab">
|
||||
<div class="syllabus-image"><img src="<?= base_url(); ?>assets_admin/images/icons/<?= $value['subject_icon'] ?>"></div>
|
||||
<h4><?= $value['subject_name'] ?></h4>
|
||||
<h5><?= $value['classroom_name'] ?></h5>
|
||||
<?php if (strtolower($pday) === strtolower($sessionDay) && ($now >= $begintime && $now <= $endtime)) { ?>
|
||||
<div class="start-btn-wrap-st">
|
||||
<a class="join-class-btn" href="<?= $value['start_link'] ?>" target="_blank">Start</a>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p class="class_time"><?= date('h:i a', strtotime($s)) ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Class scheduled </div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$(".list").removeClass("active");
|
||||
$(".list-item1").addClass("active");
|
||||
});
|
||||
</script>
|
9
application/views/teacher/footer.php
Normal file
9
application/views/teacher/footer.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/popper.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/bootstrap.min.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_student/js/all.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_student/js/main.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/owl-carousel/js/owl.carousel.min.js"></script>
|
||||
</body>
|
||||
</html>
|
62
application/views/teacher/header.php
Normal file
62
application/views/teacher/header.php
Normal file
@@ -0,0 +1,62 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title><?= $school_info['school_name']; ?></title>
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo base_url(); ?>common_assets/fav.png">
|
||||
<!--styles links-->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/font-family.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/all.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/owl-carousel/css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style-responsive.css">
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_student/js/jquery.validate.js"></script>
|
||||
|
||||
<style>
|
||||
@media (max-width: 767px) {
|
||||
.content-to-hide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.login-box {
|
||||
/* margin-left: 0px !important;
|
||||
margin-top: 0px !important; */
|
||||
margin: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class=" teacher-login-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/login.gif" class="login-image content-to-hide">
|
||||
<!-- <video class="login-video" preload="metadata" playsinline autoplay muted loop >
|
||||
<source src="<?php echo base_url(); ?>assets_teacher/images/login.webm#t=0.001" type="video/webm">
|
||||
<source src="<?php echo base_url(); ?>assets_teacher/images/login.webm#t=0.001" type="video/webm">
|
||||
Your browser does not support the video tag.
|
||||
</video> -->
|
||||
<script>
|
||||
document.getElementById('vid').play();
|
||||
</script>
|
||||
<header class="login-header">
|
||||
<div class="login-wrap">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?= $school_info['color_logo']; ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-menu-wrap">
|
||||
<div class="login-mob-menu"><i class="fas fa-bars"></i></div>
|
||||
<ul class="mob-menu">
|
||||
<li><a href="">About Us</a></li>
|
||||
<li><a href="">Contact Us</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</header>
|
181
application/views/teacher/leaves.php
Normal file
181
application/views/teacher/leaves.php
Normal file
@@ -0,0 +1,181 @@
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/jquery.dataTables.min.css">
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="my-leaves-top">
|
||||
<h1 class="my-leaves-heading">Student Leave Applications</h1>
|
||||
<!-- <button class="submit-btn">Apply Leave</button> -->
|
||||
</div>
|
||||
|
||||
<?php if ($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<!-- <div class="my-leaves-filter pt-4">
|
||||
<div class="filter-head">
|
||||
<img class="pb-0" src="../assets_teacher/images/filter-icon.svg" alt="" />
|
||||
<h6 class="px-2">Filter</h6>
|
||||
</div>
|
||||
|
||||
<div class="filter-selects">
|
||||
<div class="form-group mx-3">
|
||||
<label for="select-box" class="form-label leaves-filter-label"
|
||||
>Class</label
|
||||
>
|
||||
<select
|
||||
class="form-select select-box w-100"
|
||||
aria-label="Default select example"
|
||||
>
|
||||
<option selected>-Select-</option>
|
||||
<option value="1">One</option>
|
||||
<option value="2">Two</option>
|
||||
<option value="3">Three</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group mx-3">
|
||||
<label for="select-box" class="form-label leaves-filter-label"
|
||||
>Status</label
|
||||
>
|
||||
<select
|
||||
class="form-select select-box w-100"
|
||||
aria-label="Default select example"
|
||||
>
|
||||
<option selected>-Select-</option>
|
||||
<option value="1">One</option>
|
||||
<option value="2">Two</option>
|
||||
<option value="3">Three</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group mx-3">
|
||||
<div class="date-filter">
|
||||
<div class="date-fil-row" id="startdate">
|
||||
<label class="leaves-filter-label">From date</label>
|
||||
<input
|
||||
type="date"
|
||||
name="start"
|
||||
id="start"
|
||||
class="form-control"
|
||||
/>
|
||||
</div>
|
||||
<div class="date-fil-row" id="enddate" style="display: none">
|
||||
<label>End date</label>
|
||||
<input type="date" name="end" id="end" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mx-3">
|
||||
<div class="date-filter">
|
||||
<div class="date-fil-row" id="startdate">
|
||||
<label class="leaves-filter-label">To Date</label>
|
||||
<input
|
||||
type="date"
|
||||
name="start"
|
||||
id="start"
|
||||
class="form-control"
|
||||
/>
|
||||
</div>
|
||||
<div class="date-fil-row" id="enddate" style="display: none">
|
||||
<label>End date</label>
|
||||
<input type="date" name="end" id="end" class="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="leaves-table">
|
||||
<table class="table example text-center" id="tbl">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Sl No</th>
|
||||
<th scope="col">Student Name</th>
|
||||
<th scope="col">Classroom</th>
|
||||
<th scope="col">From date</th>
|
||||
<th scope="col">To date</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot class="text-center">
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?php if (!empty($leaves)) { ?>
|
||||
<?php foreach ($leaves as $key => $value) { ?>
|
||||
<tr>
|
||||
<th scope="row"><?= $key + 1 ?></th>
|
||||
<td><?= $value['name'] ?></td>
|
||||
<td><?= $value['classroom_name'] ?></td>
|
||||
<td><?= $value['from_date'] ?></td>
|
||||
<td><?= $value['to_date'] ?></td>
|
||||
<td><?= ucwords($value['status']) ?></td>
|
||||
<td class="icons-wrap">
|
||||
<button class="submit-btn-table btn-sm">
|
||||
<a href="<?= base_url() ?>teacher/view-leave/<?= $value['id'] ?>">View</a>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }
|
||||
} ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#tbl').DataTable({
|
||||
initComplete: function() {
|
||||
this.api().columns().every(function() {
|
||||
var column = this;
|
||||
var select = $('<select><option value="">Filter</option></select>')
|
||||
.appendTo($(column.footer()).empty())
|
||||
.on('change', function() {
|
||||
var val = $.fn.dataTable.util.escapeRegex(
|
||||
$(this).val()
|
||||
);
|
||||
|
||||
column
|
||||
.search(val ? '^' + val + '$' : '', true, false)
|
||||
.draw();
|
||||
});
|
||||
|
||||
column.data().unique().sort().each(function(d, j) {
|
||||
select.append('<option value="' + d + '">' + d + '</option>')
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
142
application/views/teacher/login.php
Normal file
142
application/views/teacher/login.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
$uname = ''; $pass = ''; $rme = 'Off';
|
||||
if(isset($_COOKIE["username"]))
|
||||
$uname = $_COOKIE["username"];
|
||||
if(isset($_COOKIE["password"]))
|
||||
$pass = $_COOKIE["password"];
|
||||
if(isset($_COOKIE["rem_me"]))
|
||||
$rme = $_COOKIE["rem_me"];
|
||||
?>
|
||||
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Teacher Login</h3>
|
||||
<?php if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($this->session->flashdata('danger')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('danger') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
<form id="loginform" method="post">
|
||||
<div class="login-form-row">
|
||||
<input type="text" name="email" id="email" value="<?php echo $uname;?>" placeholder="Enter username">
|
||||
<p id="email_error" style="color:red;"></p>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password" id="password" value="<?php echo $pass;?>" placeholder="Enter password" class="password_hide" />
|
||||
<span class="passwrd-icon icon-y"><i class="far fa-eye"></i></span>
|
||||
<p id="password_error" style="color:red;"></p><p id="invalid_error" style="color:red;"></p>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<a href="<?php echo base_url(); ?>teacher/teacher-reset"><label class="forgotPswd">Forgot password?</label></a>
|
||||
<span class="rem-paswd"><input type="checkbox" name="remember_me" <?php if($rme=='On'){?>checked<?php } ?> ><label>Remember Me</label></span>
|
||||
</div>
|
||||
<div class="login-form-row">
|
||||
<button type="button" class="join-class-btn" onclick="validate_login_form()" >Login</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function hide_all_login_errors()
|
||||
{
|
||||
$('#email_error').hide();
|
||||
$('#password_error').hide();
|
||||
|
||||
}
|
||||
function celanup_login_form()
|
||||
{
|
||||
$('#email').val('');
|
||||
$('#passsword').val('');
|
||||
$('#invalid_error').html('');
|
||||
}
|
||||
function validate_login_form(){
|
||||
|
||||
hide_all_login_errors();
|
||||
|
||||
var errArr = new Array();
|
||||
|
||||
/* var lemail = $('#email').val().trim();
|
||||
|
||||
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
||||
if(lemail==''){
|
||||
errArr.push('email_Sep@Str_Please enter your Teacher Id.');
|
||||
}
|
||||
else if(!regex.test(lemail)){
|
||||
errArr.push('email_Sep@Str_Please enter a valid email address.');
|
||||
}
|
||||
*/
|
||||
|
||||
var lpwd = $('#password').val().trim();
|
||||
if(lpwd==''){
|
||||
errArr.push('password_Sep@Str_Please enter your password.');
|
||||
}
|
||||
if(errArr.length>0)
|
||||
{
|
||||
for(i=0; i<errArr.length; i++)
|
||||
{
|
||||
var resArr = errArr[i].split("_Sep@Str_");
|
||||
$("#"+resArr[0]+"_error").html(resArr[1]);;
|
||||
$("#"+resArr[0]+"_error").show();
|
||||
}
|
||||
var xxxVal = errArr[0].split('_Sep@Str_');
|
||||
$('#'+xxxVal[0]).focus();
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
// $('#loginform').submit();
|
||||
var formData = new FormData($("#loginform")[0]);
|
||||
$.ajax({
|
||||
url : '<?php echo base_url(); ?>Teacher/teacher_login',
|
||||
dataType : 'json',
|
||||
type : 'POST',
|
||||
data : formData,
|
||||
contentType : false,
|
||||
processData : false,
|
||||
success: function(response) {
|
||||
if(response == '1'){
|
||||
window.location.href="<?php echo base_url(); ?>Teacher/dashboard";
|
||||
}else if(response == '0'){
|
||||
$('#invalid_error').html("Invalid Teacher Id or Password.");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
$('#loginform').submit(function(e){
|
||||
e.preventDefault();
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
$(".passwrd-icon").click(function() {
|
||||
|
||||
$(".passwrd-icon").toggleClass("icon-y");
|
||||
|
||||
var input = $( ".password_hide");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
</script>
|
148
application/views/teacher/single_leave.php
Normal file
148
application/views/teacher/single_leave.php
Normal file
@@ -0,0 +1,148 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="w-50">
|
||||
<button class="btn btn-dark btn-md">
|
||||
<a href="javascript:history.go(-1)">Back</a>
|
||||
</button>
|
||||
<div class="my-leaves-top pt-3">
|
||||
<h1 class="my-leaves-heading">Leave Application</h1>
|
||||
</div>
|
||||
<?php if (!empty($leave)) { ?>
|
||||
<form action="<?= base_url() ?>teacher/ar_leave_application" method="post">
|
||||
<div class="pt-2">
|
||||
<?php foreach ($leave as $key => $value) { ?>
|
||||
|
||||
<div class="row leave-app-row align-items-center">
|
||||
<div class="col-md-4">
|
||||
<h6>To :</h6>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p><?= $value['teacher_name'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row leave-app-row align-items-center">
|
||||
<div class="col-md-4">
|
||||
<h6>From date :</h6>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p><?= date('d-m-Y', strtotime($value['from_date'])) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row leave-app-row align-items-center">
|
||||
<div class="col-md-4">
|
||||
<h6>To date :</h6>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p><?= date('d-m-Y', strtotime($value['to_date'])) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row leave-app-row align-items-center">
|
||||
<div class="col-md-4">
|
||||
<h6>Leave Title :</h6>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<p><?= $value['title'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="<?= $value['id'] ?>">
|
||||
<div class="row leave-app-row-reason pt-4">
|
||||
<div class="col-md-12">
|
||||
<h6>Reason :</h6>
|
||||
<p>
|
||||
<?= $value['reason'] ?>
|
||||
</p>
|
||||
|
||||
<div class="leave-process-btns mt-5">
|
||||
<button type="submit" class="submit-btn">Approve</button>
|
||||
<a class="reject-btn mx-4 text-white d-flex align-items-center" data-toggle="modal" data-target="#exampleModalCenter">
|
||||
Reject
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modal -->
|
||||
<div class="modal leave-modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header leave-modal-header">
|
||||
<h5 class="modal-title" id="exampleModalCenterTitle">
|
||||
Reason for Rejection
|
||||
</h5>
|
||||
</div>
|
||||
<form action="<?= base_url() ?>teacher/ar_leave_application" method="post" id="rejected_form">
|
||||
<div class="modal-body">
|
||||
<textarea class="form-control" id="exampleFormControlTextarea1" rows="4" onkeypress="return lettersNumbersCheck(event)" name="rejected_msg" placeholder="Description"></textarea>
|
||||
<label id="exampleFormControlTextarea1-error" class="error mt-2" style="color:red" for="exampleFormControlTextarea1"></label>
|
||||
</div>
|
||||
<input type="hidden" name="id" value="<?= $leave_id ?>">
|
||||
<div class="modal-footer leave-modal-footer">
|
||||
<div class="leave-process-btns">
|
||||
<button type="submit" class="submit-btn">Submit</button>
|
||||
<a class="text-white d-flex align-items-center reject-btn mx-4" data-toggle="modal" data-target="#exampleModalCenter">
|
||||
Cancel
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /*Modals Ends*/ -->
|
||||
</main>
|
||||
|
||||
<script type="text/javascript">
|
||||
function lettersNumbersCheck(e) {
|
||||
var keyCode = e.keyCode || e.which;
|
||||
|
||||
//Regex for Valid Characters i.e. Alphabets and Numbers.
|
||||
var regex = /^[a-zA-Z0-9\-\s]+$/;
|
||||
|
||||
//Validate TextBox value against the Regex.
|
||||
var isValid = regex.test(String.fromCharCode(keyCode));
|
||||
|
||||
return isValid;
|
||||
}
|
||||
|
||||
|
||||
jQuery.validator.addMethod("alphanumeric", function(value, element) {
|
||||
return this.optional(element) || /^[a-z\0-9\-\s]+$/i.test(value);
|
||||
}, "Please enter alphanumeric Characters only");
|
||||
|
||||
$("#rejected_form").validate({
|
||||
|
||||
rules: {
|
||||
rejected_msg: {
|
||||
required: true,
|
||||
minlength: 3,
|
||||
alphanumeric: true
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
|
||||
rejected_msg: {
|
||||
required: "Please provide a reason",
|
||||
minlength: "Please enter more than 2 Characters"
|
||||
},
|
||||
|
||||
},
|
||||
submitHandler: function(form, e) {
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
46
application/views/teacher/teacher-calendar-sessions.php
Normal file
46
application/views/teacher/teacher-calendar-sessions.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date('d/m/Y',strtotime($day)); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
<?php if($student_sess){ foreach($student_sess as $c) { ?>
|
||||
<div class="upcoming-tab upcoming-classes-tab">
|
||||
<div class="class-Sec">
|
||||
<h4><?= $c['classroom_name']; ?></h4>
|
||||
<p>Grade</p>
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/class2.png">
|
||||
</div>
|
||||
<div class="class-det">
|
||||
<div class="class-det-head">
|
||||
<h5><?= $c['subject_name']; ?></h5>
|
||||
<div class="class-time">
|
||||
<?php
|
||||
$pday = date("l");
|
||||
$sessionDay = $c['day'];
|
||||
|
||||
$s = $c['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
?>
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && abs($mins) <= 10)
|
||||
{ ?>
|
||||
<div class="my-class-btn-wrap"><a href = "<?php echo $c['start_link']; ?>" ><button class="join-class-btn">Start</button></a></div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="date"><?php echo ucfirst($c['day']).', '.date('h:i a',strtotime($c['start'])); ?></div>
|
||||
<?php } ?>
|
||||
<div class="time"><i class="far fa-clock"></i><span><?php echo $c['duration']; ?></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<p>Lorem ipsum dolor in sit amet, of consetetursadip scing elitr, sed. diam </p>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Sessions scheduled </div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
116
application/views/teacher/teacher-calendar.php
Normal file
116
application/views/teacher/teacher-calendar.php
Normal file
@@ -0,0 +1,116 @@
|
||||
<style type="text/css">
|
||||
.class-det {
|
||||
padding: 5px 20px ;
|
||||
}
|
||||
</style>
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="calendar-section">
|
||||
<div class="calendar-section-wrap">
|
||||
<div class="calendar-main">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Calendar</h3>
|
||||
</div>
|
||||
|
||||
<div class="po-calendar">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upcoming-section-wrap">
|
||||
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date("d/m/Y", strtotime($cur_date)); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
<?php if($subjects != ''){ foreach($subjects as $value) {
|
||||
|
||||
$pday = date("l");
|
||||
$sessionDay = $value['day'];
|
||||
|
||||
$s = $value['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
$duration = $value['duration'];
|
||||
$end = date('H:i', strtotime($s) + ($duration * 60));
|
||||
|
||||
$now = new Datetime("now");
|
||||
$begintime = new DateTime($s);
|
||||
$endtime = new DateTime($end);
|
||||
|
||||
?>
|
||||
<div class="upcoming-tab upcoming-classes-tab next-class">
|
||||
<div class="class-Sec">
|
||||
<h4 class="mb-2"><?= $value['classroom_name'] ?></h4>
|
||||
<img class="mb-1" src="<?= base_url(); ?>assets_admin/images/icons/<?= $value['subject_icon'] ?>">
|
||||
</div>
|
||||
<div class="class-det">
|
||||
<div class="class-det-head">
|
||||
<h5><?= $value['subject_name'] ?></h5>
|
||||
|
||||
<div class="class-time">
|
||||
<div class="time"><i class="far fa-clock"></i><span><?= $value['duration'] ?> min</span></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p><?= $value['batch_name'] ?></p>
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && ($now >= $begintime && $now <= $endtime))
|
||||
{ ?>
|
||||
<div class="start-btn-wrap">
|
||||
<a class="join-class-btn" href="<?= $value['start_link'] ?>" target="_blank">Start</a>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p class="mt-3"><b><?= date('h:i a', strtotime($s)) ?></b></p>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Sessions scheduled </div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
onChange: function(data) {
|
||||
console.log(data.bs)
|
||||
showsessions(data.bs);
|
||||
}
|
||||
});
|
||||
|
||||
function showsessions(dateval){
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?= base_url(); ?>teacher/ajax_get_teacher_calendar_from_date",
|
||||
data:{dateval:dateval},
|
||||
success:function(response){
|
||||
|
||||
if(response != 'failed'){
|
||||
$('.upcoming-section-wrap').html(response);
|
||||
} else {
|
||||
let msg = 'No classes scheduled for selected date';
|
||||
$('.upcoming-section-wrap').html(msg);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
83
application/views/teacher/teacher-calendar_old.php
Normal file
83
application/views/teacher/teacher-calendar_old.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="calendar-section">
|
||||
<div class="calendar-section-wrap">
|
||||
<div class="calendar-main">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Calendar</h3>
|
||||
</div>
|
||||
<div class="calendar-cover" id="calendar">
|
||||
<div class="calendar-date-year">
|
||||
<img src="<?= base_url(); ?>assets_student/images/calendar2.png">
|
||||
</div>
|
||||
<div id="Datepicker1" onchange = "showsessions($(this).datepicker().val())"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="upcoming-section-wrap">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading"><span><?php echo date("d/m/Y"); ?></span></h3>
|
||||
</div>
|
||||
<div class="upcoming-cover">
|
||||
<?php if($student_sess != ''){ foreach($student_sess as $c) { ?>
|
||||
<div class="upcoming-tab upcoming-classes-tab">
|
||||
<div class="class-Sec">
|
||||
<h4><?= $c['classroom_name']; ?></h4>
|
||||
<p>Grade</p>
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/class2.png">
|
||||
</div>
|
||||
<div class="class-det">
|
||||
<div class="class-det-head">
|
||||
<h5><?= $c['subject_name']; ?></h5>
|
||||
<div class="class-time">
|
||||
<?php
|
||||
$pday = date("l");
|
||||
$sessionDay = $c['day'];
|
||||
|
||||
$s = $c['start'];
|
||||
// $s = "15:03";
|
||||
$p = date("H:i");
|
||||
|
||||
$mins = (strtotime($s)-strtotime($p)) / 60;
|
||||
|
||||
?>
|
||||
<?php if(strtolower($pday) === strtolower($sessionDay) && abs($mins) <= 10)
|
||||
{ ?>
|
||||
<div class="my-class-btn-wrap"><a href = "<?php echo $c['start_link']; ?>" ><button class="join-class-btn">Start</button></a></div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="date"><?php echo ucfirst($c['day']).', '.date('h:i a',strtotime($c['start'])); ?></div>
|
||||
<?php } ?>
|
||||
<div class="time"><i class="far fa-clock"></i><span><?php echo $c['duration']; ?></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<p>Lorem ipsum dolor in sit amet, of consetetursadip scing elitr, sed. diam </p>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else { ?>
|
||||
<div class="upcoming-tab">No Sessions scheduled </div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
function showsessions(dateval){
|
||||
// alert(dateval);
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "<?= base_url(); ?>Teacher/calenderSessions",
|
||||
data:{dateval:dateval},
|
||||
success:function(resposne){
|
||||
$('.upcoming-section-wrap').html(resposne);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
54
application/views/teacher/teacher-footer.php
Normal file
54
application/views/teacher/teacher-footer.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/popper.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/bootstrap.min.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_teacher/js/all.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_teacher/js/main.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/owl-carousel/js/owl.carousel.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
$(function() {
|
||||
let url = window.location.href.toLowerCase();
|
||||
let flag = false;
|
||||
let Clickedurl;
|
||||
$('ul#nav_list li').removeClass('active');
|
||||
|
||||
$('ul#nav_list li a').each(function() {
|
||||
Clickedurl = $(this).attr('href').toLowerCase();
|
||||
|
||||
if (url == Clickedurl) {
|
||||
console.log(url, Clickedurl)
|
||||
flag = true;
|
||||
let liParent = $(this).parent();
|
||||
liParent.addClass('active');
|
||||
|
||||
$.ajax({
|
||||
url: '<?php echo base_url() ?>teacher/update_link_active',
|
||||
data: {
|
||||
link: url
|
||||
},
|
||||
type: 'POST',
|
||||
async: false,
|
||||
success: function(data) {}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if (flag == false) {
|
||||
|
||||
Clickedurl = '<?php echo isset($_SESSION['active_old_link']) ? $_SESSION['active_old_link'] : 0 ?>';
|
||||
|
||||
$('ul#nav_list li a').each(function() {
|
||||
if ($(this).attr('href') == Clickedurl) {
|
||||
let liParent = $(this).parent();
|
||||
liParent.addClass('active');
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
23
application/views/teacher/teacher-grades.php
Normal file
23
application/views/teacher/teacher-grades.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content main-wrap ">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Student Grades</h3>
|
||||
</div>
|
||||
<div class="syllabus-main attendance-main ">
|
||||
<?php foreach ($result as $key => $value) { ?>
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="<?php echo base_url() ?>teacher/teacher_grade_deatils/<?php echo $result[$key]['classroom_id'] ?>" >
|
||||
<div class="t-flow-class-img"> <img src="<?php echo base_url() ?>assets_teacher/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p><?php echo $result[$key]['classroom_name'] ?></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!---------------------------------------------------------------->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
||||
|
91
application/views/teacher/teacher-header.php
Normal file
91
application/views/teacher/teacher-header.php
Normal file
@@ -0,0 +1,91 @@
|
||||
<?php
|
||||
$CI = &get_instance();
|
||||
$CI->load->model('Admin_model');
|
||||
$query = "SELECT n.* from notifications n inner join teacher t on n.teacher_id = t.id where (t.id = '" . $_SESSION['teacher_id'] . "' AND n.notification_read = 'No') ORDER BY notification_id DESC LIMIT 5";
|
||||
$result = $CI->Admin_model->get_notification_details('', $query);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<title><?= $school_info['school_name']; ?></title>
|
||||
<link rel="icon" type="image/x-icon" href="<?php echo base_url(); ?>common_assets/fav.png">
|
||||
<!--styles links-->
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/jquery-ui.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/font-family.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/all.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/owl-carousel/css/owl.carousel.min.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_teacher/css/style-responsive.css">
|
||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets_admin/css/nepali.datepicker.v3.7.min.css">
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/jquery-3.4.1.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_admin/js/jquery.validate.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/jquery-ui.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_admin/js/nepali.datepicker.v3.7.min.js" type="text/javascript"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_admin/js/jquery.dataTables.min.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_admin/js/dataTables.fixedHeader.min.js"></script>
|
||||
<?php
|
||||
|
||||
if (empty($result)) { ?>
|
||||
<style>
|
||||
.notification-icon-wrap:after {
|
||||
content: none;
|
||||
}
|
||||
</style>
|
||||
<?php }
|
||||
|
||||
?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header class="common_margin ">
|
||||
<div class="search-bar-wrapp">
|
||||
<!-- <input type="text" name="" placeholder="Search.."> -->
|
||||
</div>
|
||||
<div class="user-login-section">
|
||||
<div class="notification-icon-wrap">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/notification.png">
|
||||
<span></span>
|
||||
<div class="notifications-wrap">
|
||||
<div class="notifications">
|
||||
<h4>Notifications</h4>
|
||||
<ul>
|
||||
<?php if (!empty($result)) { ?>
|
||||
<?php foreach ($result as $key => $value) { ?>
|
||||
<li class="notification-row">
|
||||
<a class="text-white" href="<?php echo base_url() ?>teacher/teacher_notification">
|
||||
<p><?php echo $value['description'] ?></p>
|
||||
</a>
|
||||
<i class="fas fa-trash-alt" onclick="delete_notificaton('<?php echo $value['notification_id'] ?>',$(this).parent())"></i>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php } else {
|
||||
echo "<li><p>There no new notifications</p></li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="user-wrap">
|
||||
<div class="user-login-head">
|
||||
|
||||
<h5><span class="user-name"><?php echo $_SESSION['teacher_name']; ?></span><i class="fa fa-caret-down" aria-hidden="true"></i><i class="fa fa-caret-up" aria-hidden="true"></i></h5>
|
||||
</div>
|
||||
<div class="login-wrap-open">
|
||||
<ul>
|
||||
<!-- <li><span><i class="fa fa-user" aria-hidden="true"></i></span>My Profile</li> -->
|
||||
<li><a href="<?php echo base_url(); ?>teacher/teacher-change-password"><span><i class="fa fa-lock" aria-hidden="true"></i></span>Change Password</a></li>
|
||||
<li><a href="<?php echo base_url(); ?>Teacher/teacher_logout"><span><i class="fas fa-sign-out-alt"></i></span>Sign Out</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mobileMenu">
|
||||
<i class="fas fa-bars"></i>
|
||||
</div>
|
||||
</header>
|
88
application/views/teacher/teacher-leftmenu.php
Normal file
88
application/views/teacher/teacher-leftmenu.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<aside id="mySidebar" class="sideMenu">
|
||||
<div class="logo-wrap">
|
||||
<img src="<?php echo base_url(); ?>common_assets/<?= $school_info['logo'] ?>">
|
||||
</div>
|
||||
<ul id="nav_list">
|
||||
|
||||
<li class="list list-item1">
|
||||
|
||||
<a href="<?php echo base_url(); ?>teacher/dashboard">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/myclasses1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/myclasses2.png" class="icon-active">
|
||||
<span>My Classes</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list list-item2">
|
||||
<a href="<?php echo base_url(); ?>teacher/students-attendance">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/attendance1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/attendance2.png" class="icon-active">
|
||||
<span>Attendance</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list list-item3">
|
||||
<a href="<?php echo base_url(); ?>Teacher/teacher_calender">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/calendar1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/calendar2.png" class="icon-active">
|
||||
<span>Calendar</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list list-item4">
|
||||
<a href="<?php echo base_url(); ?>teacher/teacher_assignment">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/assignments1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/assignments2.png" class="icon-active">
|
||||
<span>Assignments</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list list-item5">
|
||||
<a href="<?php echo base_url(); ?>teacher/test-exam">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/tests1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/tests2.png" class="icon-active">
|
||||
<span>Tests/Exams</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="list list-item5">
|
||||
<a href="<?php echo base_url(); ?>teacher/offline-exam-marks-entry">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/tests2.png" class="icon-active">
|
||||
<span>Offline Exam Marks Entry</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="list list-item5">
|
||||
<a href="<?php echo base_url(); ?>teacher/offline-exam-additional-subject-marks-entry">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/tests2.png" class="icon-active">
|
||||
<span>Offline Exam Additional <br>Subject Marks Entry</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="list list-item6">
|
||||
<a href="<?php echo base_url(); ?>teacher/teacher_grades">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/mygrade1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/mygrade2.png" class="icon-active">
|
||||
<span>Student Grades</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list list-item7">
|
||||
<a href="<?php echo base_url(); ?>teacher/teacher_notification">
|
||||
<!-- <img src="<?php echo base_url(); ?>assets_teacher/images/bell1.png" class="icon-inactive"> -->
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/bell2.png" class="icon-active">
|
||||
<span>Notifications</span>
|
||||
</a>
|
||||
</li>
|
||||
<!-- <li class="list list-item7">
|
||||
<a href="<?php echo base_url(); ?>teacher/leaves">
|
||||
<img src="<?php echo base_url(); ?>assets_teacher/images/bell2.png" class="icon-active">
|
||||
<span>Leave Applications</span>
|
||||
</a>
|
||||
</li> -->
|
||||
<!-- <li class="list list-item8">
|
||||
<a href="#">
|
||||
<img src="<?php //echo base_url();
|
||||
?>assets_teacher/images/settings1.png" class="icon-inactive">
|
||||
<img src="<?php //echo base_url();
|
||||
?>assets_teacher/images/settings2.png" class="icon-active">
|
||||
<span>Settings</span>
|
||||
</a>
|
||||
</li> -->
|
||||
</ul>
|
||||
</aside>
|
122
application/views/teacher/teacher-new-password.php
Normal file
122
application/views/teacher/teacher-new-password.php
Normal file
@@ -0,0 +1,122 @@
|
||||
<style type="text/css">
|
||||
.error{
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Create New Password</h3>
|
||||
<form class="login-form" id="recreatePassword" action="<?php echo base_url()?>teacher/change_teacher_password" method="post">
|
||||
<?php if($teacher_data){?>
|
||||
<div class="login-form-row"><p>Please reset your password</p></div>
|
||||
<input type="hidden" name="student_id" value="<?php echo $teacher_data['id']; ?>">
|
||||
<input type="hidden" name="student_email" value="<?php echo $teacher_data['email']; ?>">
|
||||
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password" id="password" class="pass" placeholder="New Password" required>
|
||||
<span class="passwrd-icon icon-y"><i class="far fa-eye"></i></span>
|
||||
<p class="loginErr loginErr-pass text-danger"></p>
|
||||
</div>
|
||||
|
||||
<div class="login-form-row">
|
||||
<input type="password" name="password_confirm" id="re_pass" class="re_pass" placeholder="Re-enter Password" required>
|
||||
<span class="con-pass icon-y"><i class="far fa-eye"></i></span>
|
||||
<p class="loginErr loginErr-rePass text-danger"></p>
|
||||
<!-- <h5>Both Passwords Must Match</h5></div> -->
|
||||
<p class="loginSuccess text-success"></p>
|
||||
</div>
|
||||
|
||||
<div class="login-form-row" style="margin-top: 10px;">
|
||||
<button type="submit" class="join-class-btn">Reset Password</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
//PASSWORD SHOW
|
||||
$(".passwrd-icon").click(function() {
|
||||
|
||||
$(".passwrd-icon").toggleClass("icon-y");
|
||||
|
||||
var input = $( ".pass");
|
||||
if (input.attr("type") == "password") {
|
||||
input.attr("type", "text");
|
||||
} else {
|
||||
input.attr("type", "password");
|
||||
}
|
||||
});
|
||||
$(".con-pass ").click(function() {
|
||||
$(".con-pass").toggleClass("icon-y");
|
||||
|
||||
var input1 = $( ".re_pass");
|
||||
if (input1.attr("type") == "password") {
|
||||
input1.attr("type", "text");
|
||||
} else {
|
||||
input1.attr("type", "password");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
|
||||
|
||||
|
||||
jQuery.validator.addMethod("passwordregex", function(value, element) {
|
||||
return this.optional( element ) || /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!#%*?&])[A-Za-z\d@$#!%*?&]{6,16}$/.test( value );
|
||||
}, 'Your password must be atleast 6 characters long, which inculdes one upper case, one numerical value and one special character.');
|
||||
|
||||
$("#recreatePassword").validate({
|
||||
rules: {
|
||||
password: {
|
||||
required: true,
|
||||
minlength:6,
|
||||
maxlength:12,
|
||||
passwordregex:true
|
||||
},
|
||||
password_confirm:{
|
||||
required: true,
|
||||
equalTo : '#password'
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
password : {
|
||||
required : 'Please enter a valid password',
|
||||
minlength : 'Password should be more than 6 characters',
|
||||
maxlength : 'Password should not exceed 16 Characters'
|
||||
},
|
||||
password_confirm : {
|
||||
required : 'Please re-enter your password',
|
||||
equalTo : "Please enter the same password again."
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
submitHandler: function(form) {
|
||||
|
||||
form.submit();
|
||||
},
|
||||
highlight: function(element, errorClass) {
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
|
||||
},
|
||||
unhighlight: function(element, errorClass) {
|
||||
//$(element).closest(".form-group").removeClass("has-error");
|
||||
},
|
||||
|
||||
|
||||
});
|
||||
|
||||
// function myFunction() {
|
||||
// var x = document.getElementById("password");
|
||||
// if (x.type === "password") {
|
||||
// x.type = "text";
|
||||
// } else {
|
||||
// x.type = "password";
|
||||
// }
|
||||
// }
|
||||
</script>
|
146
application/views/teacher/teacher-notification.php
Normal file
146
application/views/teacher/teacher-notification.php
Normal file
@@ -0,0 +1,146 @@
|
||||
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-inner-content" style="width:100%; position: relative;">
|
||||
<h3 class="common-heading">Notification</h3>
|
||||
|
||||
|
||||
<div class=" row cal-assinment-new flex-column mb-5" style="margin: 0 !important;">
|
||||
<div class="po-calendar d-inline mt-3 mb-3" style="width: 30%;">
|
||||
<input type="text" class="form-control" placeholder="Select a date" id="nepali-datepicker">
|
||||
<i class="fas fa-calendar-alt cal-icon"></i>
|
||||
</div>
|
||||
|
||||
<p class="mb-2">Note : To view different months notification, please select the required month and any day</p>
|
||||
<hr>
|
||||
<div class="noti-wrap-sec">
|
||||
|
||||
<div class="noti-wrap-sec-left" id="notifications-container">
|
||||
<?php if(isset($result)) {?>
|
||||
<?php foreach ($result as $key => $value) {
|
||||
$originalDate = $result[$key]['created_at'];
|
||||
$newDate = date("d-m-Y", strtotime($originalDate));
|
||||
$newTime = date("h:i", strtotime($originalDate));
|
||||
if($key == 0) {
|
||||
echo '<div class="content-exam-box-one notif-active">';
|
||||
} else {
|
||||
echo '<div class="content-exam-box-one">';
|
||||
}
|
||||
?>
|
||||
<div class="content-box-one-inner">
|
||||
<div class="content-right-side">
|
||||
<h6 class="exs-notif-title"><?php echo $result[$key]['notification_title']?></h6>
|
||||
</div>
|
||||
</div>
|
||||
<div class="content-mid-text">
|
||||
<p class="exs-notif-desc"><?php echo substr($result[$key]['description'], 0, 90)?>...</p>
|
||||
</div>
|
||||
<div class="content-last-sec">
|
||||
<li><b>Date : <span class="exs-notif-date"><?php echo $newDate ?></span></b></li>
|
||||
<li><b>Time : <span class="exs-notif-time"><?php echo $newTime ?></span></b></li>
|
||||
<li style="text-align:right;"><input type="button" value="view details" onClick="displaySelectedNotification(event, <?php echo $result[$key]['notification_id']?>)" class="view-detail-notify"></li>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
} else {
|
||||
echo '<p> There are no notifications for this month </p>';
|
||||
}?>
|
||||
</div>
|
||||
<div class="noti-wrap-sec-right">
|
||||
<div class="noti-wrap-sec-right-inner">
|
||||
<p class="dis-notif-title"></p>
|
||||
<p class="dis-notif-datetime"></p>
|
||||
</div>
|
||||
<div class="noti-para-sec">
|
||||
<p class="dis-notif-desc"></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
<script>
|
||||
// Notification Module
|
||||
|
||||
$('#nepali-datepicker').nepaliDatePicker({
|
||||
language : 'english',
|
||||
ndpYear: true,
|
||||
ndpMonth: true,
|
||||
ndpYearCount: 10,
|
||||
onChange: function(data) {
|
||||
console.log(typeof data.object.month)
|
||||
let month = data.object.month;
|
||||
let YM = data.object.year + '-' + month;
|
||||
monthNotification(YM);
|
||||
}
|
||||
});
|
||||
|
||||
const monthNotification = function(date) {
|
||||
let nContainer = $('#notifications-container');
|
||||
let dateArr = JSON.stringify(date.split('-'));
|
||||
$.ajax({
|
||||
url : 'ajax_displayNotificationByDate',
|
||||
data : {dateArr : dateArr},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
|
||||
let result = JSON.parse(data);
|
||||
|
||||
if(result == 'failed') {
|
||||
nContainer.empty();
|
||||
nContainer.append('<p> You have no Notification for this month </p>');
|
||||
} else {
|
||||
nContainer.empty();
|
||||
$.each(result, function(iresultndex, value) {
|
||||
nContainer.append(value);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const displaySelectedNotification = function(e, id) {
|
||||
|
||||
$('.content-exam-box-one').removeClass('notif-active');
|
||||
e = e || window.event;
|
||||
|
||||
var target = e.srcElement || e.target;
|
||||
|
||||
while (target && target.className !== "content-exam-box-one") {
|
||||
target = target.parentNode;
|
||||
}
|
||||
target.classList.add('notif-active');
|
||||
let notifDesc = '';
|
||||
|
||||
$.ajax({
|
||||
url : 'ajax_getNotificationDescription',
|
||||
data : {notifid : id},
|
||||
type : 'POST',
|
||||
async : false,
|
||||
success: function(data){
|
||||
|
||||
let result = JSON.parse(data);
|
||||
|
||||
console.log(result);
|
||||
|
||||
if(result == 'failed') {
|
||||
let notifDesc = target.querySelector('.exs-notif-desc').textContent;
|
||||
} else {
|
||||
notifDesc = result['description'];
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
let notifTitle = target.querySelector('.exs-notif-title').textContent;
|
||||
|
||||
let notifTime = target.querySelector('.exs-notif-time').textContent;
|
||||
let notifDate = target.querySelector('.exs-notif-date').textContent;
|
||||
|
||||
$('.dis-notif-title').text(notifTitle);
|
||||
$('.dis-notif-desc').text(notifDesc);
|
||||
$('.dis-notif-datetime').text(notifDate + ', ' + notifTime);
|
||||
|
||||
|
||||
}
|
||||
</script>
|
142
application/views/teacher/teacher-reset.php
Normal file
142
application/views/teacher/teacher-reset.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<style>
|
||||
.error-msg {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
form label.error {
|
||||
color: #ff0000;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="login-body">
|
||||
<div class="login-box-wrap">
|
||||
<div class="login-box">
|
||||
<h3>Reset Password</h3>
|
||||
|
||||
<?php
|
||||
if($this->session->flashdata('success')) { ?>
|
||||
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('success') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
<?php
|
||||
if($this->session->flashdata('failed')) { ?>
|
||||
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
<p><?php echo $this->session->flashdata('failed') ?></p>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<?php }?>
|
||||
|
||||
<form class="login-form" id="forgot_password" action="<?php echo base_url() ?>teacher/reset-email" method="post">
|
||||
|
||||
<div class="login-form-row" style="display:none">
|
||||
<p>Enter the registered Email address to send request for resetting password.</p> </div>
|
||||
|
||||
<div class="login-form-row">
|
||||
<label>Email address</label>
|
||||
<input type="text" name="teacherID" placeholder=" " id="email" onkeydown="hideMessages()">
|
||||
</div>
|
||||
<p class="error-msg loginError text-danger font-weight-bold" style="text-align:left">Email Does not exist </p>
|
||||
<p class="loading text-success" style="display:none">Please wait....</p>
|
||||
|
||||
|
||||
|
||||
<div class="reset-passsword-btn" style="margin-top: 10px;">
|
||||
<button class="join-class-btn" type="submit" id="send_email">Send</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
function hideMessages()
|
||||
{
|
||||
$('.error-msg').hide();
|
||||
}
|
||||
|
||||
jQuery.validator.addMethod("emailregex", function(value, element) {
|
||||
|
||||
return this.optional( element ) || /^[a-zA-Z0-9._-]+@[a-zA-Z0-9-]+\.[a-zA-Z.]{2,5}$/.test( value );
|
||||
}, 'Please enter a valid email address.');
|
||||
|
||||
$("#forgot_password").validate({
|
||||
rules: {
|
||||
studentID: {
|
||||
required: true,
|
||||
email:true,
|
||||
emailregex:true,
|
||||
},
|
||||
messages: {
|
||||
studentID : {
|
||||
required: "Please provide an email-id",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
submitHandler: function(form,e) {
|
||||
e.preventDefault();
|
||||
var email = $('#email').val();
|
||||
$.ajax({
|
||||
url: '<?php echo base_url().'teacher/fp_check_is_emailid_valid/'?>',
|
||||
type:'POST',
|
||||
data:{
|
||||
'email': email
|
||||
},
|
||||
beforeSend: function() {
|
||||
$('.loading').show();
|
||||
$('.join-class-btn').hover(function() {
|
||||
$(this).css({'cursor' : 'wait'})
|
||||
});
|
||||
$(document.body).css({'cursor' : 'wait'}); // Spinning
|
||||
$('.join-class-btn').prop('disabled', false);
|
||||
},
|
||||
success: function(result) {
|
||||
console.log(result);
|
||||
$('.error-msg').hide();
|
||||
if ($.trim(result) == 'success') {
|
||||
|
||||
// $('.loading').hide();
|
||||
$(document.body).css({'cursor' : 'default'}); // Not spinning
|
||||
$('.join-class-btn').hover(function() {
|
||||
$(this).css({'cursor' : 'default'})
|
||||
});
|
||||
|
||||
$('.error-msg').hide();
|
||||
$('.loginSuccess').show();
|
||||
form.submit();
|
||||
}
|
||||
else{
|
||||
$(document.body).css({'cursor' : 'default'}); // Not spinning
|
||||
$('.join-class-btn').hover(function() {
|
||||
$(this).css({'cursor' : 'default'})
|
||||
});
|
||||
|
||||
$('.error-msg, .loading').hide();
|
||||
|
||||
$('.loginError').show();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.error-msg').hide();
|
||||
|
||||
});
|
||||
</script>
|
8
application/views/teacher/teacher_footer.php
Normal file
8
application/views/teacher/teacher_footer.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/popper.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/js/bootstrap.min.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_teacher/js/all.js"></script>
|
||||
<script defer src="<?php echo base_url(); ?>assets_teacher/js/main.js"></script>
|
||||
<script src="<?php echo base_url(); ?>assets_teacher/owl-carousel/js/owl.carousel.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
79
application/views/teacher/teachers-syllabus.php
Normal file
79
application/views/teacher/teachers-syllabus.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap">
|
||||
<div class="breadcrumb-section">
|
||||
<ol class="breadcrumb breadcrumb-back">
|
||||
<a href="<?= base_url(); ?>teacher/dashboard"> <li class="breadcrumb-item"> Back </li> </a>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="syllabus-wrap">
|
||||
<div class="syllabus-head">
|
||||
<h3 class="common-heading">Syllabus</h3>
|
||||
</div>
|
||||
|
||||
<div class="syllabus-main">
|
||||
<?php if(!empty($get_syllabus)){
|
||||
foreach ($get_syllabus as $value) { ?>
|
||||
|
||||
<div class="syllabus-tab">
|
||||
<?php if ($value['subject_icon']) { ?>
|
||||
<div class="syllabus-image"><img src="<?php echo base_url(); ?>assets_admin/images/icons/<?php echo $value['subject_icon'];?>"></div>
|
||||
<?php }else{ ?>
|
||||
<div class="syllabus-image"><img src="<?php echo base_url(); ?>assets_student/images/physics.png"></div>
|
||||
<?php } ?>
|
||||
<h5><?php echo $value['subject_name']; ?></h5>
|
||||
<h5><?php echo $value['classroom_name']; ?></h5>
|
||||
<button class="join-class-btn" data-toggle="modal" data-target='<?php echo "#myModal_".$value['subject_syllabus_id']; ?>' >View</button>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
}else{ ?>
|
||||
<div class="syllabus-tab">
|
||||
|
||||
<h5> No Syllabus </h5>
|
||||
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
<!-- Syllabus modal -->
|
||||
<div class="syllabus-modal">
|
||||
|
||||
<?php if(!empty($get_syllabus)){
|
||||
foreach ($get_syllabus as $value) {
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal fade" id='<?php echo "myModal_".$value['subject_syllabus_id']; ?>' role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<div class="owl-carousel slider1">
|
||||
<div class="item active">
|
||||
<!-- <img src="<?php echo base_url().$value['syllabus'] ?>" alt="" /> -->
|
||||
<embed src="<?php echo base_url().$value['syllabus'] ?>" frameborder="0" width="100%" height="650px">
|
||||
</div>
|
||||
</div>
|
||||
<div class="down-btn-wrap">
|
||||
<div class="page-number">
|
||||
<div class="slider-counter1"><div class="slider-no1"></div><div class="tot-slider1"></div></div>
|
||||
<span>Pages</span>
|
||||
</div>
|
||||
<a href="<?php echo base_url().$value['syllabus'] ?>" download>
|
||||
<button type="button" class="dowload-sylla">Download Syllabus</button>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
|
||||
</div>
|
||||
<script src="https://github.com/pipwerks/PDFObject/blob/master/pdfobject.min.js"></script>
|
33
application/views/teacher/test-exam.php
Normal file
33
application/views/teacher/test-exam.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<main class="common_margin" id="main">
|
||||
<div class="main-wrap main-inner-content">
|
||||
<div class="class-head">
|
||||
<h3 class="common-heading">Test/Exams</h3>
|
||||
<div class="date-month-picker">
|
||||
<!-- <input type="month" id="start" name="start" min="2018-03" value="<?php echo date('Y-m'); ?>"> -->
|
||||
</div>
|
||||
<div class="calendar-main test-exam-datepicker">
|
||||
<div class="calendar-cover" id="calendar">
|
||||
<!-- <div class="calendar-date-year">
|
||||
<img src="<?= base_url(); ?>assets_student/images/calendar2.png">
|
||||
</div> -->
|
||||
<!-- <div id="Datepicker1" ></div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" ">
|
||||
<div class="grade-container-sec">
|
||||
<?php foreach ($result as $key => $value) { ?>
|
||||
<div class="teacher-flow-class-one">
|
||||
<a href="<?php echo base_url() ?>teacher/exam-details/<?php echo $result[$key]['classroom_id'] ?>">
|
||||
<div class="t-flow-class-img"> <img src="<?php echo base_url() ?>assets_teacher/images/class1.png"
|
||||
class="img-fluid d-block mx-auto">
|
||||
<p><?php echo $result[$key]['course_name'] ?></p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<!---------------------------------------------------------------->
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
Reference in New Issue
Block a user