| 1 | <?php |
| 2 | //zoznam clankov |
| 3 | global $query; |
| 4 | if ($query=="") echo "<center><br>Nezadali ste ziadne slovo na vyhladavanie!!<br><br><br></center>"; |
| 5 | else { $clanky=$kyberia->Search($query); |
| 6 | if ($clanky->_numRows==0) echo "<br><center><br>Zadane slovo $query sa nevyskytuje v ziadnom clanku!</center><br>"; |
| 7 | else { |
| 8 | echo "<br><center><br>Slovo $query sa vyskytuje v ",$clanky->_numRows,". clankoch!<br><br></center>"; |
| 9 | while ($clanky->next()) { |
| 10 | echo "<table cellpadding=5 width=100% class=box>"; |
| 11 | echo "<tr><td><img src='"; |
| 12 | if ($clanky->getString('title_image')=="") echo "/images/rubriky/",$kyberia->putTitleImage($clanky->getInt("id_rubrika")); |
| 13 | else echo $kyberia->TitleImageDir.$clanky->getString('title_image'); |
| 14 | echo "' hspace=5 vspace=5 align=left>"; |
| 15 | echo "<a class=nazev href=/article.php?id=",$clanky->getString("id_article"),">",$clanky->getString('nazov'),"</a><br>"; |
| 16 | echo $clanky->getString('short_desc'); |
| 17 | echo "</td></tr></table><br>"; |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | ?> |
| 23 | |
| 24 | |