Version19.112.24

This commit is contained in:
Antonio Cañas Vargas 2020-01-07 22:25:05 +01:00
parent 41964c4083
commit 87b48d8bc1
2 changed files with 14 additions and 5 deletions

View File

@ -492,7 +492,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 19.112.23 (2020-01-07)"
#define Log_PLATFORM_VERSION "SWAD 19.112.24 (2020-01-07)"
#define CSS_FILE "swad19.112.css"
#define JS_FILE "swad19.91.1.js"
/*
@ -501,6 +501,7 @@ ps2pdf source.ps destination.pdf
// TODO: No se puede entrar con DNI '1' suponiendo que no tenga password ¿por qué?
// TODO: Mapas más estrechos en móvil
Version 19.112.24:Jan 07, 2020 Fixed bug in edition of institutions. (278815 lines)
Version 19.112.23:Jan 07, 2020 Optimization in number of centres in an institution. (278807 lines)
Version 19.112.22:Jan 07, 2020 Optimization in number of centres in a country. (278761 lines)
Version 19.112.21:Jan 07, 2020 Optimization in number of degrees in a country. (278741 lines)

View File

@ -458,6 +458,16 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
extern const char *Txt_Courses_ABBREVIATION;
extern const char *Txt_Departments_ABBREVIATION;
Ins_Order_t Order;
static const char *ClassTH[Ins_NUM_ORDERS] =
{
[Ins_ORDER_BY_INSTITUTION] = "LM",
[Ins_ORDER_BY_NUM_USRS ] = "RM"
};
static const char *ClassButton[Ins_NUM_ORDERS] =
{
[Ins_ORDER_BY_INSTITUTION] = "BT_LINK LM TIT_TBL",
[Ins_ORDER_BY_NUM_USRS ] = "BT_LINK RM TIT_TBL"
};
HTM_TR_Begin (NULL);
HTM_TH_Empty (1);
@ -465,13 +475,12 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
Order <= (Ins_Order_t) (Ins_NUM_ORDERS - 1);
Order++)
{
HTM_TH_Begin (1,1,Order == Ins_ORDER_BY_INSTITUTION ? "LM" :
"RM");
HTM_TH_Begin (1,1,ClassTH[Order]);
if (OrderSelectable)
{
Frm_StartForm (ActSeeIns);
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
HTM_BUTTON_SUBMIT_Begin (Txt_INSTITUTIONS_HELP_ORDER[Order],"BT_LINK TIT_TBL",NULL);
HTM_BUTTON_SUBMIT_Begin (Txt_INSTITUTIONS_HELP_ORDER[Order],ClassButton[Order],NULL);
if (Order == Gbl.Hierarchy.Cty.Inss.SelectedOrder)
HTM_U_Begin ();
}
@ -1168,7 +1177,6 @@ static void Ins_ListInstitutionsForEdition (void)
HTM_INPUT_URL ("WWW",Ins->WWW,true,
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
Frm_EndForm ();
HTM_TD_End ();
}
else
{