* @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 ); ?>