mirror of https://github.com/acanas/swad-core.git
Version 16.208.7
This commit is contained in:
parent
2cc0cf374e
commit
749c36c333
|
@ -2084,6 +2084,26 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.USR_ID_NC {color:#A02020}
|
||||
|
||||
/******************************* Record card *********************************/
|
||||
.REC_USR
|
||||
{
|
||||
display:block;
|
||||
margin:0 0 12px 0;
|
||||
text-align:center;
|
||||
vertical-align:top;
|
||||
}
|
||||
.REC_SHA
|
||||
{
|
||||
display:inline-block;
|
||||
margin:0 6px;
|
||||
vertical-align:top;
|
||||
}
|
||||
.REC_CRS
|
||||
{
|
||||
display:inline-block;
|
||||
margin:0 6px;
|
||||
vertical-align:top;
|
||||
}
|
||||
|
||||
.REC_C1_TOP
|
||||
{
|
||||
box-sizing:border-box;
|
|
@ -234,13 +234,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.208.6 (2017-05-08)"
|
||||
#define CSS_FILE "swad16.207.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.208.7 (2017-05-08)"
|
||||
#define CSS_FILE "swad16.208.7.css"
|
||||
#define JS_FILE "swad16.206.3.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.208.7: May 09, 2017 Changes in layout of student records. (218771 lines)
|
||||
Version 16.208.6: May 09, 2017 Changes in alerts.
|
||||
Changes in layout of student records. (218744 lines)
|
||||
Version 16.208.5: May 09, 2017 Changes in edition of students records. (218750 lines)
|
||||
|
|
|
@ -1208,24 +1208,24 @@ static void Rec_ListRecordsStds (Rec_SharedRecordViewType_t ShaTypeOfView,
|
|||
Gbl.CurrentCrs.Crs.CrsCod,
|
||||
true);
|
||||
|
||||
/* Start records of this student */
|
||||
sprintf (Anchor,"record_%u",NumUsr);
|
||||
fprintf (Gbl.F.Out,"<section id=\"%s\""
|
||||
" class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:12px;",
|
||||
Anchor);
|
||||
/* Start records of this user */
|
||||
sprintf (Anchor,"record_%u",NumUsr);
|
||||
fprintf (Gbl.F.Out,"<section id=\"%s\" class=\"REC_USR\"",
|
||||
Anchor);
|
||||
if (Gbl.Action.Act == ActPrnRecSevStd &&
|
||||
NumUsr != 0 &&
|
||||
(NumUsr % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
fprintf (Gbl.F.Out,"page-break-before:always;");
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
fprintf (Gbl.F.Out," style=\"page-break-before:always;\"");
|
||||
fprintf (Gbl.F.Out,">");
|
||||
|
||||
/* Show optional alert */
|
||||
if (UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod) // Selected user
|
||||
Lay_ShowAlert (Gbl.AlertType,Gbl.Message);
|
||||
/* Show optional alert */
|
||||
if (UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod) // Selected user
|
||||
Lay_ShowAlert (Gbl.AlertType,Gbl.Message);
|
||||
|
||||
/* Shared record */
|
||||
fprintf (Gbl.F.Out,"<section class=\"REC_SHA\">");
|
||||
Rec_ShowSharedUsrRecord (ShaTypeOfView,&UsrDat);
|
||||
fprintf (Gbl.F.Out,"</section>");
|
||||
|
||||
/* Record of the student in the course */
|
||||
if (Gbl.CurrentCrs.Records.LstFields.Num) // There are fields in the record
|
||||
|
@ -1233,8 +1233,17 @@ static void Rec_ListRecordsStds (Rec_SharedRecordViewType_t ShaTypeOfView,
|
|||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ||
|
||||
(Gbl.Usrs.Me.LoggedRole == Rol_STUDENT && // I am student in this course...
|
||||
UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod)) // ...and it's me
|
||||
{
|
||||
/* Start course record */
|
||||
fprintf (Gbl.F.Out,"<section class=\"REC_CRS\">");
|
||||
|
||||
/* Show course record */
|
||||
Rec_ShowCrsRecord (CrsTypeOfView,&UsrDat,Anchor);
|
||||
|
||||
/* End course record */
|
||||
fprintf (Gbl.F.Out,"</section>");
|
||||
}
|
||||
|
||||
fprintf (Gbl.F.Out,"</section>");
|
||||
|
||||
NumUsr++;
|
||||
|
|
Loading…
Reference in New Issue