<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ajax</title>
<link href="ajaxcss.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="ajaxcore.js"></script>
<script type="text/javascript" src="ajax.js"></script>
</head>
<body>
<div id="mainDiv" class="mainDiv" style="text-align:center;">

<div id="thDiv" style="text-align:center;width:100%;">

<?php
echo getThDiv();
?>

</div>
<div style="text-align:center;width:100%;margin:5px;">
IdŸ do strony: 
<?php
for($i = 0; $i < $pages; $i++){
  $str = "<span onclick='changeThPage($i)' style='cursor:pointer;";
  $str .= "background-color:#F0F0F0;font-weight:bold;'>$i</span>&nbsp;";
  echo $str;
}
?>

</div>
<div id="imgDiv" style="text-align:center;width:100%;margin-top:5px;">
<?php
  echo getImgDiv();
?>
</div>

</div>
</body>
</html>
