403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/(Del)pathways.org.hk/MIS20140127/old20140221/student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)pathways.org.hk/MIS20140127/old20140221/student/ajax_edit_stu.php
<script>
    $(document).ready(function() {
        var val = [];
        $('.subsidy_get:checked').each(function(i) {
            val[i] = $(this).val();
            //alert(val[i]);
        });
        $.ajax({
            type: "POST",
            url: "ajax_subsidy_get.php",
            data: {
                subsidy: val
            },
            cache: false,
            success: function(html) {
                $("#subsidy_percent").val(html);
            }
        });
    });
    $(document).on('click', '.subsidy_get', function() {
        var val = [];
        $('.subsidy_get:checked').each(function(i) {
            val[i] = $(this).val();
            //alert(val[i]);
        });
        $.ajax({
            type: "POST",
            url: "ajax_subsidy_get.php",
            data: {
                subsidy: val
            },
            cache: false,
            success: function(html) {
                $("#subsidy_percent").val(html);
            }
        });
    });
</script>
<?php
include_once '../include/DBConnect.php';
$subsidy = $_POST['subsidy'];
$linking_id = $_POST['linking_id'];
$check = FALSE;
$action=$_POST['action'];
if ($action=="View") {
    if ($subsidy != 1) {
        $query = "Select Subsidy_ID as s,title,percent from subsidy where actived='1' and deleted='0' and subsidy_type='$subsidy'";
        $result = $dbh->query($query);
        $result->setFetchMode(PDO::FETCH_OBJ);
        while ($row = $result->fetch()) {
            $query1 = "Select subsidy_id from student_subsidy where actived='1' and deleted='0' and stu_subsidy_id='$linking_id'";
            $result1 = $dbh->query($query1);
            $result1->setFetchMode(PDO::FETCH_OBJ);
            while ($row1 = $result1->fetch()) {
                if ($row1->subsidy_id == $row->s)
                    $check = TRUE;
            }
            if ($check == TRUE) {
                echo '
        <input type="checkbox" name="subsidy_get[]" class="subsidy_get" value="' . $row->s . '"checked disabled="true">
        ' . $row->title . '
        <br>';
            } else {
                echo '
        <input type="checkbox" name="subsidy_get[]" class="subsidy_get" value="' . $row->s . '" disabled="true">
        ' . $row->title . '
        <br>';
            }
            $check = FALSE;
        }
    }
} else {
    if ($subsidy != 1) {
        $query = "Select Subsidy_ID as s,title,percent from subsidy where actived='1' and deleted='0' and subsidy_type='$subsidy'";
        $result = $dbh->query($query);
        $result->setFetchMode(PDO::FETCH_OBJ);
        while ($row = $result->fetch()) {
            $query1 = "Select subsidy_id from student_subsidy where actived='1' and deleted='0' and stu_subsidy_id='$linking_id'";
            $result1 = $dbh->query($query1);
            $result1->setFetchMode(PDO::FETCH_OBJ);
            while ($row1 = $result1->fetch()) {
                if ($row1->subsidy_id == $row->s)
                    $check = TRUE;
            }
            if ($check == TRUE) {
                echo '
        <input type="checkbox" name="subsidy_get[]" class="subsidy_get" value="' . $row->s . '"checked/>
        ' . $row->title . '
        <br>';
            } else {
                echo '
        <input type="checkbox" name="subsidy_get[]" class="subsidy_get" value="' . $row->s . '"/>
        ' . $row->title . '
        <br>';
            }
            $check = FALSE;
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit