2 ) $typ = 4; $izw = $typ*$iuc; if( $izw > 99 ){ $dajp = 1; } if( $l > 3 ) $tab = 1; } else*/if( $_SERVER['REQUEST_METHOD'] == 'POST' ){ $rozdan = $_POST['rozdan']; $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']; $rok1 = $_POST['rok1']; $rok = $_POST['rok']; $rtp = $_POST['rtp']; $rto = $_POST['rto']; $rtk = $_POST['rtk']; $rgg_ = $_POST['rgg_']; $rgp_ = $_POST['rgp_']; $rot_ = $_POST['rot_']; $rok1_ = $_POST['rok1_']; $rok_ = $_POST['rok_']; $rtp_ = $_POST['rtp_']; $rto_ = $_POST['rto_']; $rtk_ = $_POST['rtk_']; $typ = $_POST['typ']; $rng = $_POST['rng']; $zaw = $_POST['zaw']; $mnoznikRZD = $_POST['mnoznikRZD']; $rzd = $_POST['rzd']; $min1 = $_POST['min1']; $min2 = $_POST['min2']; $min3 = $_POST['min3']; $min4 = $_POST['min4']; $min5 = $_POST['min5']; $min6 = $_POST['min6']; $min7 = $_POST['min7']; $min8 = $_POST['min8']; $min1_ = $_POST['min1_']; $min2_ = $_POST['min2_']; $min3_ = $_POST['min3_']; $min4_ = $_POST['min4_']; $min5_ = $_POST['min5_']; $min6_ = $_POST['min6_']; $min7_ = $_POST['min7_']; $min8_ = $_POST['min8_']; if(!$rozdan): switch( $rng ){ case 1: $rng = $rgg; $minpkl = $min1; break; case 2: $rng = $rgp; $minpkl = $min2; break; case 3: $rng = $rot; $minpkl = $min3; break; case 4: $rng = $rok1; $minpkl = $min4; break; case 5: $rng = $rok; $minpkl = $min5; break; case 6: $rng = $rtp; $minpkl = $min6; break; case 7: $rng = $rto; $minpkl = $min7; break; case 8: $rng = $rtk; $minpkl = $min8; break; } else: switch( $rng ){ case 1: $rng = $rgg_; $minpkl = $min1_; break; case 2: $rng = $rgp_; $minpkl = $min2_; break; case 3: $rng = $rot_; $minpkl = $min3_; break; case 4: $rng = $rok1_; $minpkl = $min4_; break; case 5: $rng = $rok_; $minpkl = $min5_; break; case 6: $rng = $rtp_; $minpkl = $min6_; break; case 7: $rng = $rto_; $minpkl = $min7_; break; case 8: $rng = $rtk_; $minpkl = $min8_; break; } endif; $iuc = $_POST['iuc']; if( $typ>2 ) $typ = 4; $izw = $typ*$iuc; if( $izw > 99 ){ $dajp = 1; } $swk = $_POST['swk']; $tab = 1; } ?>