117 lines
3.4 KiB
PHP
117 lines
3.4 KiB
PHP
![]() |
<?php
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* forma za vnos Evoli TM
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
ob_start();
|
||
|
|
||
|
header('Cache-Control: no-cache');
|
||
|
header('Pragma: no-cache');
|
||
|
|
||
|
include_once '../../../../function.php';
|
||
|
include_once('../../../../vendor/autoload.php');
|
||
|
|
||
|
|
||
|
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
|
||
|
echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';
|
||
|
|
||
|
|
||
|
echo '<head>';
|
||
|
|
||
|
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
|
||
|
|
||
|
//echo '<script type="text/javascript" src="admin/survey/script/jquery/ui-1.8.18/js/jquery-1.7.1.min.js"></script>';
|
||
|
echo '<script type="text/javascript" src="../../script/jquery/ui-1.8.18/js/jquery-1.7.1.min.js"></script>';
|
||
|
//echo '<script type="text/javascript" src="admin/survey/script/jquery/ui-1.8.18/js/jquery-ui-1.8.18.custom.min.js"></script>';
|
||
|
echo '<script type="text/javascript" src="../../script/jquery/ui-1.8.18/js/jquery-ui-1.8.18.custom.min.js"></script>';
|
||
|
//echo '<script type="text/javascript" src="admin/survey/modules/mod_EVOLI/script/script.js"></script>';
|
||
|
echo '<script type="text/javascript" src="script/script.js"></script>';
|
||
|
|
||
|
echo '<link type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700&subset=latin,latin-ext" rel="stylesheet">';
|
||
|
//echo '<link type="text/css" href="admin/survey/modules/mod_EVOLI/css/style.css" media="screen" rel="stylesheet" />';
|
||
|
echo '<link type="text/css" href="css/style.css" media="screen" rel="stylesheet" />';
|
||
|
//echo '<link type="text/css" href="admin/survey/script/jquery/ui-1.8.18/js/jquery-ui.css" media="screen" rel="stylesheet" />';
|
||
|
echo '<link type="text/css" href="../../script/jquery/ui-1.8.18/js/jquery-ui.css" media="screen" rel="stylesheet" />';
|
||
|
|
||
|
echo '<script type="text/javascript">
|
||
|
$(document).ready(function () {
|
||
|
|
||
|
$("#date_from").datepicker({
|
||
|
showOtherMonths: true,
|
||
|
selectOtherMonths: true,
|
||
|
changeMonth: true,
|
||
|
changeYear: true,
|
||
|
dateFormat: "dd.mm.yy",
|
||
|
showAnim: "slideDown",
|
||
|
showOn: "button",
|
||
|
buttonImage: "../../script/calendar/calendar.gif",
|
||
|
buttonImageOnly: true,
|
||
|
buttonText: ""
|
||
|
});
|
||
|
|
||
|
$("#date_to").datepicker({
|
||
|
showOtherMonths: true,
|
||
|
selectOtherMonths: true,
|
||
|
changeMonth: true,
|
||
|
changeYear: true,
|
||
|
dateFormat: "dd.mm.yy",
|
||
|
showAnim: "slideDown",
|
||
|
showOn: "button",
|
||
|
buttonImage: "../../script/calendar/calendar.gif",
|
||
|
buttonImageOnly: true,
|
||
|
buttonText: ""
|
||
|
});
|
||
|
})
|
||
|
</script>';
|
||
|
|
||
|
echo '</head>';
|
||
|
|
||
|
|
||
|
echo '<body>';
|
||
|
|
||
|
$evoli = new EvoliForm();
|
||
|
$evoli->setReportType($type='quality_climate');
|
||
|
|
||
|
// Glava
|
||
|
echo '<div id="tm_header"><a href="https://www.evoli.si/" title="Evoli"><img src="css/tm_logo.png" /></a></div>';
|
||
|
|
||
|
// Srednji del
|
||
|
echo '<div id="tm_body">';
|
||
|
echo ' <div id="tm_holder">';
|
||
|
|
||
|
// Submit obrazca
|
||
|
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||
|
$evoli->submitForm();
|
||
|
}
|
||
|
// Izris obrazca
|
||
|
else{
|
||
|
if($evoli->getAnkId() > 0 && $evoli->getEmail() != ''){
|
||
|
// Preverimo ce ima user dostop do obrazca (parameter pass v get-u)
|
||
|
if($evoli->checkAccess())
|
||
|
$evoli->displayForm();
|
||
|
else
|
||
|
$evoli->displayErrorAccess();
|
||
|
}
|
||
|
else{
|
||
|
$evoli->displayError();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
echo ' </div>';
|
||
|
echo '</div>';
|
||
|
|
||
|
// Footer
|
||
|
echo '<div id="tm_footer">';
|
||
|
$evoli->displayFooter();
|
||
|
echo '</div>';
|
||
|
|
||
|
echo '</body>';
|
||
|
|
||
|
|
||
|
echo '</html>';
|
||
|
|
||
|
?>
|