2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Replaced _top with _self to make sure windows only open within frame

This commit is contained in:
azammitdcarf
2008-11-24 00:33:26 +00:00
parent 6bc4df1b68
commit 60488e7aaa
26 changed files with 121 additions and 121 deletions

View File

@@ -255,7 +255,7 @@ if (!isset($_POST['ok']) || !$_POST['ok'])
$activateoutput .= "\t</tr>\n"; $activateoutput .= "\t</tr>\n";
$activateoutput .= "\t<tr>\n"; $activateoutput .= "\t<tr>\n";
$activateoutput .= "\t\t<td align='center'>\n"; $activateoutput .= "\t\t<td align='center'>\n";
// $activateoutput .= "\t\t\t<input type='submit' value=\"".$clang->gT("Activate Survey")."\" onclick=\"window.open('$scriptname?action=activate&amp;ok=Y&amp;sid={$_GET['sid']}', '_top')\" />\n"; // $activateoutput .= "\t\t\t<input type='submit' value=\"".$clang->gT("Activate Survey")."\" onclick=\"window.open('$scriptname?action=activate&amp;ok=Y&amp;sid={$_GET['sid']}', '_self')\" />\n";
$activateoutput .= "\t\t\t<input type='submit' value=\"".$clang->gT("Activate Survey")."\" onclick=\"".get2post("$scriptname?action=activate&amp;ok=Y&amp;sid={$_GET['sid']}")."\" />\n"; $activateoutput .= "\t\t\t<input type='submit' value=\"".$clang->gT("Activate Survey")."\" onclick=\"".get2post("$scriptname?action=activate&amp;ok=Y&amp;sid={$_GET['sid']}")."\" />\n";
$activateoutput .= "\t\t<br />&nbsp;</td>\n"; $activateoutput .= "\t\t<br />&nbsp;</td>\n";
$activateoutput .= "\t</tr>\n"; $activateoutput .= "\t</tr>\n";
@@ -526,20 +526,20 @@ else
// if (isset($surveynotprivate) && $surveynotprivate) //This survey is tracked, and therefore a tokens table MUST exist // if (isset($surveynotprivate) && $surveynotprivate) //This survey is tracked, and therefore a tokens table MUST exist
// { // {
// $activateoutput .= $clang->gT("This is not an anonymous survey. A token table must also be created.")."<br /><br />\n"; // $activateoutput .= $clang->gT("This is not an anonymous survey. A token table must also be created.")."<br /><br />\n";
// $activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_top')\" />\n"; // $activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_self')\" />\n";
// } // }
// elseif (isset($surveyallowsregistration) && $surveyallowsregistration == "TRUE") // elseif (isset($surveyallowsregistration) && $surveyallowsregistration == "TRUE")
if (isset($surveyallowsregistration) && $surveyallowsregistration == "TRUE") if (isset($surveyallowsregistration) && $surveyallowsregistration == "TRUE")
{ {
$activateoutput .= $clang->gT("This survey allows public registration. A token table must also be created.")."<br /><br />\n"; $activateoutput .= $clang->gT("This survey allows public registration. A token table must also be created.")."<br /><br />\n";
// $activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_top')\" />\n"; // $activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_self')\" />\n";
$activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid={$postsid}&amp;createtable=Y")."\" />\n"; $activateoutput .= "<input type='submit' value='".$clang->gT("Initialise Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid={$postsid}&amp;createtable=Y")."\" />\n";
} }
else else
{ {
$activateoutput .= $clang->gT("This survey is now active, and responses can be recorded.")."<br /><br />\n"; $activateoutput .= $clang->gT("This survey is now active, and responses can be recorded.")."<br /><br />\n";
$activateoutput .= "<strong>".$clang->gT("Open-access mode").":</strong> ".$clang->gT("No invitation code is needed to complete the survey.")."<br />".$clang->gT("You can switch to the closed-access mode by initialising a token table with the button below.")."<br /><br />\n"; $activateoutput .= "<strong>".$clang->gT("Open-access mode").":</strong> ".$clang->gT("No invitation code is needed to complete the survey.")."<br />".$clang->gT("You can switch to the closed-access mode by initialising a token table with the button below.")."<br /><br />\n";
// $activateoutput .= $clang->gT("Optional").": <input type='submit' value='".$clang->gT("Switch to closed-access mode")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_top')\" />\n"; // $activateoutput .= $clang->gT("Optional").": <input type='submit' value='".$clang->gT("Switch to closed-access mode")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid={$_GET['sid']}&amp;createtable=Y', '_self')\" />\n";
$activateoutput .= $clang->gT("Optional").": <input type='submit' value='".$clang->gT("Switch to closed-access mode")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid={$postsid}&amp;createtable=Y")."\" />\n"; $activateoutput .= $clang->gT("Optional").": <input type='submit' value='".$clang->gT("Switch to closed-access mode")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid={$postsid}&amp;createtable=Y")."\" />\n";
} }
$activateoutput .= "\t\t\t\t</font></font></td></tr></table><br />&nbsp;\n"; $activateoutput .= "\t\t\t\t</font></font></td></tr></table><br />&nbsp;\n";

View File

@@ -64,7 +64,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $actsurrows['edit_survey_property'
$assessmentsoutput.= "\t<tr >\n" $assessmentsoutput.= "\t<tr >\n"
. "\t\t<td>\n" . "\t\t<td>\n"
. "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Return to Survey Administration", "js")."');return false\">" . . "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Return to Survey Administration", "js")."');return false\">" .
"<img name='Administration' src='$imagefiles/home.png' title='' alt='' align='left' /></a>\n" "<img name='Administration' src='$imagefiles/home.png' title='' alt='' align='left' /></a>\n"
. "\t\t\t<img src='$imagefiles/blank.gif' alt='' width='11' border='0' hspace='0' align='left' />\n" . "\t\t\t<img src='$imagefiles/blank.gif' alt='' width='11' border='0' hspace='0' align='left' />\n"
. "\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" . "\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"

View File

@@ -68,7 +68,7 @@ if (!$database_exists) //DATABASE DOESN'T EXIST OR CAN'T CONNECT
."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n" ."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"
. $clang->gT("The defined LimeSurvey database does not exist")."<br />\n" . $clang->gT("The defined LimeSurvey database does not exist")."<br />\n"
. $clang->gT("Either your selected database has not yet been created or there is a problem accessing it.")."<br /><br />\n" . $clang->gT("Either your selected database has not yet been created or there is a problem accessing it.")."<br /><br />\n"
."<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br />\n" ."<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br />\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
."</body>\n</html>"; ."</body>\n</html>";
return; return;
@@ -81,7 +81,7 @@ if (!$surveyid && !$subaction) //NO SID OR ACTION PROVIDED
."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n" ."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"
. $clang->gT("You have not selected a survey to browse.")."<br /><br />\n" . $clang->gT("You have not selected a survey to browse.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
. $clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br />\n" . $clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br />\n"
."</td></tr></table>\n"; ."</td></tr></table>\n";
return; return;
} }
@@ -105,7 +105,7 @@ if ($actcount > 0)
."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n" ."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"
. $clang->gT("This survey has not been activated. There are no results to browse.")."<br /><br />\n" . $clang->gT("This survey has not been activated. There are no results to browse.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
. $clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" /><br />\n" . $clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" /><br />\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
."</body>\n</html>"; ."</body>\n</html>";
return; return;
@@ -119,7 +119,7 @@ else //SURVEY MATCHING $surveyid DOESN'T EXIST
."\t<tr><td align='center'>\n" ."\t<tr><td align='center'>\n"
."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n" ."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"
. $clang->gT("There is no matching survey.")." ($surveyid)<br /><br />\n" . $clang->gT("There is no matching survey.")." ($surveyid)<br /><br />\n"
."<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br />\n" ."<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br />\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
."</body>\n</html>"; ."</body>\n</html>";
return; return;

View File

@@ -47,7 +47,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $actsurrows['browse_response'])
.$clang->gT("The defined LimeSurvey database does not exist")."<br />\n" .$clang->gT("The defined LimeSurvey database does not exist")."<br />\n"
.$clang->gT("Either your selected database has not yet been created or there is a problem accessing it.")."<br /><br />\n" .$clang->gT("Either your selected database has not yet been created or there is a problem accessing it.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /></font><br />\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /></font><br />\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
."</body>\n"; ."</body>\n";
return; return;
@@ -62,7 +62,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $actsurrows['browse_response'])
."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n" ."<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"
.$clang->gT("You have not selected a survey for data-entry.")."<br /><br />\n" .$clang->gT("You have not selected a survey for data-entry.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br />\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br />\n"
."</font></td></tr></table>\n"; ."</font></td></tr></table>\n";
return; return;
} }
@@ -2471,7 +2471,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $actsurrows['browse_response'])
$dataentryoutput .= "\t\t<td colspan='3' align='center'>\n"; $dataentryoutput .= "\t\t<td colspan='3' align='center'>\n";
$dataentryoutput .= "\t\t\t<font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n"; $dataentryoutput .= "\t\t\t<font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n";
$dataentryoutput .= "\t\t\t".$clang->gT("The survey you selected does not exist")."</font><br /><br />\n"; $dataentryoutput .= "\t\t\t".$clang->gT("The survey you selected does not exist")."</font><br /><br />\n";
$dataentryoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" />\n"; $dataentryoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" />\n";
$dataentryoutput .= "\t\t</td>\n"; $dataentryoutput .= "\t\t</td>\n";
$dataentryoutput .= "\t</tr>\n"; $dataentryoutput .= "\t</tr>\n";
$dataentryoutput .= "</table>"; $dataentryoutput .= "</table>";

View File

@@ -40,7 +40,7 @@ if (!isset($_POST['ok']) || !$_POST['ok'])
$deactivateoutput .= "\t</tr>\n"; $deactivateoutput .= "\t</tr>\n";
$deactivateoutput .= "\t<tr>\n"; $deactivateoutput .= "\t<tr>\n";
$deactivateoutput .= "\t\t<td align='center'>\n"; $deactivateoutput .= "\t\t<td align='center'>\n";
// $deactivateoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Deactivate Survey")."' onclick=\"window.open('$scriptname?action=deactivate&amp;ok=Y&amp;sid={$_GET['sid']}', '_top')\">\n"; // $deactivateoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Deactivate Survey")."' onclick=\"window.open('$scriptname?action=deactivate&amp;ok=Y&amp;sid={$_GET['sid']}', '_self')\">\n";
$deactivateoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Deactivate Survey")."' onclick=\"".get2post("$scriptname?action=deactivate&amp;ok=Y&amp;sid={$_GET['sid']}")."\">\n"; $deactivateoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Deactivate Survey")."' onclick=\"".get2post("$scriptname?action=deactivate&amp;ok=Y&amp;sid={$_GET['sid']}")."\">\n";
$deactivateoutput .= "\t\t<br />&nbsp;</td>\n"; $deactivateoutput .= "\t\t<br />&nbsp;</td>\n";
$deactivateoutput .= "\t</tr>\n"; $deactivateoutput .= "\t</tr>\n";

