?
Current Path : /home1/savoy/public_html/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/public_html/savoyglobal.net/eldertree/application/views/master/add_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>Creating new 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/insert_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"> <select name="academic_year_year" id="academic_year_year" class="span12 required chosen"> <option value="">Select</option> <?php for ($i = date("Y") - 20; $i <= date("Y") + 30 || $i <= date("Y"); $i++) { $num = $this->mastermodel->get_single_field_value('academic_year', 'academic_year_year', 'academic_year_year', $i); if ($num == "") { ?> <option value="<?= $i; ?>"<?php if ($i == date("Y")) { echo "selected"; } ?>><?= $i; ?></option> <?php } } ?> </select> </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" 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" /> </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" /> </div> </div> </div> </div> <h3 class="form-section">Term Details</h3> <?php $term = $this->mastermodel->search_term(); ?> <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> <tr> <td> <input type="text" name="term1" id="term1" class="span12 required term" /> </td> <td> <input type="text" name="term_start_date1" id="term_start_date1" class="calfocus required medium" /> </td> <td> <input type="text" name="term_end_date1" id="term_end_date1" 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"/> <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>