Pokaż
Ignoruj:
Data:
2009-11-24 12:21:39 (16 years ago)
Autor:
sylwek
Opis:

Re #195 merged with latest trunk

Lokalizacja:
branches/Emisje
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • branches/Emisje

    • Property svn:mergeinfo
      •  

        old new  
         1/branches/Abonament:701-884 
        12/branches/AutoShopper:815-818 
        23/branches/ReklamaReorganizacja:568-731 
        34/tags/BazaReklam_1.1.28:831 
        4 /trunk:774-868 
         5/trunk:774-893 
  • branches/Emisje/eCard/eCardMVC/Platnosci/Helpers/helper.cs

    r867 r895  
    2929             
    3030            RouteValueDictionary tab = new RouteValueDictionary(); 
    31             string id = htmlHelper.ViewContext.RouteData.Values["id"].ToString(); 
     31 
     32            string id = ""; 
     33            if (htmlHelper.ViewContext.RouteData.Values["id"] != null) id = htmlHelper.ViewContext.RouteData.Values["id"].ToString(); 
    3234            tab.Add("language", alt); 
    33             tab.Add("id", id); 
     35            if (id != null) tab.Add("id", id); 
    3436 
    3537            string url = urlHelper.Action(action, controller, tab); 
     
    3840            for (int i = 0; i < param.Length; i++ ) 
    3941            { 
    40                 if (i == 0) url += "?" + param[i]; 
     42                if (i == 0 ) url += "?" + param[i]; 
    4143                else url += "&" + param[i]; 
    4244            } 
     
    124126            string url = urlHelper.FileUrl("logo.gif"); 
    125127            string logotag = helper.ImageTag(url, "logo"); 
    126             string labeltag = ""; 
    127  
     128            
    128129            TagBuilder tb = new TagBuilder("td"); 
    129130            tb.Attributes.Add("class", tdClass); 
    130131            if (tdRowspan != "") tb.Attributes.Add("rowspan", tdRowspan); 
    131          
     132 
    132133            if (ConfigurationManager.AppSettings["Css"] == "admoto") 
    133             { 
    134                 TagBuilder lab = new TagBuilder("asp:Label"); 
    135                 lab.Attributes.Add("ID", "Label1"); 
    136                 lab.Attributes.Add("runat", "server"); 
    137                 string txt = HttpContext.GetGlobalResourceObject("tlumaczenia", "tytul").ToString(); 
    138                 lab.Attributes.Add("Text", txt); 
    139                 labeltag = lab.ToString();                 
     134            {  
     135                logotag += HttpContext.GetGlobalResourceObject("tlumaczenia", "tytul").ToString(); 
    140136            } 
    141             tb.InnerHtml = logotag + labeltag; 
     137 
     138            tb.InnerHtml = logotag;  
    142139            return tb.ToString(); 
    143140        }