Example #1
0
                document.getElementById("frm-TestSafeMode").checked=true;
                document.getElementById("frm-TestMagicQuotesGPC").checked=true;
                document.getElementById("frm-TestMagicQuotesRuntime").checked=true;
                document.getElementById("frm-TestUseTransSid").checked=true;
            }
            function uncheckCheckboxes() {
                var inputs = document.getElementsByTagName("input");
                for (i = 0; i < inputs.length; i++)
                    if (inputs[i].type === "checkbox")
                        inputs[i].checked = false;
            }
        </script>
        <div class="container well">
            <h1 class="h1"> Test konfigurace PHP serveru </h1>
        <?php 
if ($application->getForm()->isSuccess()) {
    $array = $application->getReport();
    echo '<div class="alert alert-error">' . $array["report"] . '</div>';
    if ($array["rank"] < 5) {
        echo '<div class="alert alert-error">';
    } else {
        if ($array["rank"] < 8) {
            echo '<div class="alert">';
        } else {
            echo '<div class="alert alert-success">';
        }
    }
    echo "<p>Skóre hodnocení testu je: " . $array["rank"] . "</p>" . '</div>';
    //echo dump($arr);
    //echo dump($application->getForm()->getValues());
} else {
                             <option value="setVariant2">
                                 Cross-Site
                             </option>
                             <option value="setVariant3">
                                 Errors
                             </option>
                             <option value="setVariant4">
                                 All
                             </option>
                         </select>
                     </td>
                 </tr>
     ';
 }
 private function formFinish()
 {
     $this->form .= '
             <tr>
                 <th></th>
                 <td>
                     <input id="frm-process" class="btn button" type="submit" value="Process" name="process"></input>
                 </td>
             </tr>
         </tbody>
     </table>
     <div>
         <!--
         [if IE]><input type=IEbug disabled style="display:…
         -->
     </div>
 </form>