?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus1/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/eduplus1/application/views/master/add_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>Creating new Academic Year Details</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('master/addinmaster/insert_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> <select name="academic_year_year" id="academic_year_year" class="small required chzn-done"> <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 class="section _100"> <label>Display Name</label> <div> <input name="display_name" id="display_name" class="required"/> </div> </div> <div class="section _100"> <label>Start Date</label> <div> <input name="academic_year_start_date" id="academic_year_start_date" class="required calfocus" type="text" value="" /> </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="" /> </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 $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> <tr> <td> <select id="term" name="term" class="chzn-done valid small required"> <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"/> </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(); ?>