2010-09-15 16:55:54 +02:00
|
|
|
<?php
|
2010-09-20 11:40:27 +02:00
|
|
|
class search extends Module {
|
|
|
|
|
|
|
|
protected static $paramsList = array(
|
|
|
|
'visibility'
|
|
|
|
);
|
|
|
|
public $params = array();
|
2010-09-15 16:55:54 +02:00
|
|
|
|
|
|
|
public function __construct($params){
|
2010-09-20 13:12:36 +02:00
|
|
|
echo '<link rel="stylesheet" type="text/css" href="css/search.css">
|
|
|
|
<script type="text/javascript" src="js/jquery.search.js"></script>
|
|
|
|
<form id="searchForm" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<input id="s" type="text" />
|
|
|
|
<input type="submit" value="Submit" id="submitButton" />
|
|
|
|
|
|
|
|
<ul class="icons">
|
|
|
|
<li class="web" title="Web Search" data-searchType="web">Web</li>
|
|
|
|
<li class="images" title="Image Search" data-searchType="images">Images</li>
|
|
|
|
<li class="news" title="News Search" data-searchType="news">News</li>
|
|
|
|
<li class="videos" title="Video Search" data-searchType="video">Videos</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</form>';
|
2010-09-15 16:55:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private function setParams($params){
|
|
|
|
$this->params = $params;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function start($params){
|
|
|
|
$search = new search($params);
|
|
|
|
}
|
2010-09-20 11:40:27 +02:00
|
|
|
|
|
|
|
public static function updateConfig($updated){
|
|
|
|
|
|
|
|
}
|
2010-09-15 16:55:54 +02:00
|
|
|
}
|