summaryrefslogtreecommitdiffstats
path: root/main/survey/uporabnost.php
diff options
context:
space:
mode:
Diffstat (limited to 'main/survey/uporabnost.php')
-rw-r--r--main/survey/uporabnost.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/survey/uporabnost.php b/main/survey/uporabnost.php
new file mode 100644
index 0000000..413746d
--- /dev/null
+++ b/main/survey/uporabnost.php
@@ -0,0 +1,44 @@
+<?php
+
+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">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+
+';
+
+echo '<head>'."\n\r";
+echo ' <title>OneClick Survey</title>'."\n\r";
+echo ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'."\n\r";
+echo '</head>';
+
+$anketa = $_GET['anketa'];
+
+$sql = sisplet_query("SELECT uporabnost_link FROM srv_anketa WHERE id = '$anketa'");
+$row = mysqli_fetch_array($sql);
+
+SurveySetting::getInstance()->Init($anketa);
+$uporabnost_razdeli = SurveySetting::getInstance()->getSurveyMiscSetting('uporabnost_razdeli');
+
+if (true || ($row['uporabnost_link'] != null && $row['uporabnost_link'] != "")) {
+ echo '
+ <frameset '.($uporabnost_razdeli!=1?'rows':'cols').'="50%,50%">
+ <frame name="link" src="'.(strlen($row['uporabnost_link'])>7?$row['uporabnost_link']:'').'">
+ <frame name="survey" src="'.$site_url.'main/survey/index.php?anketa='.$anketa.''.($_GET['preview']=='on'?'&preview=on':'').''.(isset($_GET['sist_link'])?'&sist_link='.$_GET['sist_link']:'').(isset($_GET['code'])?'&code='.$_GET['code']:'').'">
+ </frameset>
+ ';
+} else {
+ echo '
+ <frameset>
+ <frame name="survey" src="'.$site_url.'main/survey/index.php?anketa='.$anketa.''.($_GET['preview']=='on'?'&preview=on':'').''.(isset($_GET['sist_link'])?'&sist_link='.$_GET['sist_link']:'').(isset($_GET['code'])?'&code='.$_GET['code']:'').'">
+ </frameset>
+ ';
+}
+
+echo '
+</body>
+</html>';
+
+?> \ No newline at end of file