summaryrefslogtreecommitdiffstats
path: root/main/survey/uporabnost.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
commit19985dbb8c0aa66dc4bf7905abc1148de909097d (patch)
tree2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /main/survey/uporabnost.php
download1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip
Diffstat (limited to '')
-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