<%@include file="/WEB-INF/common/layouts/common.jsp" %>
<%@ page language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>公告列表</title>
</head>
<body>

<!-- 面包屑 begin -->
<div class="row-fluid">
    <div class="span12">
        <ul class="breadcrumb">
            <li><a href="/house365-hgs-web/">首页</a>
                <span class="divider" style="color:#26a0da;font-weight:bold;"> > </span>
                公告列表
            </li>
        </ul>
    </div>
</div>
<!-- 面包屑 begin -->

<div class="row-fluid">
    <div class="span12">
        <ul class="nav nav-list">
            <li class="nav-header">
                <font size="3pm">公告</font>
            </li>
            <li class="divider"></li>
        </ul>
    </div>
</div>

<form id="filterForm" class="form-inline filterForm" action="${ctx}/notice/viewList" method="get">
    <div class="page-container">
        <table class="table table-striped table-advance table-hover">
            <thead>
            <c:forEach items="${notices}" var="notice">
            <tr>
                <td nowrap="nowrap" width="80%" style="cursor:pointer;"
                    onclick="window.open('${ctx}/notice/view/${notice.id}');">
                    <c:if test="${null ne notice.title}">
                        <c:if test="${notice.red}">
                            <font color="red"><b>
                        </c:if>
                        <c:out value="${notice.title}"/>
                        <c:if test="${notice.top}">
                            【置顶】
                        </c:if>
                        <c:if test="${notice.red}">
                            </b></font>
                        </c:if>
                    </c:if>
                    <c:if test="${null eq notice.title || '' eq notice.title}">
                        &nbsp;
                    </c:if>
                </td>
                <td nowrap="nowrap" width="20%" style="text-align:right">
                    <c:if test="${'new' eq notice.city}">
                        <img src="${ctx}/resources/image/new.gif"> &nbsp;&nbsp;
                    </c:if>
                    <c:if test="${null ne notice.createTime && '' ne notice.createTime}">
                        <f:formatDate value='${notice.createTime}' pattern='yyyy-MM-dd HH:mm:ss'/>
                    </c:if>
                    <c:if test="${null eq notice.createTime || '' eq notice.createTime}">
                        &nbsp;
                    </c:if>
                </td>
            </tr>
            </c:forEach>
        </table>
        <div class="row${fluid}">
            <house365:pagination page="${page}"/>
        </div>
    </div>
</form>
</body>
</html>
