File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/SMENotification.php
Back
<!DOCTYPE html> <html lang="en" class="loading"> <head> <title>Share Market IPO</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="app-assets/vendors/js/sweetalert2.min.js"></script> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/sweetalert2.min.css"> <link rel="apple-touch-icon" sizes="60x60" href="app-assets/img/ico/apple-icon-60.png"> <link rel="apple-touch-icon" sizes="76x76" href="app-assets/img/ico/apple-icon-76.png"> <link rel="apple-touch-icon" sizes="120x120" href="app-assets/img/ico/apple-icon-120.png"> <link rel="apple-touch-icon" sizes="152x152" href="app-assets/img/ico/apple-icon-152.png"> <link rel="shortcut icon" type="image/x-icon" href="app-assets/img/ico/favicon.ico"> <link rel="shortcut icon" type="image/png" href="app-assets/img/ico/favicon-32.png"> <link href="https://fonts.googleapis.com/css?family=Rubik:300,400,500,700,900%7CMontserrat:300,400,500,600,700,800,900" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="app-assets/fonts/feather/style.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/fonts/simple-line-icons/style.css"> <link rel="stylesheet" type="text/css" href="app-assets/fonts/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/perfect-scrollbar.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/prism.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/vendors/css/chartist.min.css"> <link rel="stylesheet" type="text/css" href="app-assets/css/app.css"> </head> <body data-col="2-columns" class=" 2-columns "> <!--ValidateUser--> <?php header('Access-Control-Allow-Origin: https://applyipo.in/'); ?> <?php header('Access-Control-Allow-Methods: GET, POST, PUT'); ?> <?php header('Access-Control-Allow-Headers: Content-Type'); ?> <?php session_start(); if(!isset($_SESSION['user'])){ $page = "login.php"; header("location:$page"); exit; } require_once('Connection.php'); $sql = "SELECT `id` AS 'ID',`c_name` AS 'NAME',`ipokey` AS 'IPOKEY',`ipo_open` AS 'OPEN',`ipo_close` AS 'CLOSE',`ipo_listing` AS 'LISTING',`o_price` AS 'PRICE',`m_application` AS 'APP',`GMP` AS 'GMP',`emoji` AS 'EMOJI' FROM `ipo_post` WHERE `status` = 'PRESENT' && `TYPE` = 'S';"; $rows = $con->query($sql); ?> <div class="wrapper"> <!--Navbar menu--> <?php include("Navbar.php"); ?> <div class="main-panel"> <div class="main-content"> <div class="content-wrapper"> <div class="container-fluid"> <div class="row"> <?php $no = 1; while($row = $rows->fetch_assoc()) { $row['NAME'] = str_replace("IPO","SME IPO",$row['NAME']); if($row['OPEN'] == '') continue; ?> <div class="col-md-6"> <div class="card"> <div class="card-header"> <div class="card-title-wrap bar-primary"> <h4 class="card-title" id="horz-layout-icons"><div id="ipoName<?php echo $no;?>"><?php echo $row['NAME'] . ' ' . $row["EMOJI"] ?></div></h4> <div style="display: none" id="IPOEmoji<?php echo $no;?>"><?php echo $row['EMOJI']; ?></div> <div style="display: none" id="IPOAPPLYID<?php echo $no;?>"><?php echo $row['IPOKEY']; ?></div> <div style="display: none" id="IPONameOnly<?php echo $no;?>"><?php echo $row['NAME']; ?></div> <div style="display: none" id="IPOPriceOnly<?php echo $no;?>"><?php echo $row['PRICE']; ?></div> <div style="display: none" id="ListingDesc">👉🏻 Listing Tomorrow 👉🏻 Click to View Details</div> <div style="display: none" id="AllotmentDesc">👉🏻 Allotment is Out 👉🏻 Click here to check allotment</div> <div style="display: none" id="ipoApplyInfo<?php echo $no;?>">💵 Price: Rs <?php echo $row['PRICE']; ?> Per Share 💰 Lot Size: <?php echo $row['APP']; ?> Shares 🪙 <?php echo $row['GMP']; ?> 👉🏻 Apply Using Share Market IPO App ...</div> <div style="display: none" id="UpcomingIPOInfo<?php echo $no;?>"><?php echo $row['EMOJI']. ' ' . $row['NAME'] ?> Open from <?php echo date('j F Y', strtotime($row['OPEN'])); ?> 🔔 - IPO Dates - IPO Price - IPO GMP - Issue Object - Company Financial Hurry Up, Check Full Information 🚀🚀</div> <div style="display: none" id="TommorrowIPOInfo<?php echo $no;?>">👉🏻 Opening Tomorrow 🔔 - IPO Dates - IPO Price - IPO GMP - Issue Object - Company Financial Hurry Up, Check Full Information 🚀🚀</div> </div> </div> <div class="card-body"> <div class="px-3"> <div class="form form-horizontal" > <div class="form-body"> <div class="form-group row" style="display: none"> <label class="col-md-3 label-control" for="timesheetinput1">ID: </label> <div class="col-md-9"> <div class="position-relative has-icon-left"> <input type="text" id="ID<?php echo $no;?>" class="form-control" name="ipo_id" value="<?php if(isset($row)){ echo $row['ID']; } ?>" required readonly> <div class="form-control-position"> <i class="icon-user"></i> </div> </div> </div> </div> <div class="form-group row"> <label class="col-md-3 label-control" for="basicSelect">Select Notification: </label> <div class="col-md-9"> <div class="position-relative"> <select class="custom-select d-block w-100" onchange="changeNoti(<?php echo $no;?>)" id="basicSelect<?php echo $no;?>"> <option>Select Option</option> <?php $today = date("d-m-Y"); $tommorrow = date('d-m-Y', strtotime("+1 day")); if($today == $row['OPEN']) { echo "<option value='TODAY_$no'>Open Today</option>"; } else if($row['OPEN'] == $tommorrow) { echo "<option value='TOMMORROW_$no'>Opening Tomorrow</option>"; echo "<option value='PREAPPLY_$no'>Pre Apply IPO Started</option>"; } else if(strtotime($row['OPEN']) > strtotime($today)) { echo "<option value='OPENFROM_$no'>Open On " . $row['OPEN'] . "</option>"; echo "<option value='PREAPPLY_$no'>Pre Apply IPO Started</option>"; } if($today == $row['CLOSE']) { echo "<option value='LASTDAY_$no'>Closing Today</option>"; } if(strtotime($today) >= strtotime($row['OPEN']) && strtotime($today) <= strtotime($row['CLOSE'])) { $diff = round((strtotime($today) - strtotime($row['OPEN'])) / (60 * 60 * 24)); if($diff == 0) echo "<option value='DAY_$no'>🥇1st Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; else if($diff == 1) echo "<option value='DAY_$no'>🥈2nd Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; else if($diff == 2) echo "<option value='DAY_$no'>🥉3rd Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; else if($diff == 3) echo "<option value='DAY_$no'>📢4th Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; else if($diff == 4) echo "<option value='DAY_$no'>📢5th Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; else echo "<option value='DAY_$no'>📢$diff Day - " . $row['NAME'] . ' ' . $row["EMOJI"] . "</option>"; echo "<option value='SUB_$no'>Subscription</option>"; } if(strtotime($row['CLOSE']) < strtotime($today)) { echo "<option value='ALLOTMENT_$no'>Allotment</option>"; echo "<option value='LISTING_$no'>Lising Information</option>"; echo "<option value='LISTED_$no'>IPO Listed</option>"; } ?> </select> </div> </div> </div> <div class="form-group row"> <label class="col-md-3 label-control" for="timesheetinput2">Notification : </label> <div class="col-md-9"> <div class="position-relative"> <input type="text" id="heading<?php echo $no;?>" class="form-control" name="ipoc_name" value=""> </div> </div> </div> <div class="form-group row" style="display: none" id="ListingTextBox<?php echo $no;?>"> <label class="col-md-3 label-control" for="timesheetinput2">Listing Price : </label> <div class="col-md-3"> <div class="position-relative"> <input type="text" id="ListedPrice<?php echo $no;?>" class="form-control" onkeyup="UpdateListedMsg(<?php echo $no;?>)" value=""> </div> </div> <label class="col-md-3 label-control">Offer Price : </label> <div class="col-md-3"> <div class="position-relative"> <input type="text" class="form-control" value="<?php echo $row["PRICE"]; ?>" readonly> </div> </div> </div> <div class="form-group row"> <div class="col-md-12"> <div class="position-relative"> <textarea class="form-control" id="DisplayMessage<?php echo $no;?>" name="displaymsg" rows="5" spellcheck="false"></textarea> </div> </div> </div> <div class="form-group right"> <button onclick="DoAction(<?php echo $no; ?>)" id="Button<?php echo $no;?>" class="btn btn-success"> <i class="icon-paper-plane"></i> Send Notification </button> </div> </div> </div> </div> </div> </div> </div> <?php $no = $no + 1; } ?> </div> </div> </div> </div> </div> </div> <!-- ////////////////////////////////////////////////////////////////////////////--> <!-- BEGIN VENDOR JS--> <script> function DoAction(id) { var heading = document.getElementById("heading" + id).value; var message = document.getElementById("DisplayMessage" + id).value; var action = document.getElementById("basicSelect" + id).value; if(action.includes("_")) { const myArray1 = action.split("_"); action = myArray1[0]; } if(action == "LISTING") { $.post("./notification/send_noti.php", {title: heading,msg: message,activity: "in.pratiksachaniya.sharemarket_ipo.IPO_NEWS"}, function(result){ $("#Button" + id).html(result); }); } else if(action == "LISTED" || action == "ALLOTMENT" || action == "TOMMORROW" || action == "OPENFROM" || action == "LASTDAY" || action == "TODAY" || action == "DAY" || action == "SUB" || action == "PREAPPLY") { $.post("./notification/send_noti.php", {title: heading,msg: message,activity: "in.pratiksachaniya.sharemarket_ipo.SME_IPO"}, function(result){ $("#Button" + id).html(result); }); } } function UpdateListedMsg(num) { var listedPrice = $("#ListedPrice" + num).val(); var ipoPrice = $('#IPOPriceOnly' + num).text(); if (ipoPrice.includes('-')) { ipoPrice = ipoPrice.split("-"); ipoPrice = ipoPrice[1]; } var diff = listedPrice - ipoPrice; var per = ((diff*100) / ipoPrice).toFixed(2); if(diff >= 0) { $("#DisplayMessage" + num).val("👉🏻 Listed at Rs " + listedPrice + " against the offer price of Rs " + ipoPrice + " at Premium of +" + per + "% ⬆️"); } else { $("#DisplayMessage" + num).val("👉🏻 Listed at Rs " + listedPrice + " against the offer price of Rs " + ipoPrice + " at Discount of " + per + "% ⬇️"); } } function changeNoti(num) { var DropVal = $("#basicSelect" + num).val(); DropVal = DropVal.split("_"); var day = DropVal[0]; var no = DropVal[1]; var ipoName = $('#ipoName' + no).text(); var ipoNameOnly = $('#IPONameOnly' + no).text(); var ipoapplyid = $('#IPOAPPLYID' + no).text(); var IPOEmoji = $('#IPOEmoji' + no).text(); var ipoApplyInfo = $('#ipoApplyInfo' + no).text(); var allotmentDesc = $('#AllotmentDesc').text(); var listingDesc = $('#ListingDesc').text(); var UpcomingIPOInfo = $('#UpcomingIPOInfo' + no).text(); var TommorrowIPOInfo = $('#TommorrowIPOInfo' + no).text(); if(day == "LISTED") { $("#heading" + no).val(IPOEmoji + ' ' + ipoNameOnly + ' Listed 📢'); $("#ListingTextBox" + no).show(); } else { $("#ListingTextBox" + no).hide(); } if(day == "LASTDAY") { $("#heading" + no).val('🥉 Last Day - ' + ipoName); $("#DisplayMessage" + no).val(ipoApplyInfo); } else if(day == "TODAY") { $("#heading" + no).val('🥇 1st Day - ' + ipoName); $("#DisplayMessage" + no).val(ipoApplyInfo); } else if(day == "DAY") { $("#heading" + no).val($( "#basicSelect" + no + " option:selected").text()); $("#DisplayMessage" + no).val(ipoApplyInfo); } else if(day == "SUB") { $("#heading" + no).val('📢 ' + ipoName); $.get( "CurrentSub.php?ipo=" + ipoapplyid, function( data ) { $("#DisplayMessage" + no).val(data); }); } else if(day == "OPENFROM") { $("#heading" + no).val('📢 ' + ipoName); $("#DisplayMessage" + no).val(UpcomingIPOInfo); } else if(day == "TOMMORROW") { $("#heading" + no).val('📢 ' + ipoName); $("#DisplayMessage" + no).val(TommorrowIPOInfo); } else if(day == "PREAPPLY") { $("#heading" + no).val('📢 Pre-Apply ' + ipoName); $("#DisplayMessage" + no).val(ipoApplyInfo); } else if(day == "ALLOTMENT") { $("#heading" + no).val(IPOEmoji + ' ' + ipoNameOnly + ' 📢'); $("#DisplayMessage" + no).val(allotmentDesc); } else if(day == "LISTING") { $("#heading" + no).val(IPOEmoji + ' ' + ipoNameOnly + ' 📢'); $("#DisplayMessage" + no).val(listingDesc); } } </script> <script src="app-assets/vendors/js/core/jquery-3.3.1.min.js"></script> <script src="app-assets/vendors/js/core/popper.min.js"></script> <script src="app-assets/vendors/js/core/bootstrap.min.js"></script> <script src="app-assets/vendors/js/perfect-scrollbar.jquery.min.js"></script> <script src="app-assets/vendors/js/prism.min.js"></script> <script src="app-assets/vendors/js/jquery.matchHeight-min.js"></script> <script src="app-assets/vendors/js/screenfull.min.js"></script> <script src="app-assets/vendors/js/pace/pace.min.js"></script> <!-- BEGIN VENDOR JS--> <!-- BEGIN PAGE VENDOR JS--> <script src="app-assets/vendors/js/chartist.min.js"></script> <!-- END PAGE VENDOR JS--> <!-- BEGIN CONVEX JS--> <script src="app-assets/js/app-sidebar.js"></script> <script src="app-assets/js/notification-sidebar.js"></script> <!-- END CONVEX JS--> <!-- BEGIN PAGE LEVEL JS--> <script src="app-assets/js/dashboard-ecommerce.js"></script> <!-- END PAGE LEVEL JS--> <script>(function(){var js = "window['__CF$cv$params']={r:'821c5b935ca4077b',t:'MTY5OTI2MzQ0NS4zMzMwMDA='};_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js',document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"821c5b935ca4077b","r":1,"version":"2023.10.0","token":"3747aade8683445eb7a899582157f7d4"}' crossorigin="anonymous"></script> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"8224c09eeace0772","r":1,"version":"2023.10.0","token":"3747aade8683445eb7a899582157f7d4"}' crossorigin="anonymous"></script> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"8224c3eafbaf0d9e","r":1,"version":"2023.10.0","token":"3747aade8683445eb7a899582157f7d4"}' crossorigin="anonymous"></script> <script defer src="https://static.cloudflareinsights.com/beacon.min.js/v84a3a4012de94ce1a686ba8c167c359c1696973893317" integrity="sha512-euoFGowhlaLqXsPWQ48qSkBSCFs3DPRyiwVu3FjR96cMPx+Fr+gpWRhIafcHwqwCqWS42RZhIudOvEI+Ckf6MA==" data-cf-beacon='{"rayId":"8224fcee5e860c3f","r":1,"version":"2023.10.0","token":"3747aade8683445eb7a899582157f7d4"}' crossorigin="anonymous"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings