Location: PHPKode > scripts > AskPeople-Free PHP survey application > AskPeople_2_2_2/surveys/config_A0F01E.php
<?php

//startOfSettings
	$surveysettings[surveyStatus] = "Open";
	$surveysettings[surveyOwner] = "3";
	$surveysettings[surveyPassword] = "";
	$surveysettings[emailResults] = "";
	$surveysettings[makeRSS] = "TRUE";
	$surveysettings[showProgress] = "FALSE";
	$surveysettings[showReset] = "TRUE";
	$surveysettings[randomiseOrder] = "FALSE";
	$surveysettings[finalURL] = "http://www.askpeople.co.uk";
	$surveysettings[blockResubmission] = "FALSE";
	$surveysettings[bigBoxWidth] = "80";
	$surveysettings[bigBoxHeight] = "5";
	$surveysettings[smallBoxWidth] = "50";
	$surveysettings[surveyClosedMessage] = "<h2>Sorry</h2><p class='error'>Thanks for your time, but this survey is now closed.</p>";
	$surveysettings[confirmationMessage] = "<h2>Thank you</h2><p>Many thanks - your responses have been received.</p>";
	$surveysettings[blockResubmissionMessage] = "<h2>Your earlier response has been stored.</h2><p class='error'>Thanks for completing this survey on an earlier visit. Your responses have been stored.</p>";
	$surveysettings[missingRequiredMessage] = "<h2>Sorry</h2><p class='error'>Sorry, you did not answer one or more of the required questions. Please click the 'Previous' button below to return and enter your answer.</p>";
	$surveysettings[surveyPasswordInstruction] = "<p>Please enter the password you have been given for this survey</p>";
	$surveysettings[surveyPasswordError] = "<p class='error'>Sorry, that password was not correct. Please try again</p>";
	$surveysettings[resetLink] = "Reset this survey";
	$surveysettings[resetWarning] = "This will erase all the information you have entered so far, and enable you to start again from the first question. Do you want to continue?";
	$surveysettings[submitButtonLabel] = "Finish Survey";
	$surveysettings[dropdownDefaultText] = "-- Please select an option --";
	$surveysettings[progressComplete] = "complete";
//endOfSettings

//startOfDynamicCode

$grouplist = null;
foreach((array)$users as $un => $uv) {
	if ($surveysettings['surveyOwner'] != $uv['ID']) { // all users except owner
		$grouplist .= "{$un} (ID: {$uv['ID']});";
	}
}
//endOfDynamicCode

//startOfLabels

$settingslabels['surveyStatus'] = array(
"type" => "radio",
"name" => "Survey status",
"description" => "Whether the survey is open to new respondents. If 'closed', a message is shown.",
"group" => "access-outputs",
"options" => "Open;Closed"
);

$settingslabels['surveyOwner'] = array(
"type" => "hidden",
"name" => "Survey owner",
"description" => "User ID of person who owns this project",
"group" => "access-outputs",
"options" => ""
);

$settingslabels['surveyGroup'] = array(
"type" => "checkbox",
"name" => "Survey access group",
"description" => "Usernames of other AskPeople users who have access to this project (in addition to the owner/creator).",
"group" => "access-outputs",
"options" => "{$grouplist}"
);

$settingslabels['emailResults'] = array(
"type" => "smallbox",
"name" => "Send each completed survey form by email",
"description" => "Emails every submitted questionnaire to the nominated email address below. Leave blank to disable this option",
"group" => "access-outputs",
"options" => ""
);

$settingslabels['makeRSS'] = array(
"type" => "boolean",
"name" => "Generate an RSS feed for this project:",
"description" => "Generates a (public) RSS feed for this project, showing only the number of responses received. Turn off for greater security.",
"group" => "access-outputs",
"options" => ""
);

$settingslabels['surveyPassword'] = array(
"type" => "smallbox",
"name" => "Survey password",
"description" => "Prompts respondents to enter the password below before being allowed to complete the survey. Leave blank to disable this option.",
"group" => "access-outputs",
"options" => ""
);

