| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/scecalendar.php |
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/inc_db.php");
$sThisURL = "/sce/school-of-consulting-engineers/cpd-training/training-calendar/";
$NumMonths = 4;
if (isset($_REQUEST["NumMonths"])) {
if ($_REQUEST["NumMonths"] == "yend") {
$NumMonths = 13 - date("m");
} else {
$NumMonths = intval($_REQUEST["NumMonths"]);
}
}
?>
<style>
.smallfonts {
border: 1px solid;
border-collapse: collapse;
}
.smallfonts td {
font-family: Tahoma;
font-size: 10px;
border: 1px solid #CCCCCC;
}
.smallfonts th {
font-family: Tahoma;
font-size: 12px;
}
@media screen {
div#tbl-container {
width: 650px;
height: 350px;
overflow: auto;
position: absolute;
left: 220px;
border: 2px outset;
background-color: white;
}
/*table {
table-layout: fixed;
border-collapse: collapse;
}*/
td.locked,
th.locked {
position: relative;
z-index: 10;
text-align: center;
}
.eventname {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
color: blue;
}
}
@media print {
@page {
size: landscape;
}
.printhide {
display: none;
}
.elementor-widget-social-icons {
display: none;
}
.site-footer {
display: none;
}
.elementor-widget-ekit-nav-menu {
display: none;
}
}
</style>
<script>
jQuery(document).ready(function() {
jQuery("#myInput").on("keyup", function() {
var value = jQuery(this).val().toLowerCase();
jQuery("#tbl tbody tr").filter(function() {
jQuery(this).toggle(jQuery(this).text().toLowerCase().indexOf(value) > -1)
});
});
});
</script>
<div style="overflow-x:auto;">
<table border=0 cellspacing=0 cellpadding="0" width="100%" class="printhide">
<tr>
</tr>
<tr>
<td colspan="2" align="left" style="vertical-align:bottom !important; font-size:12px !important">
<!--<a href="https://www.cesa.co.za/public_downloads/FIDIC_INDUNA.pdf" target="_blank"><img
src="https://www.cesa.co.za/images/scroller/Induna_Course_Banner.jpg"></a>-->
<form method="get" action="<?php echo $sThisURL; ?>">
<?php if (isset($_REQUEST["cat"])) echo '<input type="hidden" name="cat" value="' . intval($_REQUEST["cat"]) . '">'; ?>
Number
of months to display: <select name="NumMonths" style="width:150px; height:25px; min-height:25px; font-size:12px">
<option value="6" <?php if (!isset($_REQUEST["NumMonths"]) || ($_REQUEST["NumMonths"] == "6")) echo " selected"; ?>>Next 6 months</option>
<option value="12" <?php if ($_REQUEST["NumMonths"] == "12") echo " selected"; ?>>Next 12 months</option>
<option value="yend" <?php if ($_REQUEST["NumMonths"] == "yend") echo " selected"; ?>>To end of year</option>
</select> <input type="submit" value="Update Calendar" style="font-size:11px; padding:10px">
</form>
</td>
<td colspan="2" style="vertical-align:bottom !important;">
<form method="get" action="/php/calendarpdf.php" target="_blank">
<input type="hidden" name="cat" value="<?php echo $_REQUEST["cat"]; ?>">
<input type="hidden" name="NumMonths" value="<?php echo $_REQUEST["NumMonths"]; ?>">
<input type="submit" value="Download as a PDF" style="font-size:11px; padding:10px">
</form>
<!--<a href="/php/calendarpdf.php?NumMonths=<?php echo $_REQUEST["NumMonths"]; ?>" target="_blank"><img
src="https://www.cesa.co.za/images/icon_pdf.gif" border="0" align="absmiddle" /> <strong>Download as a PDF</strong></a>-->
</td>
</tr>
</table>
<table width="100%">
<tr>
<td width=70%>
<input type="text" name="quicksearch" id="myInput" placeholder="Enter keywords to search the courses" size="40" class="printhide"><br>
</td>
<td width=30% align="right">
Scroll vertically and horizontally to view upcoming training dates
</td>
</tr>
</table>
<!-- <tr><td width="50%"><small>Drag the edges of the box to resize the calendar</small></td>
<td width="50%"> </td></tr> -->
<table border=0 cellspacing=0 cellpadding="0" width="80%">
<tr>
<td valign="top">
<?php
include($_SERVER['DOCUMENT_ROOT'] . "/php/inc_scecalendarnew.php");
?>
<!--</td><td valign="top">
<div style="border:1px solid #325eab; border-radius:10px;text-align:center;">
<img src="https://www.cesa.co.za/sce/wp-content/uploads/sites/4/2020/03/logo-sce.png" width="200">
<br>
<a href="https://www.cesa.co.za/sce/school-of-consulting-engineers/business-of-consulting-engineering-bce/"><img src="/images/BCE_Tower.jpg"></a>
<br>
<b style="color:black"><u>SCE Partners</u></b><br><br>
<img src="/images/candidateacademy.png" width="200" style="padding:2px"><br><br>
<img src="/images/cpdondemandservice.jpg" width="180" style="padding:2px"><br><br>
<img src="/images/saicepdp.png" width="200" style="padding:2px"><br><br>
<img src="/images/Webinars_On-Demand.png" width="100" style="padding:2px"><br><br>-->
</td>
</tr>
</table>
</div>
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . '/php/templates/inc_footer.php');