30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
class search extends Module {
 | 
						|
	protected $moduleTitle = 'Recherche';
 | 
						|
	protected $paramsList = array(
 | 
						|
		'visibility'
 | 
						|
	);
 | 
						|
	
 | 
						|
	public function __construct($params){
 | 
						|
		parent::__construct(__CLASS__, $params);
 | 
						|
	}
 | 
						|
	
 | 
						|
	public function build(){
 | 
						|
		echo '<link rel="stylesheet" type="text/css" href="'.$this->pathToModule.'css/'.$this->moduleName.'.css">
 | 
						|
				<script type="text/javascript" src="'.$this->pathToModule.'js/'.$this->moduleName.'.js"></script>
 | 
						|
				<form id="searchForm" method="post">
 | 
						|
				<fieldset>
 | 
						|
					<input id="s" type="text" />
 | 
						|
					<input type="submit" value="Submit" id="submitButton" class="searchbutton" />
 | 
						|
 | 
						|
					<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>';
 | 
						|
	}
 | 
						|
} |