| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/eadsa/modules/mod_rokajaxsearch/tmpl/ |
Upload File : |
<?php
/**
* RokAjaxSearch Module
*
* @package RocketTheme
* @subpackage roknewspager.tmpl
* @version 2.0 August 17, 2010
* @author RocketTheme http://www.rockettheme.com
* @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*
*
* Inspired on PixSearch Joomla! module by Henrik Hussfelt <henrik@pixpro.net>
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$websearch = ($params->get('websearch', 0)) ? 1 : 0;
$blogsearch = ($params->get('blogsearch', 0)) ? 1 : 0;
$imagesearch = ($params->get('imagesearch', 0)) ? 1 : 0;
$videosearch = ($params->get('videosearch', 0)) ? 1 : 0;
$theme = $params->get('theme', 'blue');
$api = ($params->get('websearch_api') != '');
global $mainframe;
$app =& JFactory::getApplication();
$limit = $mainframe->getUserStateFromRequest('com_search.limit', 'limit', $app->getCfg('list_limit'), 'int');
?>
<form name="rokajaxsearch" id="rokajaxsearch" class="<?php echo $theme; ?>" action="<?php echo JURI::Base()?>" method="get">
<div class="rokajaxsearch<?php echo $params->get('moduleclass_sfx'); ?>">
<div class="roksearch-wrapper">
<input id="roksearch_search_str" name="searchword" type="text" class="inputbox" value="<?php echo JText::_('SEARCH'); ?>" />
</div>
<input type="hidden" name="searchphrase" value="<?php echo $params->get("searchphrase")?>"/>
<input type="hidden" name="limit" value="<?php echo $limit; ?>" />
<input type="hidden" name="ordering" value="<?php echo $params->get("ordering")?>" />
<input type="hidden" name="view" value="search" />
<input type="hidden" name="Itemid" value="99999999" />
<input type="hidden" name="option" value="com_search" />
<?php if (($websearch || $blogsearch || $imagesearch || $videosearch) && $api): ?>
<div class="search_options">
<label style="float: left; margin-right: 8px">
<input type="radio" name="search_option[]" value="local" checked="checked" /><?php echo JText::_('LOCAL_SEARCH'); ?>
</label>
<?php if ($websearch): ?>
<label style="float: left;">
<input type="radio" name="search_option[]" value="web" /><?php echo JText::_('WEB_SEARCH'); ?>
</label>
<?php endif; ?>
<?php if ($blogsearch): ?>
<label style="float: left;">
<input type="radio" name="search_option[]" value="blog" /><?php echo JText::_('BLOG_SEARCH'); ?>
</label>
<?php endif; ?>
<?php if ($imagesearch): ?>
<label style="float: left;">
<input type="radio" name="search_option[]" value="images" /><?php echo JText::_('IMAGE_SEARCH'); ?>
</label>
<?php endif; ?>
<?php if ($videosearch): ?>
<label style="float: left;">
<input type="radio" name="search_option[]" value="videos" /><?php echo JText::_('VIDEO_SEARCH'); ?>
</label>
<?php endif; ?>
</div>
<div class="clr"></div>
<?php endif; ?>
<div id="roksearch_results"></div>
</div>
<div id="rokajaxsearch_tmp" style="visibility:hidden;display:none;"></div>
</form>