?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/application/views/master/ |
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/koaladraft/application/views/master/edit_academic_year.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('master','viewinmastersearch','search_academic_year','view_academic_year','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Academic Year Details</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('master/addinmaster/update_academic_year/view_academic_year/1', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Academic Year </label> <div class="single_page"> <?= $viewinfo->academic_year_year ?> </div> </div> <div class="section _100"> <label>Display Name</label> <div> <input name="display_name" id="display_name" class="required" value="<?= $viewinfo->display_name ?>"/> </div> </div> <div class="section _100"> <label>Star Date</label> <div> <input name="academic_year_start_date" id="academic_year_start_date" class="required calfocus" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->academic_year_start_date); ?>" /> </div> </div> <div class="section _100"> <label>End Date</label> <div> <input name="academic_year_end_date" id="academic_year_end_date" class="required calfocus" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->academic_year_end_date); ?>" /> </div> </div> </div> </div> </div> <?php ?> <div class="grid_6" > <div class="box"> <div class="content no-padding"> <div class="header main">Term Details</div> <?php $academic = $this->mastermodel->get_data('term_academic_details', $viewinfo->academic_year_id, 'academic_year_id'); $term = $this->mastermodel->getdatas('term'); ?> <table class="table" id="student_tb"> <tr> <th>Term Name</th> <th>Start Date</th> <th>End Date</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php foreach ($academic as $value) { ?> <tr> <td> <select id="term" name="term" class="chzn-done valid small required"> <option value="">Select</option> <?php foreach ($term as $list) { echo '<option '; if ($list['term_id'] == $value['term_id']) { echo " selected "; } echo ' value="' . $list['term_id'] . '">' . $list['term_name'] . '</option>'; } ?> </select> </td> <td> <input type="text" value="<?= $this->mastermodel->convertdatenormalformat($value['term_start_date']) ?>" name="term_start_date" id="term_start_date" class="calfocus medium1" /> </td> <td> <input type="text" value="<?= $this->mastermodel->convertdatenormalformat($value['term_end_date']) ?>" name="term_end_date" id="term_end_date" class="calfocus medium1" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> <tr> <td> <select id="term" name="term" class="chzn-done valid small"> <option value="">Select</option> <?php foreach ($term as $list) { echo '<option value="' . $list['term_id'] . '">' . $list['term_name'] . '</option>'; } ?> </select> </td> <td> <input type="text" name="term_start_date" id="term_start_date" class="calfocus medium1 required" /> </td> <td> <input type="text" name="term_end_date" id="term_end_date" class="calfocus medium1 required" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12" > <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset" /> <input type="hidden" name="resfunction" value="search_academic_year"/> <input type="hidden" name="academic_year_id" value="<?= $viewinfo->academic_year_id; ?>"/> </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(); ?>