naviki.main.portlets.UsersWithMostKMUploadsPortlet = function(config) {

	this.constructor.superclass.constructor.call(this, config); 

};

naviki.main.portlets.UsersWithMostKMUploadsPortlet.prototype.formatTableRow = function(elCell, oRecord, oColumn, sData) {
	elCell.innerHTML = naviki.main.portlets.Util.formatContactRow({
			record: oRecord,
			detailContactViewURL: oColumn.naviki_pi_portlet.config['portletcontainer'].config['detailContactViewURL'],
			kmtotal: naviki.main.Util.formatNumber(naviki.main.Util.round(oRecord.getData("kmtotal"), 2))+" km",
			info: ["kmtotal"]
	});
};

naviki.main.portlets.UsersWithMostKMUploadsPortlet.prototype.initialize = function() {

	this.garbage    = false;
	this.fields     = ["number", "uid" , "username", "kmtotal", "imagefileurl"];
	this.headerName = naviki.Lang.getLL('portletsUsersWithMostKMUploads');
	this.dburl      = this.dburl+"getUsersWithMostKMUploads&pageid="+this.getPageID()+"&";
	naviki.main.portlets.UsersWithMostKMUploadsPortlet.superclass.initialize.call(this);
};


