mirror of https://github.com/acanas/swad-core.git
Version 16.105.8
This commit is contained in:
parent
a30bb58a58
commit
b7697c96ed
|
@ -2057,10 +2057,12 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
|
|||
/***** Icon to show if the user is already registered *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BT%u\">"
|
||||
"<label for=\"Std%u\">"
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
|
||||
"</label>"
|
||||
"</td>",
|
||||
Gbl.RowEvenOdd,
|
||||
Gbl.RowEvenOdd,NumStd,
|
||||
Gbl.Prefs.IconsURL,
|
||||
Present ? "check" :
|
||||
"check-empty",
|
||||
|
@ -2071,8 +2073,9 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
|
|||
|
||||
/***** Checkbox to select user *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP COLOR%u\">"
|
||||
"<input type=\"checkbox\" name=\"UsrCodStd\" value=\"%s\"",
|
||||
Gbl.RowEvenOdd,
|
||||
"<input type=\"checkbox\" id=\"Std%u\" name=\"UsrCodStd\""
|
||||
" value=\"%s\"",
|
||||
Gbl.RowEvenOdd,NumStd,
|
||||
UsrDat->EncryptedUsrCod);
|
||||
if (Present) // This student has attended to the event?
|
||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||
|
@ -3103,18 +3106,22 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
|
|||
/* Write a row for this event */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT CENTER_MIDDLE COLOR%u\">"
|
||||
"<input type=\"checkbox\" name=\"AttCods\" value=\"%ld\"",
|
||||
"<input type=\"checkbox\""
|
||||
" id=\"Att%u\" name=\"AttCods\" value=\"%ld\"",
|
||||
Gbl.RowEvenOdd,
|
||||
NumAttEvent,
|
||||
Gbl.AttEvents.Lst[NumAttEvent].AttCod);
|
||||
if (Gbl.AttEvents.Lst[NumAttEvent].Selected)
|
||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||
fprintf (Gbl.F.Out," />"
|
||||
"</td>"
|
||||
"<td class=\"DAT RIGHT_MIDDLE COLOR%u\">"
|
||||
"%u:"
|
||||
"<label for=\"Att%u\">%u:</label>"
|
||||
"</td>"
|
||||
"<td class=\"DAT LEFT_MIDDLE COLOR%u\">"
|
||||
"<span id=\"att_date_start_%u\"></span> %s"
|
||||
"<label for=\"Att%u\">"
|
||||
"<span id=\"att_date_start_%u\"></span> %s"
|
||||
"</label>"
|
||||
"<script type=\"text/javascript\">"
|
||||
"writeLocalDateHMSFromUTC('att_date_start_%u',"
|
||||
"%ld,', ','%s',true,true,true);"
|
||||
|
@ -3125,10 +3132,9 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
|
|||
"</td>"
|
||||
"</tr>",
|
||||
Gbl.RowEvenOdd,
|
||||
NumAttEvent + 1,
|
||||
NumAttEvent,NumAttEvent + 1,
|
||||
Gbl.RowEvenOdd,
|
||||
UniqueId,
|
||||
Gbl.AttEvents.Lst[NumAttEvent].Title,
|
||||
NumAttEvent,UniqueId,Gbl.AttEvents.Lst[NumAttEvent].Title,
|
||||
UniqueId,Gbl.AttEvents.Lst[NumAttEvent].TimeUTC[Att_START_TIME],
|
||||
Txt_Today,
|
||||
Gbl.RowEvenOdd,
|
||||
|
|
|
@ -188,13 +188,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.105.7 (2016-12-20)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.105.8 (2016-12-20)"
|
||||
#define CSS_FILE "swad16.105.3.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.105.8: Dec 20, 2016 Changes in behaviour of labels in forms. (211313 lines)
|
||||
Version 16.105.7: Dec 20, 2016 Changes in behaviour of labels in forms. (211302 lines)
|
||||
Version 16.105.6: Dec 20, 2016 Changes in behaviour of labels in forms. (211300 lines)
|
||||
Version 16.105.5: Dec 20, 2016 Changes in behaviour of labels in forms. (211299 lines)
|
||||
|
|
10
swad_user.c
10
swad_user.c
|
@ -5463,16 +5463,20 @@ void Usr_PutCheckboxToSelectAllTheUsers (Rol_Role_t Role)
|
|||
Usr_Sex_t Sex;
|
||||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th colspan=\"%u\" class=\"LEFT_MIDDLE LIGHT_BLUE\">",
|
||||
"<th colspan=\"%u\" class=\"LEFT_MIDDLE LIGHT_BLUE\">"
|
||||
"<label>",
|
||||
Usr_GetColumnsForSelectUsrs ());
|
||||
if (Role == Rol_STUDENT)
|
||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"SEL_UNSEL_STDS\" value=\"\""
|
||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\""
|
||||
" name=\"SEL_UNSEL_STDS\" value=\"\""
|
||||
" onclick=\"togglecheckChildren(this,'UsrCodStd')\" />");
|
||||
else // Role == Rol_TEACHER or Role == Rol__GUEST_
|
||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"SEL_UNSEL_TCHS\" value=\"\""
|
||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\""
|
||||
" name=\"SEL_UNSEL_TCHS\" value=\"\""
|
||||
" onclick=\"togglecheckChildren(this,'UsrCodTch')\" />");
|
||||
Sex = Usr_GetSexOfUsrsLst (Role);
|
||||
fprintf (Gbl.F.Out,"%s:"
|
||||
"</label>"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
Gbl.Usrs.LstUsrs[Role].NumUsrs == 1 ? Txt_ROLES_SINGUL_Abc[Role][Sex] :
|
||||
|
|
Loading…
Reference in New Issue