* @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\imagine\Image; use yii\helpers\Url; use yii\web\View; use dosamigos\gallery\Gallery; use yii\web\JsExpression; ini_set('max_execution_time', 300); if(isset($fq)){ $fq=$fq."&"; } else $fq=""; echo '
'; foreach ($facets as $fn=>$f ){ echo $fn."
"; echo $f."
"; } echo "
Showing records ".$recordsFrom." to ".$recordsTo." (total ".$recordsTotal.")
"; echo "Jump to page GO!"; ?>
user->isGuest){ echo '
'; //Note: Pjax timeout was set to 10000 because of localhost's slow response: Might be reduced when migration to actual webserver. Pjax::begin([ 'enablePushState'=>false]); Yii::$app->session['search']=Yii::$app->request->url; Yii::$app->session['records']=$pages->totalCount; ?>

Subscribe to this search and get notified by email if new records are added to the database

'btn btn-success','data-pjax'=>'w0','timeout'=>'100000']) ?>

Save our search parameters without subscription

'btn btn-success','data-pjax'=>'w0','timeout'=>'100000']) ?>
'; } else{ echo '
Log in to save your search parameters!
'; } //+++++++++++++++ ?>

Browse data

multimediaurl; if ($urls) { foreach ( $urls as $url ) { //echo $url."
"; $urlparse = explode('/', $url); foreach ($urlparse as $finalurl) { $pos1 = strpos($finalurl, 'jpg'); $pos2 = strpos($finalurl, 'JPG'); if ($pos1 !== FALSE || $pos2 !== FALSE) { /*TODO: 1) auslagern des Thumbnail-Pfades in params.php; 2) auslagern der FUnktion zur Erstellung des Thumbnails in ein Model; 3) ImageGallery von Detail-Record �bernehmen; 4) Funktion auch in Detail-Record-Seite einbauen */ if (!file_exists('c:/xampp/htdocs/portalsoftware/bobo/web/thumbnails/200x200/'.$finalurl)) { Image::thumbnail($url, 200, 200) ->save(Yii::getAlias('c:/xampp/htdocs/portalsoftware/bobo/web/thumbnails/200x200/'.$finalurl), ['jpeg_quality' => 80]); } $images[]= array('url' => $url, 'src' => '@web/thumbnails/200x200/'.$finalurl); } } } } } $items=$images; echo dosamigos\gallery\Gallery::widget([ 'items' => $items, 'options' => [ 'id' => 'blueimp-gallery', 'class' => 'blueimp-gallery' // er bindet irgendwie nicht das lokale blueimp-css ein ], 'templateOptions' => [ 'id' => 'blueimp-gallery', 'class' => 'blueimp-gallery' ], 'clientOptions' => [ 'container' => '#blueimp-gallery' ] ]); echo "
"; /*echo "
"; echo LinkPager::widget([ 'pagination' => $pages, ]); echo"
"; */ ?>