* @author Sybille Buers, Gabriele Droege, Patricia Kelbert (BGBM, GGBN/DNA Bank Network) * @version yii 2.0.3 * @package View * @var $this SearchController * @var $model SearchForm * @var $selectionLists - created in the controller * @var $form CActiveForm * @copyright Copyright © 2011 DNA Bank Network http://www.dnabank-network.org *
The contents of this file are subject to the Mozilla Public License Version 1.1 * @filesource * @license http://www.mozilla.org/MPL/ MPL */ use yii\helpers\Html; use common\models\CreateFormManager; use app\controllers\SearchController; use kartik\field\FieldRange; use kartik\widgets\ActiveForm; use yii\web\View; $this->registerJs ( " $('.tabs-search .tab-links a').on('click', function(e) { var currentAttrValue = $(this).attr('href'); // Show/Hide Tabs $(currentAttrValue).show(); $(currentAttrValue).siblings().hide(); // Change/remove current tab to active $(this).parent('li').addClass('active hop').siblings().removeClass('active'); e.preventDefault(); }); $('#searchform-kingdom').change(function() { var kingdom=$('#searchform-kingdom').val(); if (kingdom != '' && kingdom!='---')kingdom='&kingdom='+kingdom; else kingdom=''; var url='".Yii::$app->request->baseUrl."/serverscripts/suggestion-list?listTitle=fullScientificName'+kingdom+'&term=%QUERY'; searchform_fullscientificname_data_1.clear(); searchform_fullscientificname_data_1.remote.url=url; searchform_fullscientificname_data_1.initialize(true); }); ", View::POS_READY ); ?>

extendedSearchFormTitle; ?>

'get', 'enableClientValidation' => true, 'validateOnSubmit' => true, ] ); // this is redundant because it's true by default $cssClassSearchFields = 'complete_field searchfields'; CreateFormManager::prepareFormFields($model, $form, $selectionLists, $primaryObject, $cssClassSearchFields, $label, $placeholder); echo $this->render( '@common/views/search/mapSearch' ); ?>
"; echo "
"; echo Html::submitButton ( 'Submit', [ 'class' => 'btn btn-primary' ] ); echo " "; echo "
"; $headerTitle = "Add search field"; $headerClass = "btn btn-primary"; $itemContent = $this->render ( '@common/views/search/searchFieldSelection', [ 'hideable_fields' => $model->getHideableListFields (), 'hidden_elements' => $model->getHideableList () ], true ); CreateFormManager::AddAccordion($headerTitle, $headerClass, $itemContent); echo "
"; ActiveForm::end (); ?>
params['websitesearch']) { echo '
The search with wildcard is not fully working yet. Please search for complete words (or sentences) only.

'; $form2 = ActiveForm::begin(['id' => 'form-websearch','action' => $submitWebsearch]); ?> field($modelwebsite, 'content')?>
'btn btn-primary', 'name' => 'website-button'])?>
'; } ?>