mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-28 20:43:27 +02:00
Version 14.124.8
This commit is contained in:
parent
4ce8e8cbf2
commit
53ac2c4a41
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.124.7 (2015/08/24)"
|
#define Log_PLATFORM_VERSION "SWAD 14.124.8 (2015/09/02)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.124.8: Sep 02, 2015 Changes in styles. (184635 lines)
|
||||||
Version 14.124.7: Aug 24, 2015 Changes in styles. (184648 lines)
|
Version 14.124.7: Aug 24, 2015 Changes in styles. (184648 lines)
|
||||||
Version 14.124.6: Aug 24, 2015 Changes in styles. (184735 lines)
|
Version 14.124.6: Aug 24, 2015 Changes in styles. (184735 lines)
|
||||||
Version 14.124.5: Aug 06, 2015 Changes in CSS of forms. (184760 lines)
|
Version 14.124.5: Aug 06, 2015 Changes in CSS of forms. (184760 lines)
|
||||||
|
|
103
swad_survey.c
103
swad_survey.c
|
@ -216,7 +216,7 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
|
||||||
Order <= Svy_ORDER_BY_END_DATE;
|
Order <= Svy_ORDER_BY_END_DATE;
|
||||||
Order++)
|
Order++)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:center;\">");
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL CENTER_MIDDLE\">");
|
||||||
Act_FormStart (ActSeeAllSvy);
|
Act_FormStart (ActSeeAllSvy);
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
|
@ -231,10 +231,10 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
fprintf (Gbl.F.Out,"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</th>"
|
"</th>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
@ -345,16 +345,15 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
|
|
||||||
/***** Start date/time *****/
|
/***** Start date/time *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"%s\""
|
"<td class=\"%s LEFT_TOP\"",
|
||||||
" style=\"text-align:left; vertical-align:top;",
|
|
||||||
Svy.Status.Visible ? (Svy.Status.Open ? "DATE_GREEN" :
|
Svy.Status.Visible ? (Svy.Status.Open ? "DATE_GREEN" :
|
||||||
"DATE_RED") :
|
"DATE_RED") :
|
||||||
(Svy.Status.Open ? "DATE_GREEN_LIGHT" :
|
(Svy.Status.Open ? "DATE_GREEN_LIGHT" :
|
||||||
"DATE_RED_LIGHT"));
|
"DATE_RED_LIGHT"));
|
||||||
if (!ShowOnlyThisSvyComplete)
|
if (!ShowOnlyThisSvyComplete)
|
||||||
fprintf (Gbl.F.Out," background-color:%s;",
|
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
fprintf (Gbl.F.Out,"\">"
|
fprintf (Gbl.F.Out,">"
|
||||||
"%02u/%02u/%02u<br />"
|
"%02u/%02u/%02u<br />"
|
||||||
"%02u:%02u h"
|
"%02u:%02u h"
|
||||||
"</td>",
|
"</td>",
|
||||||
|
@ -365,15 +364,15 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Svy.DateTimes[Svy_START_TIME].Time.Minute);
|
Svy.DateTimes[Svy_START_TIME].Time.Minute);
|
||||||
|
|
||||||
/***** End date/time *****/
|
/***** End date/time *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left; vertical-align:top;",
|
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\"",
|
||||||
Svy.Status.Visible ? (Svy.Status.Open ? "DATE_GREEN" :
|
Svy.Status.Visible ? (Svy.Status.Open ? "DATE_GREEN" :
|
||||||
"DATE_RED") :
|
"DATE_RED") :
|
||||||
(Svy.Status.Open ? "DATE_GREEN_LIGHT" :
|
(Svy.Status.Open ? "DATE_GREEN_LIGHT" :
|
||||||
"DATE_RED_LIGHT"));
|
"DATE_RED_LIGHT"));
|
||||||
if (!ShowOnlyThisSvyComplete)
|
if (!ShowOnlyThisSvyComplete)
|
||||||
fprintf (Gbl.F.Out," background-color:%s;",
|
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
fprintf (Gbl.F.Out,"\">"
|
fprintf (Gbl.F.Out,">"
|
||||||
"%02u/%02u/%02u<br />"
|
"%02u/%02u/%02u<br />"
|
||||||
"%02u:%02u h"
|
"%02u:%02u h"
|
||||||
"</td>",
|
"</td>",
|
||||||
|
@ -384,11 +383,11 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Svy.DateTimes[Svy_END_TIME ].Time.Minute);
|
Svy.DateTimes[Svy_END_TIME ].Time.Minute);
|
||||||
|
|
||||||
/***** Survey title *****/
|
/***** Survey title *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:top;");
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\"");
|
||||||
if (!ShowOnlyThisSvyComplete)
|
if (!ShowOnlyThisSvyComplete)
|
||||||
fprintf (Gbl.F.Out," background-color:%s;",
|
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
fprintf (Gbl.F.Out,"\">");
|
fprintf (Gbl.F.Out,">");
|
||||||
|
|
||||||
/* Put form to view survey */
|
/* Put form to view survey */
|
||||||
Act_FormStart (ActSeeOneSvy);
|
Act_FormStart (ActSeeOneSvy);
|
||||||
|
@ -414,24 +413,22 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Svy.NumUsrs);
|
Svy.NumUsrs);
|
||||||
|
|
||||||
/***** Status of the survey *****/
|
/***** Status of the survey *****/
|
||||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\""
|
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"LEFT_TOP\"");
|
||||||
" style=\"text-align:left; vertical-align:top;");
|
|
||||||
if (!ShowOnlyThisSvyComplete)
|
if (!ShowOnlyThisSvyComplete)
|
||||||
fprintf (Gbl.F.Out," background-color:%s;",
|
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
fprintf (Gbl.F.Out,"\">");
|
fprintf (Gbl.F.Out,">");
|
||||||
Svy_WriteStatus (&Svy);
|
Svy_WriteStatus (&Svy);
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Write second row of data of this survey *****/
|
/***** Write second row of data of this survey *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td colspan=\"2\""
|
"<td colspan=\"2\" class=\"LEFT_TOP\"");
|
||||||
" style=\"text-align:left; vertical-align:top;");
|
|
||||||
if (!ShowOnlyThisSvyComplete)
|
if (!ShowOnlyThisSvyComplete)
|
||||||
fprintf (Gbl.F.Out," background-color:%s;",
|
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
fprintf (Gbl.F.Out,"\">");
|
fprintf (Gbl.F.Out,">");
|
||||||
|
|
||||||
/* Author of the survey */
|
/* Author of the survey */
|
||||||
Svy_WriteAuthor (&Svy);
|
Svy_WriteAuthor (&Svy);
|
||||||
|
@ -1589,7 +1586,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
"<td class=\"%s RIGHT_MIDDLE\">"
|
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
"<td class=\"LEFT_MIDDLE\">",
|
||||||
The_ClassForm[Gbl.Prefs.Theme],
|
The_ClassForm[Gbl.Prefs.Theme],
|
||||||
Txt_Scope);
|
Txt_Scope);
|
||||||
if (!Svy_SetDefaultAndAllowedForEdition ())
|
if (!Svy_SetDefaultAndAllowedForEdition ())
|
||||||
|
@ -1604,7 +1601,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
"<td class=\"%s RIGHT_MIDDLE\">"
|
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left;\">"
|
"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<input type=\"text\" name=\"Title\" size=\"45\" maxlength=\"%u\" value=\"%s\" />"
|
"<input type=\"text\" name=\"Title\" size=\"45\" maxlength=\"%u\" value=\"%s\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
@ -1621,10 +1618,10 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
"<td class=\"%s RIGHT_MIDDLE\">"
|
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left;\">"
|
"<td class=\"LEFT_MIDDLE\">"
|
||||||
"<table class=\"CELLS_PAD_2\">"
|
"<table class=\"CELLS_PAD_2\">"
|
||||||
"<tr>"
|
"<tr>"
|
||||||
"<td style=\"text-align:left;\">",
|
"<td class=\"LEFT_MIDDLE\">",
|
||||||
The_ClassForm[Gbl.Prefs.Theme],
|
The_ClassForm[Gbl.Prefs.Theme],
|
||||||
Dates[StartOrEndTime]);
|
Dates[StartOrEndTime]);
|
||||||
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
||||||
|
@ -1635,7 +1632,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
&(Svy.DateTimes[StartOrEndTime].Date),
|
&(Svy.DateTimes[StartOrEndTime].Date),
|
||||||
false,false);
|
false,false);
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"<td style=\"text-align:left; vertical-align:top;\">");
|
"<td class=\"LEFT_TOP\">");
|
||||||
Dat_WriteFormHourMinute (NameSelectHour [StartOrEndTime],
|
Dat_WriteFormHourMinute (NameSelectHour [StartOrEndTime],
|
||||||
NameSelectMinute[StartOrEndTime],
|
NameSelectMinute[StartOrEndTime],
|
||||||
&(Svy.DateTimes[StartOrEndTime].Time),
|
&(Svy.DateTimes[StartOrEndTime].Time),
|
||||||
|
@ -1652,7 +1649,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
"<td class=\"%s RIGHT_TOP\">"
|
"<td class=\"%s RIGHT_TOP\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left; vertical-align:top;\">"
|
"<td class=\"LEFT_TOP\">"
|
||||||
"<textarea name=\"Txt\" cols=\"60\" rows=\"10\">",
|
"<textarea name=\"Txt\" cols=\"60\" rows=\"10\">",
|
||||||
The_ClassForm[Gbl.Prefs.Theme],
|
The_ClassForm[Gbl.Prefs.Theme],
|
||||||
Txt_Description);
|
Txt_Description);
|
||||||
|
@ -1667,8 +1664,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
"<td class=\"%s RIGHT_TOP\">"
|
"<td class=\"%s RIGHT_TOP\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"DAT\""
|
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||||
" style=\"text-align:left; vertical-align:middle;\">",
|
|
||||||
The_ClassForm[Gbl.Prefs.Theme],
|
The_ClassForm[Gbl.Prefs.Theme],
|
||||||
Txt_Users);
|
Txt_Users);
|
||||||
Rol_WriteSelectorRoles (Svy.Roles);
|
Rol_WriteSelectorRoles (Svy.Roles);
|
||||||
|
@ -1755,16 +1751,16 @@ static void Svy_ShowLstGrpsToEditSurvey (long SvyCod)
|
||||||
"<td class=\"%s RIGHT_TOP\">"
|
"<td class=\"%s RIGHT_TOP\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left; vertical-align:top;\">",
|
"<td class=\"LEFT_TOP\">",
|
||||||
The_ClassForm[Gbl.Prefs.Theme],
|
The_ClassForm[Gbl.Prefs.Theme],
|
||||||
Txt_Groups);
|
Txt_Groups);
|
||||||
Lay_StartRoundFrameTable ("95%",0,NULL);
|
Lay_StartRoundFrameTable ("95%",0,NULL);
|
||||||
|
|
||||||
/***** First row: checkbox to select the whole course *****/
|
/***** First row: checkbox to select the whole course *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td colspan=\"7\" class=\"DAT\""
|
"<td colspan=\"7\" class=\"DAT LEFT_MIDDLE\">"
|
||||||
" style=\"text-align:left; vertical-align:middle;\">"
|
"<input type=\"checkbox\""
|
||||||
"<input type=\"checkbox\" id=\"WholeCrs\" name=\"WholeCrs\" value=\"Y\"");
|
" id=\"WholeCrs\" name=\"WholeCrs\" value=\"Y\"");
|
||||||
if (!Svy_CheckIfSvyIsAssociatedToGrps (SvyCod))
|
if (!Svy_CheckIfSvyIsAssociatedToGrps (SvyCod))
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," onclick=\"uncheckChildren(this,'GrpCods')\" />%s %s</td>"
|
fprintf (Gbl.F.Out," onclick=\"uncheckChildren(this,'GrpCods')\" />%s %s</td>"
|
||||||
|
@ -2445,7 +2441,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
|
||||||
"<td class=\"%s RIGHT_TOP\">"
|
"<td class=\"%s RIGHT_TOP\">"
|
||||||
"%s:"
|
"%s:"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left; vertical-align:top;\">"
|
"<td class=\"LEFT_TOP\">"
|
||||||
"<textarea name=\"Txt\" cols=\"60\" rows=\"4\">"
|
"<textarea name=\"Txt\" cols=\"60\" rows=\"4\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</textarea>"
|
"</textarea>"
|
||||||
|
@ -2481,7 +2477,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
|
||||||
/* Unique or multiple choice answers */
|
/* Unique or multiple choice answers */
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td></td>"
|
"<td></td>"
|
||||||
"<td style=\"text-align:left; vertical-align:top;\">"
|
"<td class=\"LEFT_TOP\">"
|
||||||
"<table class=\"CELLS_PAD_2\">");
|
"<table class=\"CELLS_PAD_2\">");
|
||||||
for (NumAns = 0;
|
for (NumAns = 0;
|
||||||
NumAns < Svy_MAX_ANSWERS_PER_QUESTION;
|
NumAns < Svy_MAX_ANSWERS_PER_QUESTION;
|
||||||
|
@ -2495,7 +2491,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
|
||||||
The_ClassForm[Gbl.Prefs.Theme],NumAns+1);
|
The_ClassForm[Gbl.Prefs.Theme],NumAns+1);
|
||||||
|
|
||||||
/* Answer text */
|
/* Answer text */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:right; vertical-align:top;\">"
|
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\">"
|
||||||
"<textarea name=\"AnsStr%u\" cols=\"50\" rows=\"1\">",
|
"<textarea name=\"AnsStr%u\" cols=\"50\" rows=\"1\">",
|
||||||
NumAns);
|
NumAns);
|
||||||
if (SvyQst->AnsChoice[NumAns].Text)
|
if (SvyQst->AnsChoice[NumAns].Text)
|
||||||
|
@ -2959,16 +2955,13 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
fprintf (Gbl.F.Out,"<tr>");
|
fprintf (Gbl.F.Out,"<tr>");
|
||||||
if (Svy->Status.ICanEdit)
|
if (Svy->Status.ICanEdit)
|
||||||
fprintf (Gbl.F.Out,"<td colspan=\"2\"></td>");
|
fprintf (Gbl.F.Out,"<td colspan=\"2\"></td>");
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\""
|
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_TOP\">"
|
||||||
" style=\"text-align:center; vertical-align:top;\">"
|
|
||||||
"%s"
|
"%s"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"TIT_TBL\""
|
"<td class=\"TIT_TBL CENTER_TOP\">"
|
||||||
" style=\"text-align:center; vertical-align:top;\">"
|
|
||||||
"%s"
|
"%s"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"TIT_TBL\""
|
"<td class=\"TIT_TBL LEFT_TOP\">"
|
||||||
" style=\"text-align:left; vertical-align:top;\">"
|
|
||||||
"%s"
|
"%s"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
@ -3023,16 +3016,16 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
/* Write index of question inside survey (row[1]) */
|
/* Write index of question inside survey (row[1]) */
|
||||||
if (sscanf (row[1],"%u",&(SvyQst->QstInd)) != 1)
|
if (sscanf (row[1],"%u",&(SvyQst->QstInd)) != 1)
|
||||||
Lay_ShowErrorAndExit ("Error: wrong question index.");
|
Lay_ShowErrorAndExit ("Error: wrong question index.");
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL\" style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL CENTER_TOP\""
|
||||||
" vertical-align:top; background-color:%s;\">"
|
" style=\"background-color:%s;\">"
|
||||||
"%u"
|
"%u"
|
||||||
"</td>",
|
"</td>",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],SvyQst->QstInd+1);
|
Gbl.ColorRows[Gbl.RowEvenOdd],SvyQst->QstInd+1);
|
||||||
|
|
||||||
/* Write the question type (row[2]) */
|
/* Write the question type (row[2]) */
|
||||||
SvyQst->AnswerType = Svy_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
|
SvyQst->AnswerType = Svy_ConvertFromStrAnsTypDBToAnsTyp (row[2]);
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL\" style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL CENTER_TOP\""
|
||||||
" vertical-align:top; background-color:%s;\">"
|
" style=\"background-color:%s;\">"
|
||||||
"%s",
|
"%s",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||||
Txt_SURVEY_STR_ANSWER_TYPES[SvyQst->AnswerType]);
|
Txt_SURVEY_STR_ANSWER_TYPES[SvyQst->AnswerType]);
|
||||||
|
@ -3048,7 +3041,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
}
|
}
|
||||||
else // This survey has no questions
|
else // This survey has no questions
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"ASG_GRP\" style=\"text-align:center;\">"
|
"<td class=\"ASG_GRP CENTER_TOP\">"
|
||||||
"(%s)"
|
"(%s)"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
|
@ -3121,8 +3114,8 @@ static void Svy_WriteQstStem (const char *Stem,const char *TextStyle)
|
||||||
HeadingRigorousHTML,LengthHeading,false);
|
HeadingRigorousHTML,LengthHeading,false);
|
||||||
|
|
||||||
/* Write the stem */
|
/* Write the stem */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\""
|
||||||
" vertical-align:top; background-color:%s;\">"
|
" style=\"background-color:%s;\">"
|
||||||
"<div style=\"text-align:justify;\">"
|
"<div style=\"text-align:justify;\">"
|
||||||
"<tt>%s</tt>"
|
"<tt>%s</tt>"
|
||||||
"</div>",
|
"</div>",
|
||||||
|
@ -3173,8 +3166,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
|
||||||
if (Svy->Status.ICanAnswer)
|
if (Svy->Status.ICanAnswer)
|
||||||
{
|
{
|
||||||
/* Write selector to choice this answer */
|
/* Write selector to choice this answer */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\">");
|
||||||
" vertical-align:top;\">");
|
|
||||||
fprintf (Gbl.F.Out,"<input type=\"");
|
fprintf (Gbl.F.Out,"<input type=\"");
|
||||||
if (SvyQst->AnswerType == Svy_ANS_UNIQUE_CHOICE)
|
if (SvyQst->AnswerType == Svy_ANS_UNIQUE_CHOICE)
|
||||||
fprintf (Gbl.F.Out,"radio\" onclick=\"selectUnselectRadio(this,this.form.Ans%010u,%u)\"",
|
fprintf (Gbl.F.Out,"radio\" onclick=\"selectUnselectRadio(this,this.form.Ans%010u,%u)\"",
|
||||||
|
@ -3186,15 +3178,13 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the number of option */
|
/* Write the number of option */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"width:40px;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:40px;\">"
|
||||||
" text-align:left; vertical-align:top;\">"
|
|
||||||
"%u)"
|
"%u)"
|
||||||
"</td>",
|
"</td>",
|
||||||
NumAns + 1);
|
NumAns + 1);
|
||||||
|
|
||||||
/* Write the text of the answer */
|
/* Write the text of the answer */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TEST_EDI\""
|
fprintf (Gbl.F.Out,"<td class=\"TEST_EDI LEFT_TOP\">"
|
||||||
" style=\"text-align:left; vertical-align:top;\">"
|
|
||||||
"<tt>%s</tt>"
|
"<tt>%s</tt>"
|
||||||
"</td>",
|
"</td>",
|
||||||
Answer);
|
Answer);
|
||||||
|
@ -3236,8 +3226,7 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
|
||||||
Txt_of_PART_OF_A_TOTAL,MaxUsrs);
|
Txt_of_PART_OF_A_TOTAL,MaxUsrs);
|
||||||
|
|
||||||
/***** Draw bar with a with proportional to the number of clicks *****/
|
/***** Draw bar with a with proportional to the number of clicks *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"width:%upx;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:%upx;\">",
|
||||||
" text-align:left; vertical-align:top;\">",
|
|
||||||
Svy_MAX_BAR_WIDTH + 100);
|
Svy_MAX_BAR_WIDTH + 100);
|
||||||
if (NumUsrs && MaxUsrs)
|
if (NumUsrs && MaxUsrs)
|
||||||
BarWidth = (unsigned) ((((float) NumUsrs * (float) Svy_MAX_BAR_WIDTH) /
|
BarWidth = (unsigned) ((((float) NumUsrs * (float) Svy_MAX_BAR_WIDTH) /
|
||||||
|
|
|
@ -143,8 +143,8 @@ void Syl_PutFormWhichSyllabus (void)
|
||||||
WhichSyllabus < For_NUM_WHICH_FORUMS;
|
WhichSyllabus < For_NUM_WHICH_FORUMS;
|
||||||
WhichSyllabus++)
|
WhichSyllabus++)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<li class=\"DAT\""
|
fprintf (Gbl.F.Out,"<li class=\"DAT LEFT_MIDDLE\""
|
||||||
" style=\"display:inline; vertical-align:middle;\">"
|
" style=\"display:inline;\">"
|
||||||
"<input type=\"radio\" name=\"WhichSyllabus\" value=\"%u\"",
|
"<input type=\"radio\" name=\"WhichSyllabus\" value=\"%u\"",
|
||||||
(unsigned) WhichSyllabus);
|
(unsigned) WhichSyllabus);
|
||||||
if (WhichSyllabus == Gbl.CurrentCrs.Syllabus.WhichSyllabus)
|
if (WhichSyllabus == Gbl.CurrentCrs.Syllabus.WhichSyllabus)
|
||||||
|
@ -220,8 +220,7 @@ void Syl_EditSyllabus (void)
|
||||||
Lay_EndRoundFrameTable ();
|
Lay_EndRoundFrameTable ();
|
||||||
|
|
||||||
if (!Gbl.CurrentCrs.Syllabus.EditionIsActive)
|
if (!Gbl.CurrentCrs.Syllabus.EditionIsActive)
|
||||||
fprintf (Gbl.F.Out,"<div class=\"DAT_SMALL\""
|
fprintf (Gbl.F.Out,"<div class=\"DAT_SMALL CENTER_MIDDLE\">"
|
||||||
" style=\"text-align:center;\">"
|
|
||||||
"<br />%s</div>",
|
"<br />%s</div>",
|
||||||
Txt_This_syllabus_has_been_edited_by_teachers_of_the_course_);
|
Txt_This_syllabus_has_been_edited_by_teachers_of_the_course_);
|
||||||
}
|
}
|
||||||
|
@ -692,7 +691,8 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
Level - 1,Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Level - 1,Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
|
|
||||||
/***** Code of the item *****/
|
/***** Code of the item *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:%dpx; text-align:right; vertical-align:top; background-color:%s;\">",
|
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP\""
|
||||||
|
" style=\"width:%dpx; background-color:%s;\">",
|
||||||
StyleSyllabus[Level],
|
StyleSyllabus[Level],
|
||||||
Level * Syl_WIDTH_NUM_SYLLABUS,Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Level * Syl_WIDTH_NUM_SYLLABUS,Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
if (Level == 1)
|
if (Level == 1)
|
||||||
|
@ -700,8 +700,8 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
fprintf (Gbl.F.Out,"%s </td>",StrItemCod);
|
fprintf (Gbl.F.Out,"%s </td>",StrItemCod);
|
||||||
|
|
||||||
/***** Text of the item *****/
|
/***** Text of the item *****/
|
||||||
fprintf (Gbl.F.Out,"<td colspan=\"%d\" class=\"%s\""
|
fprintf (Gbl.F.Out,"<td colspan=\"%d\" class=\"%s LEFT_TOP\""
|
||||||
" style=\"text-align:left; vertical-align:top; background-color:%s;\">"
|
" style=\"background-color:%s;\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
LstItemsSyllabus.NumLevels - Level + 1,
|
LstItemsSyllabus.NumLevels - Level + 1,
|
||||||
|
@ -837,8 +837,7 @@ static void Syl_WriteSyllabusIntoHTMLTmpFile (Inf_InfoType_t InfoType,FILE *File
|
||||||
LstItemsSyllabus.Lst[NumItem].Level - 1);
|
LstItemsSyllabus.Lst[NumItem].Level - 1);
|
||||||
|
|
||||||
/***** Code of the item *****/
|
/***** Code of the item *****/
|
||||||
fprintf (FileHTMLTmp,"<td class=\"%s\" style=\"width:%dpx;"
|
fprintf (FileHTMLTmp,"<td class=\"%s RIGHT_TOP\" style=\"width:%dpx;\">",
|
||||||
" text-align:right; vertical-align:top;\">",
|
|
||||||
StyleSyllabus[LstItemsSyllabus.Lst[NumItem].Level],
|
StyleSyllabus[LstItemsSyllabus.Lst[NumItem].Level],
|
||||||
LstItemsSyllabus.Lst[NumItem].Level * Syl_WIDTH_NUM_SYLLABUS);
|
LstItemsSyllabus.Lst[NumItem].Level * Syl_WIDTH_NUM_SYLLABUS);
|
||||||
if (LstItemsSyllabus.Lst[NumItem].Level == 1)
|
if (LstItemsSyllabus.Lst[NumItem].Level == 1)
|
||||||
|
@ -849,8 +848,7 @@ static void Syl_WriteSyllabusIntoHTMLTmpFile (Inf_InfoType_t InfoType,FILE *File
|
||||||
fprintf (FileHTMLTmp," </td>");
|
fprintf (FileHTMLTmp," </td>");
|
||||||
|
|
||||||
/***** Text of the item *****/
|
/***** Text of the item *****/
|
||||||
fprintf (FileHTMLTmp,"<td colspan=\"%d\" class=\"%s\""
|
fprintf (FileHTMLTmp,"<td colspan=\"%d\" class=\"%s LEFT_TOP\">"
|
||||||
" style=\"text-align:left; vertical-align:top;\">"
|
|
||||||
"%s"
|
"%s"
|
||||||
"</td>",
|
"</td>",
|
||||||
LstItemsSyllabus.NumLevels - LstItemsSyllabus.Lst[NumItem].Level + 1,
|
LstItemsSyllabus.NumLevels - LstItemsSyllabus.Lst[NumItem].Level + 1,
|
||||||
|
@ -890,8 +888,8 @@ static void Syl_PutFormItemSyllabus (Inf_InfoType_t InfoType,bool NewItem,unsign
|
||||||
Level * Syl_WIDTH_NUM_SYLLABUS,BgColor);
|
Level * Syl_WIDTH_NUM_SYLLABUS,BgColor);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:%dpx; text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\""
|
||||||
" vertical-align:middle; background-color:%s;\">",
|
" style=\"width:%dpx; background-color:%s;\">",
|
||||||
StyleSyllabus[Level],
|
StyleSyllabus[Level],
|
||||||
Level * Syl_WIDTH_NUM_SYLLABUS,BgColor);
|
Level * Syl_WIDTH_NUM_SYLLABUS,BgColor);
|
||||||
if (Level == 1)
|
if (Level == 1)
|
||||||
|
@ -901,8 +899,8 @@ static void Syl_PutFormItemSyllabus (Inf_InfoType_t InfoType,bool NewItem,unsign
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Text of the item *****/
|
/***** Text of the item *****/
|
||||||
fprintf (Gbl.F.Out,"<td colspan=\"%d\" style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td colspan=\"%d LEFT_MIDDLE\""
|
||||||
" vertical-align:middle; background-color:%s;\">",
|
" style=\"background-color:%s;\">",
|
||||||
LstItemsSyllabus.NumLevels - Level + 1,BgColor);
|
LstItemsSyllabus.NumLevels - Level + 1,BgColor);
|
||||||
Act_FormStart (NewItem ? (InfoType == Inf_LECTURES ? ActInsIteSylLec :
|
Act_FormStart (NewItem ? (InfoType == Inf_LECTURES ? ActInsIteSylLec :
|
||||||
ActInsIteSylPra) :
|
ActInsIteSylPra) :
|
||||||
|
|
|
@ -90,8 +90,8 @@ void Tab_DrawTabs (void)
|
||||||
else if (Gbl.Prefs.SideCols != Lay_HIDE_BOTH_COLUMNS) // 10 or 01: only one side column visible, left or right
|
else if (Gbl.Prefs.SideCols != Lay_HIDE_BOTH_COLUMNS) // 10 or 01: only one side column visible, left or right
|
||||||
ColspanCentralPart = 2;
|
ColspanCentralPart = 2;
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<td colspan=\"%u\" style=\"height:56px;"
|
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"CENTER_TOP\""
|
||||||
" text-align:center; vertical-align:top;"
|
" style=\"height:56px;"
|
||||||
" background-image:url('%s/head_base_background_1x56.gif');"
|
" background-image:url('%s/head_base_background_1x56.gif');"
|
||||||
" background-repeat:repeat-x;\">"
|
" background-repeat:repeat-x;\">"
|
||||||
"<div id=\"tabs_container\">",
|
"<div id=\"tabs_container\">",
|
||||||
|
@ -224,8 +224,7 @@ void Tab_DrawTabsMobile (void)
|
||||||
fprintf (Gbl.F.Out,"<tr>");
|
fprintf (Gbl.F.Out,"<tr>");
|
||||||
|
|
||||||
/* Icon at top and text at bottom */
|
/* Icon at top and text at bottom */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"width:25%%; text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:25%%;\">");
|
||||||
" vertical-align:top;\">");
|
|
||||||
if (ICanViewTab)
|
if (ICanViewTab)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\">");
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\">");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user