?? bayes_wizard_step4.php
字號:
<p>STEP 4 of 5: Enter likelihood of symptoms given the disease.</p><?php$num_diseases = $_POST["num_diseases"];$num_symptoms = $_POST["num_symptoms"];$disease_labels = $_POST["disease_labels"];$symptom_labels = $_POST["symptom_labels"];$priors = $_POST["priors"];$likelihoods = $_POST["likelihoods"];?><table cellpadding='3' cellspacing='0' border='0'> <form method='post' action='<?php echo $PHP_SELF; ?>'> <input type='hidden' name='next_step' value='5'> <input type='hidden' name='num_diseases' value='<?php echo $num_diseases; ?>'> <input type='hidden' name='num_symptoms' value='<?php echo $num_symptoms; ?>'> <?php for ($h=0; $h < $num_diseases; $h++) { echo "<input type='hidden' name='disease_labels[]' value='$disease_labels[$h]'>\n"; } for ($h=0; $h < $num_symptoms; $h++) { echo "<input type='hidden' name='symptom_labels[]' value='$symptom_labels[$h]'>\n"; } for ($h=0; $h < $num_diseases; $h++) { echo "<input type='hidden' name='priors[]' value='$priors[$h]'>\n"; } ?> <tr> <td> </td> <?php for ($e=0; $e < $num_symptoms; $e++) { echo "<td align='center'><b>".$symptom_labels[$e]."</b></td>"; } ?> </tr> <?php for($h=0; $h < $num_diseases; $h++) { echo "<tr>"; echo "<td><b>".$disease_labels[$h]."</b></td>"; for ($e=0; $e < $num_symptoms; $e++) { ?> <td align='center'> <?php $value = $likelihoods[$h][$e]; echo "<input type='text' name='likelihoods[$h][$e]' value='$value' size='4' maxlength='5'>"; ?> </td> <?php } echo "</tr>"; } $num_cols = $num_symptoms + 1; ?> <tr> <td colspan='<?php echo $num_cols ?>'> <br> <input type='submit' value='Step 5 >>'> </td> </tr> </form> </table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -