From e6436f8abc1e9c793abe884f1809edfd6b982054 Mon Sep 17 00:00:00 2001 From: Nael Date: Tue, 11 Mar 2014 01:57:54 +0100 Subject: [PATCH] comment now formatted and working properly --- uVote/api/votes/votes.php | 2 +- .../qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php | 3 +-- uVote/page/default_bulletin/bars_user.tpl | 1 + uVote/page/default_bulletin/bulletin.tpl | 25 ++++++++----------- uVote/page/default_bulletin/comment.tpl | 14 ++++++----- .../default_bulletin/default_bulletin.php | 13 +++++++--- uVote/page/default_bulletin/table_bt.tpl | 2 +- uVote/page/default_bulletin/table_parties.tpl | 5 ++-- uVote/page/default_bulletin/vote_bt.tpl | 2 +- uVote/page/default_page/js/loadtexts.js | 10 +++++--- 10 files changed, 42 insertions(+), 35 deletions(-) diff --git a/uVote/api/votes/votes.php b/uVote/api/votes/votes.php index da8d590..ceb1abf 100644 --- a/uVote/api/votes/votes.php +++ b/uVote/api/votes/votes.php @@ -196,7 +196,7 @@ class votes { public static function write_commentrate($c_ID, $val){ if(!\SYSTEM\SECURITY\Security::isLoggedIn()){ throw new ERROR("You need to be logged in.");} - return \DBD\UVOTE_DATA_USER_COMMENTRATE_INSERT::Q1(array($c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val));} + return \DBD\UVOTE_DATA_USER_COMMENTRATE_INSERT::Q1(array($c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val, $c_ID, \SYSTEM\SECURITY\Security::getUser()->id, $val));} public static function get_add_data(){ return \DBD\UVOTE_DATA_USER_ADD_DATA::Q1(array(\SYSTEM\SECURITY\Security::getUser()->id)); diff --git a/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php b/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php index 743bea7..e31e1f6 100644 --- a/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php +++ b/uVote/dbd/qq/UVOTE_DATA_USER_COMMENTRATE_INSERT.php @@ -7,6 +7,5 @@ class UVOTE_DATA_USER_COMMENTRATE_INSERT extends \SYSTEM\DB\QP { //pg '', //mys -'INSERT INTO `uvote_user_comments_additional` (`c_ID`, `user_ID`, `val`, `timestamp`) - VALUES (?, ?, ?, NOW());' +'INSERT INTO `uvote_user_comments_additional` (`c_ID`, `user_ID`, `val`, `timestamp`) VALUES (?, ?, ?, NOW()) ON DUPLICATE KEY UPDATE `c_ID` = ?, `user_ID` = ?, `val` = ?, `timestamp` = NOW();' );}} \ No newline at end of file diff --git a/uVote/page/default_bulletin/bars_user.tpl b/uVote/page/default_bulletin/bars_user.tpl index 38ded74..77d82cd 100644 --- a/uVote/page/default_bulletin/bars_user.tpl +++ b/uVote/page/default_bulletin/bars_user.tpl @@ -4,3 +4,4 @@ ${urvote_bars_user}
${vote_yes_perc}%
${vote_no_perc}%
${vote_ent_perc}%
+ diff --git a/uVote/page/default_bulletin/bulletin.tpl b/uVote/page/default_bulletin/bulletin.tpl index a27dcec..8b30687 100644 --- a/uVote/page/default_bulletin/bulletin.tpl +++ b/uVote/page/default_bulletin/bulletin.tpl @@ -12,27 +12,24 @@
${voice_weight}
-
-
- ${bars_user} -
-
+
+ ${bars_user}
${bars_bt} -
-
+
${icons_party} ${choice_party}
-
- - -
-
+
+
+
+

Kommentare

+
+
Pro
${comments_pro}
-
+
Contra
${comments_con}
@@ -50,7 +47,7 @@
${submit}
- +