diff --git a/swad_changelog.h b/swad_changelog.h index a5846967e..10ffad17b 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -188,13 +188,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.106.17 (2016-12-25)" +#define Log_PLATFORM_VERSION "SWAD 16.106.18 (2016-12-25)" #define CSS_FILE "swad16.106.5.css" #define JS_FILE "swad16.101.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.106.18:Dec 25, 2016 Changes in behaviour of labels in forms. (211496 lines) Version 16.106.17:Dec 25, 2016 Changes in behaviour of labels in forms. (211486 lines) Version 16.106.16:Dec 25, 2016 Changes in behaviour of labels in forms. (211473 lines) Version 16.106.15:Dec 25, 2016 Changes in behaviour of labels in forms. (211460 lines) diff --git a/swad_survey.c b/swad_survey.c index bdcbd5091..e16df0a7a 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -2619,7 +2619,8 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch char Query[512]; MYSQL_RES *mysql_res; MYSQL_ROW row; - unsigned NumAns,NumAnswers = 0; + unsigned NumAns; + unsigned NumAnswers = 0; Svy_AnswerType_t AnsType; if (Gbl.Action.Act == ActEdiOneSvyQst) // If no receiving the question, but editing a new or existing question @@ -2696,11 +2697,12 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch /***** Stem *****/ fprintf (Gbl.F.Out,"" - "" - "%s:" + "" + "" "" "" - "" "" @@ -2721,11 +2723,15 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch AnsType < Svy_NUM_ANS_TYPES; AnsType++) { - fprintf (Gbl.F.Out,"" + "AnswerType) fprintf (Gbl.F.Out," checked=\"checked\""); - fprintf (Gbl.F.Out," />%s
", + fprintf (Gbl.F.Out," />" + "%s" + "
", Txt_SURVEY_STR_ANSWER_TYPES[AnsType]); } fprintf (Gbl.F.Out,"" @@ -2744,15 +2750,16 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch { /* Label with the number of the answer */ fprintf (Gbl.F.Out,"" - "" - "%u)" + "" + "" "", - The_ClassForm[Gbl.Prefs.Theme],NumAns+1); + NumAns,The_ClassForm[Gbl.Prefs.Theme],NumAns + 1); /* Answer text */ fprintf (Gbl.F.Out,"" - "" @@ -3445,7 +3452,9 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv /* Write the number of option */ fprintf (Gbl.F.Out,"" - "" + "" "", (unsigned) SvyQst->QstCod,NumAns,NumAns + 1);