?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/student/edit_homework.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function get_subject(batch_id) { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_subject/"+batch_id, success: function(msg){ $('#subject').html(msg.option); } }); } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Updating Home Work</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_homework','view_homework','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/update_homework/view_homework/1',$attributes); $subject = $this->studentmodel->homework_subject_details($viewinfo->batch_id); //$subject=$this->mastermodel->search_subject(); ?> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Batch Code </label> <div class="controls"> <?php $batch= $this->mastermodel->get_single_field_value('batch','batch_no','batch_id',$viewinfo->batch_id); ?> <span class="text bold"><?=$batch?></span> <input type="hidden" name="batch_id" id="batch_id" value="<?=$viewinfo->batch_id;?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Teacher Name</label> <div class="controls"> <select name="teacher_id" class="required chosen span12" id="teacher_id"> <option value="">--Select--</option> <?php $teacher = $this->mastermodel->get_data_joined('employee', 'batch_teacher', 'employee_id', 'teacher_id', $viewinfo->batch_id,'batch_id'); foreach($teacher as $row) { ?> <option value="<?=$row['employee_id']?>" <?php if($row['employee_id']==$viewinfo->teacher_id) { echo "selected" ;} ?>><?=$row['employee_name']?> </option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Subject</label> <div class="controls" id="course_name"> <select name="subject_id" class="required chosen span12" id="subject" > <option value="">Select</option> <?php foreach ($subject as $row) { ?> <option value="<?=$row->subject_id?>" <?php if($row->subject_id==$viewinfo->subject_id) { echo "selected"; } ?>><?=$row->subject_name?> </option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Date</label> <div class="controls"> <input name="date" id="date" type="text" class="calfocus span12" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->date)?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Date Of Submission</label> <div class="controls"> <input name="submission_date" id="submission_date" class="calfocus span12" type="text" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->submission_date)?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks</label> <div class="controls"> <textarea name="remarks" id="remarks" class="span12"type="text"><?=$viewinfo->remarks?></textarea> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="homework"/> <input type="hidden" name="resfunction" value="search_homework"/> <input name="homework_id" id="homework_id" type="hidden" value="<?=$viewinfo->homework_id?>" /> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_homework','view_homework','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>