<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cer.aspx.cs" Inherits="webXabara_study_cer" %>

<!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 id="Head1" runat="server">
    <title>管理证件审核</title>
    <link href="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    
    <script src="/js/all.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
	    margin:8px 8px 0px 0px;
    }
    -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divWidth">
        <div class="titleBg">
            管理证件审核
            <asp:TextBox ID="searchWord" runat="server" CssClass="inputText" Width="120px" ToolTip="输入用户名或姓名搜索"></asp:TextBox>
            <asp:Button ID="SearchButton" runat="server" CssClass="inputBottom" Text="搜索" OnClick="SearchButton_Click" />
            <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator1"
                runat="server" ControlToValidate="searchWord" ErrorMessage="请输入用户名"></asp:RequiredFieldValidator></div>
        <div class="height10px">
        </div>
        <asp:Repeater ID="RepeaterList" runat="server">
            <HeaderTemplate>
                <table width="100%" class="tableLine">
                    <tr>
                        <td class="trTitleBG">
                            会员
                        </td>
                        <td class="trTitleBG">
                            证件类别
                        </td>
                        <td class="trTitleBG">
                            证件图片
                        </td>
                        <td class="trTitleBG">
                            是否查看
                        </td>                        
                        <td class="trTitleBG">
                            提交时间
                        </td>
                        <td class="trTitleBG">
                            有效期时间开始
                        </td>
                        <td class="trTitleBG">
                            有效期时间结束
                        </td>
                        <td class="trTitleBG">
                            审核管理员
                        </td>
                        <td class="trTitleBG">
                            审核时间
                        </td>
                        <td class="trTitleBG">
                            状态
                        </td>
                        <td class="trTitleBG">
                            操作
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr style="text-align:center;">
                    <td style="text-align:left;">
                        <%# Eval("postID").ToString().Trim()%>
                    </td>
                    <td>
                        <%# getClass(Eval("picType").ToString().Trim())%>
                    </td>
                    <td>
                        <a href="<%# img(Eval("picName").ToString().Trim()) %>" target="_blank"><asp:Image ID="Image1" runat="server" ImageUrl='<%# img(Eval("picName").ToString().Trim()) %>' Height="60px" Width="120px" /></a>
                    </td>
                    <td>
                        <%# Convert.ToInt32(Eval("viewID").ToString().Trim())>0?"可查看":"只审核" %>
                    </td>
                    <td>
                        <%# Convert.ToDateTime(Eval("postDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td>
                        <%# Convert.ToDateTime(Eval("fromDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td>
                        <%# Convert.ToDateTime(Eval("toDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td>
                        <%# Eval("adminID").ToString().Trim()%>
                    </td>
                    <td>
                        <%# string.IsNullOrEmpty(Eval("adminDate").ToString().Trim() as string)?"": Convert.ToDateTime(Eval("adminDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td>
                        <%# flag(Eval("flagID").ToString().Trim())%>
                    </td>
                    <td>
                        <asp:HyperLink ID="flag" runat="server" NavigateUrl='<%# Eval("id","cerDel.aspx?id={0}").ToString().Trim()%> ' Font-Bold="True"><span onclick="return confirm('确定此操作吗？');">删除</asp:HyperLink>&nbsp;&nbsp;<asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# Eval("id","cerFlag.aspx?id={0}").ToString().Trim()%>' Font-Bold="True">审核</asp:HyperLink>
                    </td>
                </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <tr style="text-align:center;">
                    <td style="background-color: #E9F8FC; text-align:left;">
                        <%# Eval("postID").ToString().Trim()%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# getClass(Eval("picType").ToString().Trim())%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <a href="<%# img(Eval("picName").ToString().Trim()) %>" target="_blank"><asp:Image ID="Image1" runat="server" ImageUrl='<%# img(Eval("picName").ToString().Trim()) %>' Height="60px" Width="120px" /></a>
                    </td>
                    <td style="background-color: #E9F8FC;">
                         <%# Convert.ToInt32(Eval("viewID").ToString().Trim())>0?"可查看":"只审核" %>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# Convert.ToDateTime(Eval("postDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# Convert.ToDateTime(Eval("fromDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# Convert.ToDateTime(Eval("toDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# Eval("adminID").ToString().Trim()%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# string.IsNullOrEmpty(Eval("adminDate").ToString().Trim() as string)?"": Convert.ToDateTime(Eval("adminDate")).ToString("yyyy-MM-dd HH:mm:ss")%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                        <%# flag(Eval("flagID").ToString().Trim())%>
                    </td>
                    <td style="background-color: #E9F8FC;">
                       <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("id","cerDel.aspx?id={0}").ToString().Trim()%> ' Font-Bold="True"><span onclick="return confirm('确定此操作吗？');">删除</asp:HyperLink>&nbsp;&nbsp;<asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# Eval("id","cerFlag.aspx?id={0}").ToString().Trim()%>' Font-Bold="True">审核</asp:HyperLink>
                    </td>
                </tr>
            </AlternatingItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div class="height10px">
        </div>
        <div>
            <asp:Label ID="lblCurrentPage" runat="server"></asp:Label>
        </div>
    </div>
    </form>
</body>
</html>
