uvote style + ideas

This commit is contained in:
Ulf Gebhardt 2014-02-19 04:08:58 +01:00
parent ed7020c347
commit c8e739a86d
3 changed files with 15 additions and 7 deletions

View File

@ -37,6 +37,7 @@ class default_page extends SYSTEM\PAGE\Page {
$time_remain = strtotime($vote['time_end'])- microtime(true);
$time_span = strtotime($vote['time_end']) - strtotime($vote['time_start']);
$vote['vote_class'] = $this->tablerow_class(votes::getUserPollData($vote['ID']));
$vote['bt_vote_class'] = $this->tablerow_class($vote['bt_choice']);
$vote['full_vote_btn'] = $time_remain > 0 ? 'Abstimmen' : 'Ansehen';
$vote['time_left'] = round($time_remain/($time_span+1)*100,0);
$vote['time_done'] = 100-$vote['time_left'];

View File

@ -47,7 +47,7 @@
</div>
<div class="box" style="margin-top: 0; clear: both;">
<div id="site-content" style="padding: 0; margin: 0; margin-left: 40px;">
<div id="user_main" style="padding: 0px; width: 600px; float: left;"></div>
<div id="user_main" style="padding: 0px; width: 50%; float: left;"></div>
<div id="list" style="padding: 0px; width: 50%; float: right;">
${votelist}
</div>

View File

@ -1,12 +1,19 @@
<table class="table" style="display: table; margin-bottom: 5px; float: left; width: 95%; height: 100px;">
<div style="margin: 0; margin-top: 5px; margin-bottom: 8px;">
<table style="margin-bottom: 5px; float: left; width: 95%; height: 100px; border: solid lightgray 1px; background: beige;">
<tr>
<td class="" style="">
<a class="btn btn-primary btn-small btn_vote" style="float:right" poll_ID="${ID}">${full_vote_btn}</a>
<td style="padding: 5px;">
<h4>${title}</h4>
Nr.${ID}
Nr.${ID}
<a class="btn btn-primary btn-small btn_vote" style="float:right" poll_ID="${ID}">${full_vote_btn}</a>
</td>
<td class="${bt_vote_class}" style="width: 75px; margin-top: 10px; border-left: 1px solid lightgray;">
cdu<span class="badge badge-success" style="float:right;">5</span><br/>
csu<span class="badge badge-important" style="float:right;">5</span><br/>
spd<span class="badge" style="float:right;">5</span><br/>
grüne<span class="badge badge-success" style="float:right;">5</span><br/>
linke<span class="badge badge-important" style="float:right;">5</span>
</td>
<td class="${vote_class}" style="width: 20px; margin-top: 10px; border-left: 1px solid lightgray;">
</td>
<td class="${vote_class}" style="width: 20px; margin-top: 10px; border-left: 2px solid black;"></td>
<td style="margin: 0; padding: 0; width: 3px;" >
<table class="poll_time" time="${time_end}" style="width: 100%; height: 100%; margin: 0; padding: 0;">
<tr id="time_done" style="height: ${time_done}%; background: white; margin: 0; padding: 0;"><td style="width: 1px; margin: 0; padding: 0;"></td></tr>