diff --git a/neopolimatrix/page/autoload.inc b/neopolimatrix/page/autoload.inc
index db974aa..3dfeee4 100644
--- a/neopolimatrix/page/autoload.inc
+++ b/neopolimatrix/page/autoload.inc
@@ -1,4 +1,5 @@
filter = $filter;
+ }
+
+ private function switch_filter($filter){
+ switch($filter){
+ case 1:
+ return '%';
+ case 2:
+ return '"%Überwachung%"';
+ default:
+ return 'filter fail';}
+
+ }
+
+ public function generate_list(){
+ $result = '';
+ $tag = $this->filter;
+ $elements = elements::getAllElementsOfTag($this->switch_filter($tag));
+ foreach($elements as $element){
+ $element['title'] = $element['id'];
+ $result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_list/element.tpl'), $element);
+ }
+ return $result;
+ }
+
+ public function html(){
+ $vars = array();
+ $vars['content'] = $this->generate_list();
+ new SYSTEM\LOG\INFO(print_r($vars['content']), TRUE);
+ return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_list/default_list.tpl'), $vars);
+ }
+}
+/*
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+
diff --git a/neopolimatrix/page/default_list/default_list.tpl b/neopolimatrix/page/default_list/default_list.tpl
new file mode 100644
index 0000000..934b349
--- /dev/null
+++ b/neopolimatrix/page/default_list/default_list.tpl
@@ -0,0 +1,2 @@
+${content}
+test
\ No newline at end of file
diff --git a/neopolimatrix/page/default_list/element.tpl b/neopolimatrix/page/default_list/element.tpl
new file mode 100644
index 0000000..b95fb14
--- /dev/null
+++ b/neopolimatrix/page/default_list/element.tpl
@@ -0,0 +1,10 @@
+
+
Author: ${author}
+
Veröffentlicht: ${timestamp}
+
+
+
${title}
+
+${deDE}
+
+
\ No newline at end of file
diff --git a/neopolimatrix/page/default_page/default_page.php b/neopolimatrix/page/default_page/default_page.php
index 808da93..b6d4cf9 100644
--- a/neopolimatrix/page/default_page/default_page.php
+++ b/neopolimatrix/page/default_page/default_page.php
@@ -6,8 +6,9 @@ class default_page extends \SYSTEM\PAGE\Page {
''.
''.
''.
- ''.
- '';
+ ''.
+ '';
+
}
private function css(){
diff --git a/neopolimatrix/page/default_page/default_page.tpl b/neopolimatrix/page/default_page/default_page.tpl
index 8b1d4e8..32a320e 100644
--- a/neopolimatrix/page/default_page/default_page.tpl
+++ b/neopolimatrix/page/default_page/default_page.tpl
@@ -9,15 +9,15 @@
Neo-PoliMatrix
-
+
-
- - Neu
- - Überwachung
+
+ - Neu
+ - Überwachung
diff --git a/neopolimatrix/page/default_page/element.tpl b/neopolimatrix/page/default_page/element.tpl
index c004cad..b95fb14 100644
--- a/neopolimatrix/page/default_page/element.tpl
+++ b/neopolimatrix/page/default_page/element.tpl
@@ -1,4 +1,5 @@
+
Author: ${author}
Veröffentlicht: ${timestamp}
diff --git a/neopolimatrix/page/default_page/js/content.js b/neopolimatrix/page/default_page/js/content.js
index c5b3ba7..b6812f9 100644
--- a/neopolimatrix/page/default_page/js/content.js
+++ b/neopolimatrix/page/default_page/js/content.js
@@ -1,68 +1,14 @@
-$(document).ready(function() {
- register_user_list();
- load_user_list_tab('user_list_default');
-});
-
-function register_user_list(){
- assign_signbox();
- assign_createbox();
- assign_deletebox();
- assign_filter();
- assign_delete_sign();
- assign_insert_shout()
-
- $('#tabs_user_list a').click(function (e) {
- e.preventDefault();
- load_user_list_tab($(this).attr('action'));
- $(this).tab('show');
- });
-}
-
-function load_user_list_tab(action){
- $('#tab_default').load('./?page='+ action, function(){
- switch(action){
- case 'user_list_default':
- assign_signbox();
- assign_insert_shout();
-
- return;
- case 'user_list_active':
- assign_signbox();
- assign_deletebox();
- assign_delete_sign();
- assign_editbox();
- assign_filter();
- return;
- case 'user_list_ended':
- assign_deletebox();
- assign_editbox();
- return;
- case 'user_list_users':
- assign_tel_insertbox();
- return;
- case 'user_list_new':
- assign_createbox();
- return;
- default:
- }
- });
-}
-
+ $(document).ready(function() {
+ $("#tabs_user_list a").click(function(){
+ load_list($(this).attr('filter'));
+ $(this).tab('show');
+ });
+});
-function loadAjaxContent(url) {
- var dataTmp;
- $.get(url, function (data) {
- dataTmp = data;
- bodyelem = $("html,body");
- bodyelem.animate();
- }).complete(function() {
- $('#site-content-wrapper').slideUp({duration: 'slow',
- complete: function(){
- $('#site-content').html(dataTmp);
- $('#site-content-wrapper').slideDown('slow');
- site_content_is_visible = true;
- }});
- });
+function load_list(filter){
+ $('#contentframe').load('./?page=get_list&filter=' + filter, function(){
+
+ });
}
\ No newline at end of file
diff --git a/neopolimatrix/page/page_neopolimatrix.php b/neopolimatrix/page/page_neopolimatrix.php
index c44daaa..0e3010c 100644
--- a/neopolimatrix/page/page_neopolimatrix.php
+++ b/neopolimatrix/page/page_neopolimatrix.php
@@ -2,4 +2,7 @@
class page_neopolimatrix extends \SYSTEM\API\api_default {
public static function default_page(){
return new default_page();}
+
+ public static function page_get_list($filter){
+ return new default_list($filter);}
}
\ No newline at end of file