diff --git a/uVote/page/default_page/page.tpl b/uVote/page/default_page/page.tpl
index e27096c..f76d114 100644
--- a/uVote/page/default_page/page.tpl
+++ b/uVote/page/default_page/page.tpl
@@ -72,8 +72,8 @@
-
diff --git a/uVote/page/page_uvote.php b/uVote/page/page_uvote.php
index daef087..96e5956 100644
--- a/uVote/page/page_uvote.php
+++ b/uVote/page/page_uvote.php
@@ -13,7 +13,10 @@ class page_uvote extends \SYSTEM\API\api_default {
public static function action_user_main(){
if(!\SYSTEM\SECURITY\Security::isLoggedIn()){
return new default_register ();}
- return new user_main();}
+ return new user_main();}
+
+ public static function action_user_list(){
+ return new user_list();}
public static function action_user_main_uVote(){
return new user_main_uVote();}
diff --git a/uVote/page/register_page_classes.php b/uVote/page/register_page_classes.php
index 2cb51a2..e5679e4 100644
--- a/uVote/page/register_page_classes.php
+++ b/uVote/page/register_page_classes.php
@@ -6,4 +6,7 @@ SYSTEM\autoload::registerFolder(dirname(__FILE__).'/default_bulletin','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_main','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_main_uVote','');
SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_main_urVote','');
-SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_main_myVote','');
\ No newline at end of file
+SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_main_myVote','');
+SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_list','');
+SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_list_active','');
+SYSTEM\autoload::registerFolder(dirname(__FILE__).'/user_list_ended','');
\ No newline at end of file
diff --git a/uVote/page/user_list/list_menu.tpl b/uVote/page/user_list/list_menu.tpl
new file mode 100644
index 0000000..8ea932b
--- /dev/null
+++ b/uVote/page/user_list/list_menu.tpl
@@ -0,0 +1,11 @@
+
+
diff --git a/uVote/page/user_list/user_list.php b/uVote/page/user_list/user_list.php
new file mode 100644
index 0000000..fa5be10
--- /dev/null
+++ b/uVote/page/user_list/user_list.php
@@ -0,0 +1,15 @@
+html();
+
+
+ return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_list/list_menu.tpl'),$vars);
+ }
+
+}
\ No newline at end of file
diff --git a/uVote/page/user_list_active/active.tpl b/uVote/page/user_list_active/active.tpl
new file mode 100644
index 0000000..f2cef67
--- /dev/null
+++ b/uVote/page/user_list_active/active.tpl
@@ -0,0 +1 @@
+${votelist}
\ No newline at end of file
diff --git a/uVote/page/user_list_active/user_list_active.php b/uVote/page/user_list_active/user_list_active.php
new file mode 100644
index 0000000..5c57dd2
--- /dev/null
+++ b/uVote/page/user_list_active/user_list_active.php
@@ -0,0 +1,105 @@
+ 0 ? 'Abstimmen' : 'Ansehen';
+ $vote['uv'] = $vote['bt'] = '';
+ $vote['uv_count'] = $vote_count['count'] > 4 ? $vote_count['count'] : '< 5';
+
+ $user_vote = votes::getUserPollData($vote['ID']);
+ $vote['vote_class'] = $this->tablerow_class($user_vote);
+ if($user_vote){
+ //user vote
+ $vote['vote_class'] = $this->tablerow_class($user_vote);
+
+ //bt vote
+ $party_votes = votes::get_barsperparty($vote['ID']);
+ $vote['bt_vote_class'] = $this->tablerow_class($vote['bt_choice']);
+ foreach($party_votes as $pv){
+ $vote['bt'] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote_bt.tpl'),
+ array( 'party' => $pv['party'],
+ 'choice' => $this->get_party_per_poll($pv['choice']),
+ 'choice_class' => $this->badge_class($pv['choice'])));
+ }
+
+ //uvote vote
+ $uvote = votes::get_users_choice_per_poll($vote['ID']);
+ $vote['uv_vote_class'] = count($uvote) > 0 ? $this->tablerow_class($uvote[0]['choice']) : '';
+ foreach($uvote as $v){
+ $vote['uv'] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote_uv.tpl'),
+ array( 'badge' => self::badge_class($v['choice']),
+ 'perc' => $v['count'] > 0 ? round($v['count']/$vote_count['count']*100, 2) : 0));
+ }
+ }
+
+ if($time_remain > 0){
+ $result[0] .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote.tpl'), $vote);
+ } else {
+ $result[1] .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote.tpl'), $vote);
+ }
+ }
+ return $result[0].$result[1];
+ }
+
+ public function html(){
+ $vars = array();
+ $vars['votelist'] = $this->generate_votelist();
+ $vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id=';
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(150));
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(110));
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(100));
+ return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_list_active/active.tpl'), $vars);
+ }
+
+}
\ No newline at end of file
diff --git a/uVote/page/user_list_ended/ended.tpl b/uVote/page/user_list_ended/ended.tpl
new file mode 100644
index 0000000..f2cef67
--- /dev/null
+++ b/uVote/page/user_list_ended/ended.tpl
@@ -0,0 +1 @@
+${votelist}
\ No newline at end of file
diff --git a/uVote/page/user_list_ended/user_list_ended.php b/uVote/page/user_list_ended/user_list_ended.php
new file mode 100644
index 0000000..75dc13c
--- /dev/null
+++ b/uVote/page/user_list_ended/user_list_ended.php
@@ -0,0 +1,103 @@
+ 0 ? 'Abstimmen' : 'Ansehen';
+ $vote['uv'] = $vote['bt'] = '';
+ $vote['uv_count'] = $vote_count['count'] > 4 ? $vote_count['count'] : '< 5';
+
+ $user_vote = votes::getUserPollData($vote['ID']);
+ $vote['vote_class'] = $this->tablerow_class($user_vote);
+ if($user_vote){
+ //user vote
+ $vote['vote_class'] = $this->tablerow_class($user_vote);
+
+ //bt vote
+ $party_votes = votes::get_barsperparty($vote['ID']);
+ $vote['bt_vote_class'] = $this->tablerow_class($vote['bt_choice']);
+ foreach($party_votes as $pv){
+ $vote['bt'] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote_bt.tpl'),
+ array( 'party' => $pv['party'],
+ 'choice' => $this->get_party_per_poll($pv['choice']),
+ 'choice_class' => $this->badge_class($pv['choice'])));
+ }
+
+ //uvote vote
+ $uvote = votes::get_users_choice_per_poll($vote['ID']);
+ $vote['uv_vote_class'] = count($uvote) > 0 ? $this->tablerow_class($uvote[0]['choice']) : '';
+ foreach($uvote as $v){
+ $vote['uv'] .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote_uv.tpl'),
+ array( 'badge' => self::badge_class($v['choice']),
+ 'perc' => $v['count'] > 0 ? round($v['count']/$vote_count['count']*100, 2) : 0));
+ }
+ }
+
+ if($time_remain > 0){
+ $result[0] .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote.tpl'), $vote);
+ } else {
+ $result[1] .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote.tpl'), $vote);
+ }
+ }
+ return $result[0].$result[1];
+ }
+
+ public function html(){
+ $vars = array();
+ $vars['votelist'] = $this->generate_votelist();
+ $vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id=';
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(150));
+ $vars = array_merge($vars, \SYSTEM\locale::getStrings(110));
+ return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_list_ended/ended.tpl'), $vars);
+ }
+
+}
\ No newline at end of file