Merge from booking branch
This commit is contained in:
parent
25906d0227
commit
9a2652739b
266 changed files with 12833 additions and 2337 deletions
20
booking/Views/FileSystem/Create.aspx
Normal file
20
booking/Views/FileSystem/Create.aspx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<%@ Page Title="File posting" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<FileUpload>" %>
|
||||
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<% using(Html.BeginForm("Create", "FileSystem", FormMethod.Post, new { enctype = "multipart/form-data" })) { %>
|
||||
<div>
|
||||
|
||||
<input type="file" ID="AFile" multiple="multiple" runat="server"/>
|
||||
<%= Html.ValidationMessage("AFile") %>
|
||||
|
||||
<br />
|
||||
|
||||
<input type="submit" name="Envoyer" />
|
||||
|
||||
<br />
|
||||
<asp:Label ID="Label1"
|
||||
runat="server"/>
|
||||
|
||||
</div>
|
||||
<% } %>
|
||||
</asp:Content>
|
||||
3
booking/Views/FileSystem/Delete.aspx
Normal file
3
booking/Views/FileSystem/Delete.aspx
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<%@ Page Title="File System - File removal" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
</asp:Content>
|
||||
11
booking/Views/FileSystem/Details.aspx
Normal file
11
booking/Views/FileSystem/Details.aspx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<System.IO.FileInfo>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Model.Name %><br/>
|
||||
Création :
|
||||
<%= Model.CreationTime %><br/>
|
||||
Dérnière modification :
|
||||
<%= Model.LastWriteTime %><br/>
|
||||
Dernier accès :
|
||||
<%= Model.LastAccessTime %><br/>
|
||||
Lien permanent : <a href="<%= ViewData["url"] %>"><%= ViewData["url"] %></a>
|
||||
</asp:Content>
|
||||
5
booking/Views/FileSystem/Edit.aspx
Normal file
5
booking/Views/FileSystem/Edit.aspx
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<%@ Page Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%= Html.ActionLink("Delete","FileSystem") %>
|
||||
<%= Html.ActionLink("Rename","FileSystem") %>
|
||||
</asp:Content>
|
||||
12
booking/Views/FileSystem/Index.aspx
Normal file
12
booking/Views/FileSystem/Index.aspx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<%@ Page Title="Files" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage<System.IO.FileInfo[]>" %>
|
||||
<asp:Content ID="MainContentContent" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h1> Index
|
||||
</h1>
|
||||
<ul>
|
||||
<% foreach (System.IO.FileInfo fi in Model) { %>
|
||||
<li> <%= Html.ActionLink(fi.Name,"Details",new {id = fi.Name}) %> </li>
|
||||
<% } %>
|
||||
</ul>
|
||||
|
||||
<%= Html.ActionLink("Ajouter des fichiers","Create") %>
|
||||
</asp:Content>
|
||||
Loading…
Add table
Add a link
Reference in a new issue