Ejemplo n.º 1
0
 function showTranslateSettingsLayoutRes()
 {
     $displayTranslator = new DisplayTranslator();
     $_SESSION['EDITSURVEY'] = 1;
     $survey = new Survey($_SESSION['SUID']);
     $survey->setLabelBackButton(loadvarAllowHTML(SETTING_BACK_BUTTON_LABEL));
     $survey->setLabelNextButton(loadvarAllowHTML(SETTING_NEXT_BUTTON_LABEL));
     $survey->setLabelDKButton(loadvarAllowHTML(SETTING_DK_BUTTON_LABEL));
     $survey->setLabelRFButton(loadvarAllowHTML(SETTING_RF_BUTTON_LABEL));
     $survey->setLabelUpdateButton(loadvarAllowHTML(SETTING_UPDATE_BUTTON_LABEL));
     $survey->setLabelNAButton(loadvarAllowHTML(SETTING_NA_BUTTON_LABEL));
     $survey->setLabelRemarkButton(loadvarAllowHTML(SETTING_REMARK_BUTTON_LABEL));
     $survey->setLabelCloseButton(loadvarAllowHTML(SETTING_CLOSE_BUTTON_LABEL));
     $survey->setLabelRemarkSaveButton(loadvarAllowHTML(SETTING_REMARK_SAVE_BUTTON_LABEL));
     $survey->setEnumeratedTextboxLabel(loadvar(SETTING_ENUMERATED_TEXTBOX_LABEL));
     $survey->save();
     $content = $displayTranslator->displaySuccess(Language::messageDisplayTextsChanged());
     /* update last page */
     $_SESSION['LASTPAGE'] = substr($_SESSION['LASTPAGE'], 0, strripos($_SESSION['LASTPAGE'], "res"));
     return $displayTranslator->showTranslateSettingsLayout($content);
 }