<th>ПІБ</th> <th>ІГС</th> <th>Досьє</th> </tr> </thead> <tbody> <?php echo candidates_table(true); ?> </tbody> </table> <br> <div> <a href="index.php" class="btn btn-default">« На початок</a> <button type="submit" class="btn btn-danger">Проголосувати »</button> </div> </form> <script> window.max_selected_limit = <?php echo get_selected_limit(); ?> ; window.current_session_lifetime = <?php echo current_session_lifetime(); ?> ; </script> <?php include "footer.php";
<?php require "system/__init__.php"; require_test_pass('captcha', 'step1.php'); require_test_pass('email', 'step2.php'); require_test_pass('mobile', 'step3.php'); next_if_test_pass('vote', 'step5.php'); /** * Handle form data */ if ($_POST) { $keys = array(); if (is_array($_POST['id'])) { $keys = array_keys($_POST['id']); } if ($keys) { $keys = filter_candidates($keys); } if (count($keys) < 1) { append_error("Ви не обрали жодного кандидата."); } elseif (count($keys) > get_selected_limit()) { append_error("Ви обрали більше ніж дозволено кандидатів."); } else { if (safe_save_vote($keys)) { set_test_passed('vote'); redirect('step5.php'); } } } require get_template('step4');