/ Published in: PHP
Don't compromise with quality, we provide high-quality and adaptable meta search scripts; web, video, image, etc. Making building a website that much easier.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php } else { $q=""; } $search=$_GET['search']; } else { $search=""; } require_once("header.php"); ?> <style type="text/css"> .navigation { margin-top: 15%; text-align: center; } .logo { padding: 17px; display: block; } footer { position:absolute; left:0; right:0; bottom:0; } nav { margin:0; } input.input-text { width: 40%; } <?php } else { ?> .navigation { background: #f2f2f2; border-bottom: 1px solid #e4e4e4; padding: 12px 10px; position:fixed; top:0; left:0; right:0; } .logo img { width:76px; height:34px; } <?php } ?> </style> <body> <nav> <li><a href="?q=<?=$q?>&search=web">Web</a></li> <li><a href="?q=<?=$q?>&search=images">Image</a></li> <li><a href="?q=<?=$q?>&search=videos">Video</a></li> <li><a href="?q=<?=$q?>&search=news">News</a></li> </nav> require_once("functions.php"); // now have some fun with the results... ?> <div class="navigation"> <form> <div class="logo"><a href="/"><img src="image/logo_main.png" alt="logo"></a></div><input type="search" class="input-text" name="q" value="<?=$q?>" id="search" /><input type="hidden" name="search" value="<?=$search?>"><input type="submit" class="g-button" value="Search" /> </form> </div> <?php } else { ?> <div class="navigation"> <form> <div class="logo"><a href="/"><img src="image/logo_main.png" alt="logo"></a></div><input type="search" class="input-text" name="q" value="<?=$q?>" id="search" /><input type="hidden" name="search" value="<?=$search?>"><input type="submit" class="g-button" value="Search" /> </form> </div> <?php if($page=="" or $page==" ") { $page="1"; } $limit=12; $start = ($page-1) * $limit; if($search=="images" || $search=="videos" || $search=="news") { echo '<ol class="vid_result_main">'; if($search =="images") { image_str(array_merge(image($qs,$start+1), image($qs,$start+5),image($qs,$start+9),image($qs,$start+13))); } else if($search =="videos") { video($qs,$page,21); } else if($search =="news") { news($qs,$page,21); } echo '</ol>'; pagination('?q='.$qe.'&search='.$search,$page); } else { $limit=12; $start = ($page-1) * $limit; echo '<ol class="img_result_main">'; echo "</ol>"; echo'<div class="results_container">'; ?> <script type="text/javascript"> ( function() { if (window.CHITIKA === undefined) { window.CHITIKA = { 'units' : [] }; }; var unit = { 'fluidH' : 1, 'nump' : "2", 'publisher' : "waheedpay", 'width' : 528, 'height' : "auto", 'type' : "mpu", 'sid' : "Chitika Default", 'color_site_link' : "0000CC", 'color_title' : "0000CC", 'color_border' : "FFFFFF", 'color_text' : "000000", 'color_bg' : "FFFFFF" }; var placement_id = window.CHITIKA.units.length; window.CHITIKA.units.push(unit); document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>'); var s = document.createElement('script'); s.type = 'text/javascript'; s.src = 'http://scripts.chitika.net/getads.js'; try { document.getElementsByTagName('head')[0].appendChild(s); } catch(e) { document.write(s.outerHTML); } }()); </script> <?php echo '<li class="results">Oops!, You\'ve reached the end of the results.</li>'; } echo '</ol>'; video($qs,$page,6); pagination('?q='.$qe.'&search='.$search,$page); echo'</div>'; } } require_once("footer.php"); ?> </body> </html>
URL: https://www.cragglist.com/