-
Notifications
You must be signed in to change notification settings - Fork 1
/
view.php
67 lines (52 loc) · 1.69 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!Doctype html>
<?php
require_once('goWiki.class.php');
if (isset($_GET['search_field'])){
$query = $_GET['search_field'];
$info = new goWiki();
$with_img = (isset($_GET['with_colors']))? $_GET['with_colors'] : false;
$res = $info->getResults($query, $with_img);
}else{
$query = '';
}
?>
<html>
<head>
<link rel="stylesheet" href="css/reset.css"/>
<link rel="stylesheet" href="css/style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="js/jquery-1.7.2.min.js">
</script>
<title>Re:wikize - <?php echo $query ?></title>
</head>
<body>
<div class="left-holder"></div>
<div class="right-holder"></div>
<div class="mid-holder">
<div class="header">
<a href="/" class="logo"></a>
<form action="search.php" method="GET">
<input id="id_search_field" name="search_field" />
<button type="submit"></button>
</form>
</div>
<div class="article-content">
<h1>
<?php echo $query ?>
</h1>
<?php echo $res['text'] ?>
</div>
<div class="footer-container">
<div id="footer-text">
© 2012 ТЕМ-51. Плотніков, Коведа, Микитин, Гринда;
</div>
</div>
</div>
<script type="text/javascript" charset="utf-8">
var images =<?php echo json_encode($res['images']); ?>;
var videos =<?php echo json_encode($res['videos']); ?>;
var colors =<?php echo json_encode($res['colors']); ?>;
</script>
<script type="text/javascript" charset="utf-8" src="js/rewikize-styler.js"></script>
<script type="text/javascript" charset="utf-8" src="js/deco.js"></script>
</body>