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 : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/khonguyenlieu.vn/public_html/webadmin/templates/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/khonguyenlieu.vn/public_html/webadmin/templates/js/apps.js
function fm_price(price){
	//price = price.replace(/[^\d\.\,]+/g, '');
	// WHEN PRICE FORMAT 1.000,00
	//if (/\.[^\,\.]+\,/g.test(price))
		//price = price.replace(/\./g, '').replace(/\,/, '.');
	// WHEN PRICE FORMAT 1,000.00
	//else if ( /\,[^\,\.]+\./g.test(price) )
		//price = price.replace(/\,/g, '');
	// WHEN PRICE FORMAT 100,00 OR 100.00
	//else
		price = price.replace(/\,/g, '');
	
	return Number(price)
}
function mkselected(id, value)
{
    var loca = $("#"+id +" option") ;
	for(var i=0;i<loca.length;i++){
		if(loca[i].value == value)
			loca[i].selected = true ;
	}
}
function selectoption(id, value)
{
    var loca = document.getElementById(id).options ;
	for(var i=0;i<loca.length;i++){
		if(loca[i].value == value)
			loca[i].selected = true ;
	}
}
function changestatus(value,id)
{
    $("#loadstatus"+id).html('<image src="'+url+'templates/images/loading1.gif">');
    $.post(url+"index.php/order/changestatus",{'status':value,'id':id},function(data)
    {
        $("#loadstatus"+id).html('');  
                                                     
    },'json');    
}
function count_text(metatitle,length)
{
	var str = $('#'+metatitle).val();
	var num = str.length ;
	if(num>=length) 
		$('#count_'+metatitle).css('color','#F00');
	else
		$('#count_'+metatitle).css('color','#000');
	$('#count_'+metatitle).html(num) ;
}
function loadstatic()
{
    $("#static").html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"index.php/ajax/thongke",{},function(data)
    {
        $("#static").html(data);                                               
    });     
}
function themanh()
{
    var path = $("#imgproduct").val();
    var ProductID = $("#ProductID").val();
    $("#ajaxload").html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"index.php/product/add_img_product",{'path':path,'ProductID':ProductID},function(data)
    {
        $("#listimg").html(data);
        $("#imgproduct").val('');
        $("#ajaxload").html('');
                                                       
    });    
}
function lastorder(){
    $("#orderlast").html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"ajax/orderlast",{},function(data)
    {
        $("#orderlast").html(data);                                               
    });     
}

function changestatus(value,id){
    $("#loadstatus"+id).html('<image src="'+url+'templates/images/loading1.gif">');
    $.post(url+"order/changestatus",{'status':value,'id':id},function(data)
    {
        $("#loadstatus"+id).html('');  
                                                     
    },'json');    
}
/******
* Tuy chon xem don hang e-com
*/

function change_list_order(status){
    $("#ajax-load").css('display','block');
    $.post(url+"order/change_list_order",{'status':status},function(data)
    {
        $("#page").html(data.list);  
        $("#pagination_top").html(data.pagination);  
        $("#pagination_bot").html(data.pagination);  
        $("#num_top").html(data.num);  
        $("#num_bot").html(data.num);  
        $("#status").val(data.status);  
        $("#ajax-load").css('display','none');
                                                     
    },'json');    
}

//Site config
function loadConfig()
{
    $("#config").html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"index.php/siteconfig/config",{},function(data)
    {
        $("#config").html(data);                                               
    });    
}

//Member
function updatemember(id){
    $("#page").html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"index.php/member/update/",{'id':id},function(data)
    {
        $("#page").html(data);                                               
    });     
}

//Publish
function publish(table,field,id,status)
{
    $("#publish"+id).html('<image src="'+url+'templates/images/loading.gif">');
    $.post(url+"index.php/ajax/publish",{'table':table,'field':field,'id':id,'status':status},function(data)
    {
        $("#publish"+id).html(data);                                               
    });
}
$(function(){
    $("#title").keyup(function()
    {
        var word=$(this).val();
        $.post(url+"index.php/ajax/getalias/",{'name':word},function(data)
        {
            $("#alias").val(data);
        });
        return false;
    });
});
function trit(a){
	console.log(a) ;
}

Youez - 2016 - github.com/yon3zu
LinuXploit