#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace ASP
{
using System;
using System.Collections.Generic;
#line 1 "..\..\Areas\Admin\Views\File\Index.cshtml"
using System.Diagnostics;
#line default
#line hidden
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using NewLife;
#line 2 "..\..\Areas\Admin\Views\File\Index.cshtml"
using NewLife.Common;
#line default
#line hidden
using NewLife.Cube;
#line 3 "..\..\Areas\Admin\Views\File\Index.cshtml"
using NewLife.Cube.Admin;
#line default
#line hidden
using NewLife.Reflection;
using NewLife.Web;
using XCode;
using XCode.Membership;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Admin/Views/File/Index.cshtml")]
public partial class _Areas_Admin_Views_File_Index_cshtml : System.Web.Mvc.WebViewPage<dynamic>
{
public _Areas_Admin_Views_File_Index_cshtml()
{
}
public override void Execute()
{
#line 4 "..\..\Areas\Admin\Views\File\Index.cshtml"
//ViewBag.Title = "服务器信息";
var fs = Model as List<FileItem>;
var r = ViewBag.Current as String;
var clips = ViewBag.Clip as ICollection<FileItem>;
#line default
#line hidden
WriteLiteral("\r\n<div");
WriteLiteral(" class=\"form-inline\"");
WriteLiteral(">\r\n <form");
WriteAttribute("action", Tuple.Create(" action=\"", 290), Tuple.Create("\"", 311)
, Tuple.Create(Tuple.Create("", 299), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File")
, 299), false)
);
WriteLiteral(" id=\"tool\"");
WriteLiteral(" method=\"post\"");
WriteLiteral(">\r\n <div");
WriteLiteral(" class=\"input-group\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"input-group-addon\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"ace-icon fa fa-check\"");
WriteLiteral("></i>\r\n </span>\r\n <input");
WriteLiteral(" name=\"r\"");
WriteLiteral(" type=\"search\"");
WriteLiteral(" id=\"r\"");
WriteAttribute("value", Tuple.Create(" value=\"", 543), Tuple.Create("\"", 553)
#line 16 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 551), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 551), false)
);
WriteLiteral(" class=\"form-control\"");
WriteLiteral(" placeholder=\"当前路径\"");
WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"input-group-btn\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"btn btn-primary btn-sm\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"glyphicon glyphicon-folder-open icon-on-right bigger-110\"");
WriteLiteral("></span>\r\n 打开\r\n </button>\r\n </span>\r" +
"\n </div>\r\n <div");
WriteLiteral(" class=\"input-group\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"input-group-addon\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"glyphicon glyphicon-file\"");
WriteLiteral("></i>\r\n </span>\r\n <input");
WriteLiteral(" name=\"file\"");
WriteLiteral(" type=\"file\"");
WriteLiteral(" id=\"file\"");
WriteLiteral(" placeholder=\"上传文件\"");
WriteLiteral(" />\r\n <span");
WriteLiteral(" class=\"input-group-btn\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" type=\"submit\"");
WriteLiteral(" class=\"btn btn-success btn-sm\"");
WriteLiteral(" onclick=\"$(\'#tool\').attr(\'action\', \'/Admin/File/Upload\');$(\'#tool\').attr(\'enctyp" +
"e\', \'multipart/form-data\'); return true;\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"glyphicon glyphicon-plus icon-on-right bigger-110\"");
WriteLiteral("></span>\r\n 上传\r\n </button>\r\n </span>\r" +
"\n </div>\r\n");
#line 36 "..\..\Areas\Admin\Views\File\Index.cshtml"
#line default
#line hidden
#line 36 "..\..\Areas\Admin\Views\File\Index.cshtml"
if (clips.Count > 0)
{
#line default
#line hidden
WriteLiteral(" <div");
WriteLiteral(" class=\"input-group\"");
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"input-group-addon\"");
WriteLiteral(">\r\n <i");
WriteLiteral(" class=\"glyphicon glyphicon-floppy-disk\"");
WriteAttribute("title", Tuple.Create(" title=\"", 1749), Tuple.Create("\"", 1777)
, Tuple.Create(Tuple.Create("", 1757), Tuple.Create("剪切板共有", 1757), true)
#line 40 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create(" ", 1762), Tuple.Create<System.Object, System.Int32>(clips.Count
#line default
#line hidden
, 1763), false)
, Tuple.Create(Tuple.Create(" ", 1775), Tuple.Create("项", 1776), true)
);
WriteLiteral(">");
#line 40 "..\..\Areas\Admin\Views\File\Index.cshtml"
Write(clips.Count);
#line default
#line hidden
WriteLiteral("</i>\r\n </span>\r\n <span");
WriteLiteral(" class=\"input-group-btn\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" type=\"button\"");
WriteLiteral(" class=\"btn btn-pink btn-sm\"");
WriteAttribute("onclick", Tuple.Create(" onclick=\"", 1939), Tuple.Create("\"", 1990)
, Tuple.Create(Tuple.Create("", 1949), Tuple.Create("location.href", 1949), true)
, Tuple.Create(Tuple.Create(" ", 1962), Tuple.Create("=", 1963), true)
, Tuple.Create(Tuple.Create(" ", 1964), Tuple.Create("\'/Admin/File/Paste?r=", 1965), true)
#line 43 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 1986), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 1986), false)
, Tuple.Create(Tuple.Create("", 1988), Tuple.Create("\';", 1988), true)
);
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"glyphicon glyphicon-floppy-save icon-on-right bigger-110\"");
WriteLiteral("></span>\r\n 粘贴\r\n </button>\r\n " +
" </span>\r\n <span");
WriteLiteral(" class=\"input-group-btn\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" type=\"button\"");
WriteLiteral(" class=\"btn btn-gray btn-sm\"");
WriteAttribute("onclick", Tuple.Create(" onclick=\"", 2299), Tuple.Create("\"", 2349)
, Tuple.Create(Tuple.Create("", 2309), Tuple.Create("location.href", 2309), true)
, Tuple.Create(Tuple.Create(" ", 2322), Tuple.Create("=", 2323), true)
, Tuple.Create(Tuple.Create(" ", 2324), Tuple.Create("\'/Admin/File/Move?r=", 2325), true)
#line 49 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 2345), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 2345), false)
, Tuple.Create(Tuple.Create("", 2347), Tuple.Create("\';", 2347), true)
);
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"glyphicon glyphicon-floppy-save icon-on-right bigger-110\"");
WriteLiteral("></span>\r\n 移动\r\n </button>\r\n " +
" </span>\r\n <span");
WriteLiteral(" class=\"input-group-btn\"");
WriteLiteral(">\r\n <button");
WriteLiteral(" type=\"button\"");
WriteLiteral(" class=\"btn btn-yellow btn-sm\"");
WriteAttribute("onclick", Tuple.Create(" onclick=\"", 2660), Tuple.Create("\"", 2720)
, Tuple.Create(Tuple.Create("", 2670), Tuple.Create("location.href", 2670), true)
, Tuple.Create(Tuple.Create(" ", 2683), Tuple.Create("=", 2684), true)
, Tuple.Create(Tuple.Create(" ", 2685), Tuple.Create("\'/Admin/File/ClearClipboard?r=", 2686), true)
#line 55 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 2716), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 2716), false)
, Tuple.Create(Tuple.Create("", 2718), Tuple.Create("\';", 2718), true)
);
WriteLiteral(">\r\n <span");
WriteLiteral(" class=\"glyphicon glyphicon-retweet icon-on-right bigger-110\"");
WriteLiteral("></span>\r\n 清空\r\n </button>\r\n " +
" </span>\r\n </div>\r\n");
#line 61 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
#line default
#line hidden
WriteLiteral(" </form>\r\n</div>\r\n<table");
WriteLiteral(" class=\"table table-bordered table-hover table-striped table-condensed\"");
WriteLiteral(">\r\n <thead>\r\n <tr>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 3105), Tuple.Create("\"", 3139)
, Tuple.Create(Tuple.Create("", 3112), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File?r=")
, 3112), false)
#line 67 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3127), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 3127), false)
, Tuple.Create(Tuple.Create("", 3129), Tuple.Create("&sort=name", 3129), true)
);
WriteLiteral(">名称</a></th>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 3192), Tuple.Create("\"", 3226)
, Tuple.Create(Tuple.Create("", 3199), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File?r=")
, 3199), false)
#line 68 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3214), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 3214), false)
, Tuple.Create(Tuple.Create("", 3216), Tuple.Create("&sort=size", 3216), true)
);
WriteLiteral(">大小</a></th>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 3279), Tuple.Create("\"", 3318)
, Tuple.Create(Tuple.Create("", 3286), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File?r=")
, 3286), false)
#line 69 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3301), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 3301), false)
, Tuple.Create(Tuple.Create("", 3303), Tuple.Create("&sort=lastwrite", 3303), true)
);
WriteLiteral(">修改时间</a></th>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral(">复制</th>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral(">压缩</th>\r\n <th");
WriteLiteral(" class=\"text-center\"");
WriteLiteral(">删除</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n");
#line 76 "..\..\Areas\Admin\Views\File\Index.cshtml"
#line default
#line hidden
#line 76 "..\..\Areas\Admin\Views\File\Index.cshtml"
foreach (var item in fs)
{
#line default
#line hidden
WriteLiteral(" <tr>\r\n");
#line 79 "..\..\Areas\Admin\Views\File\Index.cshtml"
#line default
#line hidden
#line 79 "..\..\Areas\Admin\Views\File\Index.cshtml"
if (item.Directory)
{
#line default
#line hidden
WriteLiteral(" <td> <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3671), Tuple.Create("\"", 3707)
, Tuple.Create(Tuple.Create("", 3678), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File?r=")
, 3678), false)
#line 81 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3693), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 3693), false)
);
WriteLiteral(" title=\"进入目录\"");
WriteLiteral(">");
#line 81 "..\..\Areas\Admin\Views\File\Index.cshtml"
Write(item.Name);
#line default
#line hidden
WriteLiteral("</a></td>\r\n");
#line 82 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <td> <a");
WriteAttribute("href", Tuple.Create(" href=\"", 3841), Tuple.Create("\"", 3886)
, Tuple.Create(Tuple.Create("", 3848), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/Download?r=")
, 3848), false)
#line 85 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 3872), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 3872), false)
);
WriteLiteral(" title=\"下载文件\"");
WriteLiteral(">");
#line 85 "..\..\Areas\Admin\Views\File\Index.cshtml"
Write(item.Name);
#line default
#line hidden
WriteLiteral("</a></td>\r\n");
#line 86 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
#line default
#line hidden
WriteLiteral(" <td");
WriteLiteral(" class=\"text-right\"");
WriteLiteral(">");
#line 87 "..\..\Areas\Admin\Views\File\Index.cshtml"
Write(item.Size);
#line default
#line hidden
WriteLiteral("</td>\r\n <td");
WriteLiteral(" class=\"text-center\"");
WriteLiteral(">");
#line 88 "..\..\Areas\Admin\Views\File\Index.cshtml"
Write(item.LastWrite.ToFullString(""));
#line default
#line hidden
WriteLiteral("</td>\r\n <td");
WriteLiteral(" class=\"text-center\"");
WriteLiteral(">\r\n");
#line 90 "..\..\Areas\Admin\Views\File\Index.cshtml"
#line default
#line hidden
#line 90 "..\..\Areas\Admin\Views\File\Index.cshtml"
if (!clips.Any(e => e.FullName == item.FullName))
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4239), Tuple.Create("\"", 4285)
, Tuple.Create(Tuple.Create("", 4246), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/Copy?r=")
, 4246), false)
#line 92 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4266), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 4266), false)
, Tuple.Create(Tuple.Create("", 4268), Tuple.Create("&f=", 4268), true)
#line 92 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4271), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 4271), false)
);
WriteLiteral(" title=\"复制到剪切板,然后去目标目录粘贴\"");
WriteLiteral(">复制</a>\r\n");
#line 93 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 4418), Tuple.Create("\"", 4470)
, Tuple.Create(Tuple.Create("", 4425), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/CancelCopy?r=")
, 4425), false)
#line 96 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4451), Tuple.Create<System.Object, System.Int32>(r
#line default
#line hidden
, 4451), false)
, Tuple.Create(Tuple.Create("", 4453), Tuple.Create("&f=", 4453), true)
#line 96 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4456), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 4456), false)
);
WriteLiteral(" title=\"从剪切板移除\"");
WriteLiteral(">取消复制</a>\r\n");
#line 97 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
#line default
#line hidden
WriteLiteral(" </td>\r\n");
#line 99 "..\..\Areas\Admin\Views\File\Index.cshtml"
#line default
#line hidden
#line 99 "..\..\Areas\Admin\Views\File\Index.cshtml"
if (item.Name.EndsWithIgnoreCase(".zip"))
{
#line default
#line hidden
WriteLiteral(" <td");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 4668), Tuple.Create("\"", 4715)
, Tuple.Create(Tuple.Create("", 4675), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/Decompress?r=")
, 4675), false)
#line 101 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4701), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 4701), false)
);
WriteLiteral(" title=\"解压缩到当前目录\"");
WriteLiteral(">解压缩</a></td>\r\n");
#line 102 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <td");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 4854), Tuple.Create("\"", 4899)
, Tuple.Create(Tuple.Create("", 4861), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/Compress?r=")
, 4861), false)
#line 105 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 4885), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 4885), false)
);
WriteLiteral(" title=\"压缩到当前目录,加上时间后缀\"");
WriteLiteral(">压缩</a></td>\r\n");
#line 106 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
#line default
#line hidden
WriteLiteral(" <td");
WriteLiteral(" class=\"text-center\"");
WriteLiteral("><a");
WriteAttribute("href", Tuple.Create(" href=\"", 4998), Tuple.Create("\"", 5041)
, Tuple.Create(Tuple.Create("", 5005), Tuple.Create<System.Object, System.Int32>(Href("~/Admin/File/Delete?r=")
, 5005), false)
#line 107 "..\..\Areas\Admin\Views\File\Index.cshtml"
, Tuple.Create(Tuple.Create("", 5027), Tuple.Create<System.Object, System.Int32>(item.FullName
#line default
#line hidden
, 5027), false)
);
WriteLiteral(" onclick=\"return confirm(\'确认删除?\');\"");
WriteLiteral(">删除</a></td>\r\n </tr>\r\n");
#line 109 "..\..\Areas\Admin\Views\File\Index.cshtml"
}
#line default
#line hidden
WriteLiteral(" </tbody>\r\n</table>");
}
}
}
#pragma warning restore 1591
|