* @author Gabriele Droege, Patricia Kelbert (BGBM, GGBN/DNA Bank Network) * @version yii 2.0.3 * @package View * @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 yii\widgets\LinkPager; use app\controllers\SearchController; use yii\helpers\Url; use yii\web\View; use yii\bootstrap\Modal; use yii\widgets\Pjax; use yii\web\Request; use common\models\AccountForm; use common\models\CartForm; use kartik\form\ActiveField; use kartik\icons\Icon; use app\assets\AppAsset; ?>
params ['useLogin'] && ( in_array ( Yii::$app->request->userIP, Yii::$app->params ['authorizedIPs'] ) || in_array("all", Yii::$app->params['authorizedIPs'] ))) { if (! \Yii::$app->user->isGuest) { // Get the predefined user settings from the database and pass them to javascript $settings=Yii::$app->user->identity->getUserSettings (); $page = $settings['default_hits_per_page']; $order = $settings['default_sort']; $asc = $settings['order']; $this->registerJs ( "var ops = " . json_encode ( $page ) . "; var or = " . json_encode ( $order ) . "; var asc = " . json_encode ( $asc ) . ";", View::POS_HEAD, 'my-options' ); Yii::$app->session ['search'] = Yii::$app->request->url; ?> '.Html::a('Log in',['site/login']).' to access the sample request system
'; $this->registerJs ( "var ops = 25; var or = 0 ; var asc = 'asc';", View::POS_HEAD, 'my-options' ); } } else $this->registerJs ( "var ops = 25; var or = 0; var asc = 'asc';", View::POS_HEAD, 'my-options' ); echo ""; // END // used only if Login frame is activated in params.php ?>

Index Seminum des Botanischen Gartens Berlin

user->isGuest) { Pjax::begin ( [ 'id' => 'shoppingCartContent', 'enablePushState' => false ] ); echo Html::a(' View Basket ('. $shoppingCart.')', ['cart/cart'],['class' => 'btn btn-link d-xl-flex p-0', 'name' => 'cart-button']); Pjax::end(); } if(Yii::$app->user->isGuest) { echo Html::a(' Login/Create account to request seed accessions', ['site/login'],['class' => 'btn btn-link d-xl-flex p-0']); } ?>
Search for seeds:
user->isGuest) { echo Html::button('Add to cart', ['class' => 'btn btn-primary btnGetCheckedItem', 'title'=>'Add your selected samples to your cart']); }?>