File manager - Edit - /home/custbahd/cornerstoneassetmanagers.com/admin/counter/get-raffle/index3.php
Back
<style type="text/css"> .auto_popup{ background-color: #000; width: 100%; height: 100%; padding: 30px 40px; position: fixed; transform: translate(-50%,-50%); left: 50%; top: 50%; border-radius: 8px; font-family: "Poppins",sans-serif; display: ; text-align: center; z-index: 9999; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -moz-backdrop-filter: blur(6px); -o-backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } .auto_popup .content{ background-color: #000; width: 420px; padding: 15px 40px; position: absolute; transform: translate(-50%,-50%); left: 50%; top: 50%; border-radius: 8px; font-family: "Poppins",sans-serif; text-align: center; background-image: url(./templates/cornerstone/common/assets/images/stock/set-goal/9.png); background-position: center; background-size: cover; } .auto_popup button{ display: block; margin: 0 0 20px auto; background-color: transparent; font-size: 20px; color: #ffffff; border-radius: 100%; width: 40px; height: 40px; border: none; outline: none; cursor: pointer; } .auto_popup h2{ color: #A87E2C; margin-top: 10px; } .auto_popup p{ font-size: 10px; margin: 10px 0; line-height: 15px; } .auto_popup a{ display: block; width: 150px; position: relative; margin: 10px auto; text-align: center; background-color: #0f72e5; border-radius: 20px; color: #ffffff; text-decoration: none; padding: 8px 0; } .auto_popup span.one{ display: block; margin-top: 20px; } .auto_popup span.two{ font-weight: bold; } .auto_popup span.three{ display: block; margin-top: 5px; } </style> <?php session_start(); include '../../db/saucerer.php'; $sql = "SELECT * FROM participants WHERE draw='1' ORDER BY last_update DESC LIMIT 1"; //$sql = "SELECT * FROM clients WHERE ban='' ORDER BY id DESC"; $result = $conn->query($sql); //display data on web page while($row = mysqli_fetch_array($result)){ //Time date_default_timezone_set('Africa/Kampala'); $start_count = date("Y-m-d H:i:s", strtotime($row['last_update'] . "+1 days")); $today = date("Y-m-d H:i:s",time()); $start_diff = new DateTimeImmutable($row['last_update']); $endd_diff = new DateTimeImmutable($today); $duration = $start_diff->diff($endd_diff); $today_diff = new DateTimeImmutable($today); $days_diff = $today_diff->diff($start_diff); //Notification Sound if ($days_diff->format('%s')>10 & $days_diff->format('%s')<30 & $days_diff->format('%i')==0 & $days_diff->format('%h')==0 & $days_diff->format('%d')==0 & $days_diff->format('%m')==0 & $days_diff->format('%y')==0) { echo '<div class="auto_popup"> <div class="content"> <h2 class="text-white"><span style="font-style: italic;">twende</span> <span class="text-gradient two">MOROCCO</span> <span class="three">NE CORNERSTONE</span></h2> <img src="../../assets/img/stock/overview/25.png" alt="Raffle Draw" width="250px"> <span class="one text-white text-uppercase" style="font-size: 25px;">Congratulations</span> <h2>'.$row["member_no"].'</h2> </div> </div>'; } else { echo ''; } } ?> <!--Script--> <script type="text/javascript"> window.addEventListener("load", function(){ setTimeout( function open(event){ document.querySelector(".auto_popup").style.display = "block"; }, 500 ) }); document.querySelector("#close").addEventListener("click", function(){ document.querySelector(".auto_popup").style.display = "none"; }); document.querySelector("#close1").addEventListener("click", function(){ document.querySelector(".auto_popup").style.display = "none"; }); </script>
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 2.59 |
proxy
|
phpinfo
|
Settings