summaryrefslogtreecommitdiff
path: root/protected/views/standort/index.php
blob: eabd7a677d95dfa737104095ae58d342ddb0e030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
$this->breadcrumbs=array(
	'Standorte'
);

$this->menu=array(
	
);
?>

<h3>Standorte</h3>
<p class="box info">Mit einem Click auf den Standortmarker erhalten Sie eine Übersicht der Vereine am Standort</p>
<p>
<?php
$map = new Map();
foreach ($standorte as $standort) {
	$infostring = "<div class='gmaps-label' style='color: #000;'><strong>".$standort->name."</strong><br/>";
	foreach ($standort->vereine as $verein) {
		$infostring .=CHtml::link($verein->name,array("verein/view","id"=>$verein->id))."<br />";
	}
	$infostring .="</div>";
	$infoWindow = new EGMapInfoWindow($infostring);
	// Saving coordinates after user dragged our marker.
	$marker = new EGMapMarker($standort->pos_lat, $standort->pos_long, array('title' => $model->name, 'draggable'=>false), 'marker');
	$marker->addHtmlInfoWindow($infoWindow);
	$map->addMarker($marker, $standort->published);
}
$map->render();
?>

<?php /*
Listenanzeige der Standorte, gerade Schwachsinnig
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'standort-grid',
	'dataProvider'=>$model->search(),
	
	'columns'=>array(
		'type',
		'name',
	
	),
));*/ ?>
</p>