");
- }
-
/*****************************************************************************/
/*********** Put a link (form) to create a new attendance event **************/
/*****************************************************************************/
@@ -2651,8 +2630,10 @@ void Usr_ListAttendanceStdsCrs (void)
extern const char *Txt_You_must_select_one_ore_more_students;
unsigned NumStdsInList;
long *LstSelectedUsrCods;
- char *StrAttCodsSelected;
unsigned NumAttEvent;
+ char *StrAttCodsSelected;
+ char YN[1+1];
+ bool ShowDetails;
/***** Get list of attendance events *****/
Att_GetListAttEvents (Att_OLDEST_FIRST);
@@ -2663,6 +2644,10 @@ void Usr_ListAttendanceStdsCrs (void)
/* Check the number of students to list */
if ((NumStdsInList = Usr_CountNumUsrsInEncryptedList ()))
{
+ /***** Get boolean parameter that indicates if details must be shown *****/
+ Par_GetParToText ("ShowDetails",YN,1);
+ ShowDetails = (Str_ConvertToUpperLetter (YN[0]) == 'Y');
+
/***** Get list of groups selected ******/
Grp_GetParCodsSeveralGrpsToShowUsrs ();
@@ -2682,10 +2667,7 @@ void Usr_ListAttendanceStdsCrs (void)
/***** Put link to print *****/
if (Gbl.CurrentAct == ActSeeLstAttStd)
- Att_PutFormToPrintListStds (StrAttCodsSelected);
-
- /***** Free memory for list of attendance events selected *****/
- free ((void *) StrAttCodsSelected);
+ Att_PutFormToPrintListStds (ShowDetails,StrAttCodsSelected);
/***** List events to select *****/
Att_ListEventsToSelect ();
@@ -2696,8 +2678,14 @@ void Usr_ListAttendanceStdsCrs (void)
/***** Show table with attendances for every student in list *****/
Att_ListStdsAttendanceTable (NumStdsInList,LstSelectedUsrCods);
- /***** List the students with details and comments *****/
- Att_ListStdsWithAttEventsDetails (NumStdsInList,LstSelectedUsrCods);
+ /***** Show details or put button to show details *****/
+ if (ShowDetails)
+ Att_ListStdsWithAttEventsDetails (NumStdsInList,LstSelectedUsrCods);
+ else if (Gbl.CurrentAct == ActSeeLstAttStd)
+ Att_PutButtonToShowDetails (StrAttCodsSelected);
+
+ /***** Free memory for list of attendance events selected *****/
+ free ((void *) StrAttCodsSelected);
/***** Free list of user codes *****/
free ((void *) LstSelectedUsrCods);
@@ -2859,6 +2847,51 @@ static void Att_GetListSelectedAttCods (char **StrAttCodsSelected)
}
}
+/*****************************************************************************/
+/**** Put a link (form) to list assistance of students to several events *****/
+/*****************************************************************************/
+
+static void Att_PutFormToPrintListStds (bool ShowDetails,char *StrAttCodsSelected)
+ {
+ extern const char *The_ClassFormul[The_NUM_THEMES];
+ extern const char *Txt_Print_view;
+
+ /***** Link to print view *****/
+ fprintf (Gbl.F.Out,"
");
+ }
+
+/*****************************************************************************/
+/**** Put a link (form) to list assistance of students to several events *****/
+/*****************************************************************************/
+
+static void Att_PutButtonToShowDetails (char *StrAttCodsSelected)
+ {
+ extern const char *Txt_Show_more_details;
+
+ /***** Button to show more details *****/
+ fprintf (Gbl.F.Out,"
");
+ }
+
/*****************************************************************************/
/********** Write list of those attendance events that have students *********/
/*****************************************************************************/
@@ -2874,19 +2907,19 @@ static void Att_ListEventsToSelect (void)
const char *BgColor;
unsigned NumAttEvent;
- /***** Start frame *****/
+ /***** Start form to update the attendance
+ depending on the events selected *****/
if (Gbl.CurrentAct == ActSeeLstAttStd)
{
- /***** Start form to update the attendance
- depending on the events selected *****/
Act_FormStart (ActSeeLstAttStd);
+ Grp_PutParamsCodGrps ();
Usr_PutHiddenParUsrCodAll (ActSeeLstAttStd,Gbl.Usrs.Select.All);
-
- Lay_StartRoundFrameTable10 (NULL,2,Txt_Events);
}
- else
- Lay_StartSquareFrameTable (NULL,NULL,NULL,2);
+ /***** Start frame *****/
+ Lay_StartRoundFrameTable10 (NULL,2,Txt_Events);
+
+ /***** Heading row *****/
fprintf (Gbl.F.Out,"
"
"
%s
"
"
%s
"
@@ -2901,11 +2934,11 @@ static void Att_ListEventsToSelect (void)
{
BgColor = Gbl.ColorRows[Gbl.RowEvenOdd];
- /***** Get data of the attendance event from database *****/
+ /* Get data of the attendance event from database */
Att_GetDataOfAttEventByCodAndCheckCrs (&Gbl.AttEvents.Lst[NumAttEvent]);
Att_GetNumStdsTotalWhoAreInAttEvent (&Gbl.AttEvents.Lst[NumAttEvent]);
- /***** Write a row for this event *****/
+ /* Write a row for this event */
fprintf (Gbl.F.Out,"