Mam pewien problemik.

Parse error: parse error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /www/data.users/fr/e/e/lsee.fr/www/lsee1/Pager.class.php on line 38
Pomóżcie, please.....
Z gory dziekuje i pozdrawiam
<?php $pager->SetTotalRecords($gal->getGalleriesCount()); $pager->SetRecordsPerPage(1); $pager_rend = $pager->Render(); ?>
<?php public function GetActualPage() { //if (!is_null($this->_indexRecordStart)) // throw new Exception(sprintf($this->_errorMsg['call_set'], 'GetActualPage')); return $this->_actualPage; } ?>
<?php ?>
<?php $pager = new Pager('idPagera', 'index.php?a=b&c=2'); ?>
<?php function _createLink($title, $page, $text) { return '<a title="'.$title.'" href="'. ($this->_userWholeLink ? str_replace('#PAGE#', $page, $this->_linkPage) : ($this->_linkPage.$this->_linkSep.$this->_paramPageNumber.'='.$page)).'">' .$text.'</a>'; } ?>
<?php &cat=" . $_GET['cat'] . " ?>
<?php menu('Ostatnio dodane'); $typ = '`typ` = ' . (int) $_GET['typ']; }else{ $typ = "((`typ` >= 1 and `typ` <= 4) or (typ = '15') or (typ = '16') or (typ = '17'))"; } //$typ = (isset($_GET['typ']) ? '`typ` = ' . (int) $_GET['typ'] : '((`typ` >= 1 and `typ` <= 4) or (typ = '15'))'); $order = ''; if ($_GET['top'] == 1) { $order = ' order by `ocena` desc'; } elseif ($_GET['last'] == 1) { $order = ' order by `added` desc'; } // ilosć trafień $res = mysql_query('select * from `stuff` where ' . $typ . $cat . $order . ' order by added desc limit ' . ((int) $_GET['currentpage'] * iijii) . ', ' . ((int) $_GET['currentpage'] * 10 + 10)); if ($hits == 0) { } else { { if($row['added']>0) else $date = (string) ''; $comments_count = (int) 0; if($comments) { $comments_count = $record['CommentsCount']; } if($row['miniaturka']!='') { $image = sprintf('<img src="%s" alt="%s" class="icon"align="right"width="133px"height="100px"border="3" />', $row['miniaturka'], $row['title']); } else { $image = ''; } else $cat = (string) ''; printf('<table bgcolor="#F3F3F3" id="list"><tr><td style="text-align:left; clear:both; padding:0 4px;">%s <b>%s</b><a href="index.php?page=display&id=%d" class="stufflink"style="font-weight:bold;">%s</a><br />%s<img src="ikonki/wykres.jpg">Ocena: %d<br /><img src="ikonki/wykres.gif">Wyswietlen: %d<br /><img src="ikonki/trabka.gif">Komentarzy: %d<br /><img src="ikonki/info.gif">Zasugerował: %s</td></tr></table>', $image, $cat, $row['id'], $row['tytul'], $date, $row['ocena'], $row['counter'], $comments_count, $row['login']); } } /********* NUMEROWANIE *********/ if ($_GET['currentpage'] > 0) print("<a href="index.php?page=list¤tpage=" . ($_GET['currentpage'] - 1) . "&cat=" . $_GET['cat'] . ""><img style="float:right;" src="gfx/poprzednia.jpg" border="0"></a></td>"); print("<a href="index.php?page=list¤tpage=" . $i . "&cat=" . $_GET['cat'] . "">[" . ($i+1) . "]</a> "); if($i == ($temp - 1)) { print("<a href="index.php?page=list¤tpage=" . ($_GET['currentpage'] + 1) . "&cat=" . $_GET['cat'] . ""><img style="float:right;" src="gfx/dalej.jpg" border="0"></a>"); } } $strona = $_GET['currentpage'] + 1; /*******************************/ include ("test.php"); ?>
<?php else $pager = new Pager('str'); ?>
<?php require_once('Pager.class.php', 'index.php?id=strona'); $pager = new Pager('idPagera'); $pager->SetTotalRecords(10); ?>
<?php $classDoc = new Doc(); $classDoc->_where = $_GET['FOR']; $classDoc->_lang = Lang::getSesLang("SES"); $classDoc->_str = $_POST['q']; // slowo z wyszukiwarki $classDoc->_order = "time DESC"; $smarty->assign('cDoc2',$classDoc->likeCountDoc()); $pager = new Pager("list_doc"); $pager->SetTotalRecords($classDoc->likeCountDoc()); $pager->Make(true); $renderPager = $pager->Render(); $start = $pager->GetIndexRecordStart(); $end = $pager->GetIndexRecordEnd(); $smarty->assign('renderPager',$renderPager); $endes = $end - $start + 1; $classDoc->_f = $start; $classDoc->_t = $endes; $smarty->assign('RESULT',$classDoc->likeDocuments()); ?>
<?php ďťż ?>
<?php protected function toString() { //print_pre($this->array); if ($this->totalRecords <= $this->RecordsPerPage) return ''; $_str = ''; $sep = ' '; //if (isset($this->array[self::GOTO_PREV_X])) //$_str .= $this->createHTMLLink($this->array[self::PAGES_PER_NAV].' stron(y) do tyłu', $this->array[self::GOTO_PREV_X][self::LINK], '<<').$sep; $_str .= $this->createHTMLLink('Poprzednia strona', $this->array[self::GOTO_PREV][self::LINK], 'poprzednia').$sep; $_str .= $this->createHTMLLink('Pierwsza strona', $this->array[self::GOTO_FIRST][self::LINK], $this->array[self::GOTO_FIRST][self::PAGE]).' ...'.$sep; foreach ($this->array[self::PAGES] as $_page => $_pageLink){ if (!$_pageLink) $_str .= '<span><b>'.$_page.'</b></span>'; else $_str .= $this->createHTMLLink("Strona ".$_page, $_pageLink, $_page); $_str .= $sep; } $_str .= $this->createHTMLLink('Ostatnia strona', $this->array[self::GOTO_LAST][self::LINK], '... '.$this->array[self::GOTO_LAST][self::PAGE]); $_str .= $sep.$this->createHTMLLink('Następna strona', $this->array[self::GOTO_NEXT][self::LINK], 'następna'); //if (isset($this->array[self::GOTO_NEXT_X])) //$_str .= $sep.$this->createHTMLLink($this->array[self::PAGES_PER_NAV].' stron(y) do przodu', $this->array[self::GOTO_NEXT_X][self::LINK], '>>'); return $_str; } ?>
<?php $sql = 'select count(*) from notice'; $recordsCount = $row[0];//pobranie liczby rekordów $pager = new Pager('p'); $pager->SetTotalRecords(3);//ustawienie liczby rekordów //wygenerowanie pagera i zapamietanie go w zmiennej w celu //pozniejszego wyswietlenia $renderPager = $pager->Render(); $start = $pager->GetIndexRecordStart();//pobranie indexu rekordu początkowego $end = $pager->GetIndexRecordEnd();//pobranie indexu rekordu koncowego //zapytanie z uwzglenieniem stronicowania $sql = 'select SQL_CALC_FOUND_ROWS * from notice limit '.$start.','.($end - $start + 1); //...pobranie wyników i ich wyswietlenie $res[] = $row; } $res = $res ?>
<?php smarty->assign('pager',$renderPager); ?>
<?php $pager->SetTotalRecords(3) ?>
<?php switch($do){ case 'show_notice': mysql_select_db('xxxx',$db); $result = mysql_query($sql); $row = mysql_fetch_array($result); $recordsCount = $row[0]; $pager = new Pager('p'); $pager->SetTotalRecords($recordsCount); $pager->SetRecordsPerPage(3); $renderPager = $pager->Render(); $start = $pager->GetIndexRecordStart(); $end = $pager->GetIndexRecordEnd(); $sql = 'select * from notice limit '.$start.','.($end - $start + 1); $result = mysql_query($sql); $row = array(); while ($row = mysql_fetch_assoc($result)){ $res[] = $row; } $res = $res; $smarty->assign('pager,$renderPager); break; } ?>