website view cn/search.php @ rev 1344

Resize balinor logo to 120px
author Christophe Lincoln <pankso@slitaz.org>
date Fri Jan 22 23:02:15 2021 +0100 (17 months ago)
parents 0dedd51426ac
children
line source
1 <!DOCTYPE html>
2 <html lang="cn">
3 <head>
4 <meta charset="utf-8"/>
5 <title>SliTaz - 搜索</title>
6 <meta name="description" content="SliTaz GNU/Linux 自定义搜索引擎"/>
7 <meta name="keywords" lang="cn" content="about slitaz, gnu, linux, mini distro, livecd, 关于SliTaz, SliTaz是什么, 介绍"/>
8 <meta name="author" content="Draplater"/>
9 <?php include("../lib/html/meta-link.html"); ?>
10 </head>
11 <body>
13 <?php include("../lib/html/header.html"); ?>
14 <?php $engine="DuckDuckGo"; ?>
16 <!-- Block -->
17 <div id="block">
18 <?php include("../lib/html/nav.cn.html"); ?>
19 <!-- Information/image -->
20 <div id="block_info">
21 <h4>搜索</h4>
22 <p>
23 这个网页可以搜索SliTaz网站、邮件列表、论坛中的内容。
24 这个网页由<?php echo $engine; ?>自定义搜索为SliTaz创建。
25 </p>
26 </div>
27 </div>
29 <?php include("../lib/lang.php"); ?>
31 <!-- Content -->
32 <div id="content">
34 <?php if ($engine == "Google") { ?>
35 <div class="searchbox">
36 <div id="cse-search-form" style="width: 100%;"><img
37 src="/images/loader.gif" alt="*" /> Loading</div>
38 <script src="http://www.google.com/jsapi" type="text/javascript"></script>
39 <script type="text/javascript">
40 google.load('search', '1', {language : 'cn', style : google.loader.themes.MINIMALIST});
41 google.setOnLoadCallback(function() {
42 var customSearchControl = new google.search.CustomSearchControl('000868395082919927601:nddq7yjdcxg');
43 customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
44 var options = new google.search.DrawOptions();
45 options.setSearchFormRoot('cse-search-form');
46 customSearchControl.draw('cse', options);
47 }, true);
48 </script>
49 </div>
50 <?php } if ($engine == "DuckDuckGo") { ?>
51 <div class="searchbox">
52 <iframe src="https://duckduckgo.com/search.html?&kl=cn-zh&t=slitaz&duck=yes&site=www.slitaz.org,doc.slitaz.org,forum.slitaz.org,https://listengine.tuxfamily.org/lists.tuxfamily.org/slitaz/&prefill=Search DuckDuckGo"
53 style="overflow:hidden;margin:0;padding:0;width:603px;height:60px;" frameborder="0">
54 </iframe>
55 </div>
56 <?php } ?>
58 <div id="cse" style="width:100%;"></div>
60 <!-- End of content -->
61 </div>
63 <?php include("../lib/html/footer.html"); ?>
65 </body>
66 </html>