diff --git a/admin/controller.php b/admin/controller.php new file mode 100644 index 0000000..216450c --- /dev/null +++ b/admin/controller.php @@ -0,0 +1,30 @@ +select('*') - ->from($db->quoteName('#__tvo_teams')); + ->from($db->quoteName('#__tvo_teams')); return $query; } diff --git a/admin/models/tvoteamslist.php b/admin/models/tvoteamslist.php index 0848ca9..84dc71a 100644 --- a/admin/models/tvoteamslist.php +++ b/admin/models/tvoteamslist.php @@ -29,7 +29,7 @@ protected function getListQuery() // Create the base select statement. $query->select('*') - ->from($db->quoteName('#__tvo_teams')); + ->from($db->quoteName('#__tvo_teams')); return $query; } diff --git a/admin/tvo.php b/admin/tvo.php index 685268a..8033ccf 100644 --- a/admin/tvo.php +++ b/admin/tvo.php @@ -1 +1,20 @@ -Hello World administration +execute(JFactory::getApplication()->input->get('task')); + +// Redirect if set by the controller +$controller->redirect(); diff --git a/admin/tvo.xml b/admin/tvo.xml new file mode 100644 index 0000000..a6e0364 --- /dev/null +++ b/admin/tvo.xml @@ -0,0 +1,71 @@ + + + + TVO + + September 2021 + Stefan Herzog + joomla@devel.stefan-herzog.com + https://github.com/alve89 + Copyright Info + License Info + + 0.0.12 + + BESCHREIBUNG DER KOMPONENTE FOLGT + + + + sql/install.mysql.utf8mb4.sql + + + + + sql/uninstall.mysql.utf8mb4.sql + + + + + + sql/updates/mysql + + + + + + + index.html + tvo.php + controller.php + views + models + + + + + TV Oberflockenbach + + + + + index.html + tvo.php + controller.php + + sql + + tables + + models + + views + + + + https://raw.githubusercontent.com/alve89/j_com_tvo/master/updates.xml + + diff --git a/admin/views/tvoteamslist/index.html b/admin/views/tvoteamslist/index.html new file mode 100644 index 0000000..e69de29 diff --git a/admin/views/tvoteamslist/tmpl/default.php b/admin/views/tvoteamslist/tmpl/default.php new file mode 100644 index 0000000..221211a --- /dev/null +++ b/admin/views/tvoteamslist/tmpl/default.php @@ -0,0 +1,69 @@ + +
+ + + + + + + + + + + + + + + + + + items)) : ?> + items as $i => $row) : ?> + + + + + + + + + + + +
+ + + + + + + + + +
+ pagination->getListFooter(); ?> +
+ pagination->getRowOffset($i); ?> + + id); ?> + + teamName; ?> + + title;?> + + published, $i, 'tvoteamslist.', true, 'cb'); ?> + + id; ?> +
+
diff --git a/admin/views/tvoteamslist/tmpl/index.html b/admin/views/tvoteamslist/tmpl/index.html new file mode 100644 index 0000000..e69de29 diff --git a/admin/views/tvoteamslist/view.html.php b/admin/views/tvoteamslist/view.html.php new file mode 100644 index 0000000..274d0c8 --- /dev/null +++ b/admin/views/tvoteamslist/view.html.php @@ -0,0 +1,44 @@ +items = $this->get('Items'); + $this->pagination = $this->get('Pagination'); + + // Check for errors. + if (count($errors = $this->get('Errors'))) + { + JError::raiseError(500, implode('
', $errors)); + + return false; + } + + // Display the template + parent::display($tpl); + } +}