Logo_li
HEADER-1
Logo_re

Senior Scotties

Sometimes people ask the questions: “what is the lifespan of a Scottie?”

The most reasonable answer today is “approximately 12 years”. Of course, there are exceptions on the lower side, but you’ll also find many Scotties that became even older.

In order to substantiate this statement, we celebrate here our seniors  that reached at least the nice age of 11 years .

Every Scottie owner can enter his own dog with dates and othe information here. In order to do that just click --->here.

If you want to make changes later please contact the webmaster directly .

The Logo_re_button underneath the dog’s name indicates that there is a picture available.
To see it, click on the symbol .

Seniorenscottie

-Tag bleibt geöffnet (Darstellung im gleichen Tabellenfeld) // newLine: -Tag wird geschlossen (Darstellung in nächsten Tabellenfeld) // end: Abschluß der letzten Spalte // Parameter 5 - Feldposition; Position des entspr. Feldes im CSV-Satz $array = array ( '1' => array ('Rufname', 'newClass', 'StandardBold', '', 'continue', '8'), '2' => array ('Name', 'newClass', 'Standard', '
', 'continue', '7'), '3' => array ('' , 'Pic', 'Standard', '
', 'newLine', '24'), '4' => array ('Besitzer', 'oldClass', 'Standard', '', 'newLine', '0'), '5' => array ('Geschlecht', 'oldClass', 'Standard', '', 'continue', '9'), '6' => array ('Reg-Nr.', 'newClass', 'StandardGrey', '
', 'newLine', '11'), '7' => array ('Vater', 'newClass', 'Standard', '', 'continue', '12'), '8' => array ('Mutter', 'oldClass', 'Standard', '/
', 'newLine', '13'), '9' => array ('Geboren', 'oldClass', 'Standard', '', 'newLine', '14'), '10' => array ('Gesundheits-'."
".'zustand', 'oldClass', 'Standard', '', 'newLine', '16'), '11' => array ('Alter', 'newClass', 'StandardBold', '', 'newLine', '1'), '12' => array ('Todestag', 'newClass', 'Standard', '','newLine', '20' ), '13' => array ('Kommentar
zum Gesundheitszustand
oder Todesursache','oldClass', 'Standard', '', 'continue', '21'), '14' => array ('Euthanasie', 'newClass', 'StandardGrey', '
eingeschläfert: ','end', '22')); $AnzahlDerFelder = '14'; //für Ausgabe $Dateizeiger = fopen("../db/Senioren.csv", "r"); //Pfad der CSV-Datei $Uploaddir = "../db/OldDogs/"; //Pfad zur Uploaddatenbank // Tabellendefinition echo "

"; echo ""; fgetcsv($Dateizeiger, 1000, ","); //Titelzeile des Formular-CSV überspringen //////////////////////////////////////////////// // Spezifischer Code für diese Anwendung, da die Datei sortiert wird //////////////////////////////////////////////// $Sortspalte1 = '15'; //lebend/gestorben $Sortspalte2 = '1'; //Alter // Daten ins Feld einlesen $AnzZeilen = '0'; while(($Daten[$AnzZeilen] = fgetcsv($Dateizeiger, 1000, ",")) !== FALSE) { // Berechnung des Alters in Jahren und Einspeichern in Spalte[1] (die ich für die Ausgabe nicht benötige) $dobparts = explode(".", $Daten[$AnzZeilen][14]); $dob = gregoriantojd($dobparts[1], $dobparts[0], $dobparts[2]); if ($Daten[$AnzZeilen][15] == "lebend") {$endparts = explode(".",date("d.m.Y", time()));} else {$endparts = explode (".", $Daten[$AnzZeilen][20]);}; $end = gregoriantojd($endparts[1], $endparts[0], $endparts[2]); $Daten[$AnzZeilen][$Sortspalte2] = round(($end - $dob)/365,1); $AnzZeilen = $AnzZeilen + 1; } //Daten sortieren nach $Sortspalte1 = Status (Spalte 15) lebend/gestorben // $Sortspalte2 = Alter (Spalte 1) Alter foreach ( $Daten as $zeile ) { $sort_array1[] = $zeile[$Sortspalte1]; $sort_array2[] = $zeile[$Sortspalte2];} array_multisort( $sort_array1,SORT_DESC,$sort_array2, SORT_DESC, $Daten ); // Beginn der Ausgabe // Überschrift echo ""; for($z = 0; $z < ($AnzZeilen); $z++) { echo ""; echo ""; } } else {$dataelement = $array[$arraypos][3].$Daten[$z][$array[$arraypos][5]]; if ($dataelement == '') echo " "; else echo $dataelement; } if ( $array[$arraypos][4] == 'newLine' ) { echo ""; }; echo "
"; for($i = 0; $i < $AnzahlDerFelder-1; $i++) {$arraypos = $i+1; echo $array[$arraypos][3].$array[$arraypos][0]; if ( $array[$arraypos][4] == 'newLine' ) { echo ""; } } echo "
"; for($i = 0; $i < ($AnzahlDerFelder); $i++) { $arraypos = $i+1; if ( $array[$arraypos][1] == 'newClass' ) { echo " "; } if ( $array[$arraypos][1] == 'Pic' and $Daten[$z][$array[$arraypos][5]] !='' ) //Upload Bild-Feld { echo ''; echo $array[$arraypos][3].'Bild'; echo ""; } else if ( $array[$arraypos][1] == 'E-Mail' and $Daten[$z][$array[$arraypos][5]] !='' ) //E-Mail-Adressfeld { echo ''; echo $array[$arraypos][3].$Daten[$z][$array[$arraypos][5]]; echo ""; } else if ($array[$arraypos][0] == 'Euthanasie' and $Daten[$z][15] == "lebend") //Spezialfall - ggfs. keine Ausgabe { if ($Daten[$z+1][15] == 'gestorben') { echo "
"; //Sonderüberschrift bei Wechsel zu "gestorbenen" echo " ..und hier unsere bereits verstorbenen Alt-Gewordenen"; echo "
"; } } echo "
"; fclose($Dateizeiger); ?> 

[Home] [Home Deutsch] [Home English] [The Scottish Terrier] [Events] [Champions] [Buying a Scottie] [Club Infos] [Links]