<%@ page import="ro.emid.common.action.browse.adrese.BrowseAdresaAction" %>
<%@ page import="ro.emid.common.db.OpenSCGAccessDB" %>
<%@ page import="ro.emid.common.utils.ObjectUtils" %>
<%@ page import="ro.emid.common.types.Strada" %>
<%@ page import="ro.emid.common.db.adrese.AdreseHelper" %>

<%
    final String codLocalitate = ObjectUtils.getStringValue(request.getParameter("codLocalitate"));
    final Strada[] strazi =  AdreseHelper.getAdreseDao().getStrazi(codLocalitate);
%>

<respmesg>
    <% if( strazi != null) for (int i = 0; i < strazi.length; i++) {
        final Strada strada = strazi[i]; %>

        <div class="strada">
            <% if( BrowseAdresaAction.Util.isCheckMode(request)){ %>
                <input type="checkbox" name="<%=BrowseAdresaAction.P_CHECK_STRADA%>" value="<%=strada.getCod()%>"/>
            <% } %>
            <span id="plusStrada<%=strada.hashCode()%>" onclick="selectNode( this); window.parent.BrowseWindow.showLocuriConsum( '<%=strada.getCod()%>')">
                <nobr>
                    <span style="margin-right: 10px"><%=strada.getTipArtera()%></span><span><%=strada.getDenumire()%></span>
                </nobr>
            </span>
        </div>
        <%--see browseAdresa.jsp for loadPuncteConsum function --%>
    <% } %>
</respmesg>
