? Fallagassrini

Fallagassrini Bypass Shell

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

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

<script type="text/javascript">
    
    $(document).ready(function()
    {                 
        suggestStudentsNotCancelled('#student',"<?= $viewinfo->batch_id; ?>");
    });
    function getSessionAmount(session,divid){
        var res = session.split("~");
        $('#'+divid).val(res[1]);
    }
    function load_student_details()
    { 
        
        var student_id = $('#student_id').val();    
        var date = $('#date').val();
        if(student_id == "")
        {
            alert("Please select Student First");
        }
        else if(date == "")
        {
            alert("Please select Allotment Date");
        }
        else
        {   
            var flag=0;
            var students=$('#list_stud_id').val();
            
            $.each( students.split(','), function( key, list_student ) {
                if(list_student==student_id){
                    flag=1;
                }
            });
            
            var index=$('#student_added tr').length+1;
            if(flag==1)
            {
                alert('Already added'); 
            }
            else
            {                                      
                $.ajax({
                    type: "POST",
                    url: "<?= site_url() ?>/student/load_students/"+student_id+"/"+index+"/"+<?= $viewinfo->course_id ?>,
                    success: function(data) {
                        $("#student_added").append(data);
                        $('#list_stud_id').val($('#list_stud_id').val()+','+student_id);
                        $('#index').val(index);
                        $('#course_fee_date'+index).val(date);
                    }});
            }
            $('#student_id').val('');               
            $('#student').val('');               
        }

    }
    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>Batch Allocation</div>
                <div class="tools">
                    <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student_batch','view_student_batch','<?= $_SESSION['pagenum']; ?>')" class="remove"></a>
                </div>
            </div>
            <div class="portlet-body form">
                <!-- BEGIN FORM-->
                <?php
                $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate');
                echo form_open('student/addinstudent/insert_student_batch/view_student_batch/1', $attributes);
                ?>


                <h3 class="form-section">Batch Details</h3>
                <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;">
                    <tr>
                        <th>Batch Code</th>
                        <th>Course Name</th>
                        <th>Teacher</th>
                        <th>Date of Allotment</th>                     

                    </tr>
                    <tr>
                        <td><?= $viewinfo->batch_no; ?></td>
                        <td><?= $viewinfo->course_name . '-' . $viewinfo->course_code; ?></td>
                        <td>
                            <?php
                            $teacher = $this->mastermodel->get_teacher_batch($viewinfo->batch_id, date("d-m-Y"));
                            if (!empty($teacher))
                                echo $teacher->employee_name;
                            ?>
                        </td>
                        <td><input class="calfocus m-wrap required" type="text" name="date" id="date" style="width:inherit;" value="<?= date("d-m-Y"); ?>"/></td>
                    </tr>
                </table>
                <input type="hidden" name="batch_id"  id="batch_id" value="<?= $viewinfo->batch_id; ?>"/>
                <input type="hidden" name="course_id" id="course_id" value="<?= $viewinfo->course_id ?>"/>


                <h3 class="form-section">Add Student to <?= $viewinfo->batch_no; ?></h3>

                <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;">

                    <tr>
                        <td>
                            <input type="text" name="student" id="student"  value=''placeholder="Select Student" class="reset" onchange="empty_text('student,#student_id')" />
                            <input type="hidden" name="student_id" id="student_id" class="reset" /> 
                        </td>
                        <td>
                            <input type="button" onclick="load_student_details()" value="Load Student Details"/>
                        </td>
                    </tr>
                </table>


                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i>Student Details</div>
                    </div>
                    <div class="portlet-body">
                        <div class="row-fluid">
                            <div class="control-group">
                                <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;">

                                    <thead>
                                        <tr>
                                            <th> 
                                                <input style="width:15px;" type="checkbox" id="check_all" name="check_all" checked onclick="checkallstd(this.checked,'student_added')"/>Mark
                                            </th>
                                            <th style="width:15px;">Student Name</th>
                                            <th>Student No</th>
                                            <th>Gender</th>
                                            <th>Nationality</th>
                                            <th>No of Sessions</th>
                                            <th>Registration Fee </th>
                                            <th>Books Fees</th>
                                            <th>Recurring</th>
                                            <th>Course Fees / WEF Date</th>
                                        </tr>
                                    </thead>   
                                    <tbody id="student_added">

                                    </tbody>

                                </table>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption"><i class="icon-check"></i>Student in <?= $viewinfo->batch_no; ?></div>
                    </div>
                    <div class="portlet-body">
                        <div class="row-fluid">
                            <div class="control-group">
                                <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;">
                                    <thead>
                                        <tr>
                                            <th>Sl No</th>
                                            <th>Student Name</th>
                                            <th>Student No</th>
                                            <th>Gender</th>
                                            <th>Nationality</th>
                                            <th>Status</th>
                                            <th>No of Sessions</th>
                                            <th>Registration Fee</th>
                                            <th>Books Fees</th>
                                            <th>Course Fees</th>
        <!--                                    <th>Monthly Payment</th>-->
                                        </tr>
                                    </thead>
                                    <tbody id="list_student_added">
                                        <?php
                                        $html1 = '';
                                        $html = '';
                                        $index = 1;
                                        $active = count($batch_students) - (count($cancelled_student) + count($deactivate_student));
                                        $slno1 = $active + 1;
                                        $slno2 = $active + count($cancelled_student) + 1;
                                        if (count($batch_students))
                                        {
                                            foreach ($batch_students as $value)
                                            {
                                                $stud[] = $value['student_id'];

                                                if (in_array($value['student_id'], $cancelled_student))
                                                {
                                                    $status = 'Cancelled';
                                                    $html = '<tr class="cancelled_tr">
                                <td>
                                    ' . $slno2 . '
                                </td>
                                <td>
                                   ' . $value['first_name'] . ' ' . $value['last_name'] . '                               
                                </td>
                                <td>
                                   ' . $value['reg_no'] . '
                                </td>
                                 <td>
                                     ' . $value['gender'] . '
                                </td>
                                 <td>
                                   ' . $value['nationality'] . '
                                </td>
                                 <td>
                                   ' . $status . '
                                </td>
                                <td>
                                     ' . $value['no_sessions'] . '
                                </td>
                                <td>
                                  ' . $value['registration_fee'] . '
                                </td>
                                 <td>
                                    ' . $value['books_fee'] . '
                                </td>
                                <td>
                                   ' . $value['course_fee'] . '
                                </td>';

                                                    $html .= '</tr>' . $html;
                                                    $slno2++;
                                                }
                                                elseif (in_array($value['student_id'], $deactivate_student))
                                                {
                                                    $status = 'Deactivated';

                                                    $html1 = '<tr class="deactivated_tr">
                                <td>
                                    ' . $slno1 . '
                                </td>
                                <td>
                                   ' . $value['first_name'] . ' ' . $value['last_name'] . '                               
                                </td>
                                <td>
                                   ' . $value['reg_no'] . '
                                </td>
                                 <td>
                                     ' . $value['gender'] . '
                                </td>
                                 <td>
                                   ' . $value['nationality'] . '
                                </td>
                                 <td>
                                   ' . $status . '
                                </td>
                                <td>
                                     ' . $value['no_sessions'] . '
                                </td>
                                <td>
                                  ' . $value['registration_fee'] . '
                                </td>
                                 <td>
                                    ' . $value['books_fee'] . '
                                </td>
                                <td>
                                   ' . $value['course_fee'] . '
                                </td>';

                                                    $html .= '</tr>' . $html1;
                                                    $slno1++;
                                                    ;
                                                }
                                                else
                                                {
                                                    $status = 'Active';
                                                    ?>
                                                    <tr>
                                                        <td>
                                                            <?= $index ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['first_name'] . ' ' . $value['last_name'] ?>                                    
                                                        </td>
                                                        <td>
                                                            <?= $value['reg_no']; ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['gender']; ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['nationality']; ?>
                                                        </td>
                                                        <td>
                                                            <?= $status; ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['no_sessions'] ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['registration_fee'] ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['books_fee'] ?>
                                                        </td>
                                                        <td>
                                                            <?= $value['course_fee'] ?>
                                                        </td>

                                                    </tr>
                                                    <?php
                                                    $index++;
                                                }
                                            }
                                            echo $html1;
                                            echo $html;
                                        }
                                        else
                                        {
                                            ?>
                                        <td colspan="11">
                                            No student is in this batch
                                        </td>

                                        <?php
                                    }
                                    ?>
                                    </tbody>

                                </table>

                            </div>
                        </div>
                        <input type="hidden" value="<?= implode(',', $stud) ?>" name="list_stud_id" id="list_stud_id" />
                        <input id="index" name="index" value="0" type="hidden"/>
                    </div>
                </div>
                <div class="form-actions">
                    <input type="hidden" name="tab_name" value="student_batch"/>
                    <input type="hidden" name="resfunction" value="search_student_batch"/>
                    <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_batch','view_student_batch','<?= $_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