Beispiel #1
0
<?php

use app\models\search\VisitsSearch;
$searchModel = new VisitsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams, ['personal' => true]);
?>
<h1><?php 
echo Yii::t('app', 'Mijn bezoeken');
?>
</h1>
<?php 
echo $this->render('partials/dataTable.php', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
Beispiel #2
0
<?php

use app\models\search\VisitsSearch;
$searchModel = new VisitsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
?>
<h1><?php 
echo Yii::t('app', 'Alle bezoeken');
?>
</h1>
<?php 
echo $this->render('partials/dataTable.php', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
Beispiel #3
0
	<h1><?php 
echo Yii::t('app', 'Kasten');
?>
</h1>
	<?php 
if (Yii::$app->user->can('boxRights', ['project' => $project])) {
    ?>
		<?php 
    echo Html::a(Yii::t('app', 'Kast toevoegen'), Url::toRoute(['boxes/form', 'project_id' => $project->id]), ['class' => 'btn btn-info']);
    ?>
 <br><br>
	<?php 
}
?>
	<?php 
$searchModel = new BoxesSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams, $project->id);
echo $this->render('/boxes/partials/dataTable.php', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
?>
	
	<h1><?php 
echo Yii::t('app', 'Bezoeken');
?>
</h1>
	<?php 
$searchModel = new VisitsSearch();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams, ['project_id' => $project->id]);
echo $this->render('/visits/partials/dataTable.php', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]);
?>
	
</div>