new nice statistics
This commit is contained in:
parent
825b68b693
commit
fd9cb13eb1
@ -1,6 +1,6 @@
|
||||
<h4>${title}</h4>
|
||||
<div class="progress" style="height: 30px;">
|
||||
<div class="bar bar-success" style="width: ${vote_yes_perc}%;">Yes</div>
|
||||
<div class="bar bar-danger" style="width: ${vote_no_perc}%;">No</div>
|
||||
<div class="bar bar-info" style="width: ${vote_ent_perc}%;">Ent</div>
|
||||
<div class="bar bar-success" style="width: ${vote_yes_perc}%;">${vote_yes_perc}%</div>
|
||||
<div class="bar bar-danger" style="width: ${vote_no_perc}%;">${vote_no_perc}%</div>
|
||||
<div class="bar bar-info" style="width: ${vote_ent_perc}%;">${vote_ent_perc}%</div>
|
||||
</div>
|
||||
@ -1,7 +1,7 @@
|
||||
<div style="margin-right: 10px;">
|
||||
<div style="">
|
||||
<div class="progress" style="height: 20px;">
|
||||
<div class="bar bar-success" style="width: ${bt_pro}%;"></div>
|
||||
<div class="bar bar-danger" style="width: ${bt_con}%;"></div>
|
||||
<div class="bar bar-info" style="width: ${bt_ent}%;"><p></p></div>
|
||||
<div class="bar bar-success" style="width: ${bt_pro}%;">${bt_pro}%</div>
|
||||
<div class="bar bar-danger" style="width: ${bt_con}%;">${bt_con}%</div>
|
||||
<div class="bar bar-info" style="width: ${bt_ent}%;"><p>${bt_ent}%</p></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1,5 +1,5 @@
|
||||
<div style="float: left; margin-right: 10px;">
|
||||
${party}
|
||||
<img src="${frontend_logos}icon_${party}.png"/>
|
||||
<div class="progress" style="width: 50px; height: 20px;">
|
||||
<div class="bar bar-success" style="width: ${party_yes}%;"></div>
|
||||
<div class="bar bar-danger" style="width: ${party_no}%;"></div>
|
||||
|
||||
@ -3,11 +3,12 @@
|
||||
class user_main extends SYSTEM\PAGE\Page {
|
||||
public function html(){
|
||||
$vars = array();
|
||||
|
||||
|
||||
$uv = new user_main_uVote();
|
||||
$vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id=';
|
||||
$vars['uVote'] = $uv->html();
|
||||
|
||||
$vars['frontend_logos'] = \SYSTEM\CONFIG\config::get(\SYSTEM\CONFIG\config_ids::SYS_CONFIG_PATH_BASEURL).'api.php?call=img&cat=frontend_logos&id=';
|
||||
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_main/main_menu.tpl'),$vars);
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>Choice</th>
|
||||
<th>Vote Count</th>
|
||||
<th>${uVote_overall_votes_title}</th>
|
||||
</tr>
|
||||
${votes_all}
|
||||
</table>
|
||||
@ -24,7 +24,9 @@ class user_main_uVote extends SYSTEM\PAGE\Page {
|
||||
|
||||
public function html(){
|
||||
$vars = array();
|
||||
$vars['votes_all'] = $this->votes_all();
|
||||
$vars['votes_all'] = $this->votes_all();
|
||||
$vars = array_merge($vars, \SYSTEM\locale::getStrings(DBD\locale_string::VALUE_CATEGORY_MAINPAGE));
|
||||
$vars = array_merge($vars, \SYSTEM\locale::getStrings(150));
|
||||
return \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_main_uVote/uVote.tpl'),$vars);
|
||||
}
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>${choice}</td>
|
||||
<td>${count}</td>
|
||||
<td><span class="badge badge-info">${choice}</span></td>
|
||||
<td><span class="badge badge-success">${count}</span></td>
|
||||
</tr>
|
||||
@ -1,10 +1,13 @@
|
||||
<div id="statistics_uvote_users">
|
||||
<table>
|
||||
|
||||
<table style="border-collapse: separate;
|
||||
border-spacing: 10px 5px;">
|
||||
<tr>
|
||||
<th>Party</th>
|
||||
<th>Match</th>
|
||||
<th>Missmatch</th>
|
||||
<h5>${urVote_title}</h5>
|
||||
</tr>
|
||||
<tr>
|
||||
<h6>${urVote_user_party_compare}</h6>
|
||||
${choices_user_ID}
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@ -1,5 +1,7 @@
|
||||
<tr>
|
||||
<td>${party}</td>
|
||||
<td>${class_MATCH}</td>
|
||||
<td>${class_MISSMATCH}</td>
|
||||
<td>
|
||||
<img src="${frontend_logos}icon_${party}.png"/>
|
||||
</td>
|
||||
<td><span class="badge badge-success">${class_MATCH}</span></td>
|
||||
<td><span class="badge badge-important">${class_MISSMATCH}</span></td>
|
||||
</tr>
|
||||
@ -12,15 +12,18 @@ class user_main_urVote extends SYSTEM\PAGE\Page {
|
||||
ON uvote_data.poll_ID = uvote_votes_per_party.poll_ID
|
||||
WHERE user_ID = ? GROUP BY party;',
|
||||
array(\SYSTEM\SECURITY\Security::getUser()->id));
|
||||
while($row = $res->next()){
|
||||
while($row = $res->next()){
|
||||
$result .= \SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_main_urVote/urvoteparties.tpl'), $row);;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function html(){
|
||||
$vars = array();
|
||||
$vars['choices_user_ID'] = $this->user_per_party_overall();
|
||||
$vars = array();
|
||||
$vars['choices_user_ID'] = $this->user_per_party_overall();
|
||||
$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));
|
||||
return SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'user_main_urVote/urVote.tpl'),$vars);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user