<% for(var i=0; i<list.length; i++){ %>
<li class="rp-list-item <% if( list[i].status == '0'){ %>draft<% } %>">
    <div class="rp-summary">
        <div class="clearfix">
            <div class="rps-header pull-left">
                <% if( /receive|unread/.test(type) ){ %>
                <div class="avatar-box">
                    <a href="<%= list[i].user.space_url %>" class="avatar-circle" target="_blank">
                        <img class="mbm" src="<%= list[i].user.avatar_small %>" alt="">
                    </a>
                    <p class="mtm"><a href="<%= list[i].user.space_url %>"><%= list[i].user.realname %></a></p>
                </div>
                <% } %>
                <% if(type == 'send'){ %>
                <div class="img-box">
                    <i class="icon <%= list[i].icon %>"></i>
                </div>
                <% } %>
            </div>
            <div class="rps-content">
                <% if(type == 'send'){  %>
                <h4 class="ellipsis">
                    <a href="#<%= type %>/detail/<%= list[i].repid %>" title="<%= list[i].subject %>">
                        <%= list[i].subject %>
                    </a>
                </h4>
                <% } %>
                <% if(/receive|unread/.test(type)){  %>
                <p class="xcm ellipsis">
                    <a href="#<%= type %>/detail/<%= list[i].repid %>" title="<%= list[i].subject %>" class="xcm">
                        <i class="icon-small <%= list[i].icon %>"></i>
                        <%= list[i].subject %>
                        <% if( list[i].attachmentid ){ %>
                            <i class="o-paperclip"></i>
                        <% } %>
                    </a>
                </p>
                <% } %>
                <div class="xcm mbm">
                    <% for(var j=0; j<list[i].record.length && j<3; j++){ %>
                        <p class='ellipsis'>
                            <span class='tcm'><%= U.entity.escape(list[i].record[j].fieldname) %>：</span>
                            <% if(list[i].record[j].fieldtype == "8") { %>
                                <%= $.trim($(U.entity.unescape(list[i].record[j].content)).text()) %>
                            <% } else { %>
                                <%= list[i].record[j].content %>
                            <% } %>
                        </p>
                    <% } %>
                    <% if( list[i].record.length < 3 ){ %>
                    <p class='ellipsis'><span class='tcm'>备注：</span><%= list[i].remark %></p>
                    <% } %>
                    <% if( list[i].record.length === 1 ){ %>
                    <p></p>
                    <% } %>
                </div>
                <div class="rp-list-item-desc clearfix">
                    <% if(type == 'send'){ %>
                    <div class="pull-right operation">
                        <a href="#edit/<%= list[i].repid %>" class="o-edit cbtn mls" title="编辑"></a>
                        <a href="javascript:;" data-click="removeReport" data-param="{&quot;id&quot;: &quot;<%= list[i].repid %>&quot;}" class="o-trash cbtn mls" title="删除"></a>
                    </div>
                    <label class="checkbox checkbox-inline">
                        <input type="checkbox" name="report[]" value="<%= list[i].repid %>">
                    </label>
                    <% } %>
                    <span class="fss"><%= list[i].createtime %></span>
                    <span class="fss ilsep">|</span>
                    <% if( list[i].status == '1' ){ %>
                        <a href="javascript:;" class="fss" data-node-type="loadCommentUser" data-id="<%= list[i].repid %>">点评 <em><%= list[i].commentcount %></em></a>
                        <span class="fss ilsep">|</span>
                        <a href="javascript:;" class="fss" data-node-type="loadReader" data-id="<%= list[i].repid %>">阅读  <em><%= list[i].readcount %></em></a>
                        <% if (list[i].stamp){ %>
                            &nbsp;&nbsp;
                            <img width="60" height="24" id="report_stamp_<%= list[i].repid %>" src="<%= list[i].stamp %>">
                        <% } %>
                    <% }else{ %>
                        <span class="xcr">草稿</span>
                    <% } %>
                </div>
            </div>
        </div>

    </div>
    <!-- 此处展开详细页 -->
    <div class="rp-detail" style="display:none;"></div>
    <div class="rp-mark-down-wrap">
        <a href="javascript:;" class="rp-mark-down" data-click="showReportDetail" data-param="{&quot;id&quot;: &quot;<%= list[i].repid %>&quot;, &quot;origin&quot;: &quot;list&quot;, &quot;status&quot;: &quot;<%= list[i].status %>&quot;, &quot;type&quot;: &quot;<%= type %>&quot;}"></a>
    </div>
</li>
<% } %>
<% if( !list.length ){ %>
    <div class="no-data-tip"></div>
<% } %>