<?php

$this->headLink()->appendStylesheet($this->DinamicPath().'css/table.css','all');
$translate = Zend_Registry::get('Zend_Translate');
$request = Zend_Controller_Front::getInstance()->getRequest();

if (!is_null($this->pager)){
	try {
		$paginator = $this->PagerToPaginator($this->pager,$this->select);

		$head = NULL;
		//$head['nameHeader'] = array($translate->translate('ID'),$translate->translate('Title'),$translate->translate('Date'),$translate->translate('Username'),$translate->translate('State'));
		$selectData = array('id_table3','table3_column1','table3_column2','table3_column3');
		$links['id_table3']['link'] = $this->url(array('controller' => $request->getControllerName(), 'action' => 'edit'), $request->getModuleName(), true);
		$links[current($selectData)]['get'][0] = current($selectData);
		$columnValue = NULL;
		$hidden = NULL;
		$caption = array($translate->translate('table3'));
		print $this->Table($paginator,$selectData,$columnValue,$head,$hidden,$caption,$links);
		print $this->paginationControl($this->pager,'Sliding','paginator.phtml');
		
	}catch (Exception $e){
		echo $e->getMessage();
	}
}else {
	echo "Nebyly nalezeny zadne zaznamy.";
}
?>
