Select Git revision
index.php 1.16 KiB
<?php
require_once("./inc_functions.php");
require_once("./classes/page.class.php");
$sPrj="";
$sAction="overview";
// ------ check parameters
if (array_key_exists("prj", $aParams)) {
$sPrj=$aParams["prj"];
}
if (array_key_exists("action", $aParams)) {
if (file_exists(__DIR__ . '/act_' . $aParams["action"] . ".php")){
$sAction=$aParams["action"];
}
}
// ------ action
$sActionFile=__DIR__ . '/act_' . $sAction . ".php";
include($sActionFile);
// ------ Ausgabe
$sPhpOut='
<div id="header" style="display: none;">
IML DEPLOYMENT GUI
</div>
<br>
'. getTopArea() .'
<div id="content">
'.getAction().'
'.$sPhpOut.'
</div>
<div id="footer">
IML Deployment © '.date("Y").' <a href="http://www.iml.unibe.ch/">Institut für medizinische Lehre; Universität Bern</a>
</div>
';
$oPage = new Page();
$oPage->addResponseHeader("Pragma: no-cache");
$oPage->setOutputtype('html');
$oPage->addJsOnReady('
$(\'.tblOverview\').dataTable({
"bPaginate": false,
"bLengthChange": false
});
');
$oPage->setContent($sPhpOut);
echo $oPage->render();
?>