Not yet everything finished but big part of the views are present now. No AJAX was introduced yet. This is going to be done later.
49 lines
1.6 KiB
PHP
49 lines
1.6 KiB
PHP
<?php
|
|
|
|
use Joomla\CMS\Factory;
|
|
use Joomla\CMS\MVC\View\HtmlView;
|
|
use Joomla\CMS\Uri\Uri;
|
|
|
|
// No direct access.
|
|
defined('_JEXEC') or die;
|
|
|
|
class ClubsViewClubData extends HtmlView
|
|
{
|
|
|
|
public function display(string $tpl = null)
|
|
{
|
|
// FIXME Insert code from DB
|
|
$this->clubid = 43;
|
|
$this->clubname = "Testclub";
|
|
$this->address = "Straße 1\n66123 Ort";
|
|
$this->contactperson = "Max Mustermann";
|
|
$this->email = "me@club.de";
|
|
$this->phone = "012345";
|
|
$this->internet = "http://wichtig.de";
|
|
|
|
$this->options = array("Step" => NULL, "JMD" => 1, "Divers." => NULL);
|
|
$this->hasOptions = false;
|
|
foreach($this->options as $o)
|
|
if(isset($o))
|
|
{
|
|
$this->hasOptions = true;
|
|
break;
|
|
}
|
|
|
|
$this->trainingPlaces = array();
|
|
// $this->trainingPlaces[] = array('name'=>'Schule', 'street'=>'Straße', 'city'=>'SB', 'plz'=>'12345', 'placeid'=>12);
|
|
// $this->trainingPlaces[] = array('name'=>'Schule', 'street'=>'Straße', 'city'=>'SB', 'plz'=>'12345', 'placeid'=>14);
|
|
|
|
$this->persons = array();
|
|
$this->persons[] = array('name'=>'Max', 'position'=>'Präsident', 'id'=>3, 'assoc'=>6, 'modify'=>true);
|
|
$this->persons[] = array('name'=>'Max', 'position'=>'Präsident', 'id'=>3, 'assoc'=>7, 'modify'=>false);
|
|
|
|
$this->canModify = true;
|
|
|
|
Factory::getDocument()->addStyleSheet(Uri::base(true) . "components/com_clubs/css/clubs.css");
|
|
|
|
parent::display($tpl);
|
|
}
|
|
|
|
}
|