Location: PHPKode > projects > MtxEventManager > MtxEventManager-V2-beta1-source-italian/mtxeventmanager/class/tpi_class.php
<?php

/**
 * @Author				Tarchini Maurizio
 * @Version				1.0
 * @AuthorEmail			hide@address.com or hide@address.com
 * @AuthorSite			http://www.mtxweb.ch
 * @DocumentDate		2-3-2008
 * @DocumentLicense		PUBLIC -FREE
 * @LicenseDetail		GNU General Public License
 * @LicenseSite			http://www.gnu.org/licenses/gpl.txt
 * @PHPCompatibility	4.2 or later
 * @DevelopmentStatus	DEV - alpha
 */


class tpi
{
	var $name;
	var $url;
	var $desc;
	var $box;
	
		function tpi ($name,$url,$desc)
		{
			$this->name = $name;
			$this->url = $url;
			$this->desc = $desc;
		}
		function CreateTpi ()
		{
			$this->box = '<table width="500" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="20"><img src="./images/box_tl.png" border="0"></td>
				<td class="boxtop">&nbsp;</td>
				<td width="35"><img src="./images/box_tr.png" border="0"></td>
			</tr>
			<tr>
				<td class="boxleft">&nbsp;</td>
				<td class="boxhome">
					<table border="0" cellpadding="10" cellspacing="0">
					<tr>
						<td valign="top">Nome:</td>
						<td><b>' . $this->name . '</b></td>
					</tr>
					<tr>
						<td valign="top">Sito:</td>
						<td><a href="' . $this->url . '" target="_blank">' . $this->url . '</a></td>
					</tr>
					<tr>
						<td valign="top">Descrizione:</td>
						<td>' . $this->desc . '</td>
					</tr>
					</table>
				</td>
				<td class="boxright">&nbsp;</td>
			</tr>
			<tr>
				<td><img src="./images/box_bl.png" border="0"></td>
				<td class="boxbottom">&nbsp;</td>
				<td><img src="./images/box_br.png" border="0"></td>
			</tr>
			</table>
			<br><br>
			';
			echo $this->box;
		}
		
		
}

?>
Return current item: MtxEventManager