?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/www/savoyglobal.net/eldertree/application/views/master/edit_academic_year.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script> $(document).ready(function() { suggestterm('term'); $(".delRow_suggest").btnDelRow(); $(".addRow_suggest").btnAddRow({inputBoxAutoNumber:true},function(row) { $(row).find('.calfocus').each(function() { $(this).removeClass(); $(this).addClass('calfocus').addClass('medium'); $(this).datepick({dateFormat: 'dd-mm-yyyy'}); }); suggestterm('term'); }); }); </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Updating Academic Year Details</div> <div class="tools"> <a href="#" onclick="viewdata('master','viewinmastersearch','search_academic_year','view_academic_year','<?= $_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('master/addinmaster/update_academic_year/view_academic_year/1', $attributes); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Academic Year </label> <div class="controls"> <?= $viewinfo->academic_year_year ?> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Display Name</label> <div class="controls"> <input name="display_name" type="text" value="<?= $viewinfo->display_name ?>" id="display_name" class="required span12"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Start Date</label> <div class="controls"> <input name="academic_year_start_date" id="academic_year_start_date" class="required calfocus span12" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->academic_year_start_date); ?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">End Date</label> <div class="controls"> <input name="academic_year_end_date" id="academic_year_end_date" class="required calfocus span12" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->academic_year_end_date); ?>" /> </div> </div> </div> </div> <h3 class="form-section">Term Details</h3> <?php $academic = $this->mastermodel->get_data_joined('term_academic_details', 'term', 'term_id', 'term_id', $viewinfo->academic_year_id, 'academic_year_id'); ?> <div class="row-fluid"> <div class="span12"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="student_tb" style="background-color: white;"> <tr> <th>Term Name</th> <th>Start Date</th> <th>End Date</th> <th><input type="button" id="button2" value="Add More" class="addRow_suggest" title="Add Row" style="width:75px;"/></th> </tr> <?php $i = 1; foreach ($academic as $value) { ?> <tr> <td> <input type="text" name="term<?= $i; ?>" id="term<?= $i; ?>" class="span12 required term" value="<?= $value['term_name'] ?>" /> </td> <td> <input type="text" name="term_start_date<?= $i; ?>" id="term_start_date<?= $i; ?>" class="calfocus required medium" value="<?= $this->mastermodel->convertdatenormalformat($value['term_start_date']) ?>"/> </td> <td> <input type="text" name="term_end_date<?= $i; ?>" id="term_end_date<?= $i; ?>" class="calfocus required medium" value="<?= $this->mastermodel->convertdatenormalformat($value['term_end_date']) ?>" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow_suggest clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td> <input type="text" name="term<?= $i; ?>" id="term<?= $i; ?>" class="span12 required term" /> </td> <td> <input type="text" name="term_start_date<?= $i; ?>" id="term_start_date<?= $i; ?>" class="calfocus required medium"/> </td> <td> <input type="text" name="term_end_date<?= $i; ?>" id="term_end_date<?= $i; ?>" class="calfocus required medium"/> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow_suggest clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="resfunction" value="search_academic_year"/> <input type="hidden" name="academic_year_id" value="<?= $viewinfo->academic_year_id; ?>"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('master','viewinmastersearch','search_academic_year','view_academic_year','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>