<?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_nfo extends ajax {
public static function tt_nfo($id){
parent::$CB = __FUNCTION__;
$o = ' <a title="'.langs::translate('clicktonfo', NULL, 'search').'" href="?nfo=nbrid:'.$id.'" target="_blank">
<img style="height:14px" src="'.themes::get_active_conf('img').'/metas/meta_nfo.png" alt="[nfo]"/>
</a>';
$o .= ' '.langs::translate('nfo4nbrid', NULL, 'search').' '.$id.'<br/>
<iframe style="width:99%;height:100%" src="?nfo=nbrid:'.$id.'"></iframe>';
parent::addAssign("tooltip_nfo_".$id, "innerHTML", $o);
parent::addScript("tooltip_update('nfo', '$id')");
return parent::getReply();
}
}