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

<!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>模板备份历史</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>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Script/Template_Backup.js"></script>
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>" method="post" enctype="multipart/form-data">
    <div class="wrapper-div">
	    <!-- 添加栏目 -->
    	    <div class="title1">
        	    <div class="right">
            	    <span class="title-ico f_right titico3 X"> ctrl + s 快捷保存</span>
            	    <span class="title-ico titico5 F B">模板备份历史</span>
                </div>
            </div>
       
            
                    <div class="clear-8"></div>
                    <!-- 通用table -->
                    <table class="table-1">
                        <thead>
                            <tr>
                                <th width="40%" class="text_left">模板备份文件名</th>
                                <th width="16%">保存目录</th>
                                <th width="14%">文件大小</th>
                                <th width="16%">备份时间</th>
                                <th width="8%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <%if (getTemplateFileList.Rows.Count > 0) %>
                        <%{ %>
                            <%foreach (System.Data.DataRow dat in getTemplateFileList.Rows) %>
                            <%{ %>
                            <tr>
                                <td class="text_left"><span class="B H"><%=dat["filename"].ToString()%></span></td>
                                <td><span class="X"><%=dat["filepath"].ToString()%></span></td>
                                <td><span class="G"><%=EoyooCMS.Common.Utils.FormatLength(long.Parse(dat["filesize"].ToString()))%></span></td>
                                <td><span class="R"><%=getTime4(dat["addtime"].ToString())%></span></td>
                                <td>
                                    <a href="<%=getFormUrl %>?filename=<%=dat["filename"].ToString()%>" class="F underline">[下载文件]</a>
                                    <br />
                                    <a href="<%=dat["filename"].ToString()%>" rel="del" class="R underline">[删除备份]</a>
                                </td>
                            </tr>
                            <%} %>
                        <%}else{ %>
                            <tr>
                                <td class="text_left" colspan="5">
                                    <span class="X">暂无备份历史</span>
                                </td>
                            </tr>
                        <%} %>
                        </tbody>
                    </table>
                    <!-- end 通用table -->
                    <div class="clear-8"></div>

            

        <!-- end 添加栏目 -->
    </div>

    </form>
</body>
</html>
