<%@ page import="ro.emid.common.utils.ObjectUtils" %>
<%@ page import="ro.emid.common.types.Strada" %>
<%@ page import="ro.emid.lpod.db.OpenDB" %>
<%@ page import="ro.emid.lpod.action.lucrariProgramate.BrowseAdresaAction" %>

<%
    final long idLocalitate = ObjectUtils.getLongValue( request.getParameter("idLocalitate"), -1);

    final Strada[] strazi =  OpenDB.searchStrazi( idLocalitate );
%>

<respmesg>
    <% 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); loadPuncteConsum( '<%=strada.getCod()%>')">
                <nobr>
                    <%=strada.getTipArtera()%> <%=strada.getDenumire()%>
                </nobr>
            </span>
        </div>
        <%--see browseAdresa.jsp for loadPuncteConsum function --%>
    <% } %>
</respmesg>
