?
Current Path : /home1/savoy/www/oscarerp.com/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/www/oscarerp.com/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="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_homework','view_homework','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Creating New Home Work</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('student/addinstudent/update_homework/view_homework/1',$attributes); $emplyee=$this->mastermodel->get_data('employee','1','employee_teacher'); $batch=$this->mastermodel->getdatas('batch','batch_id'); $subject=$this->mastermodel->getdatas('subject','subject_id'); ?> <div class="grid_6"> <div class="box"> <div class="header main">Home Work Details </div> <div class="content no-padding"> <div class="section _100"> <label>Teacher Name</label> <div> <select name="teacher_id" class="required" id="teacher_id"> <option value="">--Select--</option> <?php foreach($emplyee 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 class="section _100"> <label>Batch </label> <div> <select name="batch_id" class="required" id="batch_id" onchange="get_subject(this.value)"> <option value="">--Select--</option> <?php foreach($batch as $row) { ?> <option value="<?=$row['batch_id']?>" <?php if($row['batch_id']==$viewinfo->batch_id) { echo "selected"; } ?>><?=$row['batch_no']?> </option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Subject</label> <div > <select name="subject_id" class="required chzn-done" 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 class="section _100"> <label>Date</label> <div> <input name="date" id="date" type="text" class="calfocus" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->date)?>"/> </div> </div> <div class="section _100"> <label>Date Of Submission</label> <div> <input name="submission_date" id="submission_date" class="calfocus" type="text" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->submission_date)?>" /> </div> </div> <div class="section _100"> <label>Remarks </label> <div> <textarea name="remarks" id="remarks" type="text"><?=$viewinfo->remarks?></textarea> </div> </div> </div> <div class="actions"> <div class="actions-left"> <input name="homework_id" id="homework_id" type="hidden" value="<?=$viewinfo->homework_id?>" /> <input type="reset" /> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close();?>