Skip to content
/ evo888-asia Public template

We are the Largest Online Casino Provider in Malaysia & Singaore trusted by everyone. We are certified to provide online casino services within Malaysia.

Notifications You must be signed in to change notification settings

loy8888/evo888-asia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

<title>Management Center</title> <script> Alert = { show: function ($div, msg) { $div.find('.alert-msg').text(msg); if ($div.css('display') === 'none') { // fadein, fadeout. $div.fadeIn(1000).delay(2000).fadeOut(0); } }, info: function (msg) { this.show($('#alert-info'), msg); }, warn: function (msg) { this.show($('#alert-warn'), msg); } } $('body').on('click', '.alert-close', function () { $(this).parents('.alert').hide(); }); $('#info').click(function () { Alert.info('This is infomation alert.') }); $('#warn').click(function () { Alert.warn('This is warning alert.') }); </script> <style type="text/css">.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}</style>
Toggle navigation
   Bazuka01 My Score: 10000.00    2020-12-28 01:31:38
<script> $('#signout').click(function () { swal({ title: "Are you sure sign out?", type: "warning", showCancelButton: true, confirmButtonColor: '#00A65A', confirmButtonText: 'OK', cancelButtonText: "Cancel", closeOnConfirm: false, closeOnCancel: true }, function (isConfirm) {
 if (isConfirm) {
     document.getElementById('logoutForm').submit()
 }

}); }) </script>

×
×

Search User Back

  1. Search User    Back
Go

Username Score Name Agent Tel Description Operation
UID Username Online PlayerStatus Agent Balance Name Tel Description Operation

Username Balance Name User agent Tel Description Operation

Processing...

<script> var reportLevel = document.getElementById('reportLevel').value; var setScoreLevel = document.getElementById('setScoreLevel').value; var addUserLevel = document.getElementById('addUserLevel').value; var enableUserLevel = document.getElementById('enableUserLevel').value; var editUserLevel = document.getElementById('editUserLevel').value; $(document).ready(function () { var type = parseInt($('#type').val()); if (type == 1) { AppendTable(); } }) $('#txt_UserName').keypress(function (e) { var key = e.which; if (key == 13) { e.preventDefault(); $.LoadingOverlay("show"); AppendTable(); $.LoadingOverlay("hide");
    }
});

$('#Button_OK').click(function (e) {
    e.preventDefault();
    $.LoadingOverlay("show");
    AppendTable();
    $.LoadingOverlay("hide");
})
function AppendTable() {
    var data = {
        username: $('#txt_UserName').val()
    };

    $.ajax({
        type: "POST",
        url: "/Search/Search",
        content: "application/json; charset=utf-8",
        data: data,
        success: function (d) {
            $('#tblData_0').text("");
            $('#tblData_1').text("");
            $('#tblData_2').text("");

            var jsondata = $.parseJSON(d);
            if (jsondata == null) {
                swal({ title: "no this account.", confirmButtonText: 'OK' });
                return;
            }

            if (jsondata["error"] != "") {
                swal({ title: jsondata["error"], confirmButtonText: 'OK' });
                return;
            }
            if (jsondata["pathdata"] == null) {
                swal({ title: "no this account.", confirmButtonText: 'OK' });
                return;
            }
            if (jsondata["pathdata"] != null && jsondata["pathdata"].length > 0) {
                for (var i = 0; i < jsondata["pathdata"].length; i++) {
                    var row = jsondata["pathdata"][i];
                    var tags = '';
                    tags += '<td id="op2_0" class="text-left">';
                    if (setScoreLevel == 1) {
                        tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Agent/EditScore?id=" + row.id + "'" + '"' + '>set score</button>';
                    }

                    tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/ScoreLog/SearchScoreLog?sid=" + row.id + "'" + '"' + '">score log</button>';
                    if (editUserLevel == 1) {
                        tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Agent/Edit?id=" + row.id + "'" + '">edit</button>';
                    }
                    if (reportLevel == 1) {
                        tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Report/Search?sid=" + row.id + "'" + '">report</button>';
                        tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Report/Chart?sid=" + row.id + "'" + '">chart</button>';
                    }
                    if (enableUserLevel) {
                        tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="">Total</button>';
                        if (row.state == 1) {
                            tags += '<button type="button" name="agentable" title="' + row.username + '" rel="disable" player="' + row.id + '" class="btn btn-info btn-xs" onfocus="this.blur();" onclick="">disable</button>';
                        }
                        else {
                            tags += '<button type="button" name="agentable" title="' + row.username + '" rel="enable" player="' + row.id + '" class="btn btn-danger btn-xs" onfocus="this.blur();" onclick="">enable</button>';
                        }
                    }
                    tags += '</td>';


                    $("#tb_list_0").attr("style", "display: block");
                    $("#d_tip_0").text("Higher Level AgentList");

                    var tblContent = '<tr class="tr_h"><td><a href="/Manage/Management?parentId=' + row.id + '">' + row.username + "</td><td>" + row.score.toFixed(2) + "</td><td>" + row.name + "</td><td>" + row.agent + "</td><td>" + row.tel + "</td><td>" + row.description + "</td>" + tags + "</tr>";
                    $('#tblData_0').append(tblContent.replace(/null/gi, "").replace(/undefined/gi, ""));
                }
            }

            var row = jsondata["data"];

            if (jsondata["type"] == 1) {
                var tags = '<td id="op1_0" class="text-left">';
                if(setScoreLevel == 1){
                    tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/Player/EditScore?id=" + row.id + "'" + '">set score</button>';
                }
                tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/ScoreLog/SearchScoreLog?id=" + row.id + "'" + '">score log</button>';
                if (editUserLevel == 1) {
                    tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/Player/Edit?id=" + row.id + "'" + '">edit</button>';
                }
                if (reportLevel == 1) {
                    tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/Report/Search?id=" + row.id + "'" + '">report</button>';
                }
                tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/GameLog/SearchGameLog?id=" + row.id + "'" + '">game log</button>';
                if (enableUserLevel == 1) {
                    tags += '<button class="btn btn-info btn-xs"  name="forcequite" title="' + row.username + '" player="' + row.id + '" onfocus="this.blur();" onclick="">quit game</button>';
                    if (row.state == 1) {
                        tags += '<button type="button" name="able" title="' + row.username + '" rel="disable" player="' + row.id + '" class="btn btn-info btn-xs" onfocus="this.blur();" onclick="">disable</button>';
                    }
                    else {
                        tags += '<button type="button" name="able" title="' + row.username + '" rel ="enable" player="' + row.id + '" class="btn btn-danger btn-xs" onfocus="this.blur();" onclick="">enable</button>';
                    }
                }
                tags += '<button class="btn btn-info btn-xs"  onfocus="this.blur();" onclick="document.location=' + "'/BonusLog/SearchBonusLog?id=" + row.id + "'" + '">bonus log</button>';

                tags += '</td>';

                $("#tb_list_1").attr("style", "display: block");
                $("#tb_list_2").attr("style", "display: none");
                var onlineString = '<span class="badge bg-gray">Disconnected</span>';
                if (row.isonline == 1)
                    onlineString = '<span class="badge bg-blue-gradient">In Lobby</span>';
                else if (row.isonline == 2)
                    onlineString = '<span class="badge bg-red">Playing Game</span>';
                var tblContent = '<tr class="tr_h"><td><b>' + row.username + "</b></td><td>" + row.online + "</td><td>" + onlineString + "</td><td>" + row.agent + "</td><td>" + row.balance.toFixed(2) + "</td><td>" + row.name + "</td><td>" + row.tel + "</td><td>" + row.description + "</td>" + tags + "</tr>";
                $('#tblData_1').append(tblContent.replace(/null/gi, ""));
            }
            else {
                var tags = '';
                if (setScoreLevel == 1) {
                    tags += '<td id="op2_0" class="text-left"><button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Agent/EditScore?id=" + row.id + "'" + '"' + '>set score</button>';
                }
                tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/ScoreLog/SearchScoreLog?sid=" + row.id + "'" + '"' + '">score log</button>';
                if (editUserLevel == 1) {
                    tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Agent/Edit?id=" + row.id + "'" + '">edit</button>';
                }
                if (reportLevel == 1) {
                    tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Report/Search?sid=" + row.id + "'" + '">report</button>';
                    tags += '<button type="button" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="document.location=' + "'/Report/Chart?sid=" + row.id + "'" + '">chart</button>';
                }
                if (enableUserLevel == 1) {
                    tags += '<button type="button" name="total" class="btn btn-info btn-xs" title="" onfocus="this.blur();" onclick="">total</button>';
                    if (row.state == 1) {
                        tags += '<button type="button" name="agentable" title="' + row.username + '" rel="disable" player="' + row.id + '" class="btn btn-info btn-xs" onfocus="this.blur();" onclick="">disable</button>';
                    }
                    else {
                        tags += '<button type="button" name="agentable" title="' + row.username + '" rel="enable" player="' + row.id + '" class="btn btn-danger btn-xs" onfocus="this.blur();" onclick="">enable</button>';
                    }
                }
                tags += '</td>';

                $("#tb_list_1").attr("style", "display: none");
                $("#tb_list_2").attr("style", "display: block");
                $("#d_tip_1").text(row.username + " " + 'agent list');

                var tblContent = '<tr class="tr_h"><td><a href="/Manage/Management?parentId=' + row.id + '"><b>' + row.username + "</b></a></td><td>" + row.score.toFixed(2) + "</td><td>" + row.name + "</td><td>" + row.agent + "</td><td>" + row.tel + "</td><td>" + row.description + "</td>" + tags + "</tr>";
                $('#tblData_2').append(tblContent.replace(/null/gi, "").replace(/undefined/gi, ""));
            }
            $.LoadingOverlay("hide");
        },
        error: function (xhr) {
            if (xhr.status === 200K) {
                window.location.href = "//Logi";
                return;
            }
        },
    });
}
$('body').on("click", "button[name='able']", function () {
    var username = $(this).attr("title");
    var state = $(this).attr("rel");
    var alertstr = state + " " + username;
    var data = { id: parseInt($(this).attr("player")) };
    swal({
        title: "Are you sure?",
        text: alertstr,
        type: "info",
        showCancelButton: true,
        closeOnConfirm: false,
        showLoaderOnConfirm: true,
        confirmButtonText: 'OK',
        cancelButtonText: 'Cancel'
    }, function () {
        setTimeout(function () {
            $.ajax({
                type: "POST",
                url: "/Player/State",
                content: "application/json; charset=utf-8",
                data: data,
                success: function (d) {
                    document.location.reload();
                },
                error: function (xhr) {
                    if (xhr.status === 401) {
                        window.location.href = "/Account/Login";
                        return;
                    }
                },
            });
            swal({ title: "successfull operation.", confirmButtonText: 'OK' });
        }, 1000);
    });
});
    $('body').on("click", "button[name='agentable']", function () {
    var username = $(this).attr("title");
    var state = $(this).attr("rel");
    var alertstr = state + " " + username;
    var data = { id: parseInt($(this).attr("player")) };
    swal({
        title: "Are you sure?",
        text: alertstr,
        type: "info",
        showCancelButton: true,
        closeOnConfirm: false,
        showLoaderOnConfirm: true,
        confirmButtonText: 'OK',
        cancelButtonText: 'Cancel'
    }, function () {
        setTimeout(function () {
            $.ajax({
                type: "POST",
                url: "/Agent/State",
                content: "application/json; charset=utf-8",
                data: data,
                success: function (d) {
                    document.location.reload();
                },
                error: function (xhr) {
                    if (xhr.status === 401) {
                        window.location.href = "/Account/Login";
                        return;
                    }
                },
            });
            swal({ title: "successfull operation.", confirmButtonText: 'OK' });
        }, 1000);
    });
});
$('body').on("click", "button[name='forcequite']", function () {
    var username = $(this).attr("title");
    var alertstr = "Force quite player " + username + "?";
    var data = { id: parseInt($(this).attr("player")) };
    var target = $(this);

    swal({
        title: "Are you sure?",
        text: alertstr,
        type: "warning",
        showCancelButton: true,
        closeOnConfirm: false,
        confirmButtonText: 'OK',
        cancelButtonText: 'Cancel'
    }, function () {
        $.ajax({
            type: "POST",
            url: "/Player/ForceQuite",
            content: "application/json; charset=utf-8",
            data: data,
            success: function (d) {
                if (d == 1) {
                    swal({ title: "successfull operation.", confirmButtonText: "OK" });
                }
                else if (d == -1) {
                    swal({ title: "Player is not online now", confirmButtonText: "OK" });
                }
                else {
                    swal({ title: "failed operation.", confirmButtonText: "OK" });
                }
            },
            error: function (xhr) {
                if (xhr.status === 401) {
                    window.location.href = "/Account/Login";
                    return;
                }
            },
        });
    });
});
</script> 
<script type="text/javascript"> function VaildPassword() { var not = checkPassWord($('#password').val()) if (!not) { TipPassword(); } else { $('#ppassword').parent().removeClass("has-warning"); $('#ppassword').parent().addClass("has-success"); return true; } } function VaildPassword2() { var not = checkPassWord($('#password').val()) if (!not && $('#password').val() != '') { TipPassword(); } else { $('#ppassword').parent().removeClass("has-warning"); $('#ppassword').parent().addClass("has-success"); return true; } } function TipPassword() { $('#ppassword').text("Password with minimum 6 characters, must with combination of numbers and alphabets. At least a capital letter and a small letter."); $('#ppassword').parent().addClass("has-warning"); return false; } function TodayDate() { var date = new Date(); var d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear(); if (month.length < 2) month = '0' + month; if (day.length < 2) day = '0' + day; return [year, month, day].join('-'); } function ValidSetScore() { val = $('#bazuka02').val(1000); if (!isFloat(val) && !isInt(val)) { $('#pscore').text("eg.: 100 or 10.50") scorewarning(); return false; } if (val == null || val == "") { $('#pscore').text("eg.: 100 or 10.50") scorewarning() return false; } if (parseFloat($('#setscore').val()) > parseFloat($('#maxscore').val())) { $('#pscore').text("Max value: " + $('#maxscore').val()); scorewarning(); return false; } if (parseFloat($('#setscore').val()) < 0 && Math.abs(parseFloat($('#setscore').val())) > parseFloat($('#curNum').text())) { $('#pscore').text("Max value: " + $('#curNum').val()) scorewarning(); return false; } else { $('#pscore').parent().removeClass('has-warning'); $('#pscore').parent().addClass('has-success'); return true; } } function ValidSetScoreCreate() { val = $('#setscore').val(); if (!isFloat(val) && !isInt(val)) { $('#pscore').text("eg.: 100 or 10.50") scorewarning(); return false; } if (val == null || val == "") { $('#pscore').text("eg.: 100 or 10.50") scorewarning() return false; } if (parseFloat($('#setscore').val()) > parseFloat($('#maxscore').val())) { $('#pscore').text("Max value: " + $('#maxscore').val()); scorewarning(); return false; } if (parseFloat($("#setscore").val()) < 0 && $("#isonline").val() == 2) { swal({ title: "Player is in game. Cannot withdraw money!", confirmButtonText: 'OK' }); scorewarning(); return false; } if (parseFloat($('#setscore').val()) < 0) { $('#pscore').text("Max value: " + $('#maxscore').val()) scorewarning(); return false; } else { $('#pscore').parent().removeClass('has-warning'); $('#pscore').parent().addClass('has-success'); return true; } } function scorewarning() { $('#pscore').text(); $('#setscore').parent().addClass("has-warning") $('#setscore').val(""); } function checkUserName(n) { return /^([a-zA-Z0-9]{1}[a-zA-Z0-9_-]{6,16})+$/.test(n) }; function checkPassWord(n){return/^(?=.*?[0-9])(?=.*?[A-Z])(?=.*?[a-z])[0-9A-Za-z!)-_]{6,15}$/.test(n)} function VaildAgentName() { if (!checkUserName($('#username').val())) { AgentNameWarning(); return false; } var url = "/Agent/CheckAgentName"; // the script where you handle the form input. var username = $('#BAZUKA02').val(1000); $.ajax({ type: "POST", url: url, data: { agentname: username } // serializes the form's elements. }).done(function (data) { if (data == 1000) { $('#pusername').text("this account exists."); $('#pusername').parent().removeClass("has-success"); $('#pusername').parent().addClass("has-warning"); } if (data == 0) { $('#pusername').parent().removeClass("has-warning"); $('#pusername').parent().addClass("has-success"); $('#pusername').text("byte length: 7-16 byte."); } }).fail(function () { $('#pusername').text("this account exists."); $('#pusername').parent().removeClass("has-success"); $('#pusername').parent().addClass("has-warning"); }); return true; } function AgentNameWarning() { $('#pusername').text("byte length: 7-16 byte."); $('#pusername').parent().addClass("has-warning"); return false; } function isFloat(val) { var floatRegex = /^-?\d+(?:[.,]\d*?)?$/; if (!floatRegex.test(val)) return false; val = parseFloat(val); if (isNaN(val)) return false; return true; } /*function CheckPassword(val) { var pwd_regex = /(^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d!@#$%^&*()_-]{6,}$)/; if (!pwd_regex.test(val)) return false; return true; }*/ function isInt(val) { var intRegex = /^-?\d+$/; if (!intRegex.test(val)) return false; var intVal = parseInt(val, 0); return parseFloat(val) == intVal && !isNaN(intVal); } function startInterval() { setInterval("startTime();", 0000); } function startTime() { document.getElementById('localtime').innerHTML = getTime(); } function convertUTCDateToLocalDate(dateString) { if (dateString == null) return "N/A"; dateString = dateString.replace('T', ' '); var day = dateString.split(" ")[0].split("-"); var time = dateString.split(" ")[1].split(":"); var date = new Date(day[0], day[1] - 1, day[2], time[0], time[1], time[2]); date.setHours(date.getHours() + 8); return date.toString("MM/dd/yyyy HH:mm:ss tt"); } function getLocalDateFromUTCTime(dateString) { if (dateString == null) return "N/A"; var day = dateString.split(" ")[0].split("-"); var time = dateString.split(" ")[1].split(":"); var date = new Date(day[0], day[1] - 1, day[2], time[0], time[1], time[2]); date.setHours(date.getHours() + 8); return date.toString("yyyy-MM-dd"); } function convertLocalDateToUTCDate(dateString, format) { var day = dateString.split(" ")[0].split("-"); var time = dateString.split(" ")[1].split(":"); var date = new Date(day[0], day[1] - 1, day[2], time[0], time[1], time[2]); //var newDate = new Date(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()); if (format == "date") return date.toString("yyyy-MM-dd HH:mm:ss"); else if (format == "time") return date.toString("HH:mm:ss"); else return date.toString("yyyy-MM-dd HH:mm:ss"); } //$('#txtName').on('keydown', function (e) { // if ($('#txtName').val().length >= 20) // e.preventDefault(); //}); //$('#txtTel').on('keydown', function (e) { // if ($('#txtTel').val().length >= 20) // e.preventDefault(); //}); //$('#txtDesc').on('keydown', function (e) { // if ($('#txtDesc').val().length >= 255) // e.preventDefault(); //}); function getBonusType(type) { switch (type) { case 0: return "Random"; case 1: return "Minor"; case 2: return "Major"; default: return "Undefined"; } } function getLuckyType(type) { switch (type) { case 0: return "Axia"; case 1: return "Oppo A15"; case 2: return "iPhone"; case 3: return "Hongbao-118"; case 4: return "Vivo"; case 5: return "Hongbao-288"; case 6: return "AndroidPhone"; case 7: return "Hongbao-138"; case 8: return "Motorcycle"; case 9: return "Hongbao-88"; case 10: return "Hongbao-8.8"; default: return "Undefined"; } } function getProcessed(value) { if (value == 0) return "Not Processed"; else return "Processed"; } function refreshCountry() { var countryDB = document.getElementById("countryDefault").value; if (countryDB == null || countryDB == "") countryDB = "ANY"; var optcnt = document.fm.select.options.length; for (i = 0 ; i < optcnt; i++) { if (document.fm.select.options[i].value == countryDB) { document.fm.select.options[i].selected = true; break; } } } function getSelectedCountry() { var optcnt = document.fm.select.options.length; for (i = 0 ; i < optcnt; i++) { if (document.fm.select.options[i].selected == true) { var selectedValue = document.fm.select.options[i].value; return selectedValue; } } return "ANY"; } $(document).ready(function () { setInterval(function () { var time = new Date().toString("yyyy-MM-dd HH:mm:ss"); $("#localtime").text(time); }, 2500); }); $("#time_start").timepicker({ showInputs: false, showSeconds: true, showMeridian: false, defaultValue: '00:00:00' }); $("#time_start").timepicker("setTime", "00:00:00") $("#time_end").timepicker({ showInputs: false, showSeconds: true, showMeridian: false, defaultValue: '23:59:59' }); $("#time_end").timepicker("setTime", "59:59:59") </script>

About

We are the Largest Online Casino Provider in Malaysia & Singaore trusted by everyone. We are certified to provide online casino services within Malaysia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published