-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduced update_inis query for delta updates of ini table for #17
- Loading branch information
1 parent
b4c80b0
commit 012194a
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<h2><%= texts.currentinis %></h2> | ||
<label class="table-label" for="select_fiter"><%= texts.filter %>:</label> | ||
<select id="select-filter" name="filter"> | ||
<% for(var i = 0; i < filter.length; i++) { %> | ||
<option value="<%= filter[i].id %>"><%= filter[i].text %></option> | ||
<% } %> | ||
</select> | ||
<table> | ||
<tr> | ||
<th><%= texts.ini %></th> | ||
<th><%= texts.unit %></th> | ||
<th><%= texts.support %></th> | ||
<th><%= texts.status %></th> | ||
</tr> | ||
<% var odd = true; | ||
for(var i = 0; i < inis.length; i++) { %> | ||
<tr<% | ||
if(inis[i].alternativeid > 0) { | ||
%> class="table-alternativeinitiative"<% } | ||
else { | ||
if(odd == true) { | ||
odd = false; | ||
%> class="odd"<% } | ||
else { | ||
odd = true; } | ||
} | ||
%>> | ||
<td><h3><a href="#"><%= inis[i].title %></a></h3><% | ||
if(!inis[i].hasalternatives) { | ||
%><a href='#'><%= inis[i].area %></a><% } %></td> | ||
<td><%= inis[i].unit %></td> | ||
<td> | ||
<ul class="bargraph" title="<%= inis[i].supporter %> <%= texts.supporter %> / <%= inis[i].potsupporter %> <%= texts.potsupporter %> / <%= inis[i].uninterested %> <%= texts.uninterested %>"> | ||
<li class="bargraph-quorum" style="left:<%= inis[i].quorum %>%;"></li> | ||
<li class="bargraph-support" style="width:<%= inis[i].support %>%"></li> | ||
<li class="bargraph-potential" style="width:<%= inis[i].potential %>%"></li> | ||
<li class="bargraph-uninvolved" style="width:<%= inis[i].uninvolved %>%"></li> | ||
</ul> | ||
</td> | ||
<td><% if(inis[i].status == texts.tablevote) { %><span class="table-vote"><% } %><%= inis[i].status %><% | ||
if(inis[i].status == texts.tablevote) { %></span><% } | ||
if(inis[i].delegate) { | ||
%><p class="table-delegate"><a href="#"><img title="<%= texts.delegationend %>" src="<%= inis[i].delegate.picsmall %>"/></a></p><% | ||
} %></td> | ||
</tr><% | ||
} %> | ||
</table> | ||
<div class="box-footer"> | ||
<ul class="pagination"> | ||
<% if(initable.activepage == 1) { %><li class="button button-backward-off"><%= texts.backshort %></li><% } else { %><li><a class="button button-backward" href="overview?page=<%= ( initable.activepage - 1 ) %>&newspage=<%= news.activepage %>"><%= texts.backshort %></a></li><% } | ||
for(var i = 1; i <= initable.pages; i++) { | ||
if(i == initable.activepage) { %> | ||
<li class="active"><%= i %></li> | ||
<% } | ||
else { %> | ||
<li><a href="overview?page=<%= i %>&newspage=<%= news.activepage %>"><%= i %></a></li> | ||
<% } | ||
} | ||
var nextpage = ( initable.activepage - 1 ) + 2; | ||
if(initable.activepage != initable.pages) { %><li><a class="button button-forward" href="overview?page=<%= nextpage %>&newspage=<%= news.activepage %>"><%= texts.forward %></a></li><% } else { %><li class="button button-forward-off"><%= texts.forward %></li><% } %> | ||
</ul> | ||
</div> |