var sReplaceTextConfirmation='".$clang->gT("This will replace the existing text. Continue?","js")."' \n"; $sHTMLOutput .="
\n".$clang->gT("Edit email templates")."
\n" . "
\n" . "
"; foreach ($grplangs as $grouplang) { // this one is created to get the right default texts fo each language $bplang = new limesurvey_lang($grouplang); $esquery = "SELECT * FROM ".db_table_name("surveys_languagesettings")." WHERE surveyls_survey_id=$surveyid and surveyls_language='$grouplang'"; $esresult = db_execute_assoc($esquery); $esrow = $esresult->FetchRow(); $aDefaultTexts=aTemplateDefaultTexts($bplang); if ($ishtml==true){ $aDefaultTexts['admin_detailed_notification']=$aDefaultTexts['admin_detailed_notification_css'].conditional_nl2br($aDefaultTexts['admin_detailed_notification'],$ishtml); } $sHTMLOutput .= "
"; $sHTMLOutput .= "
" ."" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-admin-notification","email_admin_notification_{$grouplang}", "[".$clang->gT("Admin notification email:", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .="
" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-admin-resp","email_admin_responses_{$grouplang}", "[".$clang->gT("Invitation email:", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .="
" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-inv","email_invite_{$grouplang}", "[".$clang->gT("Invitation email:", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .="
" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-rem","email_remind_{$grouplang}", "[".$clang->gT("Email reminder:", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .="
" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-conf","email_confirm_{$grouplang}", "[".$clang->gT("Confirmation email", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .="
" ."
"; $sHTMLOutput .= "
  • \n" . "\n" . "\n" . "\n" . "\t
  • \n"; $sHTMLOutput .= "
  • \n" . "\n" . getEditor("email-reg","email_register_{$grouplang}", "[".$clang->gT("Public registration email:", "js")."](".$grouplang.")",$surveyid,'','',$action) . "\n" . "\n" . "\t
"; $sHTMLOutput .="
" // tab ."
" // tabinner ."
"; // language tab } $sHTMLOutput .= '
'; $sHTMLOutput .= "\t

\n" . "\t\n" . "\t\n" . "\t\n" . "\t\n" . "

"; ?>