403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
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/namduongmarket.com-bk/public_html/webadmin/templates/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/namduongmarket.com-bk/public_html/webadmin/templates/js/jquery.showname.js
/**
* Ver : 1.2
* Date : 12-06-2020
* Desc : Show with any name form id
* Params : 
*/

/*How to use*/	
//var list_cat = $('#list_cat').html(); 
//$('.cat').showname({id:'catid',name:'',data:list_cat});

;(function($){
    $.fn.extend({ 
        showname: function(options){
			var data = [{id:0,name:'Chưa chọn'}] ; 
			var defaults = {
				id : 'catid',
                name: 'cat_name',
				data: data
            }
 
            var options =  $.extend(defaults, options);
            return this.each(function(){
                var obj = $(this); 
				var list = jQuery.parseJSON(options.data);
				
				for( i in list)
				{
					var id = parseInt(obj.html()); //trit(id +"-"+ list[i][options.id]);
					if(list[i][options.id]==id)
					{
						obj.html(list[i][options.name]);
					}
				}
             	
            });
        }
    });
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit