mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version19.134.4
This commit is contained in:
parent
63367892f4
commit
f298e97581
|
@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.134.3 (2020-02-26)"
|
#define Log_PLATFORM_VERSION "SWAD 19.134.4 (2020-02-26)"
|
||||||
#define CSS_FILE "swad19.133.1.css"
|
#define CSS_FILE "swad19.133.1.css"
|
||||||
#define JS_FILE "swad19.91.1.js"
|
#define JS_FILE "swad19.91.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -523,6 +523,7 @@ Param
|
||||||
// TODO: Miguel Damas: por defecto, marcar "Permitir que los profesores..." en los test (que ya esté marcado en lugar de desmarcado)
|
// TODO: Miguel Damas: por defecto, marcar "Permitir que los profesores..." en los test (que ya esté marcado en lugar de desmarcado)
|
||||||
// TODO: Si el alumno ha marcado "Permitir que los profesores...", entonces pedir confirmación al pulsar el botón azul, para evitar que se envíe por error antes de tiempo
|
// TODO: Si el alumno ha marcado "Permitir que los profesores...", entonces pedir confirmación al pulsar el botón azul, para evitar que se envíe por error antes de tiempo
|
||||||
|
|
||||||
|
Version 19.134.4: Feb 26, 2020 Changes in course program. (281992 lines)
|
||||||
Version 19.134.3: Feb 26, 2020 Heading of course program table removed. (282008 lines)
|
Version 19.134.3: Feb 26, 2020 Heading of course program table removed. (282008 lines)
|
||||||
Version 19.134.2: Feb 26, 2020 Fixed bug in syllabus editor. (282021 lines)
|
Version 19.134.2: Feb 26, 2020 Fixed bug in syllabus editor. (282021 lines)
|
||||||
Version 19.134.1: Feb 26, 2020 Order course program items by indexes. (282022 lines)
|
Version 19.134.1: Feb 26, 2020 Order course program items by indexes. (282022 lines)
|
||||||
|
|
|
@ -81,7 +81,6 @@ static void Prg_ParamsWhichGroupsToShow (void);
|
||||||
static void Prg_ShowOneItem (long ItmCod,
|
static void Prg_ShowOneItem (long ItmCod,
|
||||||
unsigned ItmInd,unsigned MaxItmInd,
|
unsigned ItmInd,unsigned MaxItmInd,
|
||||||
bool PrintView);
|
bool PrintView);
|
||||||
static void Prg_WritePrgItemAuthor (struct ProgramItem *Item);
|
|
||||||
|
|
||||||
static void Prg_PutFormsToRemEditOnePrgItem (const struct ProgramItem *Item,
|
static void Prg_PutFormsToRemEditOnePrgItem (const struct ProgramItem *Item,
|
||||||
unsigned ItmInd,unsigned MaxItmInd,
|
unsigned ItmInd,unsigned MaxItmInd,
|
||||||
|
@ -297,16 +296,14 @@ static void Prg_ShowOneItem (long ItmCod,
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
/* Forms to remove/edit this program item */
|
/* Forms to remove/edit this program item */
|
||||||
if (PrintView)
|
if (!PrintView)
|
||||||
HTM_TD_Begin ("rowspan=\"2\" class=\"CONTEXT_COL\"");
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
HTM_TD_Begin ("rowspan=\"2\" class=\"CONTEXT_COL COLOR%u\"",Gbl.RowEvenOdd);
|
HTM_TD_Begin ("rowspan=\"2\" class=\"LT COLOR%u\"",Gbl.RowEvenOdd);
|
||||||
Prg_PutFormsToRemEditOnePrgItem (&Item,
|
Prg_PutFormsToRemEditOnePrgItem (&Item,
|
||||||
ItmInd,MaxItmInd,
|
ItmInd,MaxItmInd,
|
||||||
Anchor);
|
Anchor);
|
||||||
}
|
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
}
|
||||||
|
|
||||||
/* Program item title */
|
/* Program item title */
|
||||||
if (PrintView)
|
if (PrintView)
|
||||||
|
@ -333,14 +330,14 @@ static void Prg_ShowOneItem (long ItmCod,
|
||||||
if (asprintf (&Id,"scd_date_%u_%u",(unsigned) StartEndTime,UniqueId) < 0)
|
if (asprintf (&Id,"scd_date_%u_%u",(unsigned) StartEndTime,UniqueId) < 0)
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
if (PrintView)
|
if (PrintView)
|
||||||
HTM_TD_Begin ("id=\"%s\" class=\"%s LB\"",
|
HTM_TD_Begin ("rowspan=\"2\" id=\"%s\" class=\"%s LT\"",
|
||||||
Id,
|
Id,
|
||||||
Item.Hidden ? (Item.Open ? "DATE_GREEN_LIGHT" :
|
Item.Hidden ? (Item.Open ? "DATE_GREEN_LIGHT" :
|
||||||
"DATE_RED_LIGHT") :
|
"DATE_RED_LIGHT") :
|
||||||
(Item.Open ? "DATE_GREEN" :
|
(Item.Open ? "DATE_GREEN" :
|
||||||
"DATE_RED"));
|
"DATE_RED"));
|
||||||
else
|
else
|
||||||
HTM_TD_Begin ("id=\"%s\" class=\"%s LB COLOR%u\"",
|
HTM_TD_Begin ("rowspan=\"2\" id=\"%s\" class=\"%s LT COLOR%u\"",
|
||||||
Id,
|
Id,
|
||||||
Item.Hidden ? (Item.Open ? "DATE_GREEN_LIGHT" :
|
Item.Hidden ? (Item.Open ? "DATE_GREEN_LIGHT" :
|
||||||
"DATE_RED_LIGHT") :
|
"DATE_RED_LIGHT") :
|
||||||
|
@ -376,14 +373,6 @@ static void Prg_ShowOneItem (long ItmCod,
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/* Author of the program item */
|
|
||||||
if (PrintView)
|
|
||||||
HTM_TD_Begin ("colspan=\"2\" class=\"LT\"");
|
|
||||||
else
|
|
||||||
HTM_TD_Begin ("colspan=\"2\" class=\"LT COLOR%u\"",Gbl.RowEvenOdd);
|
|
||||||
Prg_WritePrgItemAuthor (&Item);
|
|
||||||
HTM_TD_End ();
|
|
||||||
|
|
||||||
HTM_TR_End ();
|
HTM_TR_End ();
|
||||||
|
|
||||||
/***** Free anchor string *****/
|
/***** Free anchor string *****/
|
||||||
|
@ -392,15 +381,6 @@ static void Prg_ShowOneItem (long ItmCod,
|
||||||
Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd;
|
Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/********************* Write the author of a program item ********************/
|
|
||||||
/*****************************************************************************/
|
|
||||||
|
|
||||||
static void Prg_WritePrgItemAuthor (struct ProgramItem *Item)
|
|
||||||
{
|
|
||||||
Usr_WriteAuthor1Line (Item->UsrCod,Item->Hidden);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/**************** Put a link (form) to edit one program item *****************/
|
/**************** Put a link (form) to edit one program item *****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -435,6 +415,9 @@ static void Prg_PutFormsToRemEditOnePrgItem (const struct ProgramItem *Item,
|
||||||
else
|
else
|
||||||
Ico_PutContextualIconToHide (ActHidPrgItm,Anchor,Prg_PutParams);
|
Ico_PutContextualIconToHide (ActHidPrgItm,Anchor,Prg_PutParams);
|
||||||
|
|
||||||
|
/***** Put form to edit program item *****/
|
||||||
|
Ico_PutContextualIconToEdit (ActEdiOnePrgItm,Prg_PutParams);
|
||||||
|
|
||||||
/***** Put icon to move up the item *****/
|
/***** Put icon to move up the item *****/
|
||||||
if (ItmInd > 1)
|
if (ItmInd > 1)
|
||||||
{
|
{
|
||||||
|
@ -458,9 +441,6 @@ static void Prg_PutFormsToRemEditOnePrgItem (const struct ProgramItem *Item,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Ico_PutIconOff ("arrow-down.svg",Txt_Movement_not_allowed);
|
Ico_PutIconOff ("arrow-down.svg",Txt_Movement_not_allowed);
|
||||||
|
|
||||||
/***** Put form to edit program item *****/
|
|
||||||
Ico_PutContextualIconToEdit (ActEdiOnePrgItm,Prg_PutParams);
|
|
||||||
break;
|
break;
|
||||||
case Rol_STD:
|
case Rol_STD:
|
||||||
case Rol_NET:
|
case Rol_NET:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user