Mercurial > hg > extraction-interface
comparison search/search.php @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 <?php | |
2 | |
3 include_once('../interface/Lib_mb_utf8.php'); | |
4 include_once('../interface/config.php'); | |
5 include_once('search_function.php'); | |
6 | |
7 ?> | |
8 | |
9 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
10 <html> | |
11 <head> | |
12 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
13 <link href="search.css" type="text/css" rel="stylesheet"/> | |
14 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
15 <script src="search.js" charset="utf-8"></script> | |
16 </head> | |
17 <body> | |
18 <form action='search.php' method='POST'> | |
19 關鍵字: <input type="text" name="keyword" size="100"> (若要搜尋多筆關鍵字請用半型逗號,隔開)<br> | |
20 將結果輸出至: <input type="text" name="filename" size="40">.html (請用英文非空白字元命名)<br> | |
21 <input type="submit" name="search" value="搜尋"> | |
22 </form> | |
23 <br> | |
24 <div id="search_result"> | |
25 <?php | |
26 if(isset($_POST['search']) && $_POST['keyword']!='' && $_POST['filename']!=''){ | |
27 $keywordArray=trimKeyword($_POST['keyword']); | |
28 $array=search($keywordArray); | |
29 writeCsvFile($array,$_POST['filename']); | |
30 printTable($array,$keywordArray,$_POST['filename'],$NO_TAG); | |
31 } | |
32 ?> | |
33 </div> | |
34 </body> | |
35 </html> | |
36 |