mirror of https://github.com/acanas/swad-core.git
Version 14.123.8
This commit is contained in:
parent
22e1f0b2fb
commit
4d83373515
14
swad_ID.c
14
swad_ID.c
|
@ -392,7 +392,7 @@ void ID_ShowFormOthIDs (void)
|
|||
/* Show user's record */
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">"
|
||||
"<tr>"
|
||||
"<td colspan=\"3\" style=\"text-align:center;\">");
|
||||
"<td colspan=\"3\" class=\"CENTER_MIDDLE\">");
|
||||
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
@ -435,8 +435,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
|||
"<td class=\"%s RIGHT_TOP\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">",
|
||||
"<td colspan=\"2\" class=\"LEFT_TOP\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_ID);
|
||||
else // NumID >= 1
|
||||
fprintf (Gbl.F.Out,"<br />");
|
||||
|
@ -490,8 +489,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
UsrDat->IDs.Num ? Txt_Another_ID : // A new user's ID
|
||||
Txt_ID); // The first user's ID
|
||||
|
@ -508,8 +506,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
|||
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
|
||||
""); // Show the most recent ID
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">");
|
||||
"<td class=\"LEFT_MIDDLE\">");
|
||||
Lay_PutCreateButtonInline (Txt_Add_this_ID);
|
||||
Act_FormEnd ();
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -518,8 +515,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
|||
}
|
||||
|
||||
/***** Write help text *****/
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"3\" class=\"DAT\""
|
||||
" style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"3\" class=\"DAT CENTER_MIDDLE\">");
|
||||
if (ItsMe)
|
||||
fprintf (Gbl.F.Out,"%s ",
|
||||
Txt_The_ID_is_used_in_order_to_facilitate_);
|
||||
|
|
|
@ -103,11 +103,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.123.7 (2015/08/01)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.123.8 (2015/08/03)"
|
||||
|
||||
// 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 14.123.8: Aug 03, 2015 Changes in CSS of forms. (184801 lines)
|
||||
Version 14.123.7: Aug 01, 2015 Changes in CSS of forms. (184848 lines)
|
||||
Version 14.123.6: Aug 01, 2015 Changes in CSS of forms. (184874 lines)
|
||||
Version 14.123.5: Jul 31, 2015 Changes in CSS of forms. (184902 lines)
|
||||
|
|
162
swad_group.c
162
swad_group.c
|
@ -234,7 +234,7 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
|
|||
extern const char *Txt_Update_students_according_to_selected_groups;
|
||||
unsigned NumGrpTyp;
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
|
||||
/***** Start form to update the students listed
|
||||
depending on the groups selected *****/
|
||||
|
@ -277,8 +277,8 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
|
|||
|
||||
/***** Submit button *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"6\" style=\"padding-top:10px;"
|
||||
" text-align:center;\">");
|
||||
"<td colspan=\"6\" class=\"CENTER_MIDDLE\""
|
||||
" style=\"padding-top:10px;\">");
|
||||
Act_LinkFormSubmitAnimated (Txt_Update_students_according_to_selected_groups,The_ClassFormBold[Gbl.Prefs.Theme]);
|
||||
Lay_PutCalculateIconWithText (Txt_Update_students_according_to_selected_groups,Txt_Update_students);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -1143,7 +1143,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Name of group type */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">");
|
||||
Act_FormStart (ActRenGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpTypName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -1155,8 +1155,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Is it mandatory to register in any group? */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgMdtGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"MandatoryEnrollment\" style=\"width:120px;\""
|
||||
|
@ -1177,8 +1176,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Is it possible to register in multiple groups? */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgMulGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"MultipleEnrollment\" style=\"width:120px;\""
|
||||
|
@ -1199,20 +1197,17 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Open time */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">");
|
||||
Act_FormStart (ActChgTimGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\">"
|
||||
"<tr>"
|
||||
"<td style=\"width:16px;"
|
||||
" text-align:left; vertical-align:middle;\">"
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:16px;\">"
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].MustBeOpened ? "time" :
|
||||
"time-off",
|
||||
|
@ -1225,8 +1220,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
&(Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].OpenTime.Date),
|
||||
true,false);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">");
|
||||
"<td class=\"LEFT_MIDDLE\">");
|
||||
Dat_WriteFormHourMinute ("OpenHour","OpenMinute",
|
||||
&(Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].OpenTime.Time),
|
||||
true,false);
|
||||
|
@ -1237,8 +1231,7 @@ static void Grp_ListGroupTypesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Number of groups of this type */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
" style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1263,19 +1256,19 @@ static void Grp_WriteHeadingGroupTypes (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th class=\"BM\"></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s<br />(%s)"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -1368,8 +1361,7 @@ static void Grp_ListGroupsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Group type */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgGrpTyp);
|
||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"GrpTypCod\""
|
||||
|
@ -1390,8 +1382,7 @@ static void Grp_ListGroupsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Group name */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRenGrp);
|
||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -1401,8 +1392,7 @@ static void Grp_ListGroupsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Maximum number of students of the group (row[3]) */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgMaxStdGrp);
|
||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"MaxStudents\" size=\"3\" maxlength=\"10\" value=\"");
|
||||
|
@ -1413,8 +1403,7 @@ static void Grp_ListGroupsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Current number of students in this group */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
" style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
||||
"%d"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1441,16 +1430,16 @@ static void Grp_WriteHeadingGroups (void)
|
|||
"<th class=\"BM\"></th>"
|
||||
"<th class=\"BM\"></th>"
|
||||
"<th class=\"BM\"></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s<br />(%s)"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -1489,10 +1478,10 @@ void Grp_ListGrpsToEditAsgAttOrSvy (struct GroupType *GrpTyp,long Cod,Grp_AsgOrS
|
|||
|
||||
/* Put checkbox to select the group */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;");
|
||||
"<td class=\"LEFT_MIDDLE\"");
|
||||
if (IBelongToThisGroup)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"<input type=\"checkbox\" name=\"GrpCods\" value=\"%ld\"",
|
||||
Grp->GrpCod);
|
||||
if (Cod > 0) // Cod == -1L means new assignment or survey
|
||||
|
@ -1675,10 +1664,10 @@ static unsigned Grp_ListGrpsForChange (struct GroupType *GrpTyp)
|
|||
|
||||
/* Put icon to select the group */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;");
|
||||
"<td class=\"LEFT_MIDDLE\"");
|
||||
if (IBelongToThisGroup)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"<input type=\"");
|
||||
|
||||
// If user is a student and the enrollment is single
|
||||
|
@ -1785,10 +1774,10 @@ static void Grp_ListGrpsToAddOrRemUsrs (struct GroupType *GrpTyp,long UsrCod)
|
|||
|
||||
/* Put checkbox to select the group */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;");
|
||||
"<td class=\"LEFT_MIDDLE\"");
|
||||
if (UsrBelongsToThisGroup)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"<input type=\"checkbox\" name=\"GrpCod%ld\" value=\"%ld\"",
|
||||
GrpTyp->GrpTypCod,Grp->GrpCod);
|
||||
if (UsrBelongsToThisGroup)
|
||||
|
@ -1839,10 +1828,10 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
|
|||
|
||||
/* Put checkbox to select the group */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;");
|
||||
"<td class=\"LEFT_MIDDLE\"");
|
||||
if (IBelongToThisGroup)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"<input type=\"checkbox\" name=\"GrpCods\" value=\"%ld\"",
|
||||
Grp->GrpCod);
|
||||
if (Gbl.Usrs.ClassPhoto.AllGroups)
|
||||
|
@ -1870,7 +1859,7 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
|
|||
/* To get the students who don't belong to a type of group, use group code -(GrpTyp->GrpTypCod) */
|
||||
/* Write checkbox to select the group */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"checkbox\" name=\"GrpCods\" value=\"%ld\"",
|
||||
-(GrpTyp->GrpTypCod));
|
||||
if (Gbl.Usrs.ClassPhoto.AllGroups)
|
||||
|
@ -1887,19 +1876,17 @@ static void Grp_ListGrpsForMultipleSelection (struct GroupType *GrpTyp)
|
|||
fprintf (Gbl.F.Out," onclick=\"checkParent(this,'AllGroups')\" /></td>");
|
||||
|
||||
/* Column closed/open */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"</td>");
|
||||
|
||||
/* Group name = students with no group */
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"DAT LEFT_MIDDLE\">"
|
||||
"%s "
|
||||
"</td>",
|
||||
Txt_students_with_no_group);
|
||||
|
||||
/* Number of students who don't belong to any group of this type */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
" style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>",
|
||||
Grp_CountNumStdsInNoGrpsOfType (GrpTyp->GrpTypCod));
|
||||
|
@ -1923,8 +1910,7 @@ static void Grp_WriteGrpHead (struct GroupType *GrpTyp)
|
|||
|
||||
/***** Name of group type *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"6\" class=\"GRP_TITLE\""
|
||||
" style=\"text-align:left;\">"
|
||||
"<td colspan=\"6\" class=\"GRP_TITLE LEFT_MIDDLE\">"
|
||||
"<br />%s",
|
||||
GrpTyp->GrpTypName);
|
||||
if (GrpTyp->MustBeOpened)
|
||||
|
@ -1940,16 +1926,16 @@ static void Grp_WriteGrpHead (struct GroupType *GrpTyp)
|
|||
/***** Head row with title of each column *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\"></td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1973,8 +1959,7 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
|
|||
sprintf (Gbl.Title,Grp->Open ? Txt_Group_X_open :
|
||||
Txt_Group_X_closed,
|
||||
Grp->GrpName);
|
||||
fprintf (Gbl.F.Out,"<td style=\"width:12px;"
|
||||
" text-align:left; vertical-align:middle;");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:12px;");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," background-color:%s",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
|
@ -1988,39 +1973,37 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
|
|||
Gbl.Title,Gbl.Title);
|
||||
|
||||
/***** Group name *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:middle;");
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\"");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"%s "
|
||||
"</td>",
|
||||
Grp->GrpName);
|
||||
|
||||
/***** Max. number of students in this group *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||
" style=\"text-align:center; vertical-align:middle;");
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\"");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">");
|
||||
Grp_WriteMaxStdsGrp (Grp->MaxStudents);
|
||||
fprintf (Gbl.F.Out," "
|
||||
"</td>");
|
||||
|
||||
/***** Current number of students in this group *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center; vertical-align:middle;");
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\"");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">"
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">"
|
||||
"%d"
|
||||
"</td>",
|
||||
Grp->NumStudents);
|
||||
|
||||
/***** Vacants in this group *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center; vertical-align:middle;");
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\"");
|
||||
if (Highlight)
|
||||
fprintf (Gbl.F.Out," background-color:%s;",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
fprintf (Gbl.F.Out," style=\"background-color:%s;\"",VERY_LIGHT_BLUE);
|
||||
fprintf (Gbl.F.Out,">");
|
||||
if (Grp->MaxStudents > Grp_MAX_STUDENTS_IN_A_GROUP)
|
||||
fprintf (Gbl.F.Out,"-");
|
||||
else
|
||||
|
@ -2064,13 +2047,13 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Name of group type *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"GrpTypName\" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
MAX_LENGTH_GROUP_TYPE_NAME,Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName);
|
||||
|
||||
/***** Is it mandatory to register in any groups of this type? *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"MandatoryEnrollment\" style=\"width:120px;\">"
|
||||
"<option value=\"N\"");
|
||||
if (!Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrollment)
|
||||
|
@ -2086,7 +2069,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
Txt_It_is_mandatory_to_choose_a_group);
|
||||
|
||||
/***** Is it possible to register in multiple groups of this type? *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"MultipleEnrollment\" style=\"width:120px;\">"
|
||||
"<option value=\"N\"");
|
||||
if (!Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrollment)
|
||||
|
@ -2102,16 +2085,15 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
Txt_A_student_can_belong_to_several_groups);
|
||||
|
||||
/***** Open time *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<table class=\"CELLS_PAD_2\">"
|
||||
"<tr>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\" />"
|
||||
"</td>"
|
||||
"<td style=\"width:16px;"
|
||||
" text-align:left; vertical-align:bottom;\">",
|
||||
"<td class=\"LEFT_BOTTOM\" style=\"width:16px;\">",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Gbl.CurrentCrs.Grps.GrpTyp.MustBeOpened ? "time" :
|
||||
"time-off",
|
||||
|
@ -2124,7 +2106,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
|||
&(Gbl.CurrentCrs.Grps.GrpTyp.OpenTime.Date),
|
||||
false,false);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">");
|
||||
"<td class=\"LEFT_MIDDLE\">");
|
||||
Dat_WriteFormHourMinute ("OpenHour","OpenMinute",
|
||||
&(Gbl.CurrentCrs.Grps.GrpTyp.OpenTime.Time),
|
||||
false,false);
|
||||
|
@ -2188,7 +2170,7 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
Txt_File_zones_disabled);
|
||||
|
||||
/***** Group type *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"GrpTypCod\">");
|
||||
for (NumGrpTyp = 0;
|
||||
NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num;
|
||||
|
@ -2205,12 +2187,12 @@ static void Grp_PutFormToCreateGroup (void)
|
|||
"</td>");
|
||||
|
||||
/***** Group name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"GrpName\" size=\"40\" maxlength=\"%u\" value=\"%s\" /></td>",
|
||||
MAX_LENGTH_GROUP_NAME,Gbl.CurrentCrs.Grps.GrpName);
|
||||
|
||||
/***** Maximum number of students *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"MaxStudents\" size=\"3\" maxlength=\"10\" value=\"");
|
||||
Grp_WriteMaxStdsGrp (Gbl.CurrentCrs.Grps.MaxStudents);
|
||||
fprintf (Gbl.F.Out,"\" /></td>");
|
||||
|
@ -3287,7 +3269,7 @@ static void Grp_AskConfirmRemGrpTypWithGrps (unsigned NumGrps)
|
|||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||
|
||||
/***** Put button to confirm the removing *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRemGrpTyp);
|
||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod);
|
||||
Lay_PutRemoveButton (Txt_Remove_type_of_group);
|
||||
|
@ -3326,7 +3308,7 @@ static void Grp_AskConfirmRemGrp (void)
|
|||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||
|
||||
/***** Put button to confirm the removing *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRemGrp);
|
||||
Grp_PutParamGrpCod (GrpDat.GrpCod);
|
||||
Lay_PutRemoveButton (Txt_Remove_group);
|
||||
|
@ -4193,8 +4175,8 @@ void Grp_ShowSelectorWhichGrps (void)
|
|||
WhichGrps <= Grp_ALL_GROUPS;
|
||||
WhichGrps++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT\""
|
||||
" style=\"display:inline; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<li class=\"DAT LEFT_MIDDLE\""
|
||||
" style=\"display:inline;\">"
|
||||
"<input type=\"radio\" name=\"WhichGrps\" value=\"%u\"",
|
||||
(unsigned) WhichGrps);
|
||||
if (WhichGrps == Gbl.CurrentCrs.Grps.WhichGrps)
|
||||
|
|
|
@ -102,7 +102,7 @@ void Hld_SeeHolidays (void)
|
|||
Order <= Hld_ORDER_BY_START_DATE;
|
||||
Order++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActSeeHld);
|
||||
Par_PutHiddenParamUnsigned ("Order",(unsigned) Order);
|
||||
Act_LinkFormSubmit (Txt_HOLIDAYS_HELP_ORDER[Order],"TIT_TBL");
|
||||
|
@ -115,10 +115,10 @@ void Hld_SeeHolidays (void)
|
|||
Act_FormEnd ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
" %s "
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -132,18 +132,18 @@ void Hld_SeeHolidays (void)
|
|||
{
|
||||
/* Write data of this holiday */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>",
|
||||
Gbl.Hlds.Lst[NumHld].PlcCod <= 0 ? Txt_All_places :
|
||||
Gbl.Hlds.Lst[NumHld].PlaceFullName);
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
||||
" %02u/%02u/%04u"
|
||||
"</td>",
|
||||
Gbl.Hlds.Lst[NumHld].StartDate.Day,
|
||||
Gbl.Hlds.Lst[NumHld].StartDate.Month,
|
||||
Gbl.Hlds.Lst[NumHld].StartDate.Year);
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_MIDDLE\">"
|
||||
" ");
|
||||
switch (Gbl.Hlds.Lst[NumHld].HldTyp)
|
||||
{
|
||||
|
@ -494,14 +494,13 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Holiday code */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%ld "
|
||||
"</td>",
|
||||
Hld->HldCod);
|
||||
|
||||
/* Holiday place */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldPlc);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:50px;\""
|
||||
|
@ -524,8 +523,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Holiday type */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldTyp);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"HldTyp\" style=\"width:50px;\""
|
||||
|
@ -544,8 +542,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Holiday date / Non school period start date */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldStrDat);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
||||
|
@ -557,8 +554,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Non school period end date */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgHldEndDat);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
||||
|
@ -570,8 +566,7 @@ static void Hld_ListHolidaysForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Holiday name */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRenHld);
|
||||
Hld_PutParamHldCod (Hld->HldCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -917,19 +912,19 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -941,7 +936,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
|
||||
/***** Holiday place *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"PlcCod\" style=\"width:50px;\">"
|
||||
"<option value=\"-1\"");
|
||||
if (Hld->PlcCod <= 0)
|
||||
|
@ -959,7 +954,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
"</td>");
|
||||
|
||||
/***** Holiday type *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"HldTyp\" style=\"width:50px;\">");
|
||||
for (HolidayType = (Hld_HolidayType_t) 0;
|
||||
HolidayType < Hld_NUM_TYPES_HOLIDAY;
|
||||
|
@ -973,8 +968,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
"</td>");
|
||||
|
||||
/***** Holiday date / Non school period start date *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
||||
Gbl.Now.Date.Year+1,
|
||||
"StartDay","StartMonth","StartYear",
|
||||
|
@ -983,8 +977,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Non school period end date *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Dat_WriteFormDate (Gbl.Now.Date.Year-1,
|
||||
Gbl.Now.Date.Year+1,
|
||||
"EndDay","EndMonth","EndYear",
|
||||
|
@ -993,7 +986,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Holiday name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"Name\" size=\"20\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>"
|
||||
"<td></td>"
|
||||
|
@ -1022,22 +1015,22 @@ static void Hld_PutHeadHolidays (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\"></td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -511,8 +511,7 @@ static unsigned Imp_GetAndListImpGrpsAndStdsFromDB (bool ItsAFormToRegRemStds)
|
|||
/***** Start table with groups *****/
|
||||
Lay_StartRoundFrameTable (NULL,2,NULL);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th colspan=\"%u\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;\">",
|
||||
"<th colspan=\"%u\" class=\"TIT_TBL CENTER_TOP\">",
|
||||
ItsAFormToRegRemStds ? 3 :
|
||||
2);
|
||||
Lay_WriteTitle (Txt_Official_students);
|
||||
|
@ -540,15 +539,13 @@ static unsigned Imp_GetAndListImpGrpsAndStdsFromDB (bool ItsAFormToRegRemStds)
|
|||
fprintf (Gbl.F.Out,"<tr>");
|
||||
if (ItsAFormToRegRemStds)
|
||||
/* Put checkbox to select the group */
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">"
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"LEFT_TOP\">"
|
||||
"<input type=\"checkbox\" name=\"ImpGrpCod\" value=\"%ld_%s\" />"
|
||||
"</td>",
|
||||
GrpCod,ExternalCrsCod);
|
||||
|
||||
/* Write degree, course and group */
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; vertical-align:top;\">"
|
||||
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"TIT_TBL LEFT_TOP\">"
|
||||
"%s<br />%s %s<br />%s %s (%s)"
|
||||
"</td>" \
|
||||
"</tr>",
|
||||
|
@ -558,12 +555,10 @@ static unsigned Imp_GetAndListImpGrpsAndStdsFromDB (bool ItsAFormToRegRemStds)
|
|||
|
||||
/* Write students */
|
||||
fprintf (Gbl.F.Out,"<tr>" \
|
||||
"<td class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:top;\">"
|
||||
"<td class=\"DAT LEFT_TOP\">"
|
||||
"%u %s%s"
|
||||
"</td>" \
|
||||
"<td class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:top;\">",
|
||||
"<td class=\"DAT LEFT_TOP\">",
|
||||
NumStds,Txt_ROLES_PLURAL_abc[Rol_STUDENT][Usr_SEX_UNKNOWN],
|
||||
NumStds ? ":" :
|
||||
"");
|
||||
|
|
470
swad_indicator.c
470
swad_indicator.c
|
@ -93,7 +93,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
Lay_StartRoundFrameTable (NULL,2,Txt_Indicators_of_courses);
|
||||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:center;\">");
|
||||
"<td class=\"CENTER_MIDDLE\">");
|
||||
|
||||
/***** Form to update indicators *****/
|
||||
/* Start form */
|
||||
|
@ -104,7 +104,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Scope);
|
||||
Gbl.Scope.Allowed = 1 << Sco_SCOPE_SYS |
|
||||
1 << Sco_SCOPE_CTY |
|
||||
|
@ -123,8 +123,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"DAT LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Types_of_degree);
|
||||
Deg_WriteSelectorDegTypes ();
|
||||
fprintf (Gbl.F.Out," (");
|
||||
|
@ -138,7 +137,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Department);
|
||||
Dpt_WriteSelectorDepartment (-1L);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -150,7 +149,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<select name=\"Indicators\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_No_of_indicators);
|
||||
fprintf (Gbl.F.Out,"<option value=\"-1\"");
|
||||
|
@ -172,7 +171,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
|
||||
/* Send button */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\" style=\"text-align:center;\">");
|
||||
"<td colspan=\"2\" class=\"CENTER_MIDDLE\">");
|
||||
Act_LinkFormSubmitAnimated (Txt_Update_indicators,The_ClassFormBold[Gbl.Prefs.Theme]);
|
||||
Lay_PutCalculateIconWithText (Txt_Update_indicators,Txt_Update_indicators);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
|
@ -185,7 +184,7 @@ void Ind_ReqIndicatorsCourses (void)
|
|||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td style=\"text-align:center;\">");
|
||||
"<td class=\"CENTER_MIDDLE\">");
|
||||
|
||||
/***** Get courses from database *****/
|
||||
NumCrss = Ind_GetTableOfCourses (&mysql_res);
|
||||
|
@ -477,7 +476,7 @@ static void Ind_PutButtonToConfirmIWantToSeeBigList (unsigned NumCrss)
|
|||
extern const char *Txt_The_list_of_X_courses_is_too_large_to_be_displayed;
|
||||
extern const char *Txt_Show_anyway;
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
|
||||
/***** Show warning *****/
|
||||
sprintf (Gbl.Message,Txt_The_list_of_X_courses_is_too_large_to_be_displayed,
|
||||
|
@ -542,7 +541,8 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
struct Ind_IndicatorsCrs Indicators;
|
||||
|
||||
/***** Table start *****/
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_1\" style=\"border-spacing:1px;"
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_1\""
|
||||
" style=\"border-spacing:1px;"
|
||||
" margin-left:auto; margin-right:auto;"
|
||||
" background-color:#4D88A1;\">");
|
||||
|
||||
|
@ -551,103 +551,96 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
{
|
||||
case Ind_INDICATORS_BRIEF:
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td colspan=\"11\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"11\" class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td rowspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td rowspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(A) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(B) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(C) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(D) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(E) %s"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -681,163 +674,156 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
break;
|
||||
case Ind_INDICATORS_FULL:
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left; background-color:%s;\">"
|
||||
"<td rowspan=\"3\" class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td colspan=\"24\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"24\" class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td rowspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td rowspan=\"2\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(A) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(B) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"5\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(C) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"4\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"4\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(D) %s"
|
||||
"</td>"
|
||||
"<td colspan=\"4\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:center; vertical-align:top;"
|
||||
" background-color:%s;\">"
|
||||
"<td colspan=\"4\" class=\"TIT_TBL CENTER_TOP\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"(E) %s"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
"<tr>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -916,73 +902,72 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
{
|
||||
case Ind_INDICATORS_BRIEF:
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"DAT_SMALL\""
|
||||
" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"DAT_SMALL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"<a href=\"%s/?crs=%ld&act=%ld\" target=\"_blank\">"
|
||||
"%s/?crs=%ld&act=%ld"
|
||||
"</a>"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1051,134 +1036,133 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
NumTchs = Usr_GetNumUsrsInCrs (Rol_TEACHER,CrsCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"DAT_SMALL\""
|
||||
" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"DAT_SMALL LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"<a href=\"%s/?crs=%ld&act=%ld\" target=\"_blank\">"
|
||||
"%s/?crs=%ld&act=%ld"
|
||||
"</a>"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%lu"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%lu"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%lu"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%lu"
|
||||
"</td>"
|
||||
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;"
|
||||
" background-color:%s;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1313,11 +1297,10 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"margin-left:auto; margin-right:auto;\">"
|
||||
"<tr>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:right;\">"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -1327,13 +1310,13 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
Ind <= Ind_NUM_INDICATORS;
|
||||
Ind++)
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"(%.1f%%)"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1341,16 +1324,19 @@ static void Ind_ShowTableOfCoursesWithIndicators (Ind_IndicatorsLayout_t Indicat
|
|||
NumCrss ? (float) NumCrssWithIndicatorYes[Ind] * 100.0 / (float) NumCrss :
|
||||
0.0);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT_N\" style=\"text-align:right;"
|
||||
" border-style:solid none none none; border-width:1px;\">"
|
||||
"<td class=\"DAT_N RIGHT_MIDDLE\""
|
||||
" style=\"border-style:solid none none none;"
|
||||
" border-width:1px;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"DAT_N\" style=\"text-align:right;"
|
||||
" border-style:solid none none none; border-width:1px;\">"
|
||||
"<td class=\"DAT_N RIGHT_MIDDLE\""
|
||||
" style=\"border-style:solid none none none;"
|
||||
" border-width:1px;\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"<td class=\"DAT_N\" style=\"text-align:right;"
|
||||
" border-style:solid none none none; border-width:1px;\">"
|
||||
"<td class=\"DAT_N RIGHT_MIDDLE\""
|
||||
" style=\"border-style:solid none none none;"
|
||||
" border-width:1px;\">"
|
||||
"(%.1f%%)"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
|
|
Loading…
Reference in New Issue