2 ) $typ = 4; $izw = $typ*$iuc; if( $izw > 99 ){ $dajp = 1; } if( $l > 3 ) $tab = 1; } elseif( $_SERVER['REQUEST_METHOD'] == 'POST' ){ $progu1 = $_POST['pru1']; // dla pierwszych progu1% uczestników $progp1 = $_POST['prp1']; // ostatni dostaje progp1% maximum punktów $progu2 = $_POST['pru2']; // dla kolejnych (progu2-progu1)% uczestników $progp2 = $_POST['prp2']; // ostatni dostaje 10*progp2% maximum punktów $progu3 = $_POST['pru3']; // dla kolejnych (progu3-progu2)% uczestników $rgg = $_POST['rgg']; $rgp = $_POST['rgp']; $rot = $_POST['rot']; $rok = $_POST['rok']; $r40 = $_POST['r40']; $rtp = $_POST['rtp']; $rtd = $_POST['rtd']; $rtr = $_POST['rtr']; $rto = $_POST['rto']; $rtk = $_POST['rtk']; $typ = $_POST['typ']; $rng = $_POST['rng']; $zaw = $_POST['zaw']; $min1 = $_POST['min1']; $min2 = $_POST['min2']; $min3 = $_POST['min3']; $min4 = $_POST['min4']; $min5 = $_POST['min5']; $min6 = $_POST['min6']; $min7 = $_POST['min7']; $min8 = $_POST['min8']; $min9 = $_POST['min9']; switch( $rng ){ case 20: $rng = $rgg; $xrng = $xrgg; $minpkl = $min1; break; case 16: $rng = $rgp; $xrng = $xrgp; $minpkl = $min2; break; case 12: $rng = $rot; $xrng = $xrot; $minpkl = $min3; break; case 9: $rng = $rok; $xrng = $xrok; $minpkl = $min4; break; case 8: $rng = $r40; $xrng = $xr40; $minpkl = $min5; break; case 7: $rng = $rtp; $xrng = $xrtp; $minpkl = $min6; break; case 6: $rng = $rtd; $xrng = $xrtd; $minpkl = $mind; break; case 5: $rng = $rtr; $xrng = $xrtr; $minpkl = $min7; break; case 3: $rng = $rto; $xrng = $xrto; $minpkl = $min8; break; case 2: $rng = $rtk; $xrng = $xrtk; $minpkl = $min9; break; } $iuc = $_POST['iuc']; if( $typ>2 ) $typ = 4; $izw = $typ*$iuc; if( $izw > 99 ){ $dajp = 1; } $swk = $_POST['swk']; $tab = 1; } ?>