Location: PHPKode > projects > Simple Way to Usenet > libs/swun/ajax/ajx_tt_didrate.class.php
<?php
/**
 *  
 * @author  Benjamin Gillissen <hide@address.com>
 * 
 *	**************************************************************

	Copyright (C) 2009  Benjamin Gillissen
	
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details at:
	http://www.gnu.org/copyleft/gpl.html

 *	**************************************************************
 */
class ajx_tt_didrate extends ajax {
	
	
	public static function tt_didrate($why, $id, $who, $unic){
		parent::$CB = __FUNCTION__;
		$tpl = new template();
		if ( FALSE === $tpl->load_file('leftmenu/didrate_tooltip.tpl') ){ return parent::getReply(); }
		$data['why'] = $why;
		$data['id'] = $id;
		$data['who'] = $who;
		if ( $why == 'DirectID' OR $why == 'Search'){
			$data['details'] = search::get_details('nbrid', $id);
		}
		$tpl->setdata($data);
		parent::addAssign("tooltip_didrate_".$unic, "innerHTML", $tpl->parse(TRUE));
		parent::addScript("tooltip_update('didrate', '$unic')");
		return parent::getReply();	
	}
	
}
Return current item: Simple Way to Usenet