<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Content_MessageList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title><%=naviname %> - [留言内容]</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Content_Message.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">    
	<!-- 留言列表管理 -->
        <!-- 标 -->
            <div class="title-tab">
            <div class="title"><span class="title-ico titico11 F B"><%=naviname %> - <span class="V NoB">留言列表</span></span></div>
            <ul class="menu">
                <li><a class="<%=sift=="all"?"active":"" %>" href="<%=getFormUrl %>?sift=all&naviid=<%=naviid %>&naviname=<%=naviname %>&reply=<%=reply %>"><span>全部</span></a></li>
                <li><a class="<%=sift=="0"?"active":"" %>" href="<%=getFormUrl %>?sift=0&naviid=<%=naviid %>&naviname=<%=naviname %>&reply=<%=reply %>"><span>未审核</span></a></li>
                <li><a class="<%=sift=="1"?"active":"" %>" href="<%=getFormUrl %>?sift=1&naviid=<%=naviid %>&naviname=<%=naviname %>&reply=<%=reply %>"><span>已审核</span></a></li>
            </ul>            
            </div>
        <!-- end 标 -->
        
         <div class="clear-8"></div>
         <span class="tbox_form"><label class="topname">关键词：</label><input type="text" id="s_key" value="<%=key %>" class="input162 f_left m_right6" /></span>
            <span class="tbox_form">
            <select id="message_select" class="input162 f_left m_right6">
            <option <%=reply=="all"?"selected=selected":"" %> value="-1">== 操作筛选 ==</option>
            <option <%=reply=="0"?"selected=selected":"" %> value="0">未回复过的</option>
            <option <%=reply=="1"?"selected=selected":"" %> value="1">已回复过的</option>
            </select>
            </span>
            <a href="<%=getFormUrl %>?sift=<%=sift %>&naviid=<%=naviid %>&naviname=<%=naviname %>" id="messageListSerach_Btn" class="bule-btn W f_left text_centent">查找</a>
                <p class="PageBox">
                    <%=getPagesInfo %>
                </p>
        <div class="clear-8"></div>
        <!-- 通用table -->
                <table class="table-1">
        	<thead>
            	<tr>
                    <th width="30%" class="text_left">留言者</th>
                	<th width="50%" class="text_left" >留言内容</th>
                    <th width="12%" class="text_center" >时间</th>
                    <th width="8%">操作</th>
                </tr>
            </thead>
            <tbody id="Jquery_Tbody">
            <%if (_messageListDat.Rows.Count > 0) %>
            <%{ %>
                <%foreach (System.Data.DataRow dat in _messageListDat.Rows) %>
                <%{ %>
            	<tr>
                    <td class="text_left">
                    	<span class="H B"><%=dat["membername"].ToString()%></span> <span class="F">[<%=getIpCity(dat["ip"].ToString())%>]</span> <span class="X Size9"><%=dat["ip"].ToString()%></span><br />
                         <span class="V">联系：<%=dat["contact"].ToString() %> </span><br />
                         <span class="X">浏览器[ <%=dat["browser"].ToString() %> ] 操作系统 [ <%=dat["os"].ToString() %> ]</span>
                         
					</td>
                	<td class="text_left">
                        <span class="V"><%=cutText(dat["content"].ToString(),36,"...")%></span> <a class="R" rev="<%=dat["content"].ToString() %>" rel="showAllContent" href="#">[显示全部]</a>
                        <ul rel="<%=dat["id"].ToString() %>" class="item-list Q"></ul>
                        <a href="#" rel="reply_btn" class="Y">[ 回复Ta ]</a>
                        <div class="form" style="display:none;">
                        <textarea name="siteKeyWord_txt" class="input300" tabindex="1" cols="" rows=""></textarea>
                        <div class="clear-4"></div>
                        <input class="yellow-btn G" rel="reply_btn" rev="<%=dat["id"].ToString() %>" type="button" value="提交回复" />
                        </div>
                    </td>
                    <td>
                    	<span class="G">(<%=getTime1(dat["addtime"].ToString())%>)</span><br />
                            <span class="V Size9"><%=getTime2(dat["addtime"].ToString())%></span>
                    </td>
                    <td>
                        <%if (dat["isaudit"].ToString() == "True") %>
                        <%{ %>
                        <a href="0" title="<%=dat["membername"].ToString() %>" rel="audit" rev="<%=dat["id"].ToString() %>" class="Q underline">[取消审核]</a>
                        <%}else{ %>
                        <a href="1" title="<%=dat["membername"].ToString() %>"  rel="audit" rev="<%=dat["id"].ToString() %>" class="F underline">[审核]</a>
                        <%} %>
                        <br />
                        <%if (dat["ishide"].ToString() == "True") %>
                        <%{ %>
                        <a href="0" title="<%=dat["membername"].ToString() %>" rel="hide" rev="<%=dat["id"].ToString() %>" class="Q underline">[取消显示]</a>
                        <%}else{ %>
                        <a href="1" title="<%=dat["membername"].ToString() %>"  rel="hide" rev="<%=dat["id"].ToString() %>" class="F underline">[显示]</a>
                        <%} %>
                        <br />
                        <a href="<%=dat["id"].ToString() %>" title="<%=dat["membername"].ToString() %>" rel="del" class="R underline">[删除]</a>
                    </td>
                </tr>
                <%} %>
            <%}else{ %>
            <tr>
            <td  colspan="4" class="text_left"><span class="V">暂无留言</span></td>
            </tr>
            <%} %>
            </tbody>
        </table>
        <!-- end 通用table -->
        <div class="clear-8"></div>
        <p class="PageBox">
            <%=getPagesInfo%>
        </p>
        <div class="clear-8"></div>
    <!-- end 留言列表管理 -->
</div>

</body>
</html>
