Started writing code for views
This commit is contained in:
36
src/site/views/user/tmpl/default.php
Normal file
36
src/site/views/user/tmpl/default.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
?>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Name</div>
|
||||
<div class='clubs_content_row'><?php echo htmlentities($this->username); ?></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Addresse</div>
|
||||
<div class='clubs_content_row'><?php echo nl2br(htmlentities($this->address)); ?></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Haupt-Email</div>
|
||||
<div class='clubs_content_row'><?php echo htmlentities($this->mail); ?></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Telefon</div>
|
||||
<div class='clubs_content_row'><?php echo htmlentities($this->phone); ?></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<div class='clubs_title_row'>Handy</div>
|
||||
<div class='clubs_content_row'><?php echo htmlentities($this->mobile); ?></div>
|
||||
</div>
|
||||
|
||||
<div class='clubs_row'>
|
||||
<a href="?option=com_clubs&view=userdata&id=<?php echo $this->id; ?>">Daten anpassen</a><br />
|
||||
<a href="?option=com_clubs&view=userpwd&id=<?php echo $this->id; ?>">Passwort ändern</a>
|
||||
</div>
|
||||
25
src/site/views/user/view.html.php
Normal file
25
src/site/views/user/view.html.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
// No direct access.
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
class ClubsViewUser extends HtmlView
|
||||
{
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// FIXME
|
||||
$this->id = 1;
|
||||
$this->username = "Max Mustermann";
|
||||
$this->address = "Strasse 3274\n66123 Saarland";
|
||||
$this->mail = "mmuster@mail.de";
|
||||
$this->phone = "0123456";
|
||||
$this->mobile = "0178 8375";
|
||||
|
||||
Factory::getDocument()->addStyleSheet(Uri::base(true) . '/components/com_clubs/css/clubs.css');
|
||||
parent::display($tpl);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user