Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once './inc/head.php';
- include_once './inc/header.php';
- include_once 'class/Find.php';
- ?>
- <main>
- <div class="left-column fl">
- <?php
- $result = "empty";
- $f = new Find();
- if(isset ($_POST["search"])){
- //echo $_POST["search"];
- $result = $f->find($_POST["search"]);
- }
- ?>
- <article class="search">
- <form action="#" method="post">
- <!--<input type="text" name="search" class="fl" id="keyword" placeholder="Zadejte hledaný název" list="datalist">-->
- <input type="text" value="" placeholder="Search" id="keyword" list="datalist">
- <div id="results">
- </div>
- <!--<input type="submit" value="Vyhledej" class="fl submit">-->
- <div class="clear"></div>
- </form>
- <?php
- if(isset($_GET["tags"])){
- echo $f->findTagsInContents($_GET["tags"]);
- }else if (isset ($_GET["author"])){
- echo $f->findAuthorInContents($_GET["author"]);
- }
- if($result == ""){
- echo "<span style=\"position:relative; display: block; width: 100%;margin-bottom: 10px;\"></span>";
- echo "Nebyly nalezeny žádné výsledky";
- }else if($result != "empty"){
- echo $result;
- }
- ?>
- </article>
- </div>
- <div class="right-column fr">
- <?php
- include_once './inc/popular-posts.php';
- include_once './inc/advertisment-1.php';
- include_once './inc/tweets.php';
- include_once './inc/video.php';
- include_once './inc/advertisment-2.php';
- include_once './inc/tags.php';
- include_once './inc/archives.php';
- ?>
- </div>
- <div class="clear"></div>
- </main>
- <?php
- include_once './inc/footer.php';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement