diff --git a/swad_changelog.h b/swad_changelog.h index 637480637..1f1a2528e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -35,11 +35,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.40.10 (2014/12/25)" +#define Log_PLATFORM_VERSION "SWAD 14.40.11 (2014/12/25)" // 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 | tail -1 /* + Version 14.40.11 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173288 lines) Version 14.40.10 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173201 lines) Version 14.40.9 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172986 lines) Version 14.40.8 :Dic 24, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172653 lines) diff --git a/swad_survey.c b/swad_survey.c index e0fe56d42..2901ba2c1 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -334,14 +334,19 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh /***** Start date/time *****/ fprintf (Gbl.F.Out,"" - "%02u/%02u/%02u
%02u:%02u h", + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">" + "%02u/%02u/%02u
" + "%02u:%02u h" + "", Svy.DateTimes[Svy_START_TIME].Date.Day, Svy.DateTimes[Svy_START_TIME].Date.Month, Svy.DateTimes[Svy_START_TIME].Date.Year % 100, @@ -349,14 +354,18 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh Svy.DateTimes[Svy_START_TIME].Time.Minute); /***** End date/time *****/ - fprintf (Gbl.F.Out,"%02u/%02u/%02u
%02u:%02u h", + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">" + "%02u/%02u/%02u
" + "%02u:%02u h" + "", Svy.DateTimes[Svy_END_TIME ].Date.Day, Svy.DateTimes[Svy_END_TIME ].Date.Month, Svy.DateTimes[Svy_END_TIME ].Date.Year % 100, @@ -364,10 +373,11 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh Svy.DateTimes[Svy_END_TIME ].Time.Minute); /***** Survey title *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">"); /* Put form to view survey */ Act_FormStart (ActSeeOneSvy); @@ -392,10 +402,12 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh Svy.NumUsrs); /***** Status of the survey *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">"); Svy_WriteStatus (&Svy); if (!ShowOnlyThisSvyComplete) @@ -429,10 +441,12 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh /***** Write second row of data of this survey *****/ fprintf (Gbl.F.Out,"" - ""); + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">"); /* Author of the survey */ Svy_WriteAuthor (&Svy); @@ -442,10 +456,11 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh Svy_PutFormsToRemEditOneSvy (Svy.SvyCod,Svy.Status.Visible); fprintf (Gbl.F.Out,"" - ""); + fprintf (Gbl.F.Out," background-color:%s;", + Gbl.ColorRows[Gbl.RowEvenOdd]); + fprintf (Gbl.F.Out,"\">"); /* Scope of the survey */ fprintf (Gbl.F.Out,"

%s: ", @@ -705,7 +720,7 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible) ""); /***** Put form to remove survey *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActReqRemSvy); Svy_PutParamSvyCod (SvyCod); Svy_PutHiddenParamSvyOrderType (); @@ -720,7 +735,7 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible) Txt_Remove); /***** Put form to reset survey *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActReqRstSvy); Svy_PutParamSvyCod (SvyCod); Svy_PutHiddenParamSvyOrderType (); @@ -735,7 +750,7 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible) Txt_Reset); /***** Put form to hide/show survey *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (Visible ? ActHidSvy : ActShoSvy); Svy_PutParamSvyCod (SvyCod); @@ -756,7 +771,7 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible) ""); /***** Put form to edit survey *****/ - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); Act_FormStart (ActEdiOneSvy); Svy_PutParamSvyCod (SvyCod); Svy_PutHiddenParamSvyOrderType (); @@ -1583,8 +1598,11 @@ void Svy_RequestCreatOrEditSvy (void) /***** Survey for anywhere, degree or course? *****/ fprintf (Gbl.F.Out,"" - "%s:" - "", + "" + "%s:" + "" + "", Txt_Scope); if (!Svy_SetDefaultAndAllowedForEdition ()) Lay_ShowErrorAndExit ("You don't have permission to edit surveys here."); @@ -1595,8 +1613,11 @@ void Svy_RequestCreatOrEditSvy (void) /***** Survey title *****/ fprintf (Gbl.F.Out,"" - "%s:" - "" + "" + "%s:" + "" + "" "" "" "", @@ -1609,11 +1630,14 @@ void Svy_RequestCreatOrEditSvy (void) StartOrEndTime++) { fprintf (Gbl.F.Out,"" - "%s:" - "" + "" + "%s:" + "" + "" "" "" - "" - "" - "" - "" + "" - "", + "", The_ClassFormul[Gbl.Prefs.Theme], Txt_Type); - fprintf (Gbl.F.Out,"" - "" - "" + "
", + "", Dates[StartOrEndTime]); Dat_WriteFormDate (Gbl.Now.Date.Year-1, Gbl.Now.Date.Year+1, @@ -1623,7 +1647,7 @@ void Svy_RequestCreatOrEditSvy (void) &(Svy.DateTimes[StartOrEndTime].Date), false,false); fprintf (Gbl.F.Out,""); + ""); Dat_WriteFormHourMinute (NameSelectHour [StartOrEndTime], NameSelectMinute[StartOrEndTime], &(Svy.DateTimes[StartOrEndTime].Time), @@ -1637,8 +1661,11 @@ void Svy_RequestCreatOrEditSvy (void) /***** Survey text *****/ fprintf (Gbl.F.Out,"
%s:" + "" + "%s:" + "" "" @@ -2436,10 +2474,14 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch /***** Type of answer *****/ fprintf (Gbl.F.Out,"
%s:" + "%s:" + "", + fprintf (Gbl.F.Out,"", The_ClassFormul[Gbl.Prefs.Theme]); for (AnsType = (Svy_AnswerType_t) 0; AnsType < Svy_NUM_ANS_TYPES; @@ -2458,8 +2500,8 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch /***** Answers *****/ /* Unique or multiple choice answers */ fprintf (Gbl.F.Out,"
" + "" ""); for (NumAns = 0; NumAns < Svy_MAX_ANSWERS_PER_QUESTION; @@ -2467,11 +2509,14 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch { /* Label with the number of the answer */ fprintf (Gbl.F.Out,"" - "", + "", The_ClassFormul[Gbl.Prefs.Theme],NumAns+1); /* Answer text */ - fprintf (Gbl.F.Out,"
%u)" + "%u)" + "" + fprintf (Gbl.F.Out,"" "