?
Current Path : /home1/savoy/public_html/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/public_html/oscarerp.com/application/views/student/add_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/insert_homework/view_homework/1',$attributes); $emplyee=$this->mastermodel->get_data('employee','1','employee_teacher'); $batch=$this->mastermodel->getdatas('batch','batch_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']?>"><?=$row['employee_name']?> </option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Class Code</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']?>"><?=$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> </select> </div> </div> <div class="section _100"> <label>Date</label> <div> <input name="date" id="date" type="text" class="calfocus" /> </div> </div> <div class="section _100"> <label>Date Of Submission</label> <div> <input name="submission_date" id="submission_date" type="text" class="calfocus" /> </div> </div> <div class="section _100"> <label>Remarks </label> <div> <textarea name="remarks" id="remarks" type="text"></textarea> </div> </div> </div> <?php ?> <div class="actions"> <div class="actions-left"> <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();?>