<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Folders.aspx.cs" Inherits="Board_Folders" meta:resourcekey="Page" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="../libs/fontawesome/css/all.min.css" >
    <script type="text/javascript" src="../libs/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="../libs/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

        <div class="container-fluid">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th style="font-size:larger">
                            <div class="row">
                                <div class="col-xs-10">
                                    <asp:Localize ID="Localize1" runat="server" meta:resourcekey="L01">게시판 선택</asp:Localize>
                                </div>
                                <div class="col-xs-2 text-right">
                                    <button type="button" id="closeToolButton" class="btn btn-primary" onclick="history.back();"><span class="fa-solid fa-xmark"></span></button>
                                </div>
                            </div>
                        </th>
                    </tr>
	            </thead>
                <tbody>
                    <asp:Repeater ID="FolderRepeater" runat="server">
                        <ItemTemplate>
                            <tr>
		                        <td>
                                    <div class="row" style='padding-left:<%# Eval("Indent") %>px;' onclick="<%# GetClickEventFunction((Guid)Eval("ID"), (string)Eval("BoardType"))%>">
                                        <div class="col-xs-9">
                                            <%# GetBoardInfoEx((bool)Eval("IsFolder"), (string)Eval("Name")) %>
                                        </div>
                                        <div class="col-xs-3 text-right">
                                            <%# GetUnreadCount((long)Eval("UnReadCount"))%>
                                        </div>
                                    </div>
                                </td>
	                        </tr>
                        </ItemTemplate>
                    </asp:Repeater>
	            </tbody>
            </table>
        </div>
    </form>
</body>
</html>
