Version 16.107.5

This commit is contained in:
Antonio Cañas Vargas 2016-12-26 18:35:52 +01:00
parent f04ba7d3d2
commit 160e1b32ed
5 changed files with 25 additions and 18 deletions

View File

@ -2128,7 +2128,10 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL LEFT_TOP COLOR%u\">",
Gbl.RowEvenOdd);
if (Gbl.Usrs.Me.LoggedRole == Rol_STUDENT && Att->Open) // Show with form
fprintf (Gbl.F.Out,"<textarea name=\"CommentStd%ld\" cols=\"40\" rows=\"3\">%s</textarea>",
fprintf (Gbl.F.Out,"<textarea name=\"CommentStd%ld\""
" cols=\"40\" rows=\"3\">"
"%s"
"</textarea>",
UsrDat->UsrCod,CommentStd);
else // Show without form
{
@ -2142,7 +2145,10 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL LEFT_TOP COLOR%u\">",
Gbl.RowEvenOdd);
if (Gbl.Usrs.Me.LoggedRole == Rol_TEACHER) // Show with form
fprintf (Gbl.F.Out,"<textarea name=\"CommentTch%ld\" cols=\"40\" rows=\"3\">%s</textarea>",
fprintf (Gbl.F.Out,"<textarea name=\"CommentTch%ld\""
" cols=\"40\" rows=\"3\">"
"%s"
"</textarea>",
UsrDat->UsrCod,CommentTch);
else if (Att->CommentTchVisible) // Show without form
{

View File

@ -189,13 +189,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.107.4 (2016-12-26)"
#define Log_PLATFORM_VERSION "SWAD 16.107.5 (2016-12-26)"
#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.107.5: Dec 26, 2016 Changes in behaviour of labels in forms. (211540 lines)
Version 16.107.4: Dec 26, 2016 Code refactoring in announcements. (211532 lines)
Version 16.107.3: Dec 26, 2016 Changes in behaviour of labels in forms. (211531 lines)
Version 16.107.2: Dec 26, 2016 Changes in behaviour of labels in forms. (211525 lines)

View File

@ -269,7 +269,8 @@ static void Cty_Configuration (bool PrintView)
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgCtyMapAtt);
fprintf (Gbl.F.Out,"<textarea name=\"Attribution\" cols=\"50\" rows=\"2\""
fprintf (Gbl.F.Out,"<textarea name=\"Attribution\""
" cols=\"50\" rows=\"2\""
" onchange=\"document.getElementById('%s').submit();\">",
Gbl.Form.Id);
if (MapAttribution)

View File

@ -791,22 +791,21 @@ static void Enr_PutAreaToEnterUsrsIDs (void)
extern const char *The_ClassForm[The_NUM_THEMES];
extern const char *Txt_List_of_nicks_emails_or_IDs;
/***** Start of text area *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">"
/***** Text area for users' IDs *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
"<tr>"
"<td class=\"%s RIGHT_TOP\">"
"%s: "
"<td class=\"RIGHT_TOP\">"
"<label for=\"UsrsIDs\" class=\"%s\">%s:</label>"
"</td>"
"<td class=\"LEFT_TOP\">"
"<textarea name=\"UsrsIDs\" cols=\"72\" rows=\"10\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_List_of_nicks_emails_or_IDs);
/***** End of text area *****/
fprintf (Gbl.F.Out,"</textarea>"
"<textarea id=\"UsrsIDs\" name=\"UsrsIDs\""
" cols=\"60\" rows=\"10\">"
"</textarea>"
"</td>"
"</tr>"
"</table>");
"</table>",
The_ClassForm[Gbl.Prefs.Theme],
Txt_List_of_nicks_emails_or_IDs);
}
/*****************************************************************************/

View File

@ -488,7 +488,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char *Content)
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"RIGHT_TOP\">"
"<label for=\"MsgSubject\" class=\"%s\">"
"%s:&nbsp;"
"%s:"
"</label>"
"</td>"
"<td class=\"LEFT_MIDDLE\">"
@ -538,7 +538,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char *Content)
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"RIGHT_TOP\">"
"<label for=\"MsgContent\" class=\"%s\">"
"%s:&nbsp;"
"%s:"
"</label>"
"</td>"
"<td class=\"LEFT_MIDDLE\">"
@ -570,7 +570,7 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (char *Content)
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"RIGHT_TOP\">"
"<label for=\"MsgContent\" class=\"%s\">"
"%s:&nbsp;"
"%s:"
"</label>"
"</td>"
"<td class=\"LEFT_MIDDLE\">"