1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216:
Calculator php functie CB_data () { globale CB, $SR, $sr_length; schakelaar (CB) { geval „ABC“: schakelaar ($SR) { geval 12: onderbreking; geval 18: onderbreking; } onderbreking; geval „DEF“: schakelaar ($SR) { geval 20: onderbreking; geval 32: onderbreking; geval 44: onderbreking; geval 56: onderbreking; } onderbreking; geval „GHI“: schakelaar ($SR) { geval 64: onderbreking; geval 86: onderbreking; geval 100: onderbreking; geval 120: onderbreking; geval 144: onderbreking; } onderbreking; } } $U = $_POST [„U“]; CB = $_POST [„CITIZENS BAND“]; $SR = $_POST [„SR“]; $XO = $_POST [„XO“]; $Xo1 = $_POST [„Xo1“]; $Xo2 = $_POST [„Xo2“]; $DT = $_POST [„DT“]; $Dt1 = $_POST [„Dt1“]; $Dt2 = $_POST [„Dt2“]; als (isset ($XO)) { cb_data (); $Z1 = $XO*10; $Z2 = $DT*100; $Z3 = $XO*$DT; $Z4 = $SR*$XO*$DT; } anders { $U = 0; CB = „DEF“; $SR = 32; $XO = 20; $Xo1= ($U==0? $XO: $XO/0.3048); $Xo2 = ($U==1? $XO: $XO*0.3048); $DT = 2.875; $Dt1 = (U==0? $DT: $DT/25.4); $Dt2 = (U==1? $DT: $DT*25.4); $Z1 = 200; $Z2 = 287.5; $Z3 = 57.5; $Z4 = 8280; cb_data (); } $english = ($U==0? „GESELECTEERD“: ""); $metric = ($U==1? „GESELECTEERD“: ""); $cb_A = (CB== " ABC "? „GESELECTEERD“: ""); $cb_D = (CB== " DEF "? „GESELECTEERD“: ""); $cb_G = (CB== " GHI "? „GESELECTEERD“: ""); $sr_12 = ($SR== " 12 "? „GESELECTEERD“: ""); $sr_18 = ($SR== " 18 "? „GESELECTEERD“: ""); $sr_20 = ($SR== " 20 "? „GESELECTEERD“: ""); $sr_32 = ($SR== " 32 "? „GESELECTEERD“: ""); $sr_44 = ($SR== " 44 "? „GESELECTEERD“: ""); $sr_56 = ($SR== " 56 "? „GESELECTEERD“: ""); $sr_64 = ($SR== " 64 "? „GESELECTEERD“: ""); $sr_86 = ($SR== " 86 "? „GESELECTEERD“: ""); $sr_100 = ($SR== " 100 "? „GESELECTEERD“: ""); $sr_120 = ($SR== " 120 "? „GESELECTEERD“: ""); $sr_144 = ($SR== " 144 "? „GESELECTEERD“: ""); ? > style= " kleur USERINPUT: U = English value= " 1 " >Metric Het CITIZENS BAND = ABC value= " DEF " >DEF value= " GHI " >GHI SR = ' size= " 8 " onBlur= " zet om (); „> DT = ' size= " 8 " onBlur= " zet om (); „> CALCULATION VLOEIT voort: Z1 (XO*10) = echo „$Z1“? > Z2 (DT*100) = echo „$Z2“? > Z3 (XO*DT) = echo „$Z3“? > Z4 (SR*XO*DT) = echo „$Z4“? > style= " kleur UNITOMZETTING: Xo1 = Xo2 = Dt1 = Dt2 = " bereken "
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225:
Calculator DE INPUT VAN DE GEBRUIKER: U = value= >English " 0 " value= " >Metric 1 " CITIZENS BAND = value= " ABC " >ABC value= " DEF " >DEF value= " GHI " >GHI SR = switch ($CB) { case "ABC": echo "12"; echo "18"; break; case "DEF": echo "20"; echo "32"; echo "44"; echo "56"; break; case "GHI": echo "64"; echo "86"; echo "100"; echo "120"; echo "144"; break; } ?> XO = 'size= " 8 " onChange= " zet om (); $ („#calculator“) .submit (); „> DT = 'size= " 8 " onChange= " zet om (); $ („#calculator“) .submit (); „> DE BEREKENING VLOEIT VOORT: Z1 (XO*10) = echo "$Z1" ?> Z2 (DT*100) = echo "$Z2" ?> Z3 (XO*DT) = echo "$Z3" ?> Z4 (SR*XO*DT) = echo "$Z4" ?> DE RESULTATEN VAN DE OMZETTING VAN DE EENHEID: Xo1 = Xo2 = Dt1 = Dt2 =