query($sql);
$resultArray = $Orirows->fetch_all(MYSQLI_ASSOC);
date_default_timezone_set("Asia/Calcutta");
$today = date("d-m-Y");
$cur = new DateTime( $today );
$eventMap = [
'OPEN' => ['slug' => 'buy', 'label' => 'OPEN'],
'CLOSE' => ['slug' => 'sell', 'label' => 'CLOSE'],
'ALLOTMENT' => ['slug' => 'neutral', 'label' => 'ALLOTMENT'],
'REFUND' => ['slug' => 'neutral', 'label' => 'REFUND'],
'CREDIT' => ['slug' => 'neutral', 'label' => 'CREDIT'],
'LISTING' => ['slug' => 'buy', 'label' => 'LISTING'],
];
?>
IPO Calendar
$meta): ?>
0)
{
$cnt = 1;
while($cnt <= 30)
{
$rows = $resultArray;
$day = $cur->format("d-m-Y");
$hasEvent = false;
foreach($rows as $row)
{
if($row["OPEN"] == "")
continue;
if($day == $row["OPEN"] || $day == $row["CLOSE"] || $day == $row["ALLOTMENT"] || $day == $row["REFUND"] || $day == $row["CREDIT"] || $day == $row["LISTING"])
{
$hasEvent = true;
break;
}
}
if($hasEvent)
{
$anyDayRendered = true;
$timestamp = strtotime($day);
$weekday = date('l', $timestamp);
$dayDisplay = date('d-m-Y', $timestamp); // 4-digit year
$isToday = ($day === $today);
$delay = number_format(($cnt - 1) * 0.04, 2);
?>
$meta) {
if ($day == $InsideRow[$field]) {
$metaClass = ($ipoType === 'SME') ? 'event-row__meta--sme' : '';
?>
modify('+1 day');
}
}
mysqli_close($con);
?>
i
No matching events
Try a different filter, or clear it with “All”.
i
No IPO Events Found
There are no IPO events scheduled in the next 30 days.
Description
Upcoming IPO events over the next 30 days — open, close, allotment, refund, credit and listing dates for both Mainline and SME issues.