mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Previews in Limesurvey should be as an interviewer
This commit is contained in:
@@ -254,7 +254,7 @@ if(isset($_SESSION['loginID']))
|
||||
}
|
||||
elseif ($action == 'previewgroup')
|
||||
{
|
||||
|
||||
$_SESSION['interviewer'] = true;
|
||||
require_once('../index.php');
|
||||
exit;
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@ $action!='vvimport' && $action!='vvexport' && $action!='exportresults')
|
||||
if (count($tmp_survlangs) == 1)
|
||||
{
|
||||
$surveysummary .= "<li><a href='#' accesskey='d' onclick=\"window.open('"
|
||||
. $publicurl."/index.php?sid={$surveyid}&newtest=Y&lang={$baselang}', '_blank')\" title=\"{$icontext2}\" >"
|
||||
. $publicurl."/index.php?sid={$surveyid}&interviewer=interviewer&newtest=Y&lang={$baselang}', '_blank')\" title=\"{$icontext2}\" >"
|
||||
. "<img src='{$imageurl}/do.png' alt='{$icontext}' />"
|
||||
. "</a></li>\n";
|
||||
|
||||
@@ -290,12 +290,12 @@ $action!='vvimport' && $action!='vvexport' && $action!='exportresults')
|
||||
. "title='{$icontext2}' accesskey='d'>"
|
||||
. "<img src='{$imageurl}/do.png' alt='{$icontext}' />"
|
||||
. "</a><ul>\n";
|
||||
$surveysummary .= "<li><a accesskey='d' target='_blank' href='{$publicurl}/index.php?sid=$surveyid&newtest=Y'>"
|
||||
$surveysummary .= "<li><a accesskey='d' target='_blank' href='{$publicurl}/index.php?sid=$surveyid&interviewer=interviewer&newtest=Y'>"
|
||||
. "<img src='{$imageurl}/do_30.png' /> $icontext </a><ul>";
|
||||
// Test Survey Language Selection Popup
|
||||
foreach ($tmp_survlangs as $tmp_lang)
|
||||
{
|
||||
$surveysummary .= "<li><a accesskey='d' target='_blank' href='{$publicurl}/index.php?sid=$surveyid&newtest=Y&lang={$tmp_lang}'>"
|
||||
$surveysummary .= "<li><a accesskey='d' target='_blank' href='{$publicurl}/index.php?sid=$surveyid&interviewer=interviewer&newtest=Y&lang={$tmp_lang}'>"
|
||||
. "<img src='{$imageurl}/do_30.png' /> ".getLanguageNameFromCode($tmp_lang,false)."</a></li>";
|
||||
}
|
||||
$surveysummary .= "</ul></li>"
|
||||
|
||||
@@ -102,7 +102,7 @@ function menuSeparator()
|
||||
}
|
||||
if (count(GetAdditionalLanguagesFromSurveyID($surveyid)) == 0)
|
||||
{
|
||||
$adminmenu .= menuItem($menutext, $menutext2, "do.png", "$publicurl/index.php?sid=$surveyid&newtest=Y&lang=$baselang");
|
||||
$adminmenu .= menuItem($menutext, $menutext2, "do.png", "$publicurl/index.php?sid=$surveyid&interviewer=interviewer&newtest=Y&lang=$baselang");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -123,7 +123,7 @@ function menuSeparator()
|
||||
{
|
||||
$adminmenu .= "<li><a accesskey='d' onclick=\"$('.dosurvey').qtip('hide');"
|
||||
."\" target='_blank' href='{$publicurl}/index.php?sid=$surveyid&"
|
||||
."newtest=Y&lang={$tmp_lang}'>".getLanguageNameFromCode($tmp_lang,false)."</a></li>";
|
||||
."interviewer=interviewer&newtest=Y&lang={$tmp_lang}'>".getLanguageNameFromCode($tmp_lang,false)."</a></li>";
|
||||
}
|
||||
$adminmenu .= "</ul></div>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user