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 { echo $application->getForm();
} private function formInit() { $this->form = ' <form method="post" action=""> <table> <tbody> <tr> <th> <label for="frm-formSelect"> Vyberte úroveň testování: </label> </th> <td> <select id="frm-formSelect" class="control-label" onclick="window[this.value]();" name="formSelect"> <option value=""> Vyberte variantu </option> <option value="setVariant0"> None </option> <option value="setVariant1"> Files&Memory </option> <option value="setVariant2"> Cross-Site </option> <option value="setVariant3"> Errors </option> <option value="setVariant4">