Advertisement
Guest User

Untitled

a guest
Jun 5th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. @{
  2. ViewBag.Title = "Nos projets";
  3. }
  4.  
  5. <section id="logout">
  6. @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
  7. @Html.AntiForgeryToken()
  8. <a href="@Url.Action("Logout", "Akeo")" >Se déconnecter</a>
  9. }
  10. </section>
  11.  
  12.  
  13. <hgroup class="title">
  14. <h1 style="color:darkcyan">@ViewBag.Title</h1>
  15. </hgroup>
  16.  
  17. <section >
  18.  
  19.  
  20. <form action="/Akeo/Telecharger" method="post">
  21. <fieldset>
  22. <legend>Formulaire d'ajout d'un administrateur</legend>
  23. @{Uri uri = Request.Url;}
  24.  
  25.  
  26.  
  27.  
  28.  
  29. @*si le dossier n'est pas la racine on ajoute un bouton de retour arrière. *@
  30. @if (uri.AbsolutePath.ToLower() != "/akeo/index/")
  31. {
  32. @*Show the current directory name using page URL. *@
  33. <h2>@Server.UrlDecode(uri.Segments.Last())</h2>
  34.  
  35.  
  36. @*Making a URL to going up one level. *@
  37. <a title="Parent"
  38. href="@uri.AbsoluteUri.Remove(uri.AbsoluteUri.Length - uri.Segments.Last().Length)">
  39. <img src="/Content/up.png" alt="Up" style="width: 20px; height: 20px; border: none" />
  40. </a>
  41. }
  42. <ul>
  43. @*parcourir les dossiers *@
  44. @foreach (Upload.Models.Special_Models.DirModel dir in Model.dirModelList)
  45. {
  46. <ol><input type="radio" name="radio" value="@dir.DirName" style="width: 20px;" />
  47. <img src="/Content/folder.png" alt="Folder Logo" align="top" style="width: 20px;
  48. height: 20px; border: none" />
  49. <a href="@dir.DirName/" title="@dir.DirName">@dir.DirName</a>
  50.  
  51.  
  52. </ol>
  53. }
  54. @*parcourir les fichiers *@
  55. @foreach (Upload.Models.Special_Models.FileModel file in Model.fileModelList)
  56. {
  57.  
  58. string s = uri.AbsolutePath + file.FileName;
  59. s = s.Replace("/Akeo/Index/", "C:/Projets/");
  60.  
  61.  
  62. <ol><a href="@Url.Action("Valider_form", "Akeo", new { url = s })"
  63. title="@file.FileName" target="_blank">
  64. @file.FileName</a>. . . . . . . . . . . . . . . . . . . . . . . @file.FileSizeText
  65.  
  66.  
  67.  
  68.  
  69. </ol>
  70. }
  71. </ul>
  72.  
  73. <input type="submit" value="Télécharger" name="Télécharger" />
  74. </fieldset>
  75. </form>
  76.  
  77. </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement