MMCT TEAM
Server IP : 103.53.40.154  /  Your IP : 3.145.66.104
Web Server : Apache
System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : ppcad7no ( 715)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0750) :  /home2/ppcad7no/semipreciousslab.com/../cablecubby.in/../bsaec.in/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home2/ppcad7no/semipreciousslab.com/../cablecubby.in/../bsaec.in/popup.php
    <style>
        .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    width: 400px;
    text-align: center;
    z-index: 1000;
    display: none;
}

.close-btn {
    
    color: #edc0c0;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.form-floating{
    border:1px solid brown;
}
    </style>
    <div Style="z-index:9999" class="popupp">
    <div class="container">
        <div class="row">
            <div class="col">
                 <div class="popup-overlay"></div>
    <div class="popup">
        <h2>Welcome!</h2>
        <p>Enquiry Now</p>
          <form action="<?php $_PHP_SELF ?>" method="POST">
                        <div class="row g-3">
                            <div class="col-12">
                                <div class="form-floating">
                                    <input type="text" class="form-control border-0 bg-light" id="name" name="name" placeholder="Your Name" required>
                                    <label for="name">Your Name</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <div class="form-floating">
                                    <input type="email" class="form-control border-0 bg-light" id="email" name="email" placeholder="Your Email" required>
                                    <label for="email">Your Email</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <div class="form-floating">
                                    <input type="text" class="form-control border-0 bg-light" id="phone" name="phone" minlength="10" maxlength="10" placeholder="Phone no." required>
                                    <label for="phone">Phone Number</label>
                                </div>
                            </div>
                            <div class="col-12">
                                <div class="form-floating">
                                    <!--<label for="subject">Select Your Subject:</label><br>-->
                                    <select for="subject" class="form-control border-0 bg-light" id="subject" name="subject" required>
                                        <option value="">Select Your Subject</option>
                                        <?php
                                        include ('admin/config.php');
                                        $sql02 = "SELECT * FROM `tb_services`";
                                        $run02 = mysqli_query($db,$sql02) or die("Query Not run");
                                        while($data02 = mysqli_fetch_assoc($run02)){
                                            ?>
                                            <option value="<?php echo $data02['name']?>"><?php echo $data02['name']?></option>
                                        <?php } ?>
                                    </select>
                                    <span id="subject-error" class="error"></span>
                                    
                                </div>
                            </div>
                            <!--<div class="col-12">-->
                            <!--    <div class="form-floating">-->
                            <!--        <textarea class="form-control border-0 bg-light" name="message" placeholder="Leave a message here" id="message" style="height: 150px"></textarea>-->
                            <!--        <label for="message">Message</label>-->
                            <!--    </div>-->
                            <!--</div>-->
                            <div class="col-12">
                                <button class="btn btn-primary py-3 px-5" type="submit" name="submit1">Send Message</button>
                            </div>
                        </div>
                    </form>
                    <script>
                        function validateForm() {
                            var subject = document.getElementById("subject");
                            var subjectError = document.getElementById("subject-error");

                            if (subject.value === "") {
                                subjectError.textContent = "Please select a subject.";
                                subjectError.style.display = "block";
                                return false;
                            } else {
                                subjectError.style.display = "none";
                                return true;
                            }
                        }
                    </script>
        <button style="color:brown" class="close-btn">Close</button>
    </div>
            </div>
        </div>
    </div>
</div>

MMCT - 2023