#vstup ##################### #vek #pohlavi #kategorie #disciplina 1 # typ # cas #disciplina 2 # typ # cas #disciplina 3 # typ # cas define('FPDF_FONTPATH','font/'); require('fpdf/fpdf.php'); define("vk1", 1); define("vk2", 2); define("vk3", 3); define("vk4", 4); define("vk5", 5); define("vk6", 6); define("kat1", 1); #muzi skupina 1,2,3,4 zeny skupina 1,2 define("kat2", 2); #zeny skupina 3,4 define("group1", 1); #skupina I. define("group2", 2); #skupina II. define("group3", 3); #skupina III. define("group4", 4); #skupina IV. $min_points[group1][1] = 25; $min_points[group1][2] = 25; $min_points[group1][3] = 50; $min_points[group1][all] = 105; $min_points[group2][1] = 20; $min_points[group2][2] = 20; $min_points[group2][3] = 40; $min_points[group2][all] = 95; $min_points[group3][1] = 14; $min_points[group3][2] = 14; $min_points[group3][3] = 28; $min_points[group3][all] = 42; $min_points[group4][1] = 10; $min_points[group4][2] = 10; $min_points[group4][3] = 20; $min_points[group4][all] = 9999; #function tables() #{ ################################################################################ #kliky ################################################################################ # kat1 # $casy["kliky"][kat1][vk1][26] = 10; $casy["kliky"][kat1][vk1][27] = 12; $casy["kliky"][kat1][vk1][28] = 14; $casy["kliky"][kat1][vk1][29] = 16; $casy["kliky"][kat1][vk1][30] = 18; $casy["kliky"][kat1][vk1][31] = 19; $casy["kliky"][kat1][vk1][32] = 20; $casy["kliky"][kat1][vk1][33] = 21; $casy["kliky"][kat1][vk1][34] = 23; $casy["kliky"][kat1][vk1][35] = 25; $casy["kliky"][kat1][vk1][36] = 27; $casy["kliky"][kat1][vk1][37] = 29; $casy["kliky"][kat1][vk1][38] = 31; $casy["kliky"][kat1][vk1][39] = 33; $casy["kliky"][kat1][vk1][40] = 35; $casy["kliky"][kat1][vk2][23] = 10; $casy["kliky"][kat1][vk2][24] = 12; $casy["kliky"][kat1][vk2][25] = 14; $casy["kliky"][kat1][vk2][26] = 16; $casy["kliky"][kat1][vk2][27] = 18; $casy["kliky"][kat1][vk2][28] = 19; $casy["kliky"][kat1][vk2][29] = 20; $casy["kliky"][kat1][vk2][30] = 21; $casy["kliky"][kat1][vk2][31] = 23; $casy["kliky"][kat1][vk2][32] = 25; $casy["kliky"][kat1][vk2][33] = 27; $casy["kliky"][kat1][vk2][34] = 29; $casy["kliky"][kat1][vk2][35] = 31; $casy["kliky"][kat1][vk2][36] = 33; $casy["kliky"][kat1][vk2][37] = 35; $casy["kliky"][kat1][vk3][21] = 10; $casy["kliky"][kat1][vk3][22] = 12; $casy["kliky"][kat1][vk3][23] = 14; $casy["kliky"][kat1][vk3][24] = 16; $casy["kliky"][kat1][vk3][25] = 18; $casy["kliky"][kat1][vk3][26] = 19; $casy["kliky"][kat1][vk3][27] = 20; $casy["kliky"][kat1][vk3][28] = 21; $casy["kliky"][kat1][vk3][29] = 23; $casy["kliky"][kat1][vk3][30] = 25; $casy["kliky"][kat1][vk3][31] = 27; $casy["kliky"][kat1][vk3][32] = 29; $casy["kliky"][kat1][vk3][33] = 31; $casy["kliky"][kat1][vk3][34] = 33; $casy["kliky"][kat1][vk3][35] = 35; $casy["kliky"][kat1][vk4][19] = 10; $casy["kliky"][kat1][vk4][20] = 12; $casy["kliky"][kat1][vk4][21] = 14; $casy["kliky"][kat1][vk4][22] = 16; $casy["kliky"][kat1][vk4][23] = 18; $casy["kliky"][kat1][vk4][24] = 19; $casy["kliky"][kat1][vk4][25] = 20; $casy["kliky"][kat1][vk4][26] = 21; $casy["kliky"][kat1][vk4][27] = 23; $casy["kliky"][kat1][vk4][28] = 25; $casy["kliky"][kat1][vk4][29] = 27; $casy["kliky"][kat1][vk4][30] = 29; $casy["kliky"][kat1][vk4][31] = 31; $casy["kliky"][kat1][vk4][32] = 33; $casy["kliky"][kat1][vk4][33] = 35; $casy["kliky"][kat1][vk5][17] = 10; $casy["kliky"][kat1][vk5][18] = 12; $casy["kliky"][kat1][vk5][19] = 14; $casy["kliky"][kat1][vk5][20] = 16; $casy["kliky"][kat1][vk5][21] = 18; $casy["kliky"][kat1][vk5][22] = 19; $casy["kliky"][kat1][vk5][23] = 20; $casy["kliky"][kat1][vk5][24] = 21; $casy["kliky"][kat1][vk5][25] = 23; $casy["kliky"][kat1][vk5][26] = 25; $casy["kliky"][kat1][vk5][27] = 27; $casy["kliky"][kat1][vk5][28] = 29; $casy["kliky"][kat1][vk5][29] = 31; $casy["kliky"][kat1][vk5][30] = 33; $casy["kliky"][kat1][vk5][31] = 35; $casy["kliky"][kat1][vk6][14] = 10; $casy["kliky"][kat1][vk6][15] = 12; $casy["kliky"][kat1][vk6][16] = 14; $casy["kliky"][kat1][vk6][17] = 16; $casy["kliky"][kat1][vk6][18] = 18; $casy["kliky"][kat1][vk6][19] = 19; $casy["kliky"][kat1][vk6][20] = 20; $casy["kliky"][kat1][vk6][21] = 21; $casy["kliky"][kat1][vk6][22] = 23; $casy["kliky"][kat1][vk6][23] = 25; $casy["kliky"][kat1][vk6][24] = 27; $casy["kliky"][kat1][vk6][25] = 29; $casy["kliky"][kat1][vk6][26] = 31; $casy["kliky"][kat1][vk6][27] = 33; $casy["kliky"][kat1][vk6][28] = 35; $casy["kliky"][kat1][maxpoints] = 35; $casy["kliky"][kat1][vk1][maxe] = 40; $casy["kliky"][kat1][vk2][maxe] = 37; $casy["kliky"][kat1][vk3][maxe] = 35; $casy["kliky"][kat1][vk4][maxe] = 33; $casy["kliky"][kat1][vk5][maxe] = 31; $casy["kliky"][kat1][vk6][maxe] = 28; $casy["kliky"][kat1][vk1][mine] = 26; $casy["kliky"][kat1][vk2][mine] = 23; $casy["kliky"][kat1][vk3][mine] = 21; $casy["kliky"][kat1][vk4][mine] = 19; $casy["kliky"][kat1][vk5][mine] = 17; $casy["kliky"][kat1][vk6][mine] = 14; # kat2 # $casy["kliky"][kat2][vk1][10] = 10; $casy["kliky"][kat2][vk1][11] = 12; $casy["kliky"][kat2][vk1][12] = 14; $casy["kliky"][kat2][vk1][13] = 16; $casy["kliky"][kat2][vk1][14] = 18; $casy["kliky"][kat2][vk1][15] = 20; $casy["kliky"][kat2][vk1][16] = 22; $casy["kliky"][kat2][vk1][17] = 25; $casy["kliky"][kat2][vk2][9] = 10; $casy["kliky"][kat2][vk2][10] = 12; $casy["kliky"][kat2][vk2][11] = 14; $casy["kliky"][kat2][vk2][12] = 16; $casy["kliky"][kat2][vk2][13] = 18; $casy["kliky"][kat2][vk2][14] = 20; $casy["kliky"][kat2][vk2][15] = 22; $casy["kliky"][kat2][vk2][16] = 25; $casy["kliky"][kat2][vk3][8] = 10; $casy["kliky"][kat2][vk3][9] = 12; $casy["kliky"][kat2][vk3][10] = 14; $casy["kliky"][kat2][vk3][11] = 16; $casy["kliky"][kat2][vk3][12] = 18; $casy["kliky"][kat2][vk3][13] = 20; $casy["kliky"][kat2][vk3][14] = 22; $casy["kliky"][kat2][vk3][15] = 25; $casy["kliky"][kat2][vk4][6] = 10; $casy["kliky"][kat2][vk4][7] = 12; $casy["kliky"][kat2][vk4][8] = 14; $casy["kliky"][kat2][vk4][9] = 16; $casy["kliky"][kat2][vk4][10] = 18; $casy["kliky"][kat2][vk4][11] = 20; $casy["kliky"][kat2][vk4][12] = 22; $casy["kliky"][kat2][vk4][13] = 25; $casy["kliky"][kat2][vk5][4] = 10; $casy["kliky"][kat2][vk5][5] = 12; $casy["kliky"][kat2][vk5][6] = 14; $casy["kliky"][kat2][vk5][7] = 16; $casy["kliky"][kat2][vk5][8] = 18; $casy["kliky"][kat2][vk5][9] = 20; $casy["kliky"][kat2][vk5][10] = 22; $casy["kliky"][kat2][vk5][11] = 25; $casy["kliky"][kat2][vk6][3] = 10; $casy["kliky"][kat2][vk6][4] = 12; $casy["kliky"][kat2][vk6][5] = 14; $casy["kliky"][kat2][vk6][6] = 16; $casy["kliky"][kat2][vk6][7] = 18; $casy["kliky"][kat2][vk6][8] = 20; $casy["kliky"][kat2][vk6][9] = 22; $casy["kliky"][kat2][vk6][10] = 25; $casy["kliky"][kat2][maxpoints] = 25; $casy["kliky"][kat2][vk1][maxe] = 17; $casy["kliky"][kat2][vk2][maxe] = 16; $casy["kliky"][kat2][vk3][maxe] = 15; $casy["kliky"][kat2][vk4][maxe] = 13; $casy["kliky"][kat2][vk5][maxe] = 11; $casy["kliky"][kat2][vk6][maxe] = 10; $casy["kliky"][kat2][vk1][mine] = 10; $casy["kliky"][kat2][vk2][mine] = 9; $casy["kliky"][kat2][vk3][mine] = 8; $casy["kliky"][kat2][vk4][mine] = 6; $casy["kliky"][kat2][vk5][mine] = 4; $casy["kliky"][kat2][vk6][mine] = 3; ################################################################################ # shyby ################################################################################ # kat1 # $casy["shyby"][kat1][vk1][7] = 10; $casy["shyby"][kat1][vk1][8] = 14; $casy["shyby"][kat1][vk1][9] = 18; $casy["shyby"][kat1][vk1][10] = 20; $casy["shyby"][kat1][vk1][11] = 25; $casy["shyby"][kat1][vk1][12] = 30; $casy["shyby"][kat1][vk1][13] = 35; $casy["shyby"][kat1][vk2][6] = 10; $casy["shyby"][kat1][vk2][7] = 14; $casy["shyby"][kat1][vk2][8] = 18; $casy["shyby"][kat1][vk2][9] = 20; $casy["shyby"][kat1][vk2][10] = 25; $casy["shyby"][kat1][vk2][11] = 30; $casy["shyby"][kat1][vk2][12] = 35; $casy["shyby"][kat1][vk3][5] = 10; $casy["shyby"][kat1][vk3][6] = 14; $casy["shyby"][kat1][vk3][7] = 18; $casy["shyby"][kat1][vk3][8] = 20; $casy["shyby"][kat1][vk3][9] = 25; $casy["shyby"][kat1][vk3][10] = 30; $casy["shyby"][kat1][vk3][11] = 35; $casy["shyby"][kat1][vk4][4] = 10; $casy["shyby"][kat1][vk4][5] = 14; $casy["shyby"][kat1][vk4][6] = 18; $casy["shyby"][kat1][vk4][7] = 20; $casy["shyby"][kat1][vk4][8] = 25; $casy["shyby"][kat1][vk4][9] = 30; $casy["shyby"][kat1][vk4][10] = 35; $casy["shyby"][kat1][vk5][3] = 10; $casy["shyby"][kat1][vk5][4] = 14; $casy["shyby"][kat1][vk5][5] = 18; $casy["shyby"][kat1][vk5][6] = 20; $casy["shyby"][kat1][vk5][7] = 25; $casy["shyby"][kat1][vk5][8] = 30; $casy["shyby"][kat1][vk5][9] = 35; $casy["shyby"][kat1][vk6][2] = 10; $casy["shyby"][kat1][vk6][3] = 14; $casy["shyby"][kat1][vk6][4] = 18; $casy["shyby"][kat1][vk6][5] = 20; $casy["shyby"][kat1][vk6][6] = 25; $casy["shyby"][kat1][vk6][7] = 30; $casy["shyby"][kat1][vk6][8] = 35; $casy["shyby"][kat1][maxpoints] = 35; $casy["shyby"][kat1][vk1][maxe] = 13; $casy["shyby"][kat1][vk2][maxe] = 12; $casy["shyby"][kat1][vk3][maxe] = 11; $casy["shyby"][kat1][vk4][maxe] = 10; $casy["shyby"][kat1][vk5][maxe] = 9; $casy["shyby"][kat1][vk6][maxe] = 8; $casy["shyby"][kat1][vk1][mine] = 7; $casy["shyby"][kat1][vk2][mine] = 6; $casy["shyby"][kat1][vk3][mine] = 5; $casy["shyby"][kat1][vk4][mine] = 4; $casy["shyby"][kat1][vk5][mine] = 3; $casy["shyby"][kat1][vk6][mine] = 2; # kat2 # $casy["shyby"][kat2][vk1][4] = 10; $casy["shyby"][kat2][vk1][5] = 14; $casy["shyby"][kat2][vk1][6] = 20; $casy["shyby"][kat2][vk1][7] = 25; $casy["shyby"][kat2][vk2][3] = 10; $casy["shyby"][kat2][vk2][4] = 14; $casy["shyby"][kat2][vk2][5] = 20; $casy["shyby"][kat2][vk2][6] = 25; $casy["shyby"][kat2][vk3][3] = 10; $casy["shyby"][kat2][vk3][4] = 14; $casy["shyby"][kat2][vk3][5] = 20; $casy["shyby"][kat2][vk3][6] = 25; $casy["shyby"][kat2][vk4][2] = 10; $casy["shyby"][kat2][vk4][3] = 14; $casy["shyby"][kat2][vk4][4] = 20; $casy["shyby"][kat2][vk4][5] = 25; $casy["shyby"][kat2][vk5][2] = 10; $casy["shyby"][kat2][vk5][3] = 14; $casy["shyby"][kat2][vk5][4] = 20; $casy["shyby"][kat2][vk5][5] = 25; $casy["shyby"][kat2][vk6][1] = 10; $casy["shyby"][kat2][vk6][2] = 14; $casy["shyby"][kat2][vk6][3] = 20; $casy["shyby"][kat2][vk6][4] = 25; $casy["shyby"][kat2][maxpoints] = 25; $casy["shyby"][kat2][vk1][maxe] = 7; $casy["shyby"][kat2][vk2][maxe] = 6; $casy["shyby"][kat2][vk3][maxe] = 6; $casy["shyby"][kat2][vk4][maxe] = 5; $casy["shyby"][kat2][vk5][maxe] = 5; $casy["shyby"][kat2][vk6][maxe] = 4; $casy["shyby"][kat2][vk1][mine] = 4; $casy["shyby"][kat2][vk2][mine] = 3; $casy["shyby"][kat2][vk3][mine] = 3; $casy["shyby"][kat2][vk4][mine] = 2; $casy["shyby"][kat2][vk5][mine] = 2; $casy["shyby"][kat2][vk6][mine] = 1; ################################################################################ # leh sed a prednozovani (stejna tabulka) ################################################################################ $casy["lap"][kat1][vk1][36] = 10; $casy["lap"][kat1][vk1][37] = 11; $casy["lap"][kat1][vk1][38] = 13; $casy["lap"][kat1][vk1][39] = 14; $casy["lap"][kat1][vk1][40] = 16; $casy["lap"][kat1][vk1][41] = 18; $casy["lap"][kat1][vk1][42] = 19; $casy["lap"][kat1][vk1][43] = 20; $casy["lap"][kat1][vk1][44] = 22; $casy["lap"][kat1][vk1][45] = 24; $casy["lap"][kat1][vk1][46] = 25; $casy["lap"][kat1][vk1][47] = 27; $casy["lap"][kat1][vk1][48] = 28; $casy["lap"][kat1][vk1][49] = 30; $casy["lap"][kat1][vk1][50] = 32; $casy["lap"][kat1][vk1][51] = 34; $casy["lap"][kat1][vk1][52] = 35; $casy["lap"][kat1][vk2][32] = 10; $casy["lap"][kat1][vk2][33] = 11; $casy["lap"][kat1][vk2][34] = 13; $casy["lap"][kat1][vk2][35] = 14; $casy["lap"][kat1][vk2][36] = 16; $casy["lap"][kat1][vk2][37] = 18; $casy["lap"][kat1][vk2][38] = 19; $casy["lap"][kat1][vk2][39] = 20; $casy["lap"][kat1][vk2][40] = 22; $casy["lap"][kat1][vk2][41] = 24; $casy["lap"][kat1][vk2][42] = 25; $casy["lap"][kat1][vk2][43] = 27; $casy["lap"][kat1][vk2][44] = 28; $casy["lap"][kat1][vk2][45] = 30; $casy["lap"][kat1][vk2][46] = 32; $casy["lap"][kat1][vk2][47] = 34; $casy["lap"][kat1][vk2][48] = 35; $casy["lap"][kat1][vk3][29] = 10; $casy["lap"][kat1][vk3][30] = 11; $casy["lap"][kat1][vk3][31] = 13; $casy["lap"][kat1][vk3][32] = 14; $casy["lap"][kat1][vk3][33] = 16; $casy["lap"][kat1][vk3][34] = 18; $casy["lap"][kat1][vk3][35] = 19; $casy["lap"][kat1][vk3][36] = 20; $casy["lap"][kat1][vk3][37] = 22; $casy["lap"][kat1][vk3][38] = 24; $casy["lap"][kat1][vk3][39] = 25; $casy["lap"][kat1][vk3][40] = 27; $casy["lap"][kat1][vk3][41] = 28; $casy["lap"][kat1][vk3][42] = 30; $casy["lap"][kat1][vk3][43] = 32; $casy["lap"][kat1][vk3][44] = 34; $casy["lap"][kat1][vk3][45] = 35; $casy["lap"][kat1][vk4][26] = 10; $casy["lap"][kat1][vk4][27] = 11; $casy["lap"][kat1][vk4][28] = 13; $casy["lap"][kat1][vk4][29] = 14; $casy["lap"][kat1][vk4][30] = 16; $casy["lap"][kat1][vk4][31] = 18; $casy["lap"][kat1][vk4][32] = 19; $casy["lap"][kat1][vk4][33] = 20; $casy["lap"][kat1][vk4][34] = 22; $casy["lap"][kat1][vk4][35] = 24; $casy["lap"][kat1][vk4][36] = 25; $casy["lap"][kat1][vk4][37] = 27; $casy["lap"][kat1][vk4][38] = 28; $casy["lap"][kat1][vk4][39] = 30; $casy["lap"][kat1][vk4][40] = 32; $casy["lap"][kat1][vk4][41] = 34; $casy["lap"][kat1][vk4][42] = 35; $casy["lap"][kat1][vk5][23] = 10; $casy["lap"][kat1][vk5][24] = 11; $casy["lap"][kat1][vk5][25] = 13; $casy["lap"][kat1][vk5][26] = 14; $casy["lap"][kat1][vk5][27] = 16; $casy["lap"][kat1][vk5][28] = 18; $casy["lap"][kat1][vk5][29] = 19; $casy["lap"][kat1][vk5][30] = 20; $casy["lap"][kat1][vk5][31] = 22; $casy["lap"][kat1][vk5][32] = 24; $casy["lap"][kat1][vk5][33] = 25; $casy["lap"][kat1][vk5][34] = 27; $casy["lap"][kat1][vk5][35] = 28; $casy["lap"][kat1][vk5][36] = 30; $casy["lap"][kat1][vk5][37] = 32; $casy["lap"][kat1][vk5][38] = 34; $casy["lap"][kat1][vk5][39] = 35; $casy["lap"][kat1][vk6][19] = 10; $casy["lap"][kat1][vk6][20] = 11; $casy["lap"][kat1][vk6][21] = 13; $casy["lap"][kat1][vk6][22] = 14; $casy["lap"][kat1][vk6][23] = 16; $casy["lap"][kat1][vk6][24] = 18; $casy["lap"][kat1][vk6][25] = 19; $casy["lap"][kat1][vk6][26] = 20; $casy["lap"][kat1][vk6][27] = 22; $casy["lap"][kat1][vk6][28] = 24; $casy["lap"][kat1][vk6][29] = 25; $casy["lap"][kat1][vk6][30] = 27; $casy["lap"][kat1][vk6][31] = 28; $casy["lap"][kat1][vk6][32] = 30; $casy["lap"][kat1][vk6][33] = 32; $casy["lap"][kat1][vk6][34] = 34; $casy["lap"][kat1][vk6][35] = 35; $casy["lap"][kat1][maxpoints] = 35; $casy["lap"][kat1][vk1][maxe] = 52; $casy["lap"][kat1][vk2][maxe] = 48; $casy["lap"][kat1][vk3][maxe] = 45; $casy["lap"][kat1][vk4][maxe] = 42; $casy["lap"][kat1][vk5][maxe] = 39; $casy["lap"][kat1][vk6][maxe] = 35; $casy["lap"][kat1][vk1][mine] = 36; $casy["lap"][kat1][vk2][mine] = 32; $casy["lap"][kat1][vk3][mine] = 29; $casy["lap"][kat1][vk4][mine] = 26; $casy["lap"][kat1][vk5][mine] = 23; $casy["lap"][kat1][vk6][mine] = 19; #kat2 lap $casy["lap"][kat2][vk1][29] = 10; $casy["lap"][kat2][vk1][30] = 11; $casy["lap"][kat2][vk1][31] = 13; $casy["lap"][kat2][vk1][32] = 14; $casy["lap"][kat2][vk1][33] = 16; $casy["lap"][kat2][vk1][34] = 18; $casy["lap"][kat2][vk1][35] = 19; $casy["lap"][kat2][vk1][36] = 20; $casy["lap"][kat2][vk1][37] = 22; $casy["lap"][kat2][vk1][38] = 24; $casy["lap"][kat2][vk1][39] = 25; $casy["lap"][kat2][vk2][26] = 10; $casy["lap"][kat2][vk2][27] = 11; $casy["lap"][kat2][vk2][28] = 13; $casy["lap"][kat2][vk2][29] = 14; $casy["lap"][kat2][vk2][30] = 16; $casy["lap"][kat2][vk2][31] = 18; $casy["lap"][kat2][vk2][32] = 19; $casy["lap"][kat2][vk2][33] = 20; $casy["lap"][kat2][vk2][34] = 22; $casy["lap"][kat2][vk2][35] = 24; $casy["lap"][kat2][vk2][36] = 25; $casy["lap"][kat2][vk3][23] = 10; $casy["lap"][kat2][vk3][24] = 11; $casy["lap"][kat2][vk3][25] = 13; $casy["lap"][kat2][vk3][26] = 14; $casy["lap"][kat2][vk3][27] = 16; $casy["lap"][kat2][vk3][28] = 18; $casy["lap"][kat2][vk3][29] = 19; $casy["lap"][kat2][vk3][30] = 20; $casy["lap"][kat2][vk3][31] = 22; $casy["lap"][kat2][vk3][32] = 24; $casy["lap"][kat2][vk3][33] = 25; $casy["lap"][kat2][vk4][20] = 10; $casy["lap"][kat2][vk4][21] = 11; $casy["lap"][kat2][vk4][22] = 13; $casy["lap"][kat2][vk4][23] = 14; $casy["lap"][kat2][vk4][24] = 16; $casy["lap"][kat2][vk4][25] = 18; $casy["lap"][kat2][vk4][26] = 19; $casy["lap"][kat2][vk4][27] = 20; $casy["lap"][kat2][vk4][28] = 22; $casy["lap"][kat2][vk4][29] = 24; $casy["lap"][kat2][vk4][30] = 25; $casy["lap"][kat2][vk5][17] = 10; $casy["lap"][kat2][vk5][18] = 11; $casy["lap"][kat2][vk5][19] = 13; $casy["lap"][kat2][vk5][20] = 14; $casy["lap"][kat2][vk5][21] = 16; $casy["lap"][kat2][vk5][22] = 18; $casy["lap"][kat2][vk5][23] = 19; $casy["lap"][kat2][vk5][24] = 20; $casy["lap"][kat2][vk5][25] = 22; $casy["lap"][kat2][vk5][26] = 24; $casy["lap"][kat2][vk5][27] = 25; $casy["lap"][kat2][vk6][13] = 10; $casy["lap"][kat2][vk6][14] = 11; $casy["lap"][kat2][vk6][15] = 13; $casy["lap"][kat2][vk6][16] = 14; $casy["lap"][kat2][vk6][17] = 16; $casy["lap"][kat2][vk6][18] = 18; $casy["lap"][kat2][vk6][19] = 19; $casy["lap"][kat2][vk6][20] = 20; $casy["lap"][kat2][vk6][21] = 22; $casy["lap"][kat2][vk6][22] = 24; $casy["lap"][kat2][vk6][23] = 25; $casy["lap"][kat2][maxpoints] = 25; $casy["lap"][kat2][vk1][maxe] = 39; $casy["lap"][kat2][vk2][maxe] = 36; $casy["lap"][kat2][vk3][maxe] = 33; $casy["lap"][kat2][vk4][maxe] = 30; $casy["lap"][kat2][vk5][maxe] = 27; $casy["lap"][kat2][vk6][maxe] = 23; $casy["lap"][kat2][vk1][mine] = 29; $casy["lap"][kat2][vk2][mine] = 26; $casy["lap"][kat2][vk3][mine] = 23; $casy["lap"][kat2][vk4][mine] = 20; $casy["lap"][kat2][vk5][mine] = 17; $casy["lap"][kat2][vk6][mine] = 13; ################################################################################ # beh ################################################################################ $casy["beh"][kat1][vk1]["10:40"] = 20; $casy["beh"][kat1][vk1]["10:36"] = 21; $casy["beh"][kat1][vk1]["10:32"] = 22; $casy["beh"][kat1][vk1]["10:28"] = 23; $casy["beh"][kat1][vk1]["10:24"] = 24; $casy["beh"][kat1][vk1]["10:20"] = 25; $casy["beh"][kat1][vk1]["10:16"] = 26; $casy["beh"][kat1][vk1]["10:12"] = 27; $casy["beh"][kat1][vk1]["10:08"] = 28; $casy["beh"][kat1][vk1]["10:04"] = 29; $casy["beh"][kat1][vk1]["10:00"] = 30; $casy["beh"][kat1][vk1]["09:56"] = 31; $casy["beh"][kat1][vk1]["09:52"] = 32; $casy["beh"][kat1][vk1]["09:48"] = 33; $casy["beh"][kat1][vk1]["09:44"] = 34; $casy["beh"][kat1][vk1]["09:40"] = 35; $casy["beh"][kat1][vk1]["09:36"] = 36; $casy["beh"][kat1][vk1]["09:32"] = 37; $casy["beh"][kat1][vk1]["09:28"] = 38; $casy["beh"][kat1][vk1]["09:24"] = 39; $casy["beh"][kat1][vk1]["09:20"] = 40; $casy["beh"][kat1][vk1]["09:16"] = 41; $casy["beh"][kat1][vk1]["09:12"] = 42; $casy["beh"][kat1][vk1]["09:08"] = 43; $casy["beh"][kat1][vk1]["09:04"] = 44; $casy["beh"][kat1][vk1]["09:00"] = 45; $casy["beh"][kat1][vk1]["08:56"] = 46; $casy["beh"][kat1][vk1]["08:52"] = 47; $casy["beh"][kat1][vk1]["08:48"] = 48; $casy["beh"][kat1][vk1]["08:44"] = 49; $casy["beh"][kat1][vk1]["08:40"] = 50; $casy["beh"][kat1][vk1]["08:36"] = 51; $casy["beh"][kat1][vk1]["08:32"] = 52; $casy["beh"][kat1][vk1]["08:28"] = 53; $casy["beh"][kat1][vk1]["08:24"] = 54; $casy["beh"][kat1][vk1]["08:20"] = 55; $casy["beh"][kat1][vk2]["11:05"] = 20; $casy["beh"][kat1][vk2]["11:01"] = 21; $casy["beh"][kat1][vk2]["10:57"] = 22; $casy["beh"][kat1][vk2]["10:53"] = 23; $casy["beh"][kat1][vk2]["10:49"] = 24; $casy["beh"][kat1][vk2]["10:45"] = 25; $casy["beh"][kat1][vk2]["10:41"] = 26; $casy["beh"][kat1][vk2]["10:37"] = 27; $casy["beh"][kat1][vk2]["10:33"] = 28; $casy["beh"][kat1][vk2]["10:29"] = 29; $casy["beh"][kat1][vk2]["10:25"] = 30; $casy["beh"][kat1][vk2]["10:21"] = 31; $casy["beh"][kat1][vk2]["10:17"] = 32; $casy["beh"][kat1][vk2]["10:13"] = 33; $casy["beh"][kat1][vk2]["10:09"] = 34; $casy["beh"][kat1][vk2]["10:05"] = 35; $casy["beh"][kat1][vk2]["10:01"] = 36; $casy["beh"][kat1][vk2]["09:57"] = 37; $casy["beh"][kat1][vk2]["09:53"] = 38; $casy["beh"][kat1][vk2]["09:49"] = 39; $casy["beh"][kat1][vk2]["09:45"] = 40; $casy["beh"][kat1][vk2]["09:41"] = 41; $casy["beh"][kat1][vk2]["09:37"] = 42; $casy["beh"][kat1][vk2]["09:33"] = 43; $casy["beh"][kat1][vk2]["09:29"] = 44; $casy["beh"][kat1][vk2]["09:25"] = 45; $casy["beh"][kat1][vk2]["09:22"] = 46; $casy["beh"][kat1][vk2]["09:19"] = 47; $casy["beh"][kat1][vk2]["09:16"] = 48; $casy["beh"][kat1][vk2]["09:13"] = 49; $casy["beh"][kat1][vk2]["09:10"] = 50; $casy["beh"][kat1][vk2]["09:07"] = 51; $casy["beh"][kat1][vk2]["09:04"] = 52; $casy["beh"][kat1][vk2]["09:01"] = 53; $casy["beh"][kat1][vk2]["08:58"] = 54; $casy["beh"][kat1][vk2]["08:55"] = 55; $casy["beh"][kat1][vk3]["11:30"] = 20; $casy["beh"][kat1][vk3]["11:26"] = 21; $casy["beh"][kat1][vk3]["11:22"] = 22; $casy["beh"][kat1][vk3]["11:18"] = 23; $casy["beh"][kat1][vk3]["11:14"] = 24; $casy["beh"][kat1][vk3]["11:10"] = 25; $casy["beh"][kat1][vk3]["11:06"] = 26; $casy["beh"][kat1][vk3]["11:02"] = 27; $casy["beh"][kat1][vk3]["10:58"] = 28; $casy["beh"][kat1][vk3]["10:54"] = 29; $casy["beh"][kat1][vk3]["10:50"] = 30; $casy["beh"][kat1][vk3]["10:46"] = 31; $casy["beh"][kat1][vk3]["10:42"] = 32; $casy["beh"][kat1][vk3]["10:38"] = 33; $casy["beh"][kat1][vk3]["10:34"] = 34; $casy["beh"][kat1][vk3]["10:30"] = 35; $casy["beh"][kat1][vk3]["10:26"] = 36; $casy["beh"][kat1][vk3]["10:22"] = 37; $casy["beh"][kat1][vk3]["10:18"] = 38; $casy["beh"][kat1][vk3]["10:14"] = 39; $casy["beh"][kat1][vk3]["10:10"] = 40; $casy["beh"][kat1][vk3]["10:07"] = 41; $casy["beh"][kat1][vk3]["10:04"] = 42; $casy["beh"][kat1][vk3]["10:01"] = 43; $casy["beh"][kat1][vk3]["09:58"] = 44; $casy["beh"][kat1][vk3]["09:55"] = 45; $casy["beh"][kat1][vk3]["09:52"] = 46; $casy["beh"][kat1][vk3]["09:49"] = 47; $casy["beh"][kat1][vk3]["09:46"] = 48; $casy["beh"][kat1][vk3]["09:43"] = 49; $casy["beh"][kat1][vk3]["09:40"] = 50; $casy["beh"][kat1][vk3]["09:37"] = 51; $casy["beh"][kat1][vk3]["09:34"] = 52; $casy["beh"][kat1][vk3]["09:31"] = 53; $casy["beh"][kat1][vk3]["09:28"] = 54; $casy["beh"][kat1][vk3]["09:25"] = 55; $casy["beh"][kat1][vk4]["12:00"] = 20; $casy["beh"][kat1][vk4]["11:56"] = 21; $casy["beh"][kat1][vk4]["11:52"] = 22; $casy["beh"][kat1][vk4]["11:48"] = 23; $casy["beh"][kat1][vk4]["11:44"] = 24; $casy["beh"][kat1][vk4]["11:40"] = 25; $casy["beh"][kat1][vk4]["11:36"] = 26; $casy["beh"][kat1][vk4]["11:32"] = 27; $casy["beh"][kat1][vk4]["11:28"] = 28; $casy["beh"][kat1][vk4]["11:24"] = 29; $casy["beh"][kat1][vk4]["11:20"] = 30; $casy["beh"][kat1][vk4]["11:16"] = 31; $casy["beh"][kat1][vk4]["11:12"] = 32; $casy["beh"][kat1][vk4]["11:08"] = 33; $casy["beh"][kat1][vk4]["11:04"] = 34; $casy["beh"][kat1][vk4]["11:00"] = 35; $casy["beh"][kat1][vk4]["10:57"] = 36; $casy["beh"][kat1][vk4]["10:54"] = 37; $casy["beh"][kat1][vk4]["10:51"] = 38; $casy["beh"][kat1][vk4]["10:48"] = 39; $casy["beh"][kat1][vk4]["10:45"] = 40; $casy["beh"][kat1][vk4]["10:42"] = 41; $casy["beh"][kat1][vk4]["10:39"] = 42; $casy["beh"][kat1][vk4]["10:36"] = 43; $casy["beh"][kat1][vk4]["10:33"] = 44; $casy["beh"][kat1][vk4]["10:30"] = 45; $casy["beh"][kat1][vk4]["10:27"] = 46; $casy["beh"][kat1][vk4]["10:24"] = 47; $casy["beh"][kat1][vk4]["10:21"] = 48; $casy["beh"][kat1][vk4]["10:18"] = 49; $casy["beh"][kat1][vk4]["10:15"] = 50; $casy["beh"][kat1][vk4]["10:13"] = 51; $casy["beh"][kat1][vk4]["10:11"] = 52; $casy["beh"][kat1][vk4]["10:09"] = 53; $casy["beh"][kat1][vk4]["10:07"] = 54; $casy["beh"][kat1][vk4]["10:05"] = 55; $casy["beh"][kat1][vk5]["12:30"] = 20; $casy["beh"][kat1][vk5]["12:26"] = 21; $casy["beh"][kat1][vk5]["12:22"] = 22; $casy["beh"][kat1][vk5]["12:18"] = 23; $casy["beh"][kat1][vk5]["12:14"] = 24; $casy["beh"][kat1][vk5]["12:10"] = 25; $casy["beh"][kat1][vk5]["12:06"] = 26; $casy["beh"][kat1][vk5]["12:02"] = 27; $casy["beh"][kat1][vk5]["11:58"] = 28; $casy["beh"][kat1][vk5]["11:54"] = 29; $casy["beh"][kat1][vk5]["11:50"] = 30; $casy["beh"][kat1][vk5]["11:47"] = 31; $casy["beh"][kat1][vk5]["11:44"] = 32; $casy["beh"][kat1][vk5]["11:41"] = 33; $casy["beh"][kat1][vk5]["11:38"] = 34; $casy["beh"][kat1][vk5]["11:35"] = 35; $casy["beh"][kat1][vk5]["11:32"] = 36; $casy["beh"][kat1][vk5]["11:29"] = 37; $casy["beh"][kat1][vk5]["11:26"] = 38; $casy["beh"][kat1][vk5]["11:23"] = 39; $casy["beh"][kat1][vk5]["11:20"] = 40; $casy["beh"][kat1][vk5]["11:17"] = 41; $casy["beh"][kat1][vk5]["11:14"] = 42; $casy["beh"][kat1][vk5]["11:11"] = 43; $casy["beh"][kat1][vk5]["11:08"] = 44; $casy["beh"][kat1][vk5]["11:05"] = 45; $casy["beh"][kat1][vk5]["11:03"] = 46; $casy["beh"][kat1][vk5]["11:01"] = 47; $casy["beh"][kat1][vk5]["10:59"] = 48; $casy["beh"][kat1][vk5]["10:57"] = 49; $casy["beh"][kat1][vk5]["10:55"] = 50; $casy["beh"][kat1][vk5]["10:53"] = 51; $casy["beh"][kat1][vk5]["10:51"] = 52; $casy["beh"][kat1][vk5]["10:49"] = 53; $casy["beh"][kat1][vk5]["10:47"] = 54; $casy["beh"][kat1][vk5]["10:45"] = 55; $casy["beh"][kat1][vk6]["13:00"] = 20; $casy["beh"][kat1][vk6]["12:56"] = 21; $casy["beh"][kat1][vk6]["12:52"] = 22; $casy["beh"][kat1][vk6]["12:48"] = 23; $casy["beh"][kat1][vk6]["12:44"] = 24; $casy["beh"][kat1][vk6]["12:40"] = 25; $casy["beh"][kat1][vk6]["12:36"] = 26; $casy["beh"][kat1][vk6]["12:32"] = 27; $casy["beh"][kat1][vk6]["12:28"] = 28; $casy["beh"][kat1][vk6]["12:25"] = 29; $casy["beh"][kat1][vk6]["12:22"] = 30; $casy["beh"][kat1][vk6]["12:19"] = 31; $casy["beh"][kat1][vk6]["12:16"] = 32; $casy["beh"][kat1][vk6]["12:13"] = 33; $casy["beh"][kat1][vk6]["12:10"] = 34; $casy["beh"][kat1][vk6]["12:07"] = 35; $casy["beh"][kat1][vk6]["12:04"] = 36; $casy["beh"][kat1][vk6]["12:01"] = 37; $casy["beh"][kat1][vk6]["11:58"] = 38; $casy["beh"][kat1][vk6]["11:55"] = 39; $casy["beh"][kat1][vk6]["11:52"] = 40; $casy["beh"][kat1][vk6]["11:50"] = 41; $casy["beh"][kat1][vk6]["11:48"] = 42; $casy["beh"][kat1][vk6]["11:46"] = 43; $casy["beh"][kat1][vk6]["11:44"] = 44; $casy["beh"][kat1][vk6]["11:42"] = 45; $casy["beh"][kat1][vk6]["11:40"] = 46; $casy["beh"][kat1][vk6]["11:38"] = 47; $casy["beh"][kat1][vk6]["11:36"] = 48; $casy["beh"][kat1][vk6]["11:34"] = 49; $casy["beh"][kat1][vk6]["11:32"] = 50; $casy["beh"][kat1][vk6]["11:30"] = 51; $casy["beh"][kat1][vk6]["11:28"] = 52; $casy["beh"][kat1][vk6]["11:26"] = 53; $casy["beh"][kat1][vk6]["11:24"] = 54; $casy["beh"][kat1][vk6]["11:22"] = 55; $casy["beh"][kat1][maxpoints] = 55; $casy["beh"][kat1][vk1][mint] = "08:20"; $casy["beh"][kat1][vk2][mint] = "08:55"; $casy["beh"][kat1][vk3][mint] = "09:25"; $casy["beh"][kat1][vk4][mint] = "10:05"; $casy["beh"][kat1][vk5][mint] = "10:45"; $casy["beh"][kat1][vk6][mint] = "11:22"; $casy["beh"][kat1][vk1][maxt] = "10:40"; $casy["beh"][kat1][vk2][maxt] = "11:05"; $casy["beh"][kat1][vk3][maxt] = "11:30"; $casy["beh"][kat1][vk4][maxt] = "12:00"; $casy["beh"][kat1][vk5][maxt] = "12:30"; $casy["beh"][kat1][vk6][maxt] = "13:00"; # beh kat2 # $casy["beh"][kat2][vk1]["11:30"] = 20; $casy["beh"][kat2][vk1]["11:27"] = 21; $casy["beh"][kat2][vk1]["11:24"] = 22; $casy["beh"][kat2][vk1]["11:21"] = 23; $casy["beh"][kat2][vk1]["11:18"] = 24; $casy["beh"][kat2][vk1]["11:15"] = 25; $casy["beh"][kat2][vk1]["11:12"] = 26; $casy["beh"][kat2][vk1]["11:09"] = 27; $casy["beh"][kat2][vk1]["11:06"] = 28; $casy["beh"][kat2][vk1]["11:03"] = 29; $casy["beh"][kat2][vk1]["11:00"] = 30; $casy["beh"][kat2][vk1]["10:57"] = 31; $casy["beh"][kat2][vk1]["10:54"] = 32; $casy["beh"][kat2][vk1]["10:51"] = 33; $casy["beh"][kat2][vk1]["10:48"] = 34; $casy["beh"][kat2][vk1]["10:45"] = 35; $casy["beh"][kat2][vk1]["10:42"] = 36; $casy["beh"][kat2][vk1]["10:39"] = 37; $casy["beh"][kat2][vk1]["10:36"] = 38; $casy["beh"][kat2][vk1]["10:33"] = 39; $casy["beh"][kat2][vk1]["10:30"] = 40; $casy["beh"][kat2][vk2]["11:50"] = 20; $casy["beh"][kat2][vk2]["11:47"] = 21; $casy["beh"][kat2][vk2]["11:44"] = 22; $casy["beh"][kat2][vk2]["11:41"] = 23; $casy["beh"][kat2][vk2]["11:38"] = 24; $casy["beh"][kat2][vk2]["11:35"] = 25; $casy["beh"][kat2][vk2]["11:32"] = 26; $casy["beh"][kat2][vk2]["11:29"] = 27; $casy["beh"][kat2][vk2]["11:26"] = 28; $casy["beh"][kat2][vk2]["11:23"] = 29; $casy["beh"][kat2][vk2]["11:20"] = 30; $casy["beh"][kat2][vk2]["11:17"] = 31; $casy["beh"][kat2][vk2]["11:14"] = 32; $casy["beh"][kat2][vk2]["11:11"] = 33; $casy["beh"][kat2][vk2]["11:08"] = 34; $casy["beh"][kat2][vk2]["11:05"] = 35; $casy["beh"][kat2][vk2]["11:02"] = 36; $casy["beh"][kat2][vk2]["10:59"] = 37; $casy["beh"][kat2][vk2]["10:56"] = 38; $casy["beh"][kat2][vk2]["10:53"] = 39; $casy["beh"][kat2][vk2]["10:50"] = 40; $casy["beh"][kat2][vk3]["12:10"] = 20; $casy["beh"][kat2][vk3]["12:07"] = 21; $casy["beh"][kat2][vk3]["12:04"] = 22; $casy["beh"][kat2][vk3]["12:01"] = 23; $casy["beh"][kat2][vk3]["11:58"] = 24; $casy["beh"][kat2][vk3]["11:55"] = 25; $casy["beh"][kat2][vk3]["11:52"] = 26; $casy["beh"][kat2][vk3]["11:49"] = 27; $casy["beh"][kat2][vk3]["11:46"] = 28; $casy["beh"][kat2][vk3]["11:43"] = 29; $casy["beh"][kat2][vk3]["11:40"] = 30; $casy["beh"][kat2][vk3]["11:37"] = 31; $casy["beh"][kat2][vk3]["11:34"] = 32; $casy["beh"][kat2][vk3]["11:31"] = 33; $casy["beh"][kat2][vk3]["11:28"] = 34; $casy["beh"][kat2][vk3]["11:25"] = 35; $casy["beh"][kat2][vk3]["11:22"] = 36; $casy["beh"][kat2][vk3]["11:19"] = 37; $casy["beh"][kat2][vk3]["11:16"] = 38; $casy["beh"][kat2][vk3]["11:13"] = 39; $casy["beh"][kat2][vk3]["11:10"] = 40; $casy["beh"][kat2][vk4]["12:35"] = 20; $casy["beh"][kat2][vk4]["12:32"] = 21; $casy["beh"][kat2][vk4]["12:29"] = 22; $casy["beh"][kat2][vk4]["12:26"] = 23; $casy["beh"][kat2][vk4]["12:23"] = 24; $casy["beh"][kat2][vk4]["12:20"] = 25; $casy["beh"][kat2][vk4]["12:17"] = 26; $casy["beh"][kat2][vk4]["12:14"] = 27; $casy["beh"][kat2][vk4]["12:11"] = 28; $casy["beh"][kat2][vk4]["12:08"] = 29; $casy["beh"][kat2][vk4]["12:05"] = 30; $casy["beh"][kat2][vk4]["12:02"] = 31; $casy["beh"][kat2][vk4]["11:59"] = 32; $casy["beh"][kat2][vk4]["11:56"] = 33; $casy["beh"][kat2][vk4]["11:53"] = 34; $casy["beh"][kat2][vk4]["11:50"] = 35; $casy["beh"][kat2][vk4]["11:47"] = 36; $casy["beh"][kat2][vk4]["11:44"] = 37; $casy["beh"][kat2][vk4]["11:41"] = 38; $casy["beh"][kat2][vk4]["11:38"] = 39; $casy["beh"][kat2][vk4]["11:35"] = 40; $casy["beh"][kat2][vk5]["13:00"] = 20; $casy["beh"][kat2][vk5]["12:57"] = 21; $casy["beh"][kat2][vk5]["12:54"] = 22; $casy["beh"][kat2][vk5]["12:51"] = 23; $casy["beh"][kat2][vk5]["12:48"] = 24; $casy["beh"][kat2][vk5]["12:45"] = 25; $casy["beh"][kat2][vk5]["12:42"] = 26; $casy["beh"][kat2][vk5]["12:39"] = 27; $casy["beh"][kat2][vk5]["12:36"] = 28; $casy["beh"][kat2][vk5]["12:33"] = 29; $casy["beh"][kat2][vk5]["12:30"] = 30; $casy["beh"][kat2][vk5]["12:27"] = 31; $casy["beh"][kat2][vk5]["12:24"] = 32; $casy["beh"][kat2][vk5]["12:21"] = 33; $casy["beh"][kat2][vk5]["12:18"] = 34; $casy["beh"][kat2][vk5]["12:15"] = 35; $casy["beh"][kat2][vk5]["12:12"] = 36; $casy["beh"][kat2][vk5]["12:09"] = 37; $casy["beh"][kat2][vk5]["12:06"] = 38; $casy["beh"][kat2][vk5]["12:03"] = 39; $casy["beh"][kat2][vk5]["12:00"] = 40; $casy["beh"][kat2][vk6]["13:30"] = 20; $casy["beh"][kat2][vk6]["13:27"] = 21; $casy["beh"][kat2][vk6]["13:24"] = 22; $casy["beh"][kat2][vk6]["13:21"] = 23; $casy["beh"][kat2][vk6]["13:18"] = 24; $casy["beh"][kat2][vk6]["13:15"] = 25; $casy["beh"][kat2][vk6]["13:12"] = 26; $casy["beh"][kat2][vk6]["13:09"] = 27; $casy["beh"][kat2][vk6]["13:06"] = 28; $casy["beh"][kat2][vk6]["13:03"] = 29; $casy["beh"][kat2][vk6]["13:00"] = 30; $casy["beh"][kat2][vk6]["12:57"] = 31; $casy["beh"][kat2][vk6]["12:54"] = 32; $casy["beh"][kat2][vk6]["12:51"] = 33; $casy["beh"][kat2][vk6]["12:48"] = 34; $casy["beh"][kat2][vk6]["12:45"] = 35; $casy["beh"][kat2][vk6]["12:42"] = 36; $casy["beh"][kat2][vk6]["12:39"] = 37; $casy["beh"][kat2][vk6]["12:36"] = 38; $casy["beh"][kat2][vk6]["12:33"] = 39; $casy["beh"][kat2][vk6]["12:30"] = 40; $casy["beh"][kat2][maxpoints] = 40; $casy["beh"][kat2][vk1][mint] = "10:30"; $casy["beh"][kat2][vk2][mint] = "10:50"; $casy["beh"][kat2][vk3][mint] = "11:10"; $casy["beh"][kat2][vk4][mint] = "11:35"; $casy["beh"][kat2][vk5][mint] = "12:00"; $casy["beh"][kat2][vk6][mint] = "12:30"; $casy["beh"][kat2][vk1][maxt] = "11:30"; $casy["beh"][kat2][vk2][maxt] = "11:50"; $casy["beh"][kat2][vk3][maxt] = "12:10"; $casy["beh"][kat2][vk4][maxt] = "12:35"; $casy["beh"][kat2][vk5][maxt] = "13:00"; $casy["beh"][kat2][vk6][maxt] = "13:30"; ################################################################################ # plavani ################################################################################ $casy["plav"][kat1][vk1]["05:16"] = 20; $casy["plav"][kat1][vk1]["05:15"] = 21; $casy["plav"][kat1][vk1]["05:14"] = 22; $casy["plav"][kat1][vk1]["05:12"] = 23; $casy["plav"][kat1][vk1]["05:11"] = 24; $casy["plav"][kat1][vk1]["05:10"] = 25; $casy["plav"][kat1][vk1]["05:08"] = 26; $casy["plav"][kat1][vk1]["05:07"] = 27; $casy["plav"][kat1][vk1]["05:06"] = 28; $casy["plav"][kat1][vk1]["05:04"] = 29; $casy["plav"][kat1][vk1]["05:03"] = 30; $casy["plav"][kat1][vk1]["05:02"] = 31; $casy["plav"][kat1][vk1]["05:00"] = 32; $casy["plav"][kat1][vk1]["04:59"] = 33; $casy["plav"][kat1][vk1]["04:58"] = 34; $casy["plav"][kat1][vk1]["04:56"] = 35; $casy["plav"][kat1][vk1]["04:55"] = 36; $casy["plav"][kat1][vk1]["04:54"] = 37; $casy["plav"][kat1][vk1]["04:52"] = 38; $casy["plav"][kat1][vk1]["04:51"] = 39; $casy["plav"][kat1][vk1]["04:50"] = 40; $casy["plav"][kat1][vk1]["04:48"] = 41; $casy["plav"][kat1][vk1]["04:47"] = 42; $casy["plav"][kat1][vk1]["04:46"] = 43; $casy["plav"][kat1][vk1]["04:44"] = 44; $casy["plav"][kat1][vk1]["04:43"] = 45; $casy["plav"][kat1][vk1]["04:42"] = 46; $casy["plav"][kat1][vk1]["04:40"] = 47; $casy["plav"][kat1][vk1]["04:39"] = 48; $casy["plav"][kat1][vk1]["04:38"] = 49; $casy["plav"][kat1][vk1]["04:36"] = 50; $casy["plav"][kat1][vk1]["04:35"] = 51; $casy["plav"][kat1][vk1]["04:34"] = 52; $casy["plav"][kat1][vk1]["04:32"] = 53; $casy["plav"][kat1][vk1]["04:31"] = 54; $casy["plav"][kat1][vk1]["04:30"] = 55; $casy["plav"][kat1][vk2]["05:26"] = 20; $casy["plav"][kat1][vk2]["05:25"] = 21; $casy["plav"][kat1][vk2]["05:24"] = 22; $casy["plav"][kat1][vk2]["05:22"] = 23; $casy["plav"][kat1][vk2]["05:21"] = 24; $casy["plav"][kat1][vk2]["05:20"] = 25; $casy["plav"][kat1][vk2]["05:18"] = 26; $casy["plav"][kat1][vk2]["05:17"] = 27; $casy["plav"][kat1][vk2]["05:16"] = 28; $casy["plav"][kat1][vk2]["05:14"] = 29; $casy["plav"][kat1][vk2]["05:13"] = 30; $casy["plav"][kat1][vk2]["05:12"] = 31; $casy["plav"][kat1][vk2]["05:10"] = 32; $casy["plav"][kat1][vk2]["05:09"] = 33; $casy["plav"][kat1][vk2]["05:08"] = 34; $casy["plav"][kat1][vk2]["05:06"] = 35; $casy["plav"][kat1][vk2]["05:05"] = 36; $casy["plav"][kat1][vk2]["05:04"] = 37; $casy["plav"][kat1][vk2]["05:02"] = 38; $casy["plav"][kat1][vk2]["05:01"] = 39; $casy["plav"][kat1][vk2]["05:00"] = 40; $casy["plav"][kat1][vk2]["04:58"] = 41; $casy["plav"][kat1][vk2]["04:57"] = 42; $casy["plav"][kat1][vk2]["04:56"] = 43; $casy["plav"][kat1][vk2]["04:55"] = 44; $casy["plav"][kat1][vk2]["04:54"] = 45; $casy["plav"][kat1][vk2]["04:53"] = 46; $casy["plav"][kat1][vk2]["04:52"] = 47; $casy["plav"][kat1][vk2]["04:51"] = 48; $casy["plav"][kat1][vk2]["04:50"] = 49; $casy["plav"][kat1][vk2]["04:49"] = 50; $casy["plav"][kat1][vk2]["04:48"] = 51; $casy["plav"][kat1][vk2]["04:47"] = 52; $casy["plav"][kat1][vk2]["04:46"] = 53; $casy["plav"][kat1][vk2]["04:45"] = 54; $casy["plav"][kat1][vk2]["04:44"] = 55; $casy["plav"][kat1][vk3]["05:40"] = 20; $casy["plav"][kat1][vk3]["05:38"] = 21; $casy["plav"][kat1][vk3]["05:37"] = 22; $casy["plav"][kat1][vk3]["05:36"] = 23; $casy["plav"][kat1][vk3]["05:34"] = 24; $casy["plav"][kat1][vk3]["05:33"] = 25; $casy["plav"][kat1][vk3]["05:32"] = 26; $casy["plav"][kat1][vk3]["05:30"] = 27; $casy["plav"][kat1][vk3]["05:29"] = 28; $casy["plav"][kat1][vk3]["05:28"] = 29; $casy["plav"][kat1][vk3]["05:26"] = 30; $casy["plav"][kat1][vk3]["05:25"] = 31; $casy["plav"][kat1][vk3]["05:24"] = 32; $casy["plav"][kat1][vk3]["05:22"] = 33; $casy["plav"][kat1][vk3]["05:21"] = 34; $casy["plav"][kat1][vk3]["05:20"] = 35; $casy["plav"][kat1][vk3]["05:18"] = 36; $casy["plav"][kat1][vk3]["05:17"] = 37; $casy["plav"][kat1][vk3]["05:16"] = 38; $casy["plav"][kat1][vk3]["05:14"] = 39; $casy["plav"][kat1][vk3]["05:13"] = 40; $casy["plav"][kat1][vk3]["05:12"] = 41; $casy["plav"][kat1][vk3]["05:11"] = 42; $casy["plav"][kat1][vk3]["05:10"] = 43; $casy["plav"][kat1][vk3]["05:09"] = 44; $casy["plav"][kat1][vk3]["05:08"] = 45; $casy["plav"][kat1][vk3]["05:07"] = 46; $casy["plav"][kat1][vk3]["05:06"] = 47; $casy["plav"][kat1][vk3]["05:05"] = 48; $casy["plav"][kat1][vk3]["05:04"] = 49; $casy["plav"][kat1][vk3]["05:03"] = 50; $casy["plav"][kat1][vk3]["05:02"] = 51; $casy["plav"][kat1][vk3]["05:01"] = 52; $casy["plav"][kat1][vk3]["05:00"] = 53; $casy["plav"][kat1][vk3]["04:59"] = 54; $casy["plav"][kat1][vk3]["04:58"] = 55; $casy["plav"][kat1][vk4]["06:06"] = 20; $casy["plav"][kat1][vk4]["06:05"] = 21; $casy["plav"][kat1][vk4]["06:04"] = 22; $casy["plav"][kat1][vk4]["06:02"] = 23; $casy["plav"][kat1][vk4]["06:01"] = 24; $casy["plav"][kat1][vk4]["06:00"] = 25; $casy["plav"][kat1][vk4]["05:58"] = 26; $casy["plav"][kat1][vk4]["05:57"] = 27; $casy["plav"][kat1][vk4]["05:56"] = 28; $casy["plav"][kat1][vk4]["05:54"] = 29; $casy["plav"][kat1][vk4]["05:53"] = 30; $casy["plav"][kat1][vk4]["05:52"] = 31; $casy["plav"][kat1][vk4]["05:50"] = 32; $casy["plav"][kat1][vk4]["05:49"] = 33; $casy["plav"][kat1][vk4]["05:48"] = 34; $casy["plav"][kat1][vk4]["05:46"] = 35; $casy["plav"][kat1][vk4]["05:45"] = 36; $casy["plav"][kat1][vk4]["05:44"] = 37; $casy["plav"][kat1][vk4]["05:42"] = 38; $casy["plav"][kat1][vk4]["05:41"] = 39; $casy["plav"][kat1][vk4]["05:40"] = 40; $casy["plav"][kat1][vk4]["05:38"] = 41; $casy["plav"][kat1][vk4]["05:37"] = 42; $casy["plav"][kat1][vk4]["05:36"] = 43; $casy["plav"][kat1][vk4]["05:35"] = 44; $casy["plav"][kat1][vk4]["05:34"] = 45; $casy["plav"][kat1][vk4]["05:33"] = 46; $casy["plav"][kat1][vk4]["05:32"] = 47; $casy["plav"][kat1][vk4]["05:31"] = 48; $casy["plav"][kat1][vk4]["05:30"] = 49; $casy["plav"][kat1][vk4]["05:29"] = 50; $casy["plav"][kat1][vk4]["05:28"] = 51; $casy["plav"][kat1][vk4]["05:27"] = 52; $casy["plav"][kat1][vk4]["05:26"] = 53; $casy["plav"][kat1][vk4]["05:25"] = 54; $casy["plav"][kat1][vk4]["05:24"] = 55; $casy["plav"][kat1][vk5]["06:20"] = 20; $casy["plav"][kat1][vk5]["06:18"] = 21; $casy["plav"][kat1][vk5]["06:17"] = 22; $casy["plav"][kat1][vk5]["06:16"] = 23; $casy["plav"][kat1][vk5]["06:14"] = 24; $casy["plav"][kat1][vk5]["06:13"] = 25; $casy["plav"][kat1][vk5]["06:12"] = 26; $casy["plav"][kat1][vk5]["06:10"] = 27; $casy["plav"][kat1][vk5]["06:09"] = 28; $casy["plav"][kat1][vk5]["06:08"] = 29; $casy["plav"][kat1][vk5]["06:06"] = 30; $casy["plav"][kat1][vk5]["06:05"] = 31; $casy["plav"][kat1][vk5]["06:04"] = 32; $casy["plav"][kat1][vk5]["06:02"] = 33; $casy["plav"][kat1][vk5]["06:01"] = 34; $casy["plav"][kat1][vk5]["06:00"] = 35; $casy["plav"][kat1][vk5]["05:58"] = 36; $casy["plav"][kat1][vk5]["05:57"] = 37; $casy["plav"][kat1][vk5]["05:56"] = 38; $casy["plav"][kat1][vk5]["05:54"] = 39; $casy["plav"][kat1][vk5]["05:53"] = 40; $casy["plav"][kat1][vk5]["05:52"] = 41; $casy["plav"][kat1][vk5]["05:51"] = 42; $casy["plav"][kat1][vk5]["05:50"] = 43; $casy["plav"][kat1][vk5]["05:49"] = 44; $casy["plav"][kat1][vk5]["05:48"] = 45; $casy["plav"][kat1][vk5]["05:47"] = 46; $casy["plav"][kat1][vk5]["05:46"] = 47; $casy["plav"][kat1][vk5]["05:45"] = 48; $casy["plav"][kat1][vk5]["05:44"] = 49; $casy["plav"][kat1][vk5]["05:43"] = 50; $casy["plav"][kat1][vk5]["05:42"] = 51; $casy["plav"][kat1][vk5]["05:41"] = 52; $casy["plav"][kat1][vk5]["05:40"] = 53; $casy["plav"][kat1][vk5]["05:39"] = 54; $casy["plav"][kat1][vk5]["05:38"] = 55; $casy["plav"][kat1][vk6]["06:33"] = 20; $casy["plav"][kat1][vk6]["06:32"] = 21; $casy["plav"][kat1][vk6]["06:30"] = 22; $casy["plav"][kat1][vk6]["06:29"] = 23; $casy["plav"][kat1][vk6]["06:28"] = 24; $casy["plav"][kat1][vk6]["06:26"] = 25; $casy["plav"][kat1][vk6]["06:25"] = 26; $casy["plav"][kat1][vk6]["06:24"] = 27; $casy["plav"][kat1][vk6]["06:22"] = 28; $casy["plav"][kat1][vk6]["06:21"] = 29; $casy["plav"][kat1][vk6]["06:20"] = 30; $casy["plav"][kat1][vk6]["06:18"] = 31; $casy["plav"][kat1][vk6]["06:17"] = 32; $casy["plav"][kat1][vk6]["06:16"] = 33; $casy["plav"][kat1][vk6]["06:14"] = 34; $casy["plav"][kat1][vk6]["06:13"] = 35; $casy["plav"][kat1][vk6]["06:12"] = 36; $casy["plav"][kat1][vk6]["06:10"] = 37; $casy["plav"][kat1][vk6]["06:09"] = 38; $casy["plav"][kat1][vk6]["06:08"] = 39; $casy["plav"][kat1][vk6]["06:06"] = 40; $casy["plav"][kat1][vk6]["06:05"] = 41; $casy["plav"][kat1][vk6]["06:04"] = 42; $casy["plav"][kat1][vk6]["06:03"] = 43; $casy["plav"][kat1][vk6]["06:02"] = 44; $casy["plav"][kat1][vk6]["06:01"] = 45; $casy["plav"][kat1][vk6]["06:00"] = 46; $casy["plav"][kat1][vk6]["05:59"] = 47; $casy["plav"][kat1][vk6]["05:58"] = 48; $casy["plav"][kat1][vk6]["05:57"] = 49; $casy["plav"][kat1][vk6]["05:56"] = 50; $casy["plav"][kat1][vk6]["05:55"] = 51; $casy["plav"][kat1][vk6]["05:54"] = 52; $casy["plav"][kat1][vk6]["05:53"] = 53; $casy["plav"][kat1][vk6]["05:52"] = 54; $casy["plav"][kat1][vk6]["05:51"] = 55; $casy["plav"][kat1][maxpoints] = 55; $casy["plav"][kat1][vk1][mint] = "4:30"; $casy["plav"][kat1][vk2][mint] = "4:44"; $casy["plav"][kat1][vk3][mint] = "4:58"; $casy["plav"][kat1][vk4][mint] = "5:24"; $casy["plav"][kat1][vk5][mint] = "5:38"; $casy["plav"][kat1][vk6][mint] = "5:51"; $casy["plav"][kat1][vk1][maxt] = "5:16"; $casy["plav"][kat1][vk2][maxt] = "5:26"; $casy["plav"][kat1][vk3][maxt] = "5:40"; $casy["plav"][kat1][vk4][maxt] = "6:06"; $casy["plav"][kat1][vk5][maxt] = "6:20"; $casy["plav"][kat1][vk6][maxt] = "6:33"; # kat2 # $casy["plav"][kat2][vk1]["05:53"] = 20; $casy["plav"][kat2][vk1]["05:51"] = 21; $casy["plav"][kat2][vk1]["05:49"] = 22; $casy["plav"][kat2][vk1]["05:47"] = 23; $casy["plav"][kat2][vk1]["05:45"] = 24; $casy["plav"][kat2][vk1]["05:43"] = 25; $casy["plav"][kat2][vk1]["05:41"] = 26; $casy["plav"][kat2][vk1]["05:39"] = 27; $casy["plav"][kat2][vk1]["05:37"] = 28; $casy["plav"][kat2][vk1]["05:36"] = 29; $casy["plav"][kat2][vk1]["05:34"] = 30; $casy["plav"][kat2][vk1]["05:33"] = 31; $casy["plav"][kat2][vk1]["05:32"] = 32; $casy["plav"][kat2][vk1]["05:30"] = 33; $casy["plav"][kat2][vk1]["05:29"] = 34; $casy["plav"][kat2][vk1]["05:28"] = 35; $casy["plav"][kat2][vk1]["05:26"] = 36; $casy["plav"][kat2][vk1]["05:25"] = 37; $casy["plav"][kat2][vk1]["05:24"] = 38; $casy["plav"][kat2][vk1]["05:22"] = 39; $casy["plav"][kat2][vk1]["05:21"] = 40; $casy["plav"][kat2][vk2]["06:10"] = 20; $casy["plav"][kat2][vk2]["06:08"] = 21; $casy["plav"][kat2][vk2]["06:06"] = 22; $casy["plav"][kat2][vk2]["06:04"] = 23; $casy["plav"][kat2][vk2]["06:02"] = 24; $casy["plav"][kat2][vk2]["06:00"] = 25; $casy["plav"][kat2][vk2]["05:58"] = 26; $casy["plav"][kat2][vk2]["05:56"] = 27; $casy["plav"][kat2][vk2]["05:54"] = 28; $casy["plav"][kat2][vk2]["05:52"] = 29; $casy["plav"][kat2][vk2]["05:51"] = 30; $casy["plav"][kat2][vk2]["05:50"] = 31; $casy["plav"][kat2][vk2]["05:48"] = 32; $casy["plav"][kat2][vk2]["05:47"] = 33; $casy["plav"][kat2][vk2]["05:46"] = 34; $casy["plav"][kat2][vk2]["05:44"] = 35; $casy["plav"][kat2][vk2]["05:43"] = 36; $casy["plav"][kat2][vk2]["05:42"] = 37; $casy["plav"][kat2][vk2]["05:40"] = 38; $casy["plav"][kat2][vk2]["05:39"] = 39; $casy["plav"][kat2][vk2]["05:38"] = 40; $casy["plav"][kat2][vk3]["06:30"] = 20; $casy["plav"][kat2][vk3]["06:28"] = 21; $casy["plav"][kat2][vk3]["06:26"] = 22; $casy["plav"][kat2][vk3]["06:24"] = 23; $casy["plav"][kat2][vk3]["06:22"] = 24; $casy["plav"][kat2][vk3]["06:20"] = 25; $casy["plav"][kat2][vk3]["06:18"] = 26; $casy["plav"][kat2][vk3]["06:16"] = 27; $casy["plav"][kat2][vk3]["06:14"] = 28; $casy["plav"][kat2][vk3]["06:12"] = 29; $casy["plav"][kat2][vk3]["06:11"] = 30; $casy["plav"][kat2][vk3]["06:10"] = 31; $casy["plav"][kat2][vk3]["06:08"] = 32; $casy["plav"][kat2][vk3]["06:07"] = 33; $casy["plav"][kat2][vk3]["06:06"] = 34; $casy["plav"][kat2][vk3]["06:04"] = 35; $casy["plav"][kat2][vk3]["06:03"] = 36; $casy["plav"][kat2][vk3]["06:02"] = 37; $casy["plav"][kat2][vk3]["06:00"] = 38; $casy["plav"][kat2][vk3]["05:59"] = 39; $casy["plav"][kat2][vk3]["05:58"] = 40; $casy["plav"][kat2][vk4]["07:03"] = 20; $casy["plav"][kat2][vk4]["07:01"] = 21; $casy["plav"][kat2][vk4]["06:59"] = 22; $casy["plav"][kat2][vk4]["06:57"] = 23; $casy["plav"][kat2][vk4]["06:55"] = 24; $casy["plav"][kat2][vk4]["06:53"] = 25; $casy["plav"][kat2][vk4]["06:51"] = 26; $casy["plav"][kat2][vk4]["06:49"] = 27; $casy["plav"][kat2][vk4]["06:47"] = 28; $casy["plav"][kat2][vk4]["06:46"] = 29; $casy["plav"][kat2][vk4]["06:44"] = 30; $casy["plav"][kat2][vk4]["06:43"] = 31; $casy["plav"][kat2][vk4]["06:42"] = 32; $casy["plav"][kat2][vk4]["06:40"] = 33; $casy["plav"][kat2][vk4]["06:39"] = 34; $casy["plav"][kat2][vk4]["06:38"] = 35; $casy["plav"][kat2][vk4]["06:36"] = 36; $casy["plav"][kat2][vk4]["06:35"] = 37; $casy["plav"][kat2][vk4]["06:34"] = 38; $casy["plav"][kat2][vk4]["06:32"] = 39; $casy["plav"][kat2][vk4]["06:31"] = 40; $casy["plav"][kat2][vk5]["07:13"] = 20; $casy["plav"][kat2][vk5]["07:11"] = 21; $casy["plav"][kat2][vk5]["07:09"] = 22; $casy["plav"][kat2][vk5]["07:07"] = 23; $casy["plav"][kat2][vk5]["07:05"] = 24; $casy["plav"][kat2][vk5]["07:03"] = 25; $casy["plav"][kat2][vk5]["07:01"] = 26; $casy["plav"][kat2][vk5]["06:59"] = 27; $casy["plav"][kat2][vk5]["06:57"] = 28; $casy["plav"][kat2][vk5]["06:56"] = 29; $casy["plav"][kat2][vk5]["06:54"] = 30; $casy["plav"][kat2][vk5]["06:53"] = 31; $casy["plav"][kat2][vk5]["06:52"] = 32; $casy["plav"][kat2][vk5]["06:50"] = 33; $casy["plav"][kat2][vk5]["06:49"] = 34; $casy["plav"][kat2][vk5]["06:48"] = 35; $casy["plav"][kat2][vk5]["06:46"] = 36; $casy["plav"][kat2][vk5]["06:45"] = 37; $casy["plav"][kat2][vk5]["06:44"] = 38; $casy["plav"][kat2][vk5]["06:42"] = 39; $casy["plav"][kat2][vk5]["06:41"] = 40; $casy["plav"][kat2][vk6]["07:23"] = 20; $casy["plav"][kat2][vk6]["07:21"] = 21; $casy["plav"][kat2][vk6]["07:19"] = 22; $casy["plav"][kat2][vk6]["07:17"] = 23; $casy["plav"][kat2][vk6]["07:15"] = 24; $casy["plav"][kat2][vk6]["07:13"] = 25; $casy["plav"][kat2][vk6]["07:11"] = 26; $casy["plav"][kat2][vk6]["07:09"] = 27; $casy["plav"][kat2][vk6]["07:07"] = 28; $casy["plav"][kat2][vk6]["07:06"] = 29; $casy["plav"][kat2][vk6]["07:04"] = 30; $casy["plav"][kat2][vk6]["07:03"] = 31; $casy["plav"][kat2][vk6]["07:02"] = 32; $casy["plav"][kat2][vk6]["07:00"] = 33; $casy["plav"][kat2][vk6]["06:59"] = 34; $casy["plav"][kat2][vk6]["06:58"] = 35; $casy["plav"][kat2][vk6]["06:56"] = 36; $casy["plav"][kat2][vk6]["06:55"] = 37; $casy["plav"][kat2][vk6]["06:54"] = 38; $casy["plav"][kat2][vk6]["06:52"] = 39; $casy["plav"][kat2][vk6]["06:51"] = 40; $casy["plav"][kat2][maxpoints] = 40; $casy["plav"][kat2][vk1][mint] = "5:53"; $casy["plav"][kat2][vk2][mint] = "6:10"; $casy["plav"][kat2][vk3][mint] = "6:30"; $casy["plav"][kat2][vk4][mint] = "7:03"; $casy["plav"][kat2][vk5][mint] = "7:13"; $casy["plav"][kat2][vk6][mint] = "7:23"; $casy["plav"][kat2][vk1][maxt] = "5:21"; $casy["plav"][kat2][vk2][maxt] = "5:38"; $casy["plav"][kat2][vk3][maxt] = "5:58"; $casy["plav"][kat2][vk4][maxt] = "6:31"; $casy["plav"][kat2][vk5][maxt] = "6:41"; $casy["plav"][kat2][vk6][maxt] = "6:51"; define('BUFFER_READ_LEN', 4096); ################################################################################ function fgetcsv_ex($file_handle, $notused, $delim = ',', $enclosure = '"', $escape = '"') ################################################################################ { #by php.net comments on fgetcsv #Philipp / 19-Apr-2008 06:31 #Marcos Boyington / 06-Mar-2008 03:08 $fields = null; $fldCount = 0; $inQuotes = false; $complete = false; $search_chars_list = array('\r\n', '\n', '\r'); if ($delim && ($delim != '')) $search_chars_list[] = $delim; if ($enclosure && ($enclosure != '')) { $search_chars_list[] = $enclosure; $enclosure_len = strlen($enclosure); } else $enclosure_len = 0; if ($escape && ($escape != '')) { $search_chars_list[] = $escape; $escape_len = strlen($escape); } else $escape_len = 0; $search_regex = '/' . implode('|', $search_chars_list) . '/'; $cur_pos = 0; $line = ''; $cur_value = ''; $in_value = false; $last_value = 0; while (! $complete) { $read_result = fread($file_handle, BUFFER_READ_LEN); if ($read_result) { $line .= $read_result; } else if (strlen($line) == 0) { return null; } else { $line .= "\n"; } $line_len = strlen($line); while (true) { if (! preg_match($search_regex, $line, $matches, PREG_OFFSET_CAPTURE, $cur_pos)) { if ($read_result) { // need more chars break; } else { // Incomplete file return null; } } else { $non_escape = false; $cur_char = $matches[0][0]; $cur_len = strlen($cur_char); $new_pos = $matches[0][1]; if (($enclosure == $escape) && $in_value && ($cur_char == $escape)) { // Escape char = enclosure char special handling if (($new_pos + $cur_len + $enclosure_len) >= $line_len) { // We need the next char break; } $next_char = substr($line, $new_pos + $cur_len, $enclosure_len); if ((! $enclosure) || ($next_char != $enclosure)) { $non_escape = true; } } $cur_pos = $new_pos; if ($in_value && (! $non_escape)) { $cur_value .= mb_substr($line, $last_value, $cur_pos - $last_value); if ($cur_char == $escape) { // Skip escape char $cur_pos += $escape_len; } $last_value = $cur_pos; } else if (($cur_char == "\n") || ($cur_char == "\r") || ($cur_char == "\r\n")) { $blank_start_lines = ($cur_pos == 0); ++$cur_pos; $cur_pos = $cur_pos + strspn($line, "\n\r", $cur_pos); if (! $blank_start_lines) { $complete = true; } else { $last_value = $cur_pos; continue; } } if ($cur_char == $delim || $complete) { if (is_null($fields)) { $fields = array(); } $fields[] = $cur_value . trim(mb_substr($line, $last_value, $cur_pos - $last_value)); $last_value = $cur_pos + $cur_len; $cur_value = ''; } else if ($cur_char == $enclosure) { if ($in_value) { $cur_value .= mb_substr($line, $last_value, $cur_pos - $last_value); } $last_value = $cur_pos + $cur_len; $in_value = ! $in_value; } if ($complete) { break; } $cur_pos += $cur_len; } } } fseek($file_handle, $cur_pos - strlen($line), SEEK_CUR); if ($cur_pos - strlen($line) < 0) { return $fields; } else { return FALSE; } } ################################################################################ function page_header() ################################################################################ { print "\n"; print "\n"; print "
\n"; print " \n"; print "Poradove cislo | \n";
print "Utvar $utvar | \n"; print "Jmeno: $name, $titul, $oec | "; print "Rok $birth | \n"; print "Skupina ".category($cat)." | \n"; print "\n"; print " | \n"; print " |
VK: věk ".$age." pohlaví ".($sex=="male"?"muz":"zena")." věková kategorie VK".$vk." | \n"; $p1 = calculate_results_disc1($casy, $sex, $disc1, $res1, $age, $cat); $p2 = calculate_results_disc2($casy, $sex, $disc2, $res2, $age, $cat); $p3 = calculate_results_disc3($casy, $sex, $disc3, $res3, $age, $cat); print "1:".exercise($disc1)." $res1 | \n"; print "bodu: $p1 | \n"; print "2:".exercise($disc2)." $res2 | \n"; print "bodu: $p2 | \n"; print "3:".exercise($disc3)." $res3 | \n"; print "bodu: $p3 | \n"; print "
celkem ".($p1 + $p2 + $p3)." | \n"; print "hodnoceni ".final_result($p1, $p2, $p3, $cat, $disc1, $disc2, $disc3)." | \n"; print "datum $date | \n"; print "
program pracuje pouze se soubory csv, po spocitani vrati zase csv soubor, ktery lze potom vlozit do vysledne excel tabulky. Policko vek v xls se pocita automaticky.
"; switch ($action) { case 'file': process_file($casy); break; case 'show_file_form': show_upload_dialog(); break; case 'show_form': show_form(); break; case 'results': echo "