57 lines
2.2 KiB
Plaintext
57 lines
2.2 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<%- include partial/head.ejs %>
|
||
|
<body>
|
||
|
<div class="container-fluid" id="container">
|
||
|
<div class="row row-offcanvas row-offcanvas-left">
|
||
|
<%- include partial/stranski-menu.ejs %>
|
||
|
<div class="container-fluid main col-sm-12">
|
||
|
<div class="page-header">
|
||
|
<h1><%= title %></h1>
|
||
|
</div>
|
||
|
<%- include partial/iskalnik.ejs %>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Naziv</th>
|
||
|
<th>Matična številka</th>
|
||
|
<th>Davčna številka</th>
|
||
|
<th>Naslov</th>
|
||
|
<th>Pošta</th>
|
||
|
<th>Poštna številka</th>
|
||
|
<th>Občina</th>
|
||
|
<th></th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<% for(i = 0; i < results.length; i++) { %>
|
||
|
<tr>
|
||
|
<td><% if(results[i].davcna) { %><a href="/podj/<%= results[i].davcna %>"><% var ime = results[i].popolnoime.toString(); ime = ime.replace("&", "&"); %><%= ime %></a><% } else { %><%= results[i].popolnoime %><% } %></td>
|
||
|
<td><%= results[i].ma %></td>
|
||
|
<td><a href="/podj/<%= results[i].davcna %>"><%= results[i].davcna %></a></td>
|
||
|
<td><%= results[i].ulica + ' '+ results[i].hs+(results[i].dodatek || '') %></td>
|
||
|
<td><%= results[i].posta %></td>
|
||
|
<td align="right"><%= results[i].po %></td>
|
||
|
<td><%= results[i].obcina %></td>
|
||
|
<%
|
||
|
var barva = 'black';
|
||
|
if(results[i].lokacija) barva = 'green';
|
||
|
if(!results[i].davcna) barva = 'gray';
|
||
|
%>
|
||
|
<td><span class="fa fa-globe <%= barva %>" aria-hidden="true"></span></td>
|
||
|
<% if(results[i].znak) { %>
|
||
|
<td><span class="fa fa-line-chart" aria-hidden="true"></span></td>
|
||
|
<% } else { %>
|
||
|
<td></td>
|
||
|
<% } %>
|
||
|
</tr>
|
||
|
<% } %>
|
||
|
</table>
|
||
|
<p><small>Render Engine: <%= engine %></small></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div> <!-- /container -->
|
||
|
<%- include partial/eof.ejs %>
|
||
|
</body>
|
||
|
</html>
|