</div> <?php if ($comments != '') { echo '<div class="col-md-6">'; echo '<div class="panel panel-default">'; echo '<div class="panel-heading">Comments </div>'; echo '<div class="panel-body">' . $comments . '</div>'; echo '</div></div>'; } ?> </div> <?php $llmc_lgu = ""; $str_entry_timestamp = strtotime($release[0]->entry_timestamp); if (isInstantaneous($str_entry_timestamp)) { $str_entry_timestamp = roundTime($str_entry_timestamp) - 4 * 3600; } else { $str_entry_timestamp = roundTime($str_entry_timestamp); } $temp = date("j F Y, h:i A", $str_entry_timestamp + 3.5 * 3600); $time = date("h:i A", $str_entry_timestamp + 3.5 * 3600); $time = date_create_from_format('h:i A', $time); $date1 = date_create('3:30 PM'); $date2 = date_create('7:30 AM'); if ($time > $date1 || $time < $date2) { if ($time > $date1) { $datetime = date("j F Y,", strtotime('+1 day', strtotime($temp))) . " 7:30 AM"; } else { $datetime = date("j F Y,", strtotime($temp)) . " 7:30 AM"; }
Linked at [host]/gold/bulletin-editor/$id --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js"></script> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <?php $event = array_pop(json_decode($event)); $release = json_decode($release); $triggers = json_decode($triggers); $responses = json_decode($responses); if ($public_alert_level != 'A0') { $event->validity = $validity; } $release_time = isInstantaneous(strtotime($release->data_timestamp)) ? $release->data_timestamp : date("j F Y, h:i A", strtotime($release->data_timestamp) + 1800); $temp_date = date('jMY_gA', strtotime($release_time)); $temp_date = str_replace("12AM", "12MN", $temp_date); $temp_date = str_replace("12PM", "12NN", $temp_date); $filename = strtoupper($event->name) . "_" . $temp_date; ?> <style type="text/css"> @font-face { font-family: 'Arial'; src: url('/fonts/Arial/arial.ttf'), url('/fonts/Arial/ArialMT.otf'), url('/fonts/Arial/ArialMT.woff') format('woff'); font-weight: normal; font-style: normal;
?> images/bulletin/alert-table.png"><i>Alert Levels and Recommended Responses</a></i> for references.</p></div> </div> </div> </div> </div> </div> <div class="row rowIndent" id="footer"> <div class="col-sm-12"> <div class="row"> <?php $next_release = isInstantaneous(strtotime($release->data_timestamp)) ? roundTime(strtotime($release->data_timestamp)) : roundTime(strtotime($release->data_timestamp)) + 4 * 3600; if ($public_alert_level != 'A0') { echo '<b>Next bulletin on: </b>' . amPmConverter(date("j F Y, h:i A", $next_release)); } ?> </div> <div class="row" style="margin-top: 5px; margin-bottom: 5px;"><b>Prepared by: </b> <?php preg_match_all('#([A-Z]+)#', $reporters['reporter_mt'], $matches); foreach ($matches[0] as $key) { echo $key; } echo ", "; preg_match_all('#([A-Z]+)#', $reporters['reporter_ct'], $matches); foreach ($matches[0] as $key) { echo $key;