first commit

This commit is contained in:
alazhar
2020-01-02 22:20:31 +07:00
commit 10eb3340ad
5753 changed files with 631345 additions and 0 deletions

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

View File

@ -0,0 +1,41 @@
<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die;
JHtml::_('behavior.framework');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::stylesheet('com_finder/finder.css', false, true, false);
?>
<div class="page_finder page_finder__<?php echo $this->pageclass_sfx; ?>">
<?php if ($this->params->get('show_page_heading')) : ?>
<h1>
<?php if ($this->escape($this->params->get('page_heading'))) : ?>
<?php echo $this->escape($this->params->get('page_heading')); ?>
<?php else : ?>
<?php echo $this->escape($this->params->get('page_title')); ?>
<?php endif; ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_search_form', 1)): ?>
<div id="search-form">
<?php echo $this->loadTemplate('form'); ?>
</div>
<?php endif;
// Load the search results layout if we are performing a search.
if ($this->query->search === true):
?>
<div id="search-results">
<?php echo $this->loadTemplate('results'); ?>
</div>
<?php endif; ?>
</div>

View File

@ -0,0 +1,110 @@
<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('_JEXEC') or die;
?>
<script type="text/javascript">
window.addEvent('domready', function() {
<?php if ($this->params->get('show_advanced', 1)): ?>
/*
* This segment of code adds the slide effect to the advanced search box.
*/
if (document.id('advanced-search') != null) {
var searchSlider = new Fx.Slide('advanced-search');
<?php if (!$this->params->get('expand_advanced', 0)): ?>
searchSlider.hide();
<?php endif; ?>
document.id('advanced-search-toggle').addEvent('click', function(e) {
e = new Event(e);
e.stop();
searchSlider.toggle();
});
}
/*
* This segment of code disables select boxes that have no value when the
* form is submitted so that the URL doesn't get blown up with null values.
*/
if (document.id('finder-search') != null) {
document.id('finder-search').addEvent('submit', function(e){
e = new Event(e);
e.stop();
if (document.id('advanced-search') != null) {
// Disable select boxes with no value selected.
document.id('advanced-search').getElements('select').each(function(s){
if (!s.getProperty('value')) {
s.setProperty('disabled', 'disabled');
}
});
}
document.id('finder-search').submit();
});
}
<?php endif; ?>
/*
* This segment of code sets up the autocompleter.
*/
<?php if ($this->params->get('show_autosuggest', 1)): ?>
<?php JHtml::script('com_finder/autocompleter.js', false, true); ?>
var url = '<?php echo JRoute::_('index.php?option=com_finder&task=suggestions.display&format=json&tmpl=component', false); ?>';
var completer = new Autocompleter.Request.JSON(document.id('q'), url, {'postVar': 'q'});
<?php endif; ?>
});
</script>
<form id="finder-search" action="<?php echo JRoute::_($this->query->toURI()); ?>" method="get" class="form-inline">
<?php echo $this->getFields(); ?>
<?php
/*
* DISABLED UNTIL WEIRD VALUES CAN BE TRACKED DOWN.
*/
if (false && $this->state->get('list.ordering') !== 'relevance_dsc'): ?>
<input type="hidden" name="o" value="<?php echo $this->escape($this->state->get('list.ordering')); ?>" />
<?php endif; ?>
<fieldset class="word">
<div class="control-group">
<label for="q">
<?php echo JText::_('COM_FINDER_SEARCH_TERMS'); ?>
</label>
<input type="text" name="q" id="q" size="30" value="<?php echo $this->escape($this->query->input); ?>" class="inputbox" />
<?php if ($this->escape($this->query->input) != '' || $this->params->get('allow_empty_search')):?>
<button name="Search" type="submit" class="btn btn-primary"><i class="icon-search icon-white"></i> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
<?php else: ?>
<button name="Search" type="submit" class="btn btn-primary disabled"><i class="icon-search icon-white"></i> <?php echo JText::_('JSEARCH_FILTER_SUBMIT');?></button>
<?php endif; ?>
</div>
<?php if ($this->params->get('show_advanced', 1)): ?>
<a href="#advancedSearch" data-toggle="collapse" class="btn"><i class="icon-list"></i> <?php echo JText::_('COM_FINDER_ADVANCED_SEARCH_TOGGLE'); ?></a>
<?php endif; ?>
</fieldset>
<?php if ($this->params->get('show_advanced', 1)): ?>
<div id="advancedSearch" class="collapse">
<hr />
<?php if ($this->params->get('show_advanced_tips', 1)): ?>
<div class="advanced-search-tip">
<?php echo JText::_('COM_FINDER_ADVANCED_TIPS'); ?>
</div>
<hr />
<?php endif; ?>
<div id="finder-filter-window">
<?php echo JHtml::_('filter.select', $this->query, $this->params); ?>
</div>
</div>
<?php endif; ?>
</form>

View File

@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>