patashala/application/views/backend/teacher/single_homework.php
Vivek a53135a78d Added based code
Added base code to the repo
2024-02-07 20:19:28 +05:30

112 lines
3.8 KiB
PHP
Executable File

<?php $info = $this->db->get_where('deliveries', array('id' => $answer_id))->result_array();
foreach($info as $row):
?>
<?php $time1 = $this->db->get_where('homework', array('homework_code' => $row['homework_code']))->row()->date_end; $time2 = $this->db->get_where('homework', array('homework_code' => $row['homework_code']))->row()->time_end;
$time = $time1. " ".$time2;
?>
<div class="content-w">
<div class="os-tabs-w menu-shad">
<div class="os-tabs-controls">
<ul class="nav nav-tabs upper">
<li class="nav-item">
<a class="nav-link" href="<?php echo base_url();?>teacher/homeworkroom/<?php echo $row['homework_code'];?>/"><i class="os-icon picons-thin-icon-thin-0014_notebook_paper_todo"></i><span><?php echo get_phrase('homework_details');?></span></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo base_url();?>teacher/homework_details/<?php echo $row['homework_code'];?>/"><i class="os-icon picons-thin-icon-thin-0100_to_do_list_reminder_done"></i><span><?php echo get_phrase('deliveries');?></span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo base_url();?>teacher/homework_edit/<?php echo $row['homework_code'];?>/"><i class="os-icon picons-thin-icon-thin-0001_compose_write_pencil_new"></i><span><?php echo get_phrase('edit');?></span></a>
</li>
</ul>
</div>
</div>
<div class="content-i">
<div class="content-box">
<div class="row">
<div class="col-sm-8">
<div class="pipeline white lined-primary">
<div class="pipeline-header">
<div class="users-list-w">
<div class="user-w" style="border-bottom:none">
<div class="user-avatar-w">
<div class="user-avatar">
<img alt="" src="<?php echo $this->crud_model->get_image_url('student', $row['student_id']); ?>">
</div>
</div>
<div class="user-name">
<h6 class="user-title">
<?php echo $this->crud_model->get_type_name_by_id('student',$row['student_id']);?>
</h6>
</div>
</div></div>
</div>
<p>
<?php echo $row['homework_reply'];?>
</p>
</div>
</div>
<div class="col-sm-4">
<div class="pipeline white lined-secondary">
<div class="pipeline-header">
<h5 class="pipeline-name">
<?php echo get_phrase('information');?>
</h5>
</div>
<?php echo form_open(base_url() . 'teacher/homework/single/' . $row['homework_code'], array('enctype' => 'multipart/form-data')); ?>
<div class="table-responsive">
<table class="table table-lightbor table-lightfont">
<div>
<b>
<?php echo get_phrase('student_comment');?>:
</b>
<p>
<?php echo $row['student_comment'];?>
</p>
</div>
<tr>
<b>
<?php echo get_phrase('delivery_status');?>:
</b>
<p>
<?php if($row['date'] > $time):?>
<a class="btn nc btn-rounded btn-sm btn-danger" style="color:white"><?php echo get_phrase('delayed_delivery');?></a>
<?php endif;?>
<?php if($row['date'] <= $time):?>
<a class="btn nc btn-rounded btn-sm btn-success" style="color:white"><?php echo get_phrase('on_time');?></a>
<?php endif;?>
</p>
</tr>
<tr>
<b>
<?php echo get_phrase('comment');?>:
</b>
<p>
<textarea class="form-control" rows="4" name="comment"><?php echo $row['teacher_comment'];?></textarea>
</p>
</tr>
<tr>
<b>
<?php echo get_phrase('mark');?>:
</b>
<p>
<input class="form-control" placeholder="" name="mark" type="text" value="<?php echo $row['mark'];?>">
<input type="hidden" name="id" value="<?php echo $row['id'];?>">
</p>
</tr>
</table>
<div class="form-buttons-w">
<button class="btn btn-rounded btn-success" type="submit"> <?php echo get_phrase('apply');?></button>
</div>
</div>
<?php echo form_close();?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php endforeach;?>