View File

@@ -26,7 +26,7 @@ if (!isset($surveyid) || !$surveyid)
$deletesurveyoutput .= "\t<tr ><td align='center'>\n"; $deletesurveyoutput .= "\t<tr ><td align='center'>\n";
$deletesurveyoutput .= "<br /><font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n"; $deletesurveyoutput .= "<br /><font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n";
$deletesurveyoutput .= $clang->gT("You have not selected a survey to delete")."<br /><br />\n"; $deletesurveyoutput .= $clang->gT("You have not selected a survey to delete")."<br /><br />\n";
$deletesurveyoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $deletesurveyoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$deletesurveyoutput .= "</td></tr></table>\n"; $deletesurveyoutput .= "</td></tr></table>\n";
$deletesurveyoutput .= "</body>\n</html>"; $deletesurveyoutput .= "</body>\n</html>";
return; return;
@@ -57,8 +57,8 @@ if (!isset($deleteok) || !$deleteok)
$deletesurveyoutput .= "\t</tr>\n"; $deletesurveyoutput .= "\t</tr>\n";
$deletesurveyoutput .= "\t<tr>\n"; $deletesurveyoutput .= "\t<tr>\n";
$deletesurveyoutput .= "\t\t<td align='center'><br />\n"; $deletesurveyoutput .= "\t\t<td align='center'><br />\n";
$deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Cancel")."' onclick=\"window.open('admin.php?sid=$surveyid', '_top')\" /><br />\n"; $deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Cancel")."' onclick=\"window.open('admin.php?sid=$surveyid', '_self')\" /><br />\n";
// $deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"window.open('$scriptname?action=deletesurvey&amp;sid=$surveyid&amp;ok=Y','_top')\" />\n"; // $deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"window.open('$scriptname?action=deletesurvey&amp;sid=$surveyid&amp;ok=Y','_self')\" />\n";
$deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"".get2post("$scriptname?action=deletesurvey&amp;sid=$surveyid&amp;deleteok=Y")."\" />\n"; $deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"".get2post("$scriptname?action=deletesurvey&amp;sid=$surveyid&amp;deleteok=Y")."\" />\n";
$deletesurveyoutput .= "\t\t</td>\n"; $deletesurveyoutput .= "\t\t</td>\n";
$deletesurveyoutput .= "\t</tr>\n"; $deletesurveyoutput .= "\t</tr>\n";
@@ -120,7 +120,7 @@ else //delete the survey
$deletesurveyoutput .= "\t<tr>\n"; $deletesurveyoutput .= "\t<tr>\n";
$deletesurveyoutput .= "\t\t<td align='center'><br />\n"; $deletesurveyoutput .= "\t\t<td align='center'><br />\n";
$deletesurveyoutput .= "\t\t\t<strong>".$clang->gT("This survey has been deleted.")."<br /><br />\n"; $deletesurveyoutput .= "\t\t\t<strong>".$clang->gT("This survey has been deleted.")."<br /><br />\n";
$deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" />\n"; $deletesurveyoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" />\n";
$deletesurveyoutput .= "\t\t</strong></td>\n"; $deletesurveyoutput .= "\t\t</strong></td>\n";
$deletesurveyoutput .= "\t</tr>\n"; $deletesurveyoutput .= "\t</tr>\n";
$surveyid=false; $surveyid=false;

View File

@@ -38,7 +38,7 @@ if (!$gid)
echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Question")."</strong></td></tr>\n"; echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Question")."</strong></td></tr>\n";
echo "\t<tr bgcolor='#CCCCCC'><td align='center'>$setfont\n"; echo "\t<tr bgcolor='#CCCCCC'><td align='center'>$setfont\n";
echo "$setfont<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"._EQ_NOGID."<br />\n"; echo "$setfont<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"._EQ_NOGID."<br />\n";
echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
echo "\t</td></tr>\n"; echo "\t</td></tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "</body></html>\n"; echo "</body></html>\n";

View File

@@ -30,7 +30,7 @@ if (!$lid)
echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Label Set")."</strong></td></tr>\n"; echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Label Set")."</strong></td></tr>\n";
echo "\t<tr bgcolor='#CCCCCC'><td align='center'>\n"; echo "\t<tr bgcolor='#CCCCCC'><td align='center'>\n";
echo "<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n".$clang->gT("No LID has been provided. Cannot dump label set.")."<br />\n"; echo "<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n".$clang->gT("No LID has been provided. Cannot dump label set.")."<br />\n";
echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
echo "\t</td></tr>\n"; echo "\t</td></tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "</body></html>\n"; echo "</body></html>\n";

View File

@@ -35,7 +35,7 @@ if (!$qid)
echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Question")."</strong></td></tr>\n"; echo "\t<tr bgcolor='#555555'><td colspan='2' height='4'><font size='1' face='verdana' color='white'><strong>".$clang->gT("Export Question")."</strong></td></tr>\n";
echo "\t<tr bgcolor='#CCCCCC'><td align='center'>\n"; echo "\t<tr bgcolor='#CCCCCC'><td align='center'>\n";
echo "<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n".$clang->gT("No QID has been provided. Cannot dump question.")."<br />\n"; echo "<br /><strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n".$clang->gT("No QID has been provided. Cannot dump question.")."<br />\n";
echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; echo "<br /><input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
echo "\t</td></tr>\n"; echo "\t</td></tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "</body></html>\n"; echo "</body></html>\n";

View File

@@ -50,7 +50,7 @@ if (!$surveyid)
._ERROR."</font></strong><br />\n" ._ERROR."</font></strong><br />\n"
._ES_NOSID."<br />\n" ._ES_NOSID."<br />\n"
."<br /><input type='submit' $btstyle value='" ."<br /><input type='submit' $btstyle value='"
._GO_ADMIN."' onClick=\"window.open('$scriptname', '_top')\">\n" ._GO_ADMIN."' onClick=\"window.open('$scriptname', '_self')\">\n"
."\t</td></tr>\n" ."\t</td></tr>\n"
."</table>\n" ."</table>\n"
."</body></html>\n"; ."</body></html>\n";

View File

@@ -47,7 +47,7 @@ if (!$surveyid)
.$clang->gT("Error")."</font></strong><br />\n" .$clang->gT("Error")."</font></strong><br />\n"
.$clang->gT("No SID has been provided. Cannot dump survey")."<br />\n" .$clang->gT("No SID has been provided. Cannot dump survey")."<br />\n"
."<br /><input type='submit' value='" ."<br /><input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n"
."\t</td></tr>\n" ."\t</td></tr>\n"
."</table>\n" ."</table>\n"
."</body></html>\n"; ."</body></html>\n";

View File

@@ -33,7 +33,7 @@ if (!$surveyid)
._ERROR."</font></strong><br />\n" ._ERROR."</font></strong><br />\n"
._ES_NOSID."<br />\n" ._ES_NOSID."<br />\n"
."<br /><input type='submit' $btstyle value='" ."<br /><input type='submit' $btstyle value='"
._GO_ADMIN."' onClick=\"window.open('$scriptname', '_top')\">\n" ._GO_ADMIN."' onClick=\"window.open('$scriptname', '_self')\">\n"
."\t</td></tr>\n" ."\t</td></tr>\n"
."</table>\n" ."</table>\n"
."</body></html>\n"; ."</body></html>\n";

View File

