?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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/savoyglobal.net/sec_old/application/views/student/edit_deactivate.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { $('.calfocus1').datepick({dateFormat: 'dd-mm-yyyy',onClose:function(){ var batch=$("#batch_id").val(); var student_id=$("#student_id").val(); var start_date=$("#start_date").val(); var deactivate_id=$("#deactivate_id").val(); if(student_id!="" && start_date!="" ) { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_deactivted_student/"+student_id+'/'+start_date+'/'+batch+'/'+deactivate_id, success: function(msg) { if(msg.deactivate >0) { alert(msg.student+" is Already Deacivated for this Date"); $("#start_date").val(' '); } } }); } if(student_id=='') { $("#start_date").val(' '); alert("select Student First") } }}); }); function change_activate_date() { if(document.getElementById("activate").checked==false) $('#activate_date').addClass('required'); else $('#activate_date').removeClass('required'); } </script> <script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></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_deactivate','view_deactivate','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Student Deactivation</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('student/addinstudent/update_deactivate/view_deactivate/1', $attributes); $students_name = $this->mastermodel->get_data_srow('student', $viewinfo->student_id, 'student_id'); ?> <div class="grid_6"> <div class="box"> <div class="header main"> </div> <div class="content no-padding"> <div class="section _100"> <label>Batch code</label> <div class="single_page"> <?= $this->mastermodel->get_single_field_value('batch', 'batch_no', 'batch_id', $viewinfo->batch_id) ?> <input type="hidden" name="batch_id" id="batch_id" value="<?= $viewinfo->batch_id ?>" /> </div> </div> <div class="section _100"> <label>Student</label> <div class="single_page"> <?= $students_name->first_name . ' ' . $students_name->last_name ?> <input type="hidden" name="student_id" id="student_id" value="<?= $viewinfo->student_id ?>" /> <input type="hidden" name="student" id="student" class="required" value=" <?= $students_name->first_name . ' ' . $students_name->last_name ?> " /> </div> </div> <div class="section _100" > <label>Student No</label> <div id="reg_no" class="single_page"> <?= $students_name->reg_no ?> </div> </div> <div class="section _100" > <label>Gender</label> <div id="reg_no" class="single_page"> <?= $students_name->gender ?> </div> </div> <div class="section _100" > <label>Nationality</label> <div id="nationality" class="single_page"> <?= $students_name->nationality ?> </div> </div> <div class="section _100"> <label>Deactivate Date</label> <div> <input name="start_date" id="start_date" class=" required calfocus1" type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->start_date) ?>"/> </div> </div> <div class="section _100"> <label>Remarks </label> <div> <textarea name="remarks" id="remarks" type="text"><?= $viewinfo->remarks ?></textarea> </div> </div> </div> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="deactivate_id" id="deactivate_id" value="<?= $viewinfo->deactivate_id ?>"/> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <div class="grid_12" > <div class="box"> </div> </div> <?php echo form_close(); ?>