HEX
Server: Apache/2
System: Linux server.cloudfly.vn 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/dkhp464/public_html/wp-content/themes/DaKhoaHongPhat/inc/add-form-test.php
<?php
// short code
function form_test_nk()
{
    ob_start();
    ?>

    <section class="trac-nghiem-nk mt-3 mb-3">
        <div class="bg-trac-nghiem-nk ">
            <form action="" class="d_contact_new">
                <div class="title-form-tn-nk">
                    <h1>BÀI TEST NHANH </h1>
                    <p>
                        GIÚP BẠN GIẢI ĐÁP THẮC MẮC VỀ XUẤT TINH SỚM
                    </p>
                </div>
                <div class="bg-ques-nk">

                    <div class="ques">
                        <h3 class="title-ques-1">
                            1. Bạn nghi ngờ mình xuất tinh sớm từ khi nào?
                        </h3>
                        <input type="text" class="form-control d-none" name="check[0][ques]"
                               value=" 1. Bạn nghi ngờ mình xuất tinh sớm từ khi nào?">

                        <label><input type="radio" name="check[0][ans]" value="Lần quan hệ đầu tiên" required>
                            Lần quan hệ đầu tiên
                        </label>
                        <label><input type="radio" name="check[0][ans]" value="Đôi lúc có tình trạng như vậy" required>
                            Đôi lúc có tình trạng như vậy
                        </label>

                        <label><input type="radio" name="check[0][ans]"
                                      value="Luôn luôn xuất hiện trong mọi lần quan hệ" required>
                            Luôn luôn xuất hiện trong mọi lần quan hệ
                        </label>

                    </div>

                    <div class="ques">
                        <h3 class="title-ques-2">
                            2. Thời gian xuất tinh của bạn là bao lâu?
                        </h3>
                        <input type="text" class="form-control d-none" name="check[1][ques]"
                               value="2. Thời gian xuất tinh của bạn là bao lâu?">

                        <label><input type="radio" name="check[1][ans]" value="Từ 3 - 5 phút"
                                      required>
                            Từ 3 - 5 phút
                        </label>
                        <label><input type="radio" name="check[1][ans]" value="Xuất tinh ngay khi đưa vào âm đạo"
                                      required>
                            Xuất tinh ngay khi đưa vào âm đạo
                        </label>

                        <label><input type="radio" name="check[1][ans]" value="Chưa kịp đưa vào đã xuất tinh" required>
                            Chưa kịp đưa vào đã xuất tinh
                        </label>


                    </div>

                    <div class="ques">
                        <h3 class="title-ques-3">
                            3. Lúc gần xuất tinh bạn có kiểm soát được không?
                        </h3>
                        <input type="text" class="form-control d-none" name="check[2][ques]"
                               value="3. Lúc gần xuất tinh bạn có kiểm soát được không?">

                        <label><input type="radio" name="check[2][ans]" value="Thi thoảng có kiểm soát được" required>
                            Thi thoảng có kiểm soát được
                        </label>
                        <label><input type="radio" name="check[2][ans]" value="Xuất tinh đột ngột không kiểm soát được"
                                      required>
                            Xuất tinh đột ngột không kiểm soát được
                        </label>


                    </div>

                    <div class="ques">
                        <h3 class="title-ques-4">
                            4. Có biểu hiện bất thường khác:
                        </h3>
                        <input type="text" class="form-control d-none" name="check[3][ques]"
                               value="4. Có biểu hiện bất thường khác:">

                        <textarea class="form-control w-100" name="check[3][ans]" cols="20" rows="10"
                                  required></textarea>

                    </div>

                    <div class="ques form-input-tn-nk">

                        <div class="form-tn-nk d-flex">

                            <div class="button-container-send">
                                <button class="button-send" type="submit">GỬI
                                </button>
                            </div>

                            <input type="tel" class="form-control" pattern="[0-9]*" maxlength="12"
                                   placeholder="Nhập số điện thoại để nhận kết quả" name="phone" required>

                            <div class="d-none">
                                <input type="text" class="form-control" name="url"
                                       value="<?= (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? " https"
                                           : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" ?>">
                            </div>


                        </div>
                    </div>


                </div>

            </form>

        </div>

    </section>


    <?php
    return ob_get_clean();
}

add_shortcode('form_test_nk', 'form_test_nk');