| Current Path : /var/www/cesa.co.za/php/ |
| Current File : /var/www/cesa.co.za/php/scecalendarnew.php |
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/inc_db.php");
$sThisURL = "/sce/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;
}
}
.bluelink {
color: blue !important;
}
</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="background-color:#325eab; color:white; border:1px solid #325eab; border-radius:10px; width:100%;padding:5px; font-size:18px; text-align:center"><strong>CPD TRAINING CALENDAR</strong></div>
<table border=0 cellspacing=0 cellpadding="0" width="100%">
<tr>
<td width="25%" align="center" valign="middle">
<div style="border:2px solid #325eab; border-radius:10px;text-align:center;width:240px;height:80px;margin:auto;line-height:75px"><a href="<?php echo $sThisURL; ?>?cat=14<?php if (isset($_REQUEST["NumMonths"])) echo "&NumMonths=" . $_REQUEST["NumMonths"]; ?>"><img src="/images/online-courses-computer.jpg" align="left" hspace="5"> <strong>Virtual Courses</strong></a></div>
</td>
<td width="25%">
<div style="border:2px solid #325eab; border-radius:10px;text-align:center;width:240px;height:80px;margin:auto;line-height:75px"><a href="<?php echo $sThisURL; ?>?cat=13<?php if (isset($_REQUEST["NumMonths"])) echo "&NumMonths=" . $_REQUEST["NumMonths"]; ?>"><img src="/images/blue-webinar.jpg" align="left" hspace="5"> <strong>Webinars</strong></a></div>
</td>
<td width="25%">
<div style="border:2px solid #325eab; border-radius:10px;text-align:center;width:240px;height:80px;margin:auto;line-height:75px"><a href="http://www.cpd-ondemand.co.za/" target="_blank"><img src="/images/cpdondemand.jpg" align="left" hspace="5" style="border:12px solid #CCCCCC; border-width:12px 12px 13px 13px"> <strong>Study Aid Videos</strong></a></div>
</td>
<td width="25%">
<div style="border:2px solid #325eab; border-radius:10px;text-align:center;width:240px;height:80px;margin:auto;line-height:75px"><a href="http://www.cpd-ondemand.co.za/" target="_blank"><img src="/images/cpdondemand.jpg" align="left" hspace="5" style="border:12px solid #CCCCCC; border-width:12px 12px 13px 13px"> <strong>Study Aid Publications</strong></a></div>
</td>
</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 style="vertical-align:bottom !important;">
<form method="get" action="/php/calendarpdf.php?NumMonths=<?php echo $_REQUEST["NumMonths"]; ?>" target="_blank">
<input type="submit" value="Download as a PDF" style="font-size:11px; padding:10px">
</form>
</td>
<td style="vertical-align:bottom !important;">
<input type="text" name="quicksearch" id="myInput" placeholder="Enter keywords to search the calendar" size="40" style="width:300px">
</td>
<!--<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>-->
</tr>
</table>
<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>
</div>
</td>
</tr>
<?php add_revslider('sce-partners'); ?>
</table>
<?php
include_once($_SERVER['DOCUMENT_ROOT'] . "/php/templates/inc_footer.php");