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

<!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/Data_BackupRestore.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="tbox_form">
                <p>
                    <label class="name">备份文件名:</label> <input id="backup_text" value="" class="input200" name="backup_text" type="text" />&nbsp;.bak
                    <span  class="point ico-remind V">备份的数据名称</span>
                </p>
                <p>
                    <label class="name"></label> <input type="button" id="DataBackup" class="bule-btn W" value="开始备份" />
                    <span class="point ico-remind V">点击开始备份</span>
                </p>
                <hr />
            </div>
            <!-- end 表单 -->

            
                    <div class="clear-8"></div>
                    <!-- 通用table -->
                    <table class="table-1">
                        <thead>
                            <tr>
                                <th width="28%" class="text_left">文件名</th>
                                <th width="16%">保存目录</th>
                                <th width="20%">文件大小</th>
                                <th width="22%">备份时间</th>
                                <th width="8%">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                        <%if (getDataBaseFileList.Rows.Count > 0) %>
                        <%{ %>
                            <%foreach (System.Data.DataRow dat in getDataBaseFileList.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="<%=dat["filename"].ToString()%>" rel="del" class="R underline">[删除数据]</a>
                                    <br />
                                    <a href="<%=dat["filename"].ToString()%>" rel="restore" class="Q 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>
