<%@ page import="ro.emid.common.utils.RequestUtils" %>
<%@ page import="ro.emid.common.db.CategoryAccessDB" %>
<%@ page import="ro.emid.common.types.Category" %>


<respmesg>
<%try{ %>
    <%
        final long idDed = RequestUtils.getLong( request, "idDed", -1);


        final Category[]  ces = CategoryAccessDB.getAllCategoriesByDed( idDed);


    %>


    <table cellpadding=2 cellspacing=1 width="100%" class="table">
        <thead>
            <tr>
                <th height=25 nowrap>Centre subordonate:</th>
            </tr>
        </thead>
        <tbody>
        <% if( ces == null || ces.length == 0){ %>
            <tr><td>
                Fara centre alocate
            </td></tr>
        <% } else for (int i = 0; i < ces.length; i++) {
            final Category ce = ces[i]; %>

            <tr>
                <td><%=ce.getName()%></td>
            </tr>

        <% }%>
        </tbody>
    </table>


<%}catch( Exception t){
    t.printStackTrace();%>
    <%=t.getMessage()%>
<%}%>
</respmesg>