Plugin Directory

Changeset 965040


Ignore:
Timestamp:
08/13/2014 10:06:08 AM (12 years ago)
Author:
finalan
Message:

changed teamtable from LPZ to LivePZ
bugfix: hide PK1 and PK2 in teamtable if it is not available

Location:
ttlive/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ttlive/trunk/index.php

    r690159 r965040  
    458458                $plan .= "<td>".$newstaffel."</td>\n";
    459459                $isHeimteam = false;
    460                 if ((strstr($attribute->Heimmannschaft, "Herren")) or  (strstr($attribute->Heimmannschaft, "Jungen")) or  (strstr($attribute->Heimmannschaft, "Schüler")) or (strstr($attribute->Heimmannschaft, "Damen")) or  (strstr($attribute->Heimmannschaft, "Senioren")))
     460                if ((strstr($attribute->Heimmannschaft, "Herren"))
     461                    or  (strstr($attribute->Heimmannschaft, "Jungen"))
     462                    or  (strstr($attribute->Heimmannschaft, "Schüler"))
     463                    or (strstr($attribute->Heimmannschaft, "Damen"))
     464                    or  (strstr($attribute->Heimmannschaft, "Senioren"))
     465                    or  (strstr($attribute->Heimmannschaft, "Mini"))
     466                )
    461467                {
    462468                    $isHeimteam = true;
     
    468474                }
    469475                $plan .= "<td> -</td>";
    470                 if ((strstr($attribute->Gastmannschaft, "Herren")) or  (strstr($attribute->Gastmannschaft, "Jungen")) or  (strstr($attribute->Gastmannschaft, "Sch�ler")) or (strstr($attribute->Gastmannschaft, "Damen")) or  (strstr($attribute->Gastmannschaft, "Senioren")))
     476                if ((strstr($attribute->Gastmannschaft, "Herren"))
     477                    or  (strstr($attribute->Gastmannschaft, "Jungen"))
     478                    or (strstr($attribute->Gastmannschaft, "Schüler"))
     479                    or (strstr($attribute->Gastmannschaft, "Damen"))
     480                    or  (strstr($attribute->Gastmannschaft, "Senioren"))
     481                    or  (strstr($attribute->Gastmannschaft, "Mini"))
     482                    )
    471483                {
    472484                    $plan .= "<td><b>".$attribute->Gastmannschaft."</b></td>\n";
     
    603615                $plan .= "<em>$attribute->Staffelname</em></dt>\n";
    604616                $isHeimteam = false;
    605                 if ((strstr($attribute->Heimmannschaft, "Herren")) or  (strstr($attribute->Heimmannschaft, "Jungen")) or  (strstr($attribute->Heimmannschaft, "Schüler")) or (strstr($attribute->Heimmannschaft, "Damen")) or  (strstr($attribute->Heimmannschaft, "Senioren")))
     617                if ((strstr($attribute->Heimmannschaft, "Herren"))
     618                    or  (strstr($attribute->Heimmannschaft, "Jungen"))
     619                    or  (strstr($attribute->Heimmannschaft, "Schüler"))
     620                    or (strstr($attribute->Heimmannschaft, "Damen"))
     621                    or  (strstr($attribute->Heimmannschaft, "Senioren"))
     622                    or  (strstr($attribute->Heimmannschaft, "Mini"))
     623                )
    606624                {
    607625                    $isHeimteam = true;
     
    613631                }
    614632                $plan .= " - ";
    615                 if ((strstr($attribute->Gastmannschaft, "Herren")) or  (strstr($attribute->Gastmannschaft, "Jungen")) or  (strstr($attribute->Gastmannschaft, "Sch�ler")) or (strstr($attribute->Gastmannschaft, "Damen")) or  (strstr($attribute->Gastmannschaft, "Senioren")))
     633                if ((strstr($attribute->Gastmannschaft, "Herren"))
     634                    or (strstr($attribute->Gastmannschaft, "Jungen"))
     635                    or  (strstr($attribute->Gastmannschaft, "Schüler"))
     636                    or (strstr($attribute->Gastmannschaft, "Damen"))
     637                    or  (strstr($attribute->Gastmannschaft, "Senioren"))
     638                    or  (strstr($attribute->Gastmannschaft, "Mini"))
     639                )
    616640                {
    617641                    $plan .= "<em>$attribute->Gastmannschaft</em><br />\n";
     
    709733        $plan .= "<th style='text-align:center;'>ST</th>\n";
    710734       
    711         if ($hasPK2) { $plan .= "<th style='text-align:center;'>PK1</th>"; }
     735        if ($hasPK1) { $plan .= "<th style='text-align:center;'>PK1</th>"; }
    712736        if ($hasPK2) { $plan .= "<th style='text-align:center;'>PK2</th>"; }
    713737        if ($hasPK3) { $plan .= "<th style='text-align:center;'>PK3</th>"; }
    714738        if ($hasPK4) { $plan .= "<th style='text-align:center;'>PK4</th>"; }
    715739       
    716         $plan .= "<th>Gesamt</th>\n";
    717         $plan .= "<th>LPZ</th>\n";
     740        $plan .= "<th>Bilanz</th>\n";
     741        $plan .= "<th>LivePZ</th>\n";
    718742        $plan .= "</tr></thead>\n";
    719743
     
    734758            $plan .= "<td>".trim($attribute->Attribute) ."</td>\n";
    735759            $plan .= "<td style='text-align:center;'>".$attribute->Teilnahme ."</td>\n";
    736             $plan .= "<td style='text-align:center;'>".$attribute->PK1 ."</td>\n";
    737             $plan .= "<td style='text-align:center;'>".$attribute->PK2 ."</td>\n";
     760            if ($hasPK1) { $plan .= "<td style='text-align:center;'>".$attribute->PK1 ."</td>\n"; };
     761            if ($hasPK2) { $plan .= "<td style='text-align:center;'>".$attribute->PK2 ."</td>\n"; };
    738762            if ($hasPK3) { $plan .= "<td style='text-align:center;'>".$attribute->PK3 ."</td>\n"; };
    739763            if ($hasPK4) { $plan .= "<td style='text-align:center;'>".$attribute->PK4 ."</td>\n"; };
     
    743767            }
    744768            $plan .= "<td style='text-align:center;'>".$bilanz."</td>\n";
    745             $plan .= "<td>".$attribute->Leistung ."</td>\n";
     769            $plan .= "<td>".$attribute->LivePZ ."</td>\n";
    746770            $plan .= "</tr>\n";
    747771        }
  • ttlive/trunk/readme.txt

    r690356 r965040  
    55Requires at least: 3.0.1
    66Tested up to: 3.5.1
    7 Stable tag: 0.8.4
     7Stable tag: 0.8.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8080== Changelog ==
    8181
     82= 0.9 =
     83* changed from LPZ to LivePZ
     84* bugfix: if there is no PK1 or PK2 in Team-Table, it will be hidden
     85
     86= 0.8.5 =
     87* bugfix: added "Mini" as possible own team to display color in 14Tage
     88
    8289= 0.8.4 =
    8390* bugfix: if search&replace is not replacing anything in the league-name, then the full league-name is been displayed
     
    9097
    9198= 0.8 =
    92 * added new parameter showxdays --> 14Tage: x Tage die dargestellt werden sollen (default = 14)
     99* added new parameter showxdays --> 14Tage: Anzahl der Tage die dargestell werden sollen (default = 14)
    93100* added new parameter max --> 14Tage: Anzahl der Tage die maximal dargestellt werden sollen (default = 0)
    94101* added TTLive_Widget --> you can use the widget to show the 14Tage-View in a sidebar
Note: See TracChangeset for help on using the changeset viewer.