$settingslabels['bigBoxWidth'] = array(
"type" => "smallbox",
"name" => "Width of field for 'bigbox' questions",
"description" => "The width in characters of larger 'bigbox' text input questions (also defined within template stylesheets).",
"group" => "display",
"options" => ""
);

$settingslabels['bigBoxHeight'] = array(
"type" => "smallbox",
"name" => "The height in rows of larger 'bigbox' text input questions.",
"description" => "",
"group" => "display",
"options" => ""
);

$settingslabels['smallBoxWidth'] = array(
"type" => "smallbox",
"name" => "Width of field for 'smallbox' questions",
"description" => "The width in characters of smaller 'smallbox' text input questions (also defined within template stylesheets).",
"group" => "display",
"options" => ""
);

$settingslabels['showProgress'] = array(
"type" => "boolean",
"name" => "Show progress indicator",
"description" => "Whether a '% complete' indicator is shown on the survey form.",
"group" => "display",
"options" => ""
);

$settingslabels['finalURL'] = array(
"type" => "smallbox",
"name" => "Final URL",
"description" => "URL to which the respondent is redirected at the end of the survey. Leave blank to show a confirmation message instead.",
"group" => "display",
"options" => ""
);

$settingslabels['randomiseOrder'] = array(
"type" => "boolean",
"name" => "Randomise option order",
"description" => "Randomly reorders the options in single/multi questions to prevent order bias.",
"group" => "display",
"options" => ""
);

$settingslabels['showReset'] = array(
"type" => "boolean",
"name" => "Show reset option",
"description" => "Shows a link enabling respondents to clear their questionnaire answers and start over.",
"group" => "display",
"options" => ""
);

$settingslabels['blockResubmission'] = array(
"type" => "boolean",
"name" => "Block respondents from completing more than one questionnaire",
"description" => "Sets a cookie to prevent casual attempts to resubmit the questionnaire.",
"group" => "display",
"options" => ""
);

$settingslabels['surveyClosedMessage'] = array(
"type" => "bigbox",
"name" => "Survey closed message",
"description" => "Text of screen shown to respondents if survey is closed. HTML allowed.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['confirmationMessage'] = array(
"type" => "bigbox",
"name" => "Message shown when questionnaire submitted. HTML allowed",
"description" => "",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['blockResubmissionMessage'] = array(
"type" => "bigbox",
"name" => "Blocked resubmission message",
"description" => "Text of screen shown to respondents if they attempt to complete the survey again (and blocking is set to on). HTML allowed.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['missingRequiredMessage'] = array(
"type" => "bigbox",
"name" => "Missing required question message",
"description" => "Text of screen shown to respondents if they miss completing a required question. HTML allowed.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['surveyPasswordInstruction'] = array(
"type" => "smallbox",
"name" => "Survey password instruction text",
"description" => "If a password is specified, this prompt will be shown when they are asked to enter it. HTML allowed.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['surveyPasswordError'] = array(
"type" => "smallbox",
"name" => "Survey password error text",
"description" => "If a password is specified and the password entered is incorrect, this error message will be shown. HTML allowed.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['progressComplete'] = array(
"type" => "smallbox",
"name" => "Progress bar label",
"description" => "Text of the progress bar indicator, following the % symbol",
"group" => "labels-messages",
"options" => "complete"
);

$settingslabels['resetWarning'] = array(
"type" => "bigbox",
"name" => "Warning shown if user tries to reset",
"description" => "If respondent clicks on link to reset survey, the following popup warning message is shown (requires Javascript). No HTML.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['resetLink'] = array(
"type" => "smallbox",
"name" => "Reset link text",
"description" => "Text of link enabling respondents to reset the questionnaire to blank.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['submitButtonLabel'] = array(
"type" => "smallbox",
"name" => "Label for submit button",
"description" => "The label of the button respondents click to submit the survey form.",
"group" => "labels-messages",
"options" => ""
);

$settingslabels['dropdownDefaultText'] = array(
"type" => "smallbox",
"name" => "Dropdown menu default text",
"description" => "The text of the default option on dropdown menus.",
"group" => "labels-messages",
"options" => ""
);

//endOfLabels


?>
Return current item: AskPeople-Free PHP survey application