- Data:
- 2009-10-15 15:45:07 (17 years ago)
- Lokalizacja:
- branches/Abonament
- Pliki:
-
- 2 zmodyfikowane
-
. (zmodyfikowane) (1 prop)
-
Wierszowki/Wierszowki.Web/Views/MagazineItem/Confirm.aspx (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
branches/Abonament
- Property svn:mergeinfo
-
old new 2 2 /branches/ReklamaReorganizacja:568-731 3 3 /tags/BazaReklam_1.1.28:831 4 /trunk:708-758,760-8 384 /trunk:708-758,760-853
-
- Property svn:mergeinfo
-
branches/Abonament/Wierszowki/Wierszowki.Web/Views/MagazineItem/Confirm.aspx
r839 r854 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki. Core.Linq.Author>" %>2 1 <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.ConfirmViewData>" %> 2 <%@ Import Namespace ="Wierszowki.Models" %> 3 3 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 4 4 Potwierdzenie dodania wierszówki … … 6 6 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 7 7 <% 8 if (ViewData ["message"] == "delete")8 if (ViewData.Model.akcja == OperationType.Delete) 9 9 { 10 10 %> 11 <h4>Pomylnie usuniêto wierszówkê!</h4> 12 <% 13 } 14 else if(ViewData["message"] == "null"){ 15 %> 16 <h6>Nie mo¿na wykonaæ operacji. B³êdny numer id!!! </h6> 11 <h2>Pomylnie usuniêto wierszówkê!</h2> 17 12 <% } 18 else 13 else if (ViewData.Model.akcja == OperationType.WrongId) 19 14 { 20 15 %> 21 <h2>Pomylnie dodano/zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.FirstName + " " + ViewData.Model.LastName)%></h2> 16 <h2>Nie mo¿na wykonaæ operacji. B³êdny numer id!!! </h2> 17 <% } 18 else if (ViewData.Model.akcja == OperationType.NullId) 19 { 20 %> 21 <h2>Nie mo¿na wykonaæ operacji, gdy¿ nie podano numeru id wierszówki!!! </h2> 22 <% } 23 else if (ViewData.Model.akcja == OperationType.Update) 24 { 25 %> 26 <h2>Pomylnie zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2> 22 27 <% 23 28 } 29 else if (ViewData.Model.akcja == OperationType.Create) 30 { 24 31 %> 25 <div> 26 <%=Html.ActionLink("Powrót", "Index", "Report") %> 32 <h2>Pomylnie dodano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2> 33 <% 34 } 35 36 %> 37 <div> 38 <% 39 if (ViewData.Model.info != null) 40 { 41 if (ViewData.Model.info.powrot == "2" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update)) 42 { 43 var sciezka = "All/" + ViewData.Model.info.year + "/" + ViewData.Model.info.month + "/" + ViewData.Model.info.user_id; 44 %> 45 <%=Html.ActionLink("Powrót", sciezka, "Report")%> | 46 <%=Html.ActionLink("Raporty", "Index", "Report")%> 47 <% 48 } 49 else if (ViewData.Model.info.powrot == "1" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update)) 50 { 51 %> 52 <%=Html.ActionLink("Powrót", "ToPrice", "Report")%> | 53 <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%> 54 <% 55 } 56 } 57 if (ViewData.Model.akcja == OperationType.Create) 58 { 59 %> 60 <%=Html.ActionLink("Powrót", "Index", "Home")%> | 61 <%=Html.ActionLink("Dodaj now¹ wierszówkê", "Create", "MagazineItem")%> 62 <% 63 } 64 else if (ViewData.Model.akcja == OperationType.WrongId || ViewData.Model.akcja == OperationType.NullId) 65 { 66 %> 67 <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%> 68 <% 69 } 70 %> 27 71 </div> 28 72 </asp:Content>
