Skip to content

Commit

Permalink
Fixed LimeReplacementFields in Fckeditor for email templates, fixed l…
Browse files Browse the repository at this point in the history
…abels for Detailed-admin-notification, and added the new Admin-notification replacement-fields to Fckeditor.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9517 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Thibault Le Meur committed Nov 22, 2010
1 parent fe79c54 commit 2e1bbea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions admin/admin.php
Expand Up @@ -347,6 +347,7 @@
}
break;
case 'tokens': // email
case 'emailtemplates': // email
if (bHasSurveyPermission($surveyid,'tokens','update'))
{
$_SESSION['FileManagerContext']="edit:emailsettings:$surveyid";
Expand Down
4 changes: 2 additions & 2 deletions admin/editemailtemplates.php
Expand Up @@ -84,12 +84,12 @@
$sHTMLOutput .="</ul></div>"

."<div id='tab-{$grouplang}-admin-responses'>";
$sHTMLOutput .= "<ul><li><label for='email_admin_responses_subj_{$grouplang}'>".$clang->gT("Invitation email subject:")."</label>\n"
$sHTMLOutput .= "<ul><li><label for='email_admin_responses_subj_{$grouplang}'>".$clang->gT("Detailed admin notification subject:")."</label>\n"
. "<input type='text' size='80' name='email_admin_responses_subj_{$grouplang}' id='email_admin_responses_subj_{$grouplang}' value=\"{$esrow['email_admin_responses_subj']}\" />\n"
. "<input type='hidden' name='email_admin_responses_subj_default_{$grouplang}' id='email_admin_responses_subj_default_{$grouplang}' value='{$aDefaultTexts['admin_detailed_notification_subject']}' />\n"
. "<input type='button' value='".$clang->gT("Use default")."' onclick='javascript: fillin(\"email_admin_responses_subj_{$grouplang}\",\"email_admin_responses_subj_default_{$grouplang}\")' />\n"
. "\t</li>\n";
$sHTMLOutput .= "<li><label for='email_admin_responses_{$grouplang}'>".$clang->gT("Invitation email:")."</label>\n"
$sHTMLOutput .= "<li><label for='email_admin_responses_{$grouplang}'>".$clang->gT("Detailed admin notification email:")."</label>\n"
. "<textarea cols='80' rows='20' name='email_admin_responses_{$grouplang}' id='email_admin_responses_{$grouplang}'>".htmlspecialchars($esrow['email_admin_responses'])."</textarea>\n"
. getEditor("email-admin-resp","email_admin_responses_{$grouplang}", "[".$clang->gT("Invitation email:", "js")."](".$grouplang.")",$surveyid,'','',$action)
. "<input type='hidden' name='email_admin_responses_default_{$grouplang}' id='email_admin_responses_default_{$grouplang}' value='".htmlspecialchars($aDefaultTexts['admin_detailed_notification'],ENT_QUOTES)."' />\n"
Expand Down
8 changes: 7 additions & 1 deletion admin/fck_LimeReplacementFields.php
Expand Up @@ -132,6 +132,13 @@
$replFields[]=array('EXPIRY-MDY',$clang->gT("Survey expiration date (MM-DD-YYYY)"));
break;

case 'email-admin-conf':
case 'email-admin-resp':
$replFields[]=array('RELOADURL',$clang->gT("Reload URL"));
$replFields[]=array('VIEWRESPONSEURL',$clang->gT("View response URL"));
$replFields[]=array('EDITRESPONSEURL',$clang->gT("Edit response URL"));
$replFields[]=array('STATISTICSURL',$clang->gT("Statistics URL"));
$replFields[]=array('ANSWERTABLE',$clang->gT("Answers from this response"));
case 'email-inv':
case 'email-rem':
// these 2 fields are supported by email-inv and email-rem
Expand Down Expand Up @@ -211,7 +218,6 @@
$replFields[]=array('PERC',$clang->gT("Assessment group score"));
break;
}

if ($isInstertansEnabled===true)
{
if (empty($surveyid)) {die("No SID provided.");}
Expand Down

0 comments on commit 2e1bbea

Please sign in to comment.