Location: PHPKode > scripts > GalleryShuffle > v1.0/php/Views/classicView.php
<?php

/**
* CLASSIC VIEW
**/

class view_classicView
{

	protected $model;
	protected $LANG;
	
	public function __construct($model=NULL)
	{
		
		$this->model = $model;
		$this->LANG = LANG::getSingleton();
		
	}
	
	protected function getPanel($content, $btnAddTitle=NULL, $btnAddHref=NULL, $helpContent='', $classes='') 
	{
	
		$buffer = "\n\n<!-- " .  get_class($this) . " -->\n";
		
		$buffer .= '
					<div class="scroll cellTableScrolls ' . $classes . '">' . $content . '
					</div>';
		
		if($btnAddTitle != NULL && $btnAddHref != NULL) $buffer .= '
					<a class="btnAdd" href="' . $btnAddHref . '">' . $btnAddTitle . '</a>';
				
		$buffer .= '
					<div class="help">' . $helpContent. '</div>';
		
		$buffer .= "\n\n<!-- /" .  get_class($this) . " -->\n";
		
		return $buffer;
		
	}
	
	protected function getPopup($subject=NULL, $text=NULL, $html=NULL, $btnTitle=NULL, $btnHref=NULL)
	{
		
		$buffer = '<div class="content"><a class="btnClose" href="' . "javascript: document.getElementById('popupTable').show(false);" . '"></a>';
		
		if($subject != NULL) $buffer .= '<p class="subject">' . $subject . '</p>';
		
		if($text != NULL) $buffer .= '<p>' . $text . '</p>';
		
		if($html != NULL) $buffer .= $html;
		
		if($btnTitle != NULL && $btnHref != NULL) $buffer .= '<br /><a href="' . "javascript: document.getElementById('popupTable').show(false);" . $btnHref . '">' . $btnTitle . '</a>';
		
		$buffer .= '</div>';
		
		return $buffer;
	
	}
	
	
}

?>
Return current item: GalleryShuffle