diff --git a/uVote/api/votes/votes.php b/uVote/api/votes/votes.php index 95fa84d..d206d82 100644 --- a/uVote/api/votes/votes.php +++ b/uVote/api/votes/votes.php @@ -95,9 +95,16 @@ class votes { public static function get_user_to_bt_overall($user_ID){ return \DBD\UVOTE_DATA_USER_TO_BT::QA(array($user_ID)); } + + public static function get_uvote_to_bt_overall(){ + return \DBD\UVOTE_DATA_UVOTE_TO_PARTY_OVERALL::QA(array()); + } public static function get_users_choice_per_poll($poll_ID){ return \DBD\UVOTE_DATA_USERS_CHOICE_PER_POLL::QA(array($poll_ID));} + + public static function get_pfields_per_poll($poll_ID){ + return \DBD\UVOTE_DATA_USERS_CHOICE_PER_POLL::QA(array($poll_ID));} public static function get_voteinfo($poll_ID){ $con = new \SYSTEM\DB\Connection(new \DBD\uVote()); diff --git a/uVote/dbd/qq/UVOTE_DATA_PFIELDS_PER_POLL.php b/uVote/dbd/qq/UVOTE_DATA_PFIELDS_PER_POLL.php new file mode 100644 index 0000000..e4acac7 --- /dev/null +++ b/uVote/dbd/qq/UVOTE_DATA_PFIELDS_PER_POLL.php @@ -0,0 +1,11 @@ +css(); $vars['vote_buttons'] = $this->vote_buttons($poll_expired,$user_vote); - +// $vars['p_fields'] = $this->p_fields(); if($user_vote){ $vars['bars_party'] = $poll_expired ? '' : $this->bars_party(); $vars['bars_user'] = $this->bars_user(); diff --git a/uVote/page/default_page/css/default_page.css b/uVote/page/default_page/css/default_page.css index 020b979..b73b977 100644 --- a/uVote/page/default_page/css/default_page.css +++ b/uVote/page/default_page/css/default_page.css @@ -11,10 +11,11 @@ body { background: #5eb95e; } -.contra{ +.con{ background: #ee5f5b; } .ent{ background: lightgrey; } + diff --git a/uVote/page/default_page/default_page.php b/uVote/page/default_page/default_page.php index ea5b3e9..3171a59 100644 --- a/uVote/page/default_page/default_page.php +++ b/uVote/page/default_page/default_page.php @@ -34,11 +34,11 @@ class default_page extends SYSTEM\PAGE\Page { case 1: return 'pro'; case 2: - return 'contra'; + return 'con'; case 3: return 'ent'; default: - return ''; + return 'open'; } } @@ -49,7 +49,7 @@ class default_page extends SYSTEM\PAGE\Page { case 2: return 'badge-important'; case 3: - return ''; + return 'badge-info'; default: return ''; } @@ -72,6 +72,7 @@ class default_page extends SYSTEM\PAGE\Page { $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); @@ -124,7 +125,7 @@ class default_page extends SYSTEM\PAGE\Page { $vars = array(); $vars['js'] = $this->js(); $vars['css'] = $this->css(); - $vars['votelist'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->generate_votelist() : $this->get_coverpage() ; + $vars['votelist'] = $this->generate_votelist(); $vars['registerform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->getloggedinform() : $this->exchange_registerform(); $vars['loginform'] = \SYSTEM\SECURITY\Security::isLoggedIn() ? $this->exchange_loginform() : $this->getloginform() ; $vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id='; diff --git a/uVote/page/default_page/page.tpl b/uVote/page/default_page/page.tpl index 380da23..d31a66f 100644 --- a/uVote/page/default_page/page.tpl +++ b/uVote/page/default_page/page.tpl @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/uVote/page/user_main_myVote/myVote.tpl b/uVote/page/user_main_myVote/myVote.tpl index 0c759a4..f80e03c 100644 --- a/uVote/page/user_main_myVote/myVote.tpl +++ b/uVote/page/user_main_myVote/myVote.tpl @@ -1 +1,14 @@ -test123 \ No newline at end of file +Geburtsjahr +
+ +
+ + + + diff --git a/uVote/page/user_main_uVote/bt_to_uvote_overall.tpl b/uVote/page/user_main_uVote/bt_to_uvote_overall.tpl new file mode 100644 index 0000000..34cff78 --- /dev/null +++ b/uVote/page/user_main_uVote/bt_to_uvote_overall.tpl @@ -0,0 +1,8 @@ + + + + + ${class_MATCH} + ${class_MISSMATCH} + ${match_percentage}% + \ No newline at end of file diff --git a/uVote/page/user_main_uVote/uVote.tpl b/uVote/page/user_main_uVote/uVote.tpl index 4a4c591..dfb4d23 100644 --- a/uVote/page/user_main_uVote/uVote.tpl +++ b/uVote/page/user_main_uVote/uVote.tpl @@ -1,4 +1,4 @@ -
+
Entscheidungsverhalten der uVote Community
@@ -8,12 +8,12 @@
insgesamt Dafür, Dagegen oder
Enthaltung gestimmt hat.
-
+
Entscheidungsverhalten des Bundestags
- + ${votes_all_bt} - Wie oft der Bundestag + Wie oft der Bundestag
Dafür, Dagegen oder
Enthaltung gestimmt hat.
diff --git a/uVote/page/user_main_uVote/user_main_uVote.php b/uVote/page/user_main_uVote/user_main_uVote.php index 3abb4c2..1b52897 100644 --- a/uVote/page/user_main_uVote/user_main_uVote.php +++ b/uVote/page/user_main_uVote/user_main_uVote.php @@ -1,6 +1,9 @@ -${choice} -${count} +${choice} +${count}
diff --git a/uVote/page/user_main_uVote/votecountchoicebt.tpl b/uVote/page/user_main_uVote/votecountchoicebt.tpl index dfd975b..3e74993 100644 --- a/uVote/page/user_main_uVote/votecountchoicebt.tpl +++ b/uVote/page/user_main_uVote/votecountchoicebt.tpl @@ -1,4 +1,4 @@
-${bt_choice} -${count} +${bt_choice} +${count}
diff --git a/uVote/page/user_main_urVote/all_polls.tpl b/uVote/page/user_main_urVote/all_polls.tpl index b5efdf6..474008d 100644 --- a/uVote/page/user_main_urVote/all_polls.tpl +++ b/uVote/page/user_main_urVote/all_polls.tpl @@ -1,5 +1,4 @@
Deine Abstimmungsquote
-
Abgestimmt/
Offen
diff --git a/uVote/page/user_main_urVote/user_main_urVote.php b/uVote/page/user_main_urVote/user_main_urVote.php index 956a30b..4fc1a7c 100644 --- a/uVote/page/user_main_urVote/user_main_urVote.php +++ b/uVote/page/user_main_urVote/user_main_urVote.php @@ -1,6 +1,8 @@ id); $v = $vars['voted']; @@ -54,7 +56,7 @@ class user_main_urVote extends SYSTEM\PAGE\Page { public function html(){ $vars = array(); -// $vars['poll_compare'] = $this->count_all_polls(); +// $vars['poll_compare'] = $this->count_all_polls(); $vars['choices_user_ID'] = $this->user_per_party_overall(); $vars['choices_bt_to_user'] = $this->user_to_bt(); $vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id=';