Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- ViewBag.Title = "Nos projets";
- }
- <section id="logout">
- @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
- @Html.AntiForgeryToken()
- <a href="@Url.Action("Logout", "Akeo")" >Se déconnecter</a>
- }
- </section>
- <hgroup class="title">
- <h1 style="color:darkcyan">@ViewBag.Title</h1>
- </hgroup>
- <section >
- <form action="/Akeo/Telecharger" method="post">
- <fieldset>
- <legend>Formulaire d'ajout d'un administrateur</legend>
- @{Uri uri = Request.Url;}
- @*si le dossier n'est pas la racine on ajoute un bouton de retour arrière. *@
- @if (uri.AbsolutePath.ToLower() != "/akeo/index/")
- {
- @*Show the current directory name using page URL. *@
- <h2>@Server.UrlDecode(uri.Segments.Last())</h2>
- @*Making a URL to going up one level. *@
- <a title="Parent"
- href="@uri.AbsoluteUri.Remove(uri.AbsoluteUri.Length - uri.Segments.Last().Length)">
- <img src="/Content/up.png" alt="Up" style="width: 20px; height: 20px; border: none" />
- </a>
- }
- <ul>
- @*parcourir les dossiers *@
- @foreach (Upload.Models.Special_Models.DirModel dir in Model.dirModelList)
- {
- <ol><input type="radio" name="radio" value="@dir.DirName" style="width: 20px;" />
- <img src="/Content/folder.png" alt="Folder Logo" align="top" style="width: 20px;
- height: 20px; border: none" />
- <a href="@dir.DirName/" title="@dir.DirName">@dir.DirName</a>
- </ol>
- }
- @*parcourir les fichiers *@
- @foreach (Upload.Models.Special_Models.FileModel file in Model.fileModelList)
- {
- string s = uri.AbsolutePath + file.FileName;
- s = s.Replace("/Akeo/Index/", "C:/Projets/");
- <ol><a href="@Url.Action("Valider_form", "Akeo", new { url = s })"
- title="@file.FileName" target="_blank">
- @file.FileName</a>. . . . . . . . . . . . . . . . . . . . . . . @file.FileSizeText
- </ol>
- }
- </ul>
- <input type="submit" value="Télécharger" name="Télécharger" />
- </fieldset>
- </form>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement