Location: PHPKode > projects > Lithron > lithron-1.0.2/prado/SimplePDF.php
<?php

/**
 * Class file.
 *
 * @license http://opensource.org/licenses/mozilla1.1.php Mozilla Public License
 * @copyright 2005, diemeisterei GmbH. All rights reserved.
 * @author $Author: schmunk $
 * @version $Revision: 1 $  $Date: 2006-06-01 15:11:24 +0000 (Do, 01 Jun 2006) $
 * @package Phundament
 * @subpackage
 */

/**
 * class
 *
 * @package Phundament
 * @subpackage
 * @ todo doubled in MasterLayout for search ...
 */
class SimplePDF extends TPage
{
	public $FileName;
	public $ImgResolution = "low";
	public $WellText;
	public $WellPics;
	public $Headline;

	function onPreRender($param)
	{
		parent::onPreRender($param);
		$this->WellText = str_replace("%%IMG%%", "<div width='20mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>", $this->WellText);

		
		$this->WellPics = " <div width='20mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		$this->WellPics .= str_repeat("Lorem ipsum donu more gino", 20);
		$this->WellPics .= " <div width='10mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		$this->WellPics .= " <div width='30mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		#$this->WellPics .= str_repeat("Lorem ipsum donu more gino", 20);
		$this->WellPics .= " <div width='22mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		$this->WellPics .= " <div width='4mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		$this->WellPics .= " <div width='13mm'><image_fit src='".$this->publishAsset('demo.jpg')."'/></div>";
		/**/
	}

}


?>
Return current item: Lithron