<?php

$this->headScript()->appendFile($this->DinamicPath().'js/windowmsg/jquery.windowmsg-1.0.js');
$this->headScript()->appendScript($this->javascriptPopupSlave);
$this->headLink()->appendStylesheet($this->DinamicPath().'css/table.css','all');
$this->headLink()->appendStylesheet($this->DinamicPath().'css/form.css','all');

$translate = Zend_Registry::get('Zend_Translate');

if (!is_null($this->pager)){
	try {
		$paginator = $this->PagerToPaginator($this->pager,$this->select);
		
    	$head = NULL;
		$head['nameHeader'] = array($translate->translate('State'),$translate->translate('Table'));
		$selectData = array('nameState_name','tableDatabase_table');
		$columnValue['nameState_name'] ='true';
		$links['tableDatabase_table']['link'] ='close.window';
		$hidden = array('id_state','nameState_name');
		//$links['id_state'] = $this->url(array('controller' => $this->controller, 'action' => $this->action), 'default', true);
		$caption = array($translate->translate('ListArticles'));
		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 "<p>"."Nenalezeny zaznamy"."</p>";
}
?>
