?
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/add_deactivate.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script> <script type="text/javascript"> $(document).ready(function() { suggestBatch('#batch'); $('.calfocus1').datepick({dateFormat: 'dd-mm-yyyy',onClose:function(){ var batch=$("#batch_id").val(); var student=$("#student").val(); var student_id=$("#student_id").val(); var start_date=$("#start_date").val(); if(student_id!="" && start_date!="" ) { $.ajax({ type: "POST", dataType:"json", url: "<?= site_url() ?>/student/get_deactivted_student/"+student_id+'/'+start_date+'/'+batch, success: function(msg) { if(msg.deactivate >0) { alert(student+" is Already Deacivated for this Date"); $("#start_date").val(' '); } } }); } if(student_id=='') { $("#start_date").val(' '); alert("select Student First") } }}); }); function check_batch() { var batch=$("#batch_id").val(); if(batch=='') alert('Select Batch First') } </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>Creating New Student Deactivation</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('student/addinstudent/insert_deactivate/view_deactivate/1', $attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main"> </div> <div class="content no-padding"> <div class="section _100"> <label>Batch Code / Name </label> <div> <input type="text" name="batch" id="batch" data-id='batch_id' value='' class="required " onchange="empty_text('batch,#batch_id,#student,#student_id')" /> <input type="hidden" name="batch_id" id="batch_id" /> </div> </div> <div class="section _100"> <label>Student</label> <div> <input type="text" placeholder="Select Batch first" name="student" id="student" data-id='student_id' value='' class="required " onchange="empty_text('student,#student_id')" /> <input type="hidden" name="student_id" id="student_id" class="required" /> <input type="hidden" name="student_batch_id" id="student_batch_id" /> </div> </div> <div style="display: none" id="detail1"> <div class="section _100" > <label>Student No</label> <div id="reg_no" class="single_page"> </div> </div> <div class="section _100" > <label>Gender</label> <div id="gender" class="single_page"> </div> </div> <div class="section _100" > <label>Nationality</label> <div id="nationality" class="single_page"> </div> </div> <!-- <div class="section _100" > <label> Paid Amount</label> <div id="paid_amount" class="single_page"> </div> </div> --> </div> <div class="section _100"> <label>Deactivate Date</label> <div> <input class="required calfocus1" name="start_date" id="start_date" type="text" /> </div> </div> <div class="section _100"> <label>Remarks </label> <div> <textarea name="remarks" id="remarks" type="text"></textarea> </div> </div> </div> <div class="actions"> <div class="actions-left"> <input type="reset"> </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(); ?>