Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/php/
Upload File :
Current File : /var/www/cesa.co.za/php/scecalendartest.php

<?php 
include_once('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>
<?php add_revslider('training-calendar'); ?>
<div style="overflow-x:auto;">
<table border=0 cellspacing=0 cellpadding="0" width="80%" class="printhide">
<tr>
</tr>
<tr>
	<td colspan="2" align="left" style="vertical-align:bottom !important; font-size:12px !important"><!--<a href="http://www.cesa.co.za/public_downloads/FIDIC_INDUNA.pdf" target="_blank"><img src="http://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>&nbsp;&nbsp;<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" />&nbsp;<strong>Download as a PDF</strong></a>-->
</td></tr>
</table>
<input type="text" name="quicksearch" id="myInput" placeholder="Enter keywords to search the courses" size="40" class="printhide"><br>
<!-- <tr><td width="50%"><small>Drag the edges of the box to resize the calendar</small></td>
<td width="50%">&nbsp;</td></tr> -->
<table border=0 cellspacing=0 cellpadding="0" width="80%">
<tr><td valign="top">
<?php
include("inc_scecalendarnewtest.php");
?>
</td></tr>
</table></div>