@@ -132,7 +132,7 @@ if ($action == "listsurveys")
{ {
if ($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sidsecurity['activate_survey']) if ($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sidsecurity['activate_survey'])
{ {
$listsurveys .= "<td><a href=\"#\" onclick=\"window.open('$scriptname?action=deactivate&amp;sid={$rows['sid']}', '_top')\"" $listsurveys .= "<td><a href=\"#\" onclick=\"window.open('$scriptname?action=deactivate&amp;sid={$rows['sid']}', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("De-activate this Survey")."\" " . "title=\"".$clang->gTview("De-activate this Survey")."\" "
. "onmouseover=\"showTooltip(event,'".$clang->gT("De-activate this Survey", "js")."');return false\">" . "onmouseover=\"showTooltip(event,'".$clang->gT("De-activate this Survey", "js")."');return false\">"
@@ -150,7 +150,7 @@ if ($action == "listsurveys")
} else { } else {
if ( ($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sidsecurity['activate_survey']) && $questionsCount > 0) if ( ($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sidsecurity['activate_survey']) && $questionsCount > 0)
{ {
$listsurveys .= "<td><a href=\"#\" onclick=\"window.open('$scriptname?action=activate&amp;sid={$rows['sid']}', '_top')\"" $listsurveys .= "<td><a href=\"#\" onclick=\"window.open('$scriptname?action=activate&amp;sid={$rows['sid']}', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Activate this Survey")."\"" . "title=\"".$clang->gTview("Activate this Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Activate this Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Activate this Survey", "js")."');return false\">" .
@@ -402,7 +402,7 @@ if ($surveyid)
. "onmouseover=\"showTooltip(event,'".$clang->gT("This survey is not currently active", "js")."');return false\" />\n"; . "onmouseover=\"showTooltip(event,'".$clang->gT("This survey is not currently active", "js")."');return false\" />\n";
if(($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['activate_survey']) && $sumcount3>0) if(($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['activate_survey']) && $sumcount3>0)
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=activate&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=activate&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Activate this Survey")."\"" . "title=\"".$clang->gTview("Activate this Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Activate this Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Activate this Survey", "js")."');return false\">" .
@@ -432,7 +432,7 @@ if ($surveyid)
} }
if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['activate_survey']) if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['activate_survey'])
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=deactivate&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=deactivate&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("De-activate this Survey")."\"" . "title=\"".$clang->gTview("De-activate this Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("De-activate this Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("De-activate this Survey", "js")."');return false\">" .
@@ -450,7 +450,7 @@ if ($surveyid)
if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $s1row['owner_id'] == $_SESSION['loginID']) if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $s1row['owner_id'] == $_SESSION['loginID'])
{ {
$surveysummary .= "\t\t\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=surveysecurity&amp;sid=$surveyid', '_top')\"" . $surveysummary .= "\t\t\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=surveysecurity&amp;sid=$surveyid', '_self')\"" .
"onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\"" .
"title=\"".$clang->gTview("Survey Security Settings")."\"" "title=\"".$clang->gTview("Survey Security Settings")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Survey Security Settings", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Survey Security Settings", "js")."');return false\">" .
@@ -507,7 +507,7 @@ if ($surveyid)
if($activated == "Y" && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['browse_response'])) if($activated == "Y" && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['browse_response']))
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('".$homeurl."/".$scriptname."?action=dataentry&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('".$homeurl."/".$scriptname."?action=dataentry&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Dataentry Screen for Survey")."\"" . "title=\"".$clang->gTview("Dataentry Screen for Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Dataentry Screen for Survey", "js")."');return false\">" . "onmouseover=\"showTooltip(event,'".$clang->gT("Dataentry Screen for Survey", "js")."');return false\">"
@@ -569,7 +569,7 @@ if ($surveyid)
if($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sumrows5['edit_survey_property']) if($_SESSION['USER_RIGHT_SUPERADMIN'] ==1 || $sumrows5['edit_survey_property'])
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editsurvey&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editsurvey&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Edit Current Survey")."\"" . "title=\"".$clang->gTview("Edit Current Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current Survey", "js")."');return false\">" .
@@ -583,7 +583,7 @@ if ($surveyid)
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['delete_survey']) if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['delete_survey'])
{ {
// $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=deletesurvey&amp;sid=$surveyid', '_top')\"" // $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=deletesurvey&amp;sid=$surveyid', '_self')\""
$surveysummary .= "<a href=\"#\" onclick=\"".get2post("$scriptname?action=deletesurvey&amp;sid=$surveyid")."\"" $surveysummary .= "<a href=\"#\" onclick=\"".get2post("$scriptname?action=deletesurvey&amp;sid=$surveyid")."\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Delete Current Survey")."\"" . "title=\"".$clang->gTview("Delete Current Survey")."\""
@@ -598,7 +598,7 @@ if ($surveyid)
if ( $_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions']) if ( $_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions'])
{ {
if ($sumcount6 > 0) { if ($sumcount6 > 0) {
// $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=resetsurveylogic&amp;sid=$surveyid', '_top')\"" // $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=resetsurveylogic&amp;sid=$surveyid', '_self')\""
$surveysummary .= "<a href=\"#\" onclick=\"".get2post("$scriptname?action=resetsurveylogic&amp;sid=$surveyid")."\"" $surveysummary .= "<a href=\"#\" onclick=\"".get2post("$scriptname?action=resetsurveylogic&amp;sid=$surveyid")."\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Reset Survey Logic")."\"" . "title=\"".$clang->gTview("Reset Survey Logic")."\""
@@ -621,7 +621,7 @@ if ($surveyid)
if($activated!="Y" && getGroupSum($surveyid,$s1row['language'])>1 && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions'])) if($activated!="Y" && getGroupSum($surveyid,$s1row['language'])>1 && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions']))
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=ordergroups&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=ordergroups&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Change Group Order")."\"" . "title=\"".$clang->gTview("Change Group Order")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Change Group Order", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Change Group Order", "js")."');return false\">" .
@@ -634,7 +634,7 @@ if ($surveyid)
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['export']) if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['export'])
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=exportstructure&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=exportstructure&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Export Survey Structure")."\"" . "title=\"".$clang->gTview("Export Survey Structure")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Export Survey Structure", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Export Survey Structure", "js")."');return false\">" .
@@ -648,7 +648,7 @@ if ($surveyid)
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['edit_survey_property']) if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['edit_survey_property'])
{ {
$surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n" $surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n"
. "<a href=\"#\" onclick=\"window.open('$scriptname?action=assessments&amp;sid=$surveyid', '_top')\"" . "<a href=\"#\" onclick=\"window.open('$scriptname?action=assessments&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Set Assessment Rules")."\"" . "title=\"".$clang->gTview("Set Assessment Rules")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Set Assessment Rules", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Set Assessment Rules", "js")."');return false\">" .
@@ -662,7 +662,7 @@ if ($surveyid)
if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['edit_survey_property']) if ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['edit_survey_property'])
{ {
$surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n" $surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n"
. "<a href=\"#\" onclick=\"window.open('$scriptname?action=quotas&amp;sid=$surveyid', '_top')\"" . "<a href=\"#\" onclick=\"window.open('$scriptname?action=quotas&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Set Survey Quotas")."\"" . "title=\"".$clang->gTview("Set Survey Quotas")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Set Survey Quotas", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Set Survey Quotas", "js")."');return false\">" .
@@ -676,7 +676,7 @@ if ($surveyid)
if ($activated == "Y" && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['browse_response'])) if ($activated == "Y" && ($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['browse_response']))
{ {
$surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n" $surveysummary .= "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n"
. "<a href=\"#\" onclick=\"window.open('$scriptname?action=browse&amp;sid=$surveyid', '_top')\"" . "<a href=\"#\" onclick=\"window.open('$scriptname?action=browse&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Browse Responses For This Survey")."\"" . "title=\"".$clang->gTview("Browse Responses For This Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Browse Responses For This Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Browse Responses For This Survey", "js")."');return false\">" .
@@ -684,7 +684,7 @@ if ($surveyid)
. "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n"; . "\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' align='left' border='0' hspace='0' />\n";
if ($s1row['allowsave'] == "Y") if ($s1row['allowsave'] == "Y")
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=saved&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=saved&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("View Saved but not submitted Responses")."\"" . "title=\"".$clang->gTview("View Saved but not submitted Responses")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("View Saved but not submitted Responses", "js")."');return false\">" . "onmouseover=\"showTooltip(event,'".$clang->gT("View Saved but not submitted Responses", "js")."');return false\">"
@@ -696,7 +696,7 @@ if ($surveyid)
{ {
if ($activated == "Y") if ($activated == "Y")
{ {
$surveysummary .="<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\"" $surveysummary .="<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Activate/Edit Tokens for this Survey")."\"" . "title=\"".$clang->gTview("Activate/Edit Tokens for this Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Activate/Edit Tokens for this Survey", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Activate/Edit Tokens for this Survey", "js")."');return false\">" .
@@ -719,7 +719,7 @@ if ($surveyid)
if (!$gid) if (!$gid)
{ {
$surveysummary .= "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='". $clang->gT("Close this Survey")."' alt='". $clang->gT("Close this Survey")."' align='right' name='CloseSurveyWindow' " $surveysummary .= "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='". $clang->gT("Close this Survey")."' alt='". $clang->gT("Close this Survey")."' align='right' name='CloseSurveyWindow' "
. "onclick=\"window.open('$scriptname', '_top')\" />\n"; . "onclick=\"window.open('$scriptname', '_self')\" />\n";
} }
else else
{ {
@@ -738,7 +738,7 @@ if ($surveyid)
} }
elseif($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions']) elseif($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions'])
{ {
$surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=addgroup&amp;sid=$surveyid', '_top')\"" $surveysummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=addgroup&amp;sid=$surveyid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Add New Group to Survey")."\"" . "title=\"".$clang->gTview("Add New Group to Survey")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Add New Group to Survey", "js")."');return false\"> " . . "onmouseover=\"showTooltip(event,'".$clang->gT("Add New Group to Survey", "js")."');return false\"> " .
@@ -746,7 +746,7 @@ if ($surveyid)
} }
$surveysummary .= "<font class=\"boxcaption\">".$clang->gT("Groups").":</font>" $surveysummary .= "<font class=\"boxcaption\">".$clang->gT("Groups").":</font>"
. "\t\t<select name='groupselect' " . "\t\t<select name='groupselect' "
. "onchange=\"window.open(this.options[this.selectedIndex].value,'_top')\">\n"; . "onchange=\"self.location = this.options[this.selectedIndex].value;\">\n";
if (getgrouplistlang($gid, $baselang)) if (getgrouplistlang($gid, $baselang))
{ {
@@ -967,7 +967,7 @@ if ($surveyid && $gid ) // Show the group toolbar
if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions']) if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $sumrows5['define_questions'])
{ {
$groupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editgroup&amp;sid=$surveyid&amp;gid=$gid','_top')\"" $groupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editgroup&amp;sid=$surveyid&amp;gid=$gid','_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "title=\"".$clang->gTview("Edit Current Group")."\"" . "title=\"".$clang->gTview("Edit Current Group")."\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current Group", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current Group", "js")."');return false\">" .
@@ -1035,7 +1035,7 @@ if ($surveyid && $gid ) // Show the group toolbar
{ {
$groupsummary .= "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='" $groupsummary .= "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='"
. $clang->gT("Close this Group")."' alt='". $clang->gT("Close this Group")."' align='right' name='CloseSurveyWindow' " . $clang->gT("Close this Group")."' alt='". $clang->gT("Close this Group")."' align='right' name='CloseSurveyWindow' "
. "onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" />\n"; . "onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" />\n";
} }
else else
{ {
@@ -1060,10 +1060,10 @@ if ($surveyid && $gid ) // Show the group toolbar
."title=\"".$clang->gTview("Add New Question to Group")."\"" ."title=\"".$clang->gTview("Add New Question to Group")."\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Add New Question to Group", "js")."');return false\">" . ."onmouseover=\"showTooltip(event,'".$clang->gT("Add New Question to Group", "js")."');return false\">" .
"<img src='$imagefiles/add.png' title='' alt='' " . "<img src='$imagefiles/add.png' title='' alt='' " .
"align='right' name='AddNewQuestion' onclick=\"window.open('', '_top')\" /></a>\n"; "align='right' name='AddNewQuestion' onclick=\"window.open('', '_self')\" /></a>\n";
} }
$groupsummary .= "\t\t\t\t\t<font class=\"boxcaption\">".$clang->gT("Questions").":</font>&nbsp;<select class=\"listboxquestions\" name='qid' " $groupsummary .= "\t\t\t\t\t<font class=\"boxcaption\">".$clang->gT("Questions").":</font>&nbsp;<select class=\"listboxquestions\" name='qid' "
. "onchange=\"window.open(this.options[this.selectedIndex].value, '_top')\">\n" . "onchange=\"self.location = this.options[this.selectedIndex].value;\">\n"
. getquestions($surveyid,$gid,$qid) . getquestions($surveyid,$gid,$qid)
. "\t\t\t\t\t</select>\n" . "\t\t\t\t\t</select>\n"
. "\t\t\t\t</td></tr>\n" . "\t\t\t\t</td></tr>\n"
@@ -1282,7 +1282,7 @@ if ($surveyid && $gid && $qid) // Show the question toolbar
. "\t\t\t\t\t<td align='right' width='400' valign='top'>\n" . "\t\t\t\t\t<td align='right' width='400' valign='top'>\n"
. "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='" . "\t\t\t\t\t<input type='image' src='$imagefiles/close.gif' title='"
. $clang->gT("Close this Question")."' alt='". $clang->gT("Close this Question")."' align='right' name='CloseQuestionWindow' " . $clang->gT("Close this Question")."' alt='". $clang->gT("Close this Question")."' align='right' name='CloseQuestionWindow' "
. "onclick=\"window.open('$scriptname?sid=$surveyid&amp;gid=$gid', '_top')\" />\n" . "onclick=\"window.open('$scriptname?sid=$surveyid&amp;gid=$gid', '_self')\" />\n"
. "\t\t\t\t\t<input type='image' src='$imagefiles/plus.gif' title='" . "\t\t\t\t\t<input type='image' src='$imagefiles/plus.gif' title='"
. $clang->gT("Show Details of this Question")."' alt='". $clang->gT("Show Details of this Question")."'align='right' name='MaximiseQuestionWindow' " . $clang->gT("Show Details of this Question")."' alt='". $clang->gT("Show Details of this Question")."'align='right' name='MaximiseQuestionWindow' "
. "onclick='document.getElementById(\"questiondetails\").style.display=\"\";' />" . "onclick='document.getElementById(\"questiondetails\").style.display=\"\";' />"
@@ -1327,7 +1327,7 @@ if ($surveyid && $gid && $qid) // Show the question toolbar
. $clang->gT("Warning").": ". $clang->gT("You need to add answers to this question")." " . $clang->gT("Warning").": ". $clang->gT("You need to add answers to this question")." "
. "<input align='top' type='image' src='$imagefiles/answerssmall.png' title='" . "<input align='top' type='image' src='$imagefiles/answerssmall.png' title='"
. $clang->gT("Edit/Add Answers for this Question")."' name='EditThisQuestionAnswers'" . $clang->gT("Edit/Add Answers for this Question")."' name='EditThisQuestionAnswers'"
. "onclick=\"window.open('".$scriptname."?sid=$surveyid&amp;gid=$gid&amp;qid=$qid&amp;viewanswer=Y', '_top')\" /></font></td></tr>\n"; . "onclick=\"window.open('".$scriptname."?sid=$surveyid&amp;gid=$gid&amp;qid=$qid&amp;viewanswer=Y', '_self')\" /></font></td></tr>\n";
} }
// For Labelset Questions show the label set and warn if there is no label set configured // For Labelset Questions show the label set and warn if there is no label set configured

View File

@@ -47,7 +47,7 @@ if ($action == "importsurvresources" && $surveyid) {
{ {
$importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importsurvresourcesoutput .= sprintf ($clang->gT("Incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n"; $importsurvresourcesoutput .= sprintf ($clang->gT("Incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n";
$importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_top')\">\n"; $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_self')\">\n";
$importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
@@ -71,7 +71,7 @@ if ($action == "importsurvresources" && $surveyid) {
{ {
$importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importsurvresourcesoutput .= $clang->gT("This file is not a valid ZIP file archive. Import failed.")."<br /><br />\n"; $importsurvresourcesoutput .= $clang->gT("This file is not a valid ZIP file archive. Import failed.")."<br /><br />\n";
$importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_top')\">\n"; $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_self')\">\n";
$importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
@@ -141,7 +141,7 @@ if ($action == "importsurvresources" && $surveyid) {
$importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importsurvresourcesoutput .= $clang->gT("This ZIP archive contains no valid Resources files. Import failed.")."<br /><br />\n"; $importsurvresourcesoutput .= $clang->gT("This ZIP archive contains no valid Resources files. Import failed.")."<br /><br />\n";
$importsurvresourcesoutput .= $clang->gT("Remember that we do not support subdirectories in ZIP Archive.")."<br /><br />\n"; $importsurvresourcesoutput .= $clang->gT("Remember that we do not support subdirectories in ZIP Archive.")."<br /><br />\n";
$importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_top')\">\n"; $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_self')\">\n";
$importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
@@ -184,12 +184,12 @@ if ($action == "importsurvresources" && $surveyid) {
{ {
$importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importsurvresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importsurvresourcesoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n"; $importsurvresourcesoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n";
$importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_top')\">\n"; $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_self')\">\n";
$importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
// Final Back not needed if files have been imported // Final Back not needed if files have been imported
// $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_top')\">\n"; // $importsurvresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=editsurvey&sid=$surveyid', '_self')\">\n";
$importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importsurvresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
} }
@@ -217,7 +217,7 @@ if ($action == "importlabelresources" && $lid)
{ {
$importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabelresourcesoutput .= sprintf ($clang->gT("Incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n"; $importlabelresourcesoutput .= sprintf ($clang->gT("Incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n";
$importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_top')\">\n"; $importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_self')\">\n";
$importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
@@ -241,7 +241,7 @@ if ($action == "importlabelresources" && $lid)
{ {
$importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabelresourcesoutput .= $clang->gT("This file is not a valid ZIP file archive. Import failed.")."<br /><br />\n"; $importlabelresourcesoutput .= $clang->gT("This file is not a valid ZIP file archive. Import failed.")."<br /><br />\n";
$importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_top')\">\n"; $importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_self')\">\n";
$importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
@@ -311,7 +311,7 @@ if ($action == "importlabelresources" && $lid)
$importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabelresourcesoutput .= $clang->gT("This ZIP archive contains no valid Resources files. Import failed.")."<br /><br />\n"; $importlabelresourcesoutput .= $clang->gT("This ZIP archive contains no valid Resources files. Import failed.")."<br /><br />\n";
$importlabelresourcesoutput .= $clang->gT("Remember that we do not support subdirectories in ZIP Archive.")."<br /><br />\n"; $importlabelresourcesoutput .= $clang->gT("Remember that we do not support subdirectories in ZIP Archive.")."<br /><br />\n";
$importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_top')\">\n"; $importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_self')\">\n";
$importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
@@ -354,11 +354,11 @@ if ($action == "importlabelresources" && $lid)
{ {
$importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabelresourcesoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabelresourcesoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n"; $importlabelresourcesoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$basedestdir)."<br /><br />\n";
$importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_top')\">\n"; $importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_self')\">\n";
$importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n"; $importlabelresourcesoutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
$importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_top')\">\n"; $importlabelresourcesoutput .= "<input type='submit' value='".$clang->gT("Back")."' onclick=\"window.open('$scriptname?action=labels&lid=$lid', '_self')\">\n";
} }

View File

@@ -28,7 +28,7 @@ if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path))
{ {
$importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importgroup .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n"; $importgroup .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n";
$importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$importgroup .= "</td></tr></table>\n"; $importgroup .= "</td></tr></table>\n";
return; return;
} }
@@ -38,7 +38,7 @@ if (!returnglobal('sid'))
{ {
$importquestion .= $clang->gT("No SID (Survey) has been provided. Cannot import group.")."<br /><br />\n" $importquestion .= $clang->gT("No SID (Survey) has been provided. Cannot import group.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n"
."</td></tr></table>\n"; ."</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;
@@ -66,7 +66,7 @@ if (substr($bigarray[0], 0, 23) != "# LimeSurvey Group Dump" && substr($bigarray
{ {
$importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importgroup .= $clang->gT("This file is not a LimeSurvey group file. Import failed.")."<br /><br />\n"; $importgroup .= $clang->gT("This file is not a LimeSurvey group file. Import failed.")."<br /><br />\n";
$importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$importgroup .= "</td></tr></table>\n"; $importgroup .= "</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;
@@ -247,7 +247,7 @@ if (isset($grouparray))
{ {
$importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importgroup .= $clang->gT("You can't import a group which doesn't support the current survey's base language.")."<br /><br />\n"; $importgroup .= $clang->gT("You can't import a group which doesn't support the current survey's base language.")."<br /><br />\n";
$importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$importgroup .= "</td></tr></table>\n"; $importgroup .= "</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;
@@ -263,7 +263,7 @@ if (isset($questionarray))
{ {
$importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importgroup .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importgroup .= $clang->gT("You can't import a question which doesn't support the current survey's base language.")."<br /><br />\n"; $importgroup .= $clang->gT("You can't import a question which doesn't support the current survey's base language.")."<br /><br />\n";
$importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $importgroup .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$importgroup .= "</td></tr></table>\n"; $importgroup .= "</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;

View File

@@ -29,7 +29,7 @@ if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path))
{ {
$importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabeloutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n"; $importlabeloutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n";
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $importlabeloutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$importlabeloutput .= "</td></tr></table><br />&nbsp;\n"; $importlabeloutput .= "</td></tr></table><br />&nbsp;\n";
return; return;
} }
@@ -53,7 +53,7 @@ if (substr($bigarray[0], 0, 27) != "# LimeSurvey Label Set Dump" && substr($biga
{ {
$importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importlabeloutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importlabeloutput .= $clang->gT("This file is not a LimeSurvey label set file. Import failed.")."<br /><br />\n"; $importlabeloutput .= $clang->gT("This file is not a LimeSurvey label set file. Import failed.")."<br /><br />\n";
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels', '_top')\">\n"; $importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels', '_self')\">\n";
$importlabeloutput .= "</td></tr></table>\n"; $importlabeloutput .= "</td></tr></table>\n";
$importlabeloutput .= "</body>\n</html>\n"; $importlabeloutput .= "</body>\n</html>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
@@ -209,7 +209,7 @@ if (isset($labelsetsarray) && $labelsetsarray) {
$importlabeloutput .= "<strong>".$clang->gT("Import of Label Set is completed.")."</strong><br />\n"; $importlabeloutput .= "<strong>".$clang->gT("Import of Label Set is completed.")."</strong><br />\n";
$importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels&amp;lid=$newlid', '_top')\">\n"; $importlabeloutput .= "<input type='submit' value='".$clang->gT("Return to Labels Admin")."' onclick=\"window.open('$scriptname?action=labels&amp;lid=$newlid', '_self')\">\n";
$importlabeloutput .= "</td></tr></table>\n"; $importlabeloutput .= "</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);

View File

@@ -31,7 +31,7 @@ if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path))
$importquestion .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $importquestion .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$importquestion .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n" $importquestion .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n"
."</td></tr></table>\n"; ."</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;
@@ -42,7 +42,7 @@ if (!returnglobal('sid'))
{ {
$importquestion .= $clang->gT("No SID (Survey) has been provided. Cannot import question.")."<br /><br />\n" $importquestion .= $clang->gT("No SID (Survey) has been provided. Cannot import question.")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n"
."</td></tr></table>\n"; ."</td></tr></table>\n";
unlink($the_full_file_path); unlink($the_full_file_path);
return; return;

View File

@@ -81,13 +81,13 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $_SESSION['USER_RIGHT_MANAGE_LABEL
."alt='". $clang->gT("Show Help")."' align='right' /></a>" ."alt='". $clang->gT("Show Help")."' align='right' /></a>"
."\t<img src='$imagefiles/blank.gif' width='42' height='20' align='right' hspace='0' border='0' alt='' />\n" ."\t<img src='$imagefiles/blank.gif' width='42' height='20' align='right' hspace='0' border='0' alt='' />\n"
."\t<img src='$imagefiles/seperator.gif' align='right' hspace='0' border='0' alt='' />\n" ."\t<img src='$imagefiles/seperator.gif' align='right' hspace='0' border='0' alt='' />\n"
."<a href=\"#\" onclick=\"window.open('admin.php?action=newlabelset', '_top')\"" ."<a href=\"#\" onclick=\"window.open('admin.php?action=newlabelset', '_self')\""
."onmouseout=\"hideTooltip()\"" ."onmouseout=\"hideTooltip()\""
."title=\"".$clang->gTview("Add New Label Set")."\"" ."title=\"".$clang->gTview("Add New Label Set")."\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Add New Label Set", "js")."');return false\">" ."onmouseover=\"showTooltip(event,'".$clang->gT("Add New Label Set", "js")."');return false\">"
."<img src='$imagefiles/add.png' align='right' name='AddLabel' title='' alt='". $clang->gT("Add new label set")."' /></a>\n" ."<img src='$imagefiles/add.png' align='right' name='AddLabel' title='' alt='". $clang->gT("Add new label set")."' /></a>\n"
."\t<font class='boxcaption'>".$clang->gT("Labelsets").": </font>" ."\t<font class='boxcaption'>".$clang->gT("Labelsets").": </font>"
."\t<select onchange=\"window.open(this.options[this.selectedIndex].value,'_top')\">\n"; ."\t<select onchange=\"window.open(this.options[this.selectedIndex].value,'_self')\">\n";
$labelsets=getlabelsets(); $labelsets=getlabelsets();
if (count($labelsets)>0) if (count($labelsets)>0)
{ {
@@ -124,7 +124,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $_SESSION['USER_RIGHT_MANAGE_LABEL
."\t<tr>\n" ."\t<tr>\n"
."<th>\n" ."<th>\n"
."<input type='image' src='$imagefiles/close.gif' align='right' " ."<input type='image' src='$imagefiles/close.gif' align='right' "
."onclick=\"window.open('admin.php?action=labels&amp;lid=$lid', '_top')\" />\n"; ."onclick=\"window.open('admin.php?action=labels&amp;lid=$lid', '_self')\" />\n";
if ($action == "newlabelset") {$labelsoutput.= $clang->gT("Create or Import New Label Set"); $langids="en"; $tabitem=$clang->gT("Create New Label Set");} if ($action == "newlabelset") {$labelsoutput.= $clang->gT("Create or Import New Label Set"); $langids="en"; $tabitem=$clang->gT("Create New Label Set");}
else {$labelsoutput.= $clang->gT("Edit Label Set"); $tabitem=$clang->gT("Edit Label Set");} else {$labelsoutput.= $clang->gT("Edit Label Set"); $tabitem=$clang->gT("Edit Label Set");}
$langidsarray=explode(" ",trim($langids)); //Make an array of it $langidsarray=explode(" ",trim($langids)); //Make an array of it
@@ -248,7 +248,7 @@ if($_SESSION['USER_RIGHT_SUPERADMIN'] == 1 || $_SESSION['USER_RIGHT_MANAGE_LABEL
."\t<td>\n" ."\t<td>\n"
."\t<input type='image' src='$imagefiles/close.gif' title='" ."\t<input type='image' src='$imagefiles/close.gif' title='"
.$clang->gT("Close Window")."' align='right' " .$clang->gT("Close Window")."' align='right' "
."onclick=\"window.open('admin.php?action=labels', '_top')\" />\n" ."onclick=\"window.open('admin.php?action=labels', '_self')\" />\n"
."\t<img src='$imagefiles/blank.gif' width='50' height='20' border='0' hspace='0' align='left' alt='' />\n" ."\t<img src='$imagefiles/blank.gif' width='50' height='20' border='0' hspace='0' align='left' alt='' />\n"
."\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n" ."\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n"
."\t<a href='admin.php?action=editlabelset&amp;lid=$lid' onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Edit label set")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Edit label set", "js")."');return false\">" . ."\t<a href='admin.php?action=editlabelset&amp;lid=$lid' onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Edit label set")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Edit label set", "js")."');return false\">" .

View File

@@ -53,10 +53,10 @@ if ($order == "alpha")
$result=db_execute_assoc($query) or safe_die("Error with query: ".$query."<br />".$connect->ErrorMsg()); $result=db_execute_assoc($query) or safe_die("Error with query: ".$query."<br />".$connect->ErrorMsg());
$listcolumnoutput= "<table width='98%' class='statisticstable' border='1' cellpadding='2' cellspacing='0'>\n"; $listcolumnoutput= "<table width='98%' class='statisticstable' border='1' cellpadding='2' cellspacing='0'>\n";
$listcolumnoutput.= "<tr><td><input type='image' src='$imagefiles/downarrow.png' align='middle' onclick=\"window.open('admin.php?action=listcolumn&amp;sid=$surveyid&amp;column=$column&amp;order=id', '_top')\" /></td>\n"; $listcolumnoutput.= "<tr><td><input type='image' src='$imagefiles/downarrow.png' align='middle' onclick=\"window.open('admin.php?action=listcolumn&amp;sid=$surveyid&amp;column=$column&amp;order=id', '_self')\" /></td>\n";
$listcolumnoutput.= "<td valign='top'><input type='image' align='right' src='$imagefiles/close.gif' onclick='window.close()' />"; $listcolumnoutput.= "<td valign='top'><input type='image' align='right' src='$imagefiles/close.gif' onclick='window.close()' />";
if ($connect->databaseType != 'odbc_mssql') if ($connect->databaseType != 'odbc_mssql')
{ $listcolumnoutput.= "<input type='image' src='$imagefiles/downarrow.png' align='left' onclick=\"window.open('admin.php?action=listcolumn&amp;sid=$surveyid&amp;column=$column&amp;order=alpha', '_top')\" />"; } { $listcolumnoutput.= "<input type='image' src='$imagefiles/downarrow.png' align='left' onclick=\"window.open('admin.php?action=listcolumn&amp;sid=$surveyid&amp;column=$column&amp;order=alpha', '_self')\" />"; }
$listcolumnoutput.= "</td></tr>\n"; $listcolumnoutput.= "</td></tr>\n";
while ($row=$result->FetchRow()) while ($row=$result->FetchRow())
{ {

View File

@@ -27,7 +27,7 @@ if (!isset($surveyid) || !$surveyid)
$resetsurveylogicoutput .= "\t<tr ><td align='center'>\n"; $resetsurveylogicoutput .= "\t<tr ><td align='center'>\n";
$resetsurveylogicoutput .= "<br /><font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n"; $resetsurveylogicoutput .= "<br /><font color='red'><strong>".$clang->gT("Error")."</strong></font><br />\n";
$resetsurveylogicoutput .= $clang->gT("You have not selected a survey to delete")."<br /><br />\n"; $resetsurveylogicoutput .= $clang->gT("You have not selected a survey to delete")."<br /><br />\n";
$resetsurveylogicoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\">\n"; $resetsurveylogicoutput .= "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\">\n";
$resetsurveylogicoutput .= "</td></tr></table>\n"; $resetsurveylogicoutput .= "</td></tr></table>\n";
$resetsurveylogicoutput .= "</body>\n</html>"; $resetsurveylogicoutput .= "</body>\n</html>";
return; return;
@@ -47,8 +47,8 @@ if (!isset($ok) || !$ok)
$resetsurveylogicoutput .= "\t</tr>\n"; $resetsurveylogicoutput .= "\t</tr>\n";
$resetsurveylogicoutput .= "\t<tr>\n"; $resetsurveylogicoutput .= "\t<tr>\n";
$resetsurveylogicoutput .= "\t\t<td align='center'><br />\n"; $resetsurveylogicoutput .= "\t\t<td align='center'><br />\n";
$resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Cancel")."' onclick=\"window.open('admin.php?sid=$surveyid', '_top')\" /><br />\n"; $resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Cancel")."' onclick=\"window.open('admin.php?sid=$surveyid', '_self')\" /><br />\n";
// $resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"window.open('$scriptname?action=resetsurveylogic&amp;sid=$surveyid&amp;ok=Y','_top')\" />\n"; // $resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"window.open('$scriptname?action=resetsurveylogic&amp;sid=$surveyid&amp;ok=Y','_self')\" />\n";
$resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"".get2post("$scriptname?action=resetsurveylogic&amp;sid=$surveyid&amp;ok=Y")."\" />\n"; $resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Delete")."' onclick=\"".get2post("$scriptname?action=resetsurveylogic&amp;sid=$surveyid&amp;ok=Y")."\" />\n";
$resetsurveylogicoutput .= "\t\t</td>\n"; $resetsurveylogicoutput .= "\t\t</td>\n";
$resetsurveylogicoutput .= "\t</tr>\n"; $resetsurveylogicoutput .= "\t</tr>\n";
@@ -66,7 +66,7 @@ else //delete conditions in the survey
$resetsurveylogicoutput .= "\t<tr>\n"; $resetsurveylogicoutput .= "\t<tr>\n";
$resetsurveylogicoutput .= "\t\t<td align='center'><br />\n"; $resetsurveylogicoutput .= "\t\t<td align='center'><br />\n";
$resetsurveylogicoutput .= "\t\t\t<strong>".$clang->gT("All conditions in this survey have been deleted.")."<br /><br />\n"; $resetsurveylogicoutput .= "\t\t\t<strong>".$clang->gT("All conditions in this survey have been deleted.")."<br /><br />\n";
$resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Continue")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" />\n"; $resetsurveylogicoutput .= "\t\t\t<input type='submit' value='".$clang->gT("Continue")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" />\n";
$resetsurveylogicoutput .= "\t\t</strong></td>\n"; $resetsurveylogicoutput .= "\t\t</strong></td>\n";
$resetsurveylogicoutput .= "\t</tr>\n"; $resetsurveylogicoutput .= "\t</tr>\n";
$surveyid=false; $surveyid=false;

View File

@@ -128,7 +128,7 @@ function savedmenubar()
. "\t\t\t<a href='$scriptname?action=saved&amp;sid=$surveyid&amp;subaction=all' onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Display Responses", "js")."')\">" . . "\t\t\t<a href='$scriptname?action=saved&amp;sid=$surveyid&amp;subaction=all' onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Display Responses", "js")."')\">" .
"<img name='ViewAll' src='$imagefiles/document.png' title='' align='left'></a>\n" "<img name='ViewAll' src='$imagefiles/document.png' title='' align='left'></a>\n"
//. "\t\t\t<input type='image' name='ViewLast' src='$imagefiles/viewlast.png' title='" //. "\t\t\t<input type='image' name='ViewLast' src='$imagefiles/viewlast.png' title='"
//. $clang->gT("Display Last 50 Responses")."' align='left' onclick=\"window.open('saved.php?sid=$surveyid&action=all&limit=50&order=desc', '_top')\">\n" //. $clang->gT("Display Last 50 Responses")."' align='left' onclick=\"window.open('saved.php?sid=$surveyid&action=all&limit=50&order=desc', '_self')\">\n"
. "\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt=''>\n" . "\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt=''>\n"
. "\t\t</td>\n" . "\t\t</td>\n"
. "\t</tr>\n"; . "\t</tr>\n";

View File

@@ -729,7 +729,7 @@ if (isset($usejpgraph) && $usejpgraph == 1)
$statisticsoutput .= "\t\t<tr><td align='center'>\n\t\t\t<br />\n" $statisticsoutput .= "\t\t<tr><td align='center'>\n\t\t\t<br />\n"
."\t\t\t<input type='submit' value='".$clang->gT("View Stats")."' />\n" ."\t\t\t<input type='submit' value='".$clang->gT("View Stats")."' />\n"
."\t\t\t<input type='button' value='".$clang->gT("Clear")."' onclick=\"window.open('$scriptname?action=statistics&amp;sid=$surveyid', '_top')\" />\n" ."\t\t\t<input type='button' value='".$clang->gT("Clear")."' onclick=\"window.open('$scriptname?action=statistics&amp;sid=$surveyid', '_self')\" />\n"
."\t\t<br />&nbsp;\n" ."\t\t<br />&nbsp;\n"
."\t\t<input type='hidden' name='sid' value='$surveyid' />\n" ."\t\t<input type='hidden' name='sid' value='$surveyid' />\n"
."\t\t<input type='hidden' name='display' value='stats' />\n" ."\t\t<input type='hidden' name='display' value='stats' />\n"

View File

@@ -161,7 +161,7 @@ if ($action == "templateupload")
if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path)) { if (!@move_uploaded_file($_FILES['the_file']['tmp_name'], $the_full_file_path)) {
echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
echo sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n"; echo sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n";
echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" />\n"; echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" />\n";
echo "</td></tr></table>\n"; echo "</td></tr></table>\n";
echo "</body>\n</html>\n"; echo "</body>\n</html>\n";
exit; exit;
@@ -173,7 +173,7 @@ if ($action == "templateupload")
@unlink($_FILES['the_file']['tmp_name']); @unlink($_FILES['the_file']['tmp_name']);
echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
echo $clang->gT("This file type is not allowed to be uploaded.")."<br /><br />\n"; echo $clang->gT("This file type is not allowed to be uploaded.")."<br /><br />\n";
echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" />\n"; echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" />\n";
echo "</td></tr></table>\n"; echo "</td></tr></table>\n";
echo "</body>\n</html>\n"; echo "</body>\n</html>\n";
exit; exit;
@@ -185,7 +185,7 @@ if ($action == "templateupload")
@unlink($_FILES['the_file']['tmp_name']); @unlink($_FILES['the_file']['tmp_name']);
echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; echo "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
echo $clang->gT("This file type is not allowed to be uploaded.")."<br /><br />\n"; echo $clang->gT("This file type is not allowed to be uploaded.")."<br /><br />\n";
echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" />\n"; echo "<input type='submit' value='".$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" />\n";
echo "</td></tr></table>\n"; echo "</td></tr></table>\n";
echo "</body>\n</html>\n"; echo "</body>\n</html>\n";
exit; exit;
@@ -529,7 +529,7 @@ $templatesoutput= "<script type='text/javascript'>\n"
."\tif (newtemplatename=window.prompt(text, defvalue))\n" ."\tif (newtemplatename=window.prompt(text, defvalue))\n"
."\t\t{\n" ."\t\t{\n"
//."\t\tvar url='admin.php?action=template'+action+'&newname='+newtemplatename+'&copydir='+copydirectory;\n" //."\t\tvar url='admin.php?action=template'+action+'&newname='+newtemplatename+'&copydir='+copydirectory;\n"
//."\t\twindow.open(url, '_top');\n" //."\t\twindow.open(url, '_self');\n"
. "\t\t\tsendPost('admin.php','".$_SESSION['checksessionpost']."',new Array('action','newname','copydir'),new Array('template'+action,newtemplatename,copydirectory));\n" . "\t\t\tsendPost('admin.php','".$_SESSION['checksessionpost']."',new Array('action','newname','copydir'),new Array('template'+action,newtemplatename,copydirectory));\n"
."\t\t}\n" ."\t\t}\n"
."\t}\n" ."\t}\n"
@@ -582,7 +582,7 @@ $templatesoutput.= "<table width='100%' border='0' bgcolor='#DDDDDD'>\n"
. " onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Create new template")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Create new template", "js")."')\">" . " onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Create new template")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Create new template", "js")."')\">"
. "<img src='$imagefiles/add.png' alt='' align='right' title='' /></a>\n" . "<img src='$imagefiles/add.png' alt='' align='right' title='' /></a>\n"
."<font style='boxcaption'><strong>".$clang->gT("Template:")."</strong> </font>" ."<font style='boxcaption'><strong>".$clang->gT("Template:")."</strong> </font>"
."<select class=\"listboxtemplates\" name='templatedir' onchange='javascript: window.open(\"admin.php?action=templates&amp;editfile=$editfile&amp;screenname=".html_escape($screenname)."&amp;templatename=\"+this.value, \"_top\")'>\n" ."<select class=\"listboxtemplates\" name='templatedir' onchange='javascript: window.open(\"admin.php?action=templates&amp;editfile=$editfile&amp;screenname=".html_escape($screenname)."&amp;templatename=\"+this.value, \"_self\")'>\n"
.makeoptions($templates, "name", "name", $templatename) .makeoptions($templates, "name", "name", $templatename)
."</select>\n" ."</select>\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
@@ -624,7 +624,7 @@ else
" /></a>"; " /></a>";
} }
$templatesoutput.= "\t\t\t\t\t<img src='$imagefiles/blank.gif' alt='' width='20' height='10' border='0' hspace='0' align='left' />\n" $templatesoutput.= "\t\t\t\t\t<img src='$imagefiles/blank.gif' alt='' width='20' height='10' border='0' hspace='0' align='left' />\n"
."\t\t\t\t\t<a href='#' onclick='javascript:window.open(\"admin.php?action=templatezip&amp;editfile=$editfile&amp;screenname=".html_escape($screenname)."&amp;templatename=$templatename\", \"_top\")'". ."\t\t\t\t\t<a href='#' onclick='javascript:window.open(\"admin.php?action=templatezip&amp;editfile=$editfile&amp;screenname=".html_escape($screenname)."&amp;templatename=$templatename\", \"_self\")'".
"onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Export Template")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Export Template", "js")."')\">" . "onmouseout=\"hideTooltip()\" title=\"".$clang->gTview("Export Template")."\" onmouseover=\"showTooltip(event,'".$clang->gT("Export Template", "js")."')\">" .
"<img name='Export' src='$imagefiles/export.png' alt='' align='left' title='' /></a>\n" "<img name='Export' src='$imagefiles/export.png' alt='' align='left' title='' /></a>\n"
."\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" ."\t\t\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"
@@ -637,7 +637,7 @@ $templatesoutput.= "\t\t\t\t\t<img src='$imagefiles/blank.gif' alt='' width='20'
."<img src='$imagefiles/seperator.gif' align='right' alt='minimise' border='0' hspace='0' />" ."<img src='$imagefiles/seperator.gif' align='right' alt='minimise' border='0' hspace='0' />"
."<img src='$imagefiles/blank.gif' width='35' align='right' alt='minimise' border='0' hspace='0' />" ."<img src='$imagefiles/blank.gif' width='35' align='right' alt='minimise' border='0' hspace='0' />"
."<font style='boxcaption'><strong>".$clang->gT("Screen:")."</strong> </font>" ."<font style='boxcaption'><strong>".$clang->gT("Screen:")."</strong> </font>"
. "<select class=\"listboxtemplates\" name='screenname' onchange='javascript: window.open(\"admin.php?action=templates&amp;templatename=$templatename&amp;editfile=$editfile&amp;screenname=\"+this.value, \"_top\")'>\n" . "<select class=\"listboxtemplates\" name='screenname' onchange='javascript: window.open(\"admin.php?action=templates&amp;templatename=$templatename&amp;editfile=$editfile&amp;screenname=\"+this.value, \"_self\")'>\n"
. makeoptions($screens, "name", "name", html_escape($screenname) ) . makeoptions($screens, "name", "name", html_escape($screenname) )
. "</select>&nbsp;\n" . "</select>&nbsp;\n"
."</td></tr></table>\n" ."</td></tr></table>\n"
@@ -662,7 +662,7 @@ $templatesoutput.= "\t\t\t\t<table width='100%' border='0'>\n"
if (trim($editfile)!='') {$templatesoutput.= " <i>$editfile</i>";} if (trim($editfile)!='') {$templatesoutput.= " <i>$editfile</i>";}
$templatesoutput.= "</strong></td>" $templatesoutput.= "</strong></td>"
."<td align='right' ><strong>".$clang->gT("Other Files:")."</strong></td></tr>\n" ."<td align='right' ><strong>".$clang->gT("Other Files:")."</strong></td></tr>\n"
."<tr><td valign='top'><select size='12' name='editfile' onchange='javascript: window.open(\"admin.php?action=templates&amp;templatename=$templatename&amp;screenname=".html_escape($screenname)."&amp;editfile=\"+this.value, \"_top\")'>\n" ."<tr><td valign='top'><select size='12' name='editfile' onchange='javascript: window.open(\"admin.php?action=templates&amp;templatename=$templatename&amp;screenname=".html_escape($screenname)."&amp;editfile=\"+this.value, \"_self\")'>\n"
.makeoptions($files, "name", "name", $editfile) .makeoptions($files, "name", "name", $editfile)
."</select>\n" ."</select>\n"
."\t\t\t\t\t\t</td>\n" ."\t\t\t\t\t\t</td>\n"

View File

@@ -182,7 +182,7 @@ if (!isset($surveyid) || !$surveyid)
."\t<tr><td align='center'><br /><font color='red'><strong>" ."\t<tr><td align='center'><br /><font color='red'><strong>"
.$clang->gT("Error")."</strong></font><br />".$clang->gT("You have not selected a survey")."<br /><br />" .$clang->gT("Error")."</strong></font><br />".$clang->gT("You have not selected a survey")."<br /><br />"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br /><br /></td></tr>\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br /><br /></td></tr>\n"
."</table>\n" ."</table>\n"
."</body>\n</html>"; ."</body>\n</html>";
return; return;
@@ -200,7 +200,7 @@ if (!$chcount)
."\t<tr><td align='center'><br /><font color='red'><strong>" ."\t<tr><td align='center'><br /><font color='red'><strong>"
.$clang->gT("Error")."</strong></font><br />".$clang->gT("The survey you selected does not exist") .$clang->gT("Error")."</strong></font><br />".$clang->gT("The survey you selected does not exist")
."<br /><br />\n\t<input type='submit' value='" ."<br /><br />\n\t<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_top')\" /><br /><br /></td></tr>\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname', '_self')\" /><br /><br /></td></tr>\n"
."</table>\n" ."</table>\n"
."</body>\n</html>"; ."</body>\n</html>";
return; return;
@@ -267,7 +267,7 @@ if (!$tkresult = $connect->Execute($tkquery)) //If the query fails, assume no to
"<pre>".implode(" ",$sqlarray)."</pre>\n" . "<pre>".implode(" ",$sqlarray)."</pre>\n" .
"</td></tr></table>" "</td></tr></table>"
."\t\t\t<input type='submit' value='" ."\t\t\t<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" />\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" />\n"
."\t\t</td>\n" ."\t\t</td>\n"
."\t</tr>\n" ."\t</tr>\n"
."</table>\n" ."</table>\n"
@@ -283,7 +283,7 @@ if (!$tkresult = $connect->Execute($tkquery)) //If the query fails, assume no to
."\t\t\t<br /><br />\n" ."\t\t\t<br /><br />\n"
."\t\t\t".$clang->gT("A token table has been created for this survey.")." (\"".$dbprefix."tokens_$surveyid\")<br /><br />\n" ."\t\t\t".$clang->gT("A token table has been created for this survey.")." (\"".$dbprefix."tokens_$surveyid\")<br /><br />\n"
."\t\t\t<input type='submit' value='" ."\t\t\t<input type='submit' value='"
.$clang->gT("Continue")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\" />\n" .$clang->gT("Continue")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\" />\n"
."\t\t</td>\n" ."\t\t</td>\n"
."\t</tr>\n" ."\t</tr>\n"
."</table>\n" ."</table>\n"
@@ -305,7 +305,7 @@ if (!$tkresult = $connect->Execute($tkquery)) //If the query fails, assume no to
."\t\t\t<br /><br />\n" ."\t\t\t<br /><br />\n"
."\t\t\t".$clang->gT("A token table has been created for this survey.")." (\"".$dbprefix."tokens_$surveyid\")<br /><br />\n" ."\t\t\t".$clang->gT("A token table has been created for this survey.")." (\"".$dbprefix."tokens_$surveyid\")<br /><br />\n"
."\t\t\t<input type='submit' value='" ."\t\t\t<input type='submit' value='"
.$clang->gT("Continue")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\" />\n" .$clang->gT("Continue")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\" />\n"
."\t\t</td>\n" ."\t\t</td>\n"
."\t</tr>\n" ."\t</tr>\n"
."</table>\n" ."</table>\n"
@@ -347,11 +347,11 @@ if (!$tkresult = $connect->Execute($tkquery)) //If the query fails, assume no to
$tokenoutput .= "\t\t\t".$clang->gT("Do you want to create a tokens table for this survey?"); $tokenoutput .= "\t\t\t".$clang->gT("Do you want to create a tokens table for this survey?");
$tokenoutput .= "<br /><br />\n"; $tokenoutput .= "<br /><br />\n";
$tokenoutput .= "\t\t\t<input type='submit' value='" $tokenoutput .= "\t\t\t<input type='submit' value='"
// .$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;createtable=Y', '_top')\" /><br />\n"; // .$clang->gT("Initialise Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;createtable=Y', '_self')\" /><br />\n";
.$clang->gT("Initialise Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;createtable=Y")."\" /><br />\n"; .$clang->gT("Initialise Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;createtable=Y")."\" /><br />\n";
} }
$tokenoutput .= "\t\t\t<input type='submit' value='" $tokenoutput .= "\t\t\t<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$homeurl/admin.php?sid=$surveyid', '_top')\" /><br /><br />\n"; .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$homeurl/admin.php?sid=$surveyid', '_self')\" /><br /><br />\n";
// Do not offer old postgres token tables for restore since these are having an issue with missing index // Do not offer old postgres token tables for restore since these are having an issue with missing index
if ($tcount>0 && $databasetype!='postgres' && if ($tcount>0 && $databasetype!='postgres' &&
($sumrows5['edit_survey_property'] || ($sumrows5['edit_survey_property'] ||
@@ -400,15 +400,15 @@ $tokenoutput .= "\t<tr>\n"
."\t\t\t<a href=\"#\" onclick=\"showhelp('show')\" onmouseout=\"hideTooltip()\"" ."\t\t\t<a href=\"#\" onclick=\"showhelp('show')\" onmouseout=\"hideTooltip()\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Show Help", "js")."');return false\">" . ."onmouseover=\"showTooltip(event,'".$clang->gT("Show Help", "js")."');return false\">" .
"<img src='$imagefiles/showhelp.png' title='' align='right' alt='' /></a>\n" "<img src='$imagefiles/showhelp.png' title='' align='right' alt='' /></a>\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?sid=$surveyid', '_top')\" onmouseout=\"hideTooltip()\"" ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?sid=$surveyid', '_self')\" onmouseout=\"hideTooltip()\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Return to Survey Administration", "js")."');return false\">" . ."onmouseover=\"showTooltip(event,'".$clang->gT("Return to Survey Administration", "js")."');return false\">" .
"<img name='HomeButton' src='$imagefiles/home.png' align='left' alt='' /></a>\n" "<img name='HomeButton' src='$imagefiles/home.png' align='left' alt='' /></a>\n"
."\t\t\t<img src='$imagefiles/blank.gif' alt='' width='11' border='0' hspace='0' align='left' />\n" ."\t\t\t<img src='$imagefiles/blank.gif' alt='' width='11' border='0' hspace='0' align='left' />\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Show Token Summary", "js")."');return false\" >" ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Show Token Summary", "js")."');return false\" >"
."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" ."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"
."<img name='SummaryButton' src='$imagefiles/summary.png' title='' align='left' alt='' /></a>\n" ."<img name='SummaryButton' src='$imagefiles/summary.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" ."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=browse', '_top')\" onmouseout=\"hideTooltip()\"" ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=browse', '_self')\" onmouseout=\"hideTooltip()\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Display Tokens", "js")."');return false\">" ."onmouseover=\"showTooltip(event,'".$clang->gT("Display Tokens", "js")."');return false\">"
."<img name='ViewAllButton' src='$imagefiles/document.png' title='' align='left' alt='' /></a>\n"; ."<img name='ViewAllButton' src='$imagefiles/document.png' title='' align='left' alt='' /></a>\n";
@@ -416,19 +416,19 @@ if ($sumrows5['edit_survey_property'] ||
$sumrows5['activate_survey'] || $sumrows5['activate_survey'] ||
$_SESSION['USER_RIGHT_SUPERADMIN'] == 1) $_SESSION['USER_RIGHT_SUPERADMIN'] == 1)
{ {
$tokenoutput .= "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=addnew', '_top')\" onmouseout=\"hideTooltip()\"" . $tokenoutput .= "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=addnew', '_self')\" onmouseout=\"hideTooltip()\"" .
"onmouseover=\"showTooltip(event,'".$clang->gT("Add new token entry", "js")."');return false\">" . "onmouseover=\"showTooltip(event,'".$clang->gT("Add new token entry", "js")."');return false\">" .
"<img name='AddNewButton' src='$imagefiles/add.png' title='' align='left' alt='' /></a>\n" "<img name='AddNewButton' src='$imagefiles/add.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" ."\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=import', '_top')\" onmouseout=\"hideTooltip()\" ". ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=import', '_self')\" onmouseout=\"hideTooltip()\" ".
"onmouseover=\"showTooltip(event,'".$clang->gT("Import Tokens from CSV File", "js")."');return false\"> <img name='ImportButton' src='$imagefiles/importcsv.png' title='' align='left' alt='' /></a>" "onmouseover=\"showTooltip(event,'".$clang->gT("Import Tokens from CSV File", "js")."');return false\"> <img name='ImportButton' src='$imagefiles/importcsv.png' title='' align='left' alt='' /></a>"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=importldap', '_top')\" onmouseout=\"hideTooltip()\" ". ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=importldap', '_self')\" onmouseout=\"hideTooltip()\" ".
"onmouseover=\"showTooltip(event,'".$clang->gT("Import Tokens from LDAP Query", "js")."');return false\"> <img name='ImportLdapButton' src='$imagefiles/importldap.png' title='' alt='' align='left' /></a>"; "onmouseover=\"showTooltip(event,'".$clang->gT("Import Tokens from LDAP Query", "js")."');return false\"> <img name='ImportLdapButton' src='$imagefiles/importldap.png' title='' alt='' align='left' /></a>";
} }
if ($sumrows5['export'] || $_SESSION['USER_RIGHT_SUPERADMIN'] == 1) if ($sumrows5['export'] || $_SESSION['USER_RIGHT_SUPERADMIN'] == 1)
{ {
$tokenoutput .= "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=export', '_top')\" onmouseout=\"hideTooltip()\"" . $tokenoutput .= "\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=export', '_self')\" onmouseout=\"hideTooltip()\"" .
"onmouseover=\"showTooltip(event,'".$clang->gT("Export Tokens to CSV file", "js")."');return false\">". "onmouseover=\"showTooltip(event,'".$clang->gT("Export Tokens to CSV file", "js")."');return false\">".
"<img name='ExportButton' src='$imagefiles/exportcsv.png' align='left' alt='' /></a>\n"; "<img name='ExportButton' src='$imagefiles/exportcsv.png' align='left' alt='' /></a>\n";
} }
@@ -437,18 +437,18 @@ if ($sumrows5['edit_survey_property'] ||
$_SESSION['USER_RIGHT_SUPERADMIN'] == 1) $_SESSION['USER_RIGHT_SUPERADMIN'] == 1)
{ {
$tokenoutput .= "\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n" $tokenoutput .= "\t\t\t<img src='$imagefiles/seperator.gif' alt='' border='0' hspace='0' align='left' />\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=emailsettings', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Edit Email Templates", "js")."');return false\">" . ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=emailsettings', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Edit Email Templates", "js")."');return false\">" .
"<img name='EmailSettingsButton' src='$imagefiles/emailsettings.png' title='' align='left' alt='' /></a>\n" "<img name='EmailSettingsButton' src='$imagefiles/emailsettings.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=email', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Send email invitation", "js")."');return false\">" . ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=email', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Send email invitation", "js")."');return false\">" .
"<img name='InviteButton' src='$imagefiles/invite.png' title='' align='left' alt='' /></a>\n" "<img name='InviteButton' src='$imagefiles/invite.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=remind', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Send email reminder", "js")."');return false\">" . ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=remind', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Send email reminder", "js")."');return false\">" .
"<img name='RemindButton' src='$imagefiles/remind.png' title='' align='left' alt='' /></a>\n" "<img name='RemindButton' src='$imagefiles/remind.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n" ."\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n"
// ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Generate Tokens", "js")."');return false\">" . // ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Generate Tokens", "js")."');return false\">" .
."\t\t\t<a href=\"#\" onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify")."\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Generate Tokens", "js")."');return false\">" . ."\t\t\t<a href=\"#\" onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify")."\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Generate Tokens", "js")."');return false\">" .
"<img name='TokenifyButton' src='$imagefiles/tokenify.png' title='' align='left' alt='' /></a>\n" "<img name='TokenifyButton' src='$imagefiles/tokenify.png' title='' align='left' alt='' /></a>\n"
."\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n" ."\t\t\t<img src='$imagefiles/seperator.gif' border='0' hspace='0' align='left' alt='' />\n"
// ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill', '_top')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Drop tokens table", "js")."');return false\">" . // ."\t\t\t<a href=\"#\" onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill', '_self')\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Drop tokens table", "js")."');return false\">" .
."\t\t\t<a href=\"#\" onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill")."\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Drop tokens table", "js")."');return false\">" . ."\t\t\t<a href=\"#\" onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill")."\" onmouseout=\"hideTooltip()\" onmouseover=\"showTooltip(event,'".$clang->gT("Drop tokens table", "js")."');return false\">" .
"<img name='DeleteTokensButton' src='$imagefiles/delete.png' title='' align='left' alt='' /></a>\n" "<img name='DeleteTokensButton' src='$imagefiles/delete.png' title='' align='left' alt='' /></a>\n"
."\t\t</td>\n"; ."\t\t</td>\n";
@@ -879,9 +879,9 @@ if ($subaction == "browse" || $subaction == "search")
{ {
$tokenoutput .= "\t\t<td align='left'>\n" $tokenoutput .= "\t\t<td align='left'>\n"
."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='E' title='" ."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='E' title='"
.$clang->gT("Edit Token Entry")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=edit&amp;tid=".$brow['tid']."', '_top')\" />" .$clang->gT("Edit Token Entry")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=edit&amp;tid=".$brow['tid']."', '_self')\" />"
."<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='D' title='" ."<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='D' title='"
// .$clang->gT("Delete Token Entry")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=delete&amp;tid=".$brow['tid']."&amp;limit=$limit&amp;start=$start&amp;order=$order', '_top')\" />"; // .$clang->gT("Delete Token Entry")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=delete&amp;tid=".$brow['tid']."&amp;limit=$limit&amp;start=$start&amp;order=$order', '_self')\" />";
.$clang->gT("Delete Token Entry")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=delete&amp;tid=".$brow['tid']."&amp;limit=$limit&amp;start=$start&amp;order=$order")."\" />"; .$clang->gT("Delete Token Entry")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=delete&amp;tid=".$brow['tid']."&amp;limit=$limit&amp;start=$start&amp;order=$order")."\" />";
if (($brow['completed'] == "N" || $brow['completed'] == "") &&$brow['token']) {$tokenoutput .= "<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='S' title='".$clang->gT("Do Survey")."' onclick=\"window.open('$publicurl/index.php?sid=$surveyid&amp;lang=".$brow['language']."&amp;token=".trim($brow['token'])."', '_blank')\" />\n";} if (($brow['completed'] == "N" || $brow['completed'] == "") &&$brow['token']) {$tokenoutput .= "<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='S' title='".$clang->gT("Do Survey")."' onclick=\"window.open('$publicurl/index.php?sid=$surveyid&amp;lang=".$brow['language']."&amp;token=".trim($brow['token'])."', '_blank')\" />\n";}
$tokenoutput .= "\n\t\t</td>\n"; $tokenoutput .= "\n\t\t</td>\n";
@@ -927,7 +927,7 @@ if ($subaction == "browse" || $subaction == "search")
{ {
$tokenoutput .= "\t\t<td align='center' valign='middle'>\n" $tokenoutput .= "\t\t<td align='center' valign='middle'>\n"
."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='I' title='" ."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='I' title='"
.$clang->gT("Send invitation email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?action=tokens&amp;sid=$surveyid&amp;subaction=email&amp;tid=".$brow['tid']."', '_top')\" />" .$clang->gT("Send invitation email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?action=tokens&amp;sid=$surveyid&amp;subaction=email&amp;tid=".$brow['tid']."', '_self')\" />"
."\t\t</td>\n"; ."\t\t</td>\n";
} }
@@ -936,7 +936,7 @@ if ($subaction == "browse" || $subaction == "search")
{ {
$tokenoutput .= "\t\t<td align='center' valign='middle'>\n" $tokenoutput .= "\t\t<td align='center' valign='middle'>\n"
."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='R' title='" ."\t\t\t<input style='height: 16; width: 16px; font-size: 8; font-family: verdana' type='submit' value='R' title='"
.$clang->gT("Send reminder email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?sid=$surveyid&amp;action=tokens&amp;subaction=remind&amp;tid=".$brow['tid']."', '_top')\" />" .$clang->gT("Send reminder email to this entry")."' onclick=\"window.open('{$_SERVER['PHP_SELF']}?sid=$surveyid&amp;action=tokens&amp;subaction=remind&amp;tid=".$brow['tid']."', '_self')\" />"
."\t\t</td>\n"; ."\t\t</td>\n";
} }
else else
@@ -969,10 +969,10 @@ if ($subaction == "kill" &&
.$clang->gT("If you delete this table tokens will no longer be required to access this survey.")."<br />".$clang->gT("A backup of this table will be made if you proceed. Your system administrator will be able to access this table.")."<br />\n" .$clang->gT("If you delete this table tokens will no longer be required to access this survey.")."<br />".$clang->gT("A backup of this table will be made if you proceed. Your system administrator will be able to access this table.")."<br />\n"
."( \"old_tokens_{$surveyid}_$date\" )<br /><br />\n" ."( \"old_tokens_{$surveyid}_$date\" )<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
// .$clang->gT("Delete Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill&amp;ok=surething', '_top')\" /><br />\n" // .$clang->gT("Delete Tokens")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill&amp;ok=surething', '_self')\" /><br />\n"
.$clang->gT("Delete Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill&amp;ok=surething")."\" /><br />\n" .$clang->gT("Delete Tokens")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=kill&amp;ok=surething")."\" /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Cancel")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\" />\n"; .$clang->gT("Cancel")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\" />\n";
} }
elseif (isset($_POST['ok']) && $_POST['ok'] == "surething") elseif (isset($_POST['ok']) && $_POST['ok'] == "surething")
{ {
@@ -997,7 +997,7 @@ if ($subaction == "kill" &&
.$clang->gT("The tokens table has now been removed and tokens are no longer required to access this survey.")."<br /> ".$clang->gT("A backup of this table has been made and can be accessed by your system administrator.")."<br />\n" .$clang->gT("The tokens table has now been removed and tokens are no longer required to access this survey.")."<br /> ".$clang->gT("A backup of this table has been made and can be accessed by your system administrator.")."<br />\n"
."(\"{$dbprefix}old_tokens_{$surveyid}_$date\")"."<br /><br />\n" ."(\"{$dbprefix}old_tokens_{$surveyid}_$date\")"."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid={$surveyid}', '_top')\" />\n" .$clang->gT("Main Admin Screen")."' onclick=\"window.open('$scriptname?sid={$surveyid}', '_self')\" />\n"
."</span>\n"; ."</span>\n";
} }
$tokenoutput .= "</font></td></tr></table>\n" $tokenoutput .= "</font></td></tr></table>\n"
@@ -1510,10 +1510,10 @@ if ($subaction == "tokenify" &&
{ {
$tokenoutput .= "<br />".$clang->gT("Clicking yes will generate tokens for all those in this token list that have not been issued one. Is this OK?")."<br /><br />\n" $tokenoutput .= "<br />".$clang->gT("Clicking yes will generate tokens for all those in this token list that have not been issued one. Is this OK?")."<br /><br />\n"
."<input type='submit' value='" ."<input type='submit' value='"
// .$clang->gT("Yes")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify&amp;ok=Y', '_top')\" />\n" // .$clang->gT("Yes")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify&amp;ok=Y', '_self')\" />\n"
.$clang->gT("Yes")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify&amp;ok=Y")."\" />\n" .$clang->gT("Yes")."' onclick=\"".get2post("$scriptname?action=tokens&amp;sid=$surveyid&amp;subaction=tokenify&amp;ok=Y")."\" />\n"
."<input type='submit' value='" ."<input type='submit' value='"
.$clang->gT("No")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_top')\" />\n" .$clang->gT("No")."' onclick=\"window.open('$scriptname?action=tokens&amp;sid=$surveyid', '_self')\" />\n"
."<br /><br />\n"; ."<br /><br />\n";
} }
else else

View File

@@ -51,7 +51,7 @@ if (($ugid && !$surveyid) || $action == "editusergroups" || $action == "adduserg
if($ugid && $grpresultcount > 0) if($ugid && $grpresultcount > 0)
{ {
$usergroupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=mailusergroup&amp;ugid=$ugid', '_top')\"" $usergroupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=mailusergroup&amp;ugid=$ugid', '_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Mail to all Members", "js")."');return false\"> " . . "onmouseover=\"showTooltip(event,'".$clang->gT("Mail to all Members", "js")."');return false\"> " .
"<img src='$imagefiles/invite.png' title='' align='left' alt='' name='MailUserGroup' /></a>\n" ; "<img src='$imagefiles/invite.png' title='' align='left' alt='' name='MailUserGroup' /></a>\n" ;
@@ -62,7 +62,7 @@ if (($ugid && !$surveyid) || $action == "editusergroups" || $action == "adduserg
if($ugid && $grpresultcount > 0 && if($ugid && $grpresultcount > 0 &&
$_SESSION['loginID'] == $grow['owner_id']) $_SESSION['loginID'] == $grow['owner_id'])
{ {
$usergroupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editusergroup&amp;ugid=$ugid','_top')\"" $usergroupsummary .= "<a href=\"#\" onclick=\"window.open('$scriptname?action=editusergroup&amp;ugid=$ugid','_self')\""
. "onmouseout=\"hideTooltip()\"" . "onmouseout=\"hideTooltip()\""
. "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current User Group", "js")."');return false\">" . . "onmouseover=\"showTooltip(event,'".$clang->gT("Edit Current User Group", "js")."');return false\">" .
"<img src='$imagefiles/edit.png' title='' alt='' name='EditUserGroup' align='left' /></a>\n" ; "<img src='$imagefiles/edit.png' title='' alt='' name='EditUserGroup' align='left' /></a>\n" ;
@@ -98,10 +98,10 @@ if (($ugid && !$surveyid) || $action == "editusergroups" || $action == "adduserg
."onmouseout=\"hideTooltip()\"" ."onmouseout=\"hideTooltip()\""
."onmouseover=\"showTooltip(event,'".$clang->gT("Add New User Group", "js")."');return false\">" . ."onmouseover=\"showTooltip(event,'".$clang->gT("Add New User Group", "js")."');return false\">" .
"<img src='$imagefiles/add.png' title='' alt='' " . "<img src='$imagefiles/add.png' title='' alt='' " .
"align='right' name='AddNewUserGroup' onclick=\"window.open('', '_top')\" /></a>\n"; "align='right' name='AddNewUserGroup' onclick=\"window.open('', '_self')\" /></a>\n";
} }
$usergroupsummary .= "\t\t\t\t\t<font class=\"boxcaption\">".$clang->gT("User Groups").":</font>&nbsp;<select name='ugid' " $usergroupsummary .= "\t\t\t\t\t<font class=\"boxcaption\">".$clang->gT("User Groups").":</font>&nbsp;<select name='ugid' "
. "onchange=\"window.open(this.options[this.selectedIndex].value, '_top')\">\n" . "onchange=\"window.open(this.options[this.selectedIndex].value, '_self')\">\n"
. getusergrouplist() . getusergrouplist()
. "\t\t\t\t\t</select>\n" . "\t\t\t\t\t</select>\n"
. "\t\t\t\t</td></tr>\n" . "\t\t\t\t</td></tr>\n"

View File

@@ -128,7 +128,7 @@ else
{ {
$vvoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n"; $vvoutput .= "<strong><font color='red'>".$clang->gT("Error")."</font></strong><br />\n";
$vvoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n"; $vvoutput .= sprintf ($clang->gT("An error occurred uploading your file. This may be caused by incorrect permissions in your %s folder."),$tempdir)."<br /><br />\n";
$vvoutput .= "<input type='submit' value='".$clang->gT("Back to Response Import")."' onclick=\"window.open('$scriptname?action=vvimport&sid=$surveyid', '_top')\">\n"; $vvoutput .= "<input type='submit' value='".$clang->gT("Back to Response Import")."' onclick=\"window.open('$scriptname?action=vvimport&sid=$surveyid', '_self')\">\n";
$vvoutput .= "</font></td></tr></table><br />&nbsp;\n"; $vvoutput .= "</font></td></tr></table><br />&nbsp;\n";
return; return;
} }