<?php


$this->headLink()->appendStylesheet($this->DinamicPath().'css/table.css','all');
$this->headLink()->appendStylesheet($this->DinamicPath().'css/form.css','all');
print $this->form->render();
if (count($this->list2Comment) > 0){
//$head = array('id_comment','comment_text','comment_dateTime','Article_id_article','State_id_state');
$head = NULL;
$selectData = array('id_comment','comment_text','comment_dateTime','Article_id_article','State_id_state');
$links['id_comment'] = $this->url(array('controller' => $this->controller, 'action' => $this->action), 'default', true);
$caption = "Comment";
print $this->Table($this->paginator,$selectData,$head,$caption,$links);
print $this->paginationControl($this->paginator,'Sliding','paginator.phtml');

}else {
echo "Nebyly nalezeny zadne zaznamy.";
}
?>
