Pokaż
Ignoruj:
Data:
2009-10-15 15:45:07 (17 years ago)
Autor:
marek
Opis:

re #184 - merged with latest trunk

Lokalizacja:
branches/Abonament
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Abonament

    • Property svn:mergeinfo
      •  

        old new  
        22/branches/ReklamaReorganizacja:568-731 
        33/tags/BazaReklam_1.1.28:831 
        4 /trunk:708-758,760-838 
         4/trunk:708-758,760-853 
  • 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" %> 
    33<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> 
    44        Potwierdzenie dodania wierszówki 
     
    66<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
    77<% 
    8     if (ViewData["message"] == "delete") 
     8    if (ViewData.Model.akcja == OperationType.Delete) 
    99    { 
    1010%> 
    11         <h4>Pomyœlnie 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>Pomyœlnie usuniêto wierszówkê!</h2> 
    1712<%  } 
    18     else 
     13    else if (ViewData.Model.akcja == OperationType.WrongId) 
    1914    { 
    2015%> 
    21     <h2>Pomyœlnie 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>Pomyœlnie zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2> 
    2227<%      
    2328    } 
     29    else if (ViewData.Model.akcja == OperationType.Create) 
     30    { 
    2431%> 
    25     <div> 
    26         <%=Html.ActionLink("Powrót", "Index", "Report") %> 
     32        <h2>Pomyœlnie 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        %>         
    2771    </div> 
    2872</asp:Content>