mirror of https://github.com/acanas/swad-core.git
Version 21.70.6: Dec 20, 2021 Working on design of dark theme.
This commit is contained in:
parent
857fe5b3b4
commit
88fdeb096d
|
@ -404,6 +404,7 @@ static void Ban_ListBannersForEdition (struct Ban_Banners *Banners)
|
|||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassDatLight[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
unsigned NumBan;
|
||||
struct Ban_Banner *Ban;
|
||||
char *Anchor = NULL;
|
||||
|
@ -462,7 +463,8 @@ static void Ban_ListBannersForEdition (struct Ban_Banners *Banners)
|
|||
Ban_PutParamBanCodToEdit (&Banners->BanCodToEdit);
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -472,7 +474,8 @@ static void Ban_ListBannersForEdition (struct Ban_Banners *Banners)
|
|||
Ban_PutParamBanCodToEdit (&Banners->BanCodToEdit);
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -482,7 +485,8 @@ static void Ban_ListBannersForEdition (struct Ban_Banners *Banners)
|
|||
Ban_PutParamBanCodToEdit (&Banners->BanCodToEdit);
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"12\"");
|
||||
"size=\"12\" class=\"%s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -491,8 +495,9 @@ static void Ban_ListBannersForEdition (struct Ban_Banners *Banners)
|
|||
Frm_BeginForm (ActChgBanWWW);
|
||||
Ban_PutParamBanCodToEdit (&Banners->BanCodToEdit);
|
||||
HTM_INPUT_URL ("WWW",Ban->WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\""
|
||||
" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -849,6 +854,7 @@ void Ban_ContEditAfterChgBan (void)
|
|||
static void Ban_PutFormToCreateBanner (const struct Ban_Banner *Ban)
|
||||
{
|
||||
extern const char *Hlp_SYSTEM_Banners_edit;
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_banner;
|
||||
extern const char *Txt_Create_banner;
|
||||
|
||||
|
@ -880,30 +886,35 @@ static void Ban_PutFormToCreateBanner (const struct Ban_Banner *Ban)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\""
|
||||
" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/* Banner full name */
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\""
|
||||
" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/* Banner image */
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"12\" required=\"required\"");
|
||||
"size=\"12\" class=\"%s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/* Banner WWW */
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Ban->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\""
|
||||
" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/* End table row */
|
||||
|
|
23
swad_box.c
23
swad_box.c
|
@ -64,7 +64,7 @@ void Box_BoxTableBegin (const char *Width,const char *Title,
|
|||
Box_BoxBegin (Width,Title,
|
||||
FunctionToDrawContextualIcons,Args,
|
||||
HelpLink,Closable);
|
||||
HTM_TABLE_BeginWidePadding (CellPadding);
|
||||
HTM_TABLE_BeginWidePadding (CellPadding);
|
||||
}
|
||||
|
||||
void Box_BoxTableShadowBegin (const char *Width,const char *Title,
|
||||
|
@ -75,7 +75,7 @@ void Box_BoxTableShadowBegin (const char *Width,const char *Title,
|
|||
Box_BoxShadowBegin (Width,Title,
|
||||
FunctionToDrawContextualIcons,Args,
|
||||
HelpLink);
|
||||
HTM_TABLE_BeginWidePadding (CellPadding);
|
||||
HTM_TABLE_BeginWidePadding (CellPadding);
|
||||
}
|
||||
|
||||
void Box_BoxBegin (const char *Width,const char *Title,
|
||||
|
@ -115,18 +115,9 @@ static void Box_BoxInternalBegin (const char *Width,const char *Title,
|
|||
const char *HelpLink,Box_Closable_t Closable,
|
||||
const char *ClassFrame)
|
||||
{
|
||||
extern const char *The_ClassFrameTitleColor[The_NUM_THEMES];
|
||||
extern const char *Txt_Help;
|
||||
extern const char *Txt_Close;
|
||||
static const char *ClassFrameTitleColor[The_NUM_THEMES] =
|
||||
{
|
||||
[The_THEME_WHITE ] = "FRAME_TITLE_WHITE",
|
||||
[The_THEME_GREY ] = "FRAME_TITLE_GREY",
|
||||
[The_THEME_PURPLE] = "FRAME_TITLE_PURPLE",
|
||||
[The_THEME_BLUE ] = "FRAME_TITLE_BLUE",
|
||||
[The_THEME_YELLOW] = "FRAME_TITLE_YELLOW",
|
||||
[The_THEME_PINK ] = "FRAME_TITLE_PINK",
|
||||
[The_THEME_DARK ] = "FRAME_TITLE_DARK",
|
||||
};
|
||||
|
||||
/***** Check level of nesting *****/
|
||||
if (Gbl.Box.Nested >= Box_MAX_NESTED - 1) // Can not nest a new box
|
||||
|
@ -203,7 +194,7 @@ static void Box_BoxInternalBegin (const char *Width,const char *Title,
|
|||
HTM_DIV_Begin ("class=\"FRAME_TITLE %s %s\"",
|
||||
Gbl.Box.Nested ? "FRAME_TITLE_SMALL" :
|
||||
"FRAME_TITLE_BIG",
|
||||
ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
The_ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
HTM_Txt (Title);
|
||||
HTM_DIV_End ();
|
||||
}
|
||||
|
@ -211,19 +202,19 @@ static void Box_BoxInternalBegin (const char *Width,const char *Title,
|
|||
|
||||
void Box_BoxTableEnd (void)
|
||||
{
|
||||
HTM_TABLE_End ();
|
||||
HTM_TABLE_End ();
|
||||
Box_BoxEnd ();
|
||||
}
|
||||
|
||||
void Box_BoxTableWithButtonEnd (Btn_Button_t Button,const char *TxtButton)
|
||||
{
|
||||
HTM_TABLE_End ();
|
||||
HTM_TABLE_End ();
|
||||
Box_BoxWithButtonEnd (Button,TxtButton);
|
||||
}
|
||||
|
||||
void Box_BoxWithButtonEnd (Btn_Button_t Button,const char *TxtButton)
|
||||
{
|
||||
Btn_PutButton (Button,TxtButton);
|
||||
Btn_PutButton (Button,TxtButton);
|
||||
Box_BoxEnd ();
|
||||
}
|
||||
|
||||
|
|
|
@ -409,6 +409,7 @@ void Bld_FreeListBuildings (struct Bld_Buildings *Buildings)
|
|||
static void Bld_ListBuildingsForEdition (const struct Bld_Buildings *Buildings)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
unsigned NumBld;
|
||||
struct Bld_Building *Building;
|
||||
char *Anchor = NULL;
|
||||
|
@ -450,7 +451,8 @@ static void Bld_ListBuildingsForEdition (const struct Bld_Buildings *Buildings)
|
|||
Bld_PutParamBldCod (&Building->BldCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Bld_MAX_CHARS_SHRT_NAME,Building->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -460,7 +462,8 @@ static void Bld_ListBuildingsForEdition (const struct Bld_Buildings *Buildings)
|
|||
Bld_PutParamBldCod (&Building->BldCod);
|
||||
HTM_INPUT_TEXT ("FullName",Bld_MAX_CHARS_FULL_NAME,Building->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\"");
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -470,7 +473,8 @@ static void Bld_ListBuildingsForEdition (const struct Bld_Buildings *Buildings)
|
|||
Bld_PutParamBldCod (&Building->BldCod);
|
||||
HTM_INPUT_TEXT ("Location",Bld_MAX_CHARS_LOCATION,Building->Location,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME\"");
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -700,6 +704,7 @@ void Bld_ContEditAfterChgBuilding (void)
|
|||
|
||||
static void Bld_PutFormToCreateBuilding (void)
|
||||
{
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_building;
|
||||
extern const char *Txt_Create_building;
|
||||
|
||||
|
@ -728,21 +733,26 @@ static void Bld_PutFormToCreateBuilding (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Bld_MAX_CHARS_SHRT_NAME,Bld_EditingBuilding->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Building full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Bld_MAX_CHARS_FULL_NAME,Bld_EditingBuilding->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Building location *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("Location",Bld_MAX_CHARS_LOCATION,Bld_EditingBuilding->Location,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME\"");
|
||||
"size=\"15\" class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TR_End ();
|
||||
|
|
|
@ -755,6 +755,7 @@ void Ctr_WriteSelectorOfCenter (void)
|
|||
static void Ctr_ListCentersForEdition (const struct Plc_Places *Places)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Another_place;
|
||||
extern const char *Txt_CENTER_STATUS[Hie_NUM_STATUS_TXT];
|
||||
unsigned NumCtr;
|
||||
|
@ -822,7 +823,8 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places)
|
|||
Frm_BeginForm (ActChgCtrPlc);
|
||||
Hie_PutParamOtherHieCod (&Ctr->CtrCod);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"name=\"PlcCod\" class=\"PLC_SEL\"");
|
||||
"name=\"PlcCod\" class=\"PLC_SEL %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_OPTION (HTM_Type_STRING,"0",
|
||||
Ctr->PlcCod == 0,false,
|
||||
"%s",Txt_Another_place);
|
||||
|
@ -851,7 +853,8 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places)
|
|||
Hie_PutParamOtherHieCod (&Ctr->CtrCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ctr->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -866,7 +869,8 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places)
|
|||
Hie_PutParamOtherHieCod (&Ctr->CtrCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ctr->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -880,7 +884,9 @@ static void Ctr_ListCentersForEdition (const struct Plc_Places *Places)
|
|||
Frm_BeginForm (ActChgCtrWWW);
|
||||
Hie_PutParamOtherHieCod (&Ctr->CtrCod);
|
||||
HTM_INPUT_URL ("WWW",Ctr->WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1297,6 +1303,7 @@ static void Ctr_PutParamGoToCtr (void *CtrCod)
|
|||
static void Ctr_PutFormToCreateCenter (const struct Plc_Places *Places)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_center;
|
||||
extern const char *Txt_Another_place;
|
||||
extern const char *Txt_Create_center;
|
||||
|
@ -1336,7 +1343,8 @@ static void Ctr_PutFormToCreateCenter (const struct Plc_Places *Places)
|
|||
/***** Place *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"name=\"PlcCod\" class=\"PLC_SEL\"");
|
||||
"name=\"PlcCod\" class=\"PLC_SEL %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_OPTION (HTM_Type_STRING,"0",
|
||||
Ctr_EditingCtr->PlcCod == 0,false,
|
||||
"%s",Txt_Another_place);
|
||||
|
@ -1353,20 +1361,23 @@ static void Ctr_PutFormToCreateCenter (const struct Plc_Places *Places)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ctr_EditingCtr->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Center full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ctr_EditingCtr->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Center WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Ctr_EditingCtr->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Number of users who claim to belong to this center *****/
|
||||
|
|
|
@ -353,6 +353,7 @@ static void CtrCfg_Map (void)
|
|||
|
||||
static void CtrCfg_Latitude (void)
|
||||
{
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Latitude;
|
||||
|
||||
/***** Latitude *****/
|
||||
|
@ -369,7 +370,8 @@ static void CtrCfg_Latitude (void)
|
|||
90.0, // North Pole
|
||||
0.0, // step="any"
|
||||
Gbl.Hierarchy.Ctr.Coord.Latitude,false,
|
||||
"class=\"INPUT_COORD\" required=\"required\"");
|
||||
"class=\"INPUT_COORD %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -378,6 +380,7 @@ static void CtrCfg_Latitude (void)
|
|||
|
||||
static void CtrCfg_Longitude (void)
|
||||
{
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Longitude;
|
||||
|
||||
/***** Longitude *****/
|
||||
|
@ -394,7 +397,8 @@ static void CtrCfg_Longitude (void)
|
|||
180.0, // East
|
||||
0.0, // step="any"
|
||||
Gbl.Hierarchy.Ctr.Coord.Longitude,false,
|
||||
"class=\"INPUT_COORD\" required=\"required\"");
|
||||
"class=\"INPUT_COORD %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -403,6 +407,7 @@ static void CtrCfg_Longitude (void)
|
|||
|
||||
static void CtrCfg_Altitude (void)
|
||||
{
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Altitude;
|
||||
|
||||
/***** Altitude *****/
|
||||
|
@ -419,7 +424,8 @@ static void CtrCfg_Altitude (void)
|
|||
8848.0, // Mount Everest
|
||||
0.0, // step="any"
|
||||
Gbl.Hierarchy.Ctr.Coord.Altitude,false,
|
||||
"class=\"INPUT_COORD\" required=\"required\"");
|
||||
"class=\"INPUT_COORD %s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -548,6 +554,7 @@ static void CtrCfg_FreePhotoAttr (char **PhotoAttribution)
|
|||
static void CtrCfg_Institution (bool PrintView,bool PutForm)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Institution;
|
||||
unsigned NumIns;
|
||||
|
||||
|
@ -570,7 +577,8 @@ static void CtrCfg_Institution (bool PrintView,bool PutForm)
|
|||
Frm_BeginForm (ActChgCtrInsCfg);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"id=\"OthInsCod\" name=\"OthInsCod\""
|
||||
" class=\"INPUT_SHORT_NAME\"");
|
||||
" class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
for (NumIns = 0;
|
||||
NumIns < Gbl.Hierarchy.Inss.Num;
|
||||
NumIns++)
|
||||
|
@ -639,6 +647,7 @@ static void CtrCfg_ShrtName (bool PutForm)
|
|||
static void CtrCfg_Place (bool PutForm)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Place;
|
||||
extern const char *Txt_Another_place;
|
||||
struct Plc_Places Places;
|
||||
|
@ -671,7 +680,8 @@ static void CtrCfg_Place (bool PutForm)
|
|||
/* Put form to select place */
|
||||
Frm_BeginForm (ActChgCtrPlcCfg);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"name=\"PlcCod\" class=\"INPUT_SHORT_NAME\"");
|
||||
"name=\"PlcCod\" class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_OPTION (HTM_Type_STRING,"0",
|
||||
Gbl.Hierarchy.Ctr.PlcCod == 0,false,
|
||||
"%s",Txt_Another_place);
|
||||
|
|
|
@ -608,6 +608,7 @@ TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta q
|
|||
/*
|
||||
// TODO: al ver los resultados de un juego como profesor, el rol del estudiante sale como desconocido y no se puede ver el DNI
|
||||
|
||||
Version 21.70.6: Dec 20, 2021 Working on design of dark theme. (321886 lines)
|
||||
Version 21.70.5: Dec 19, 2021 Working on design of dark theme. (321748 lines)
|
||||
Version 21.70.4: Dec 18, 2021 Working on design of dark theme. (321634 lines)
|
||||
Version 21.70.3: Dec 17, 2021 Working on design of dark theme. (321559 lines)
|
||||
|
|
|
@ -215,15 +215,19 @@ static void CtyCfg_PutIconToPrint (__attribute__((unused)) void *Args)
|
|||
|
||||
static void CtyCfg_Title (bool PutLink)
|
||||
{
|
||||
extern const char *The_ClassFrameTitleColor[The_NUM_THEMES];
|
||||
|
||||
/***** Begin container *****/
|
||||
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG\"");
|
||||
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG %s\"",
|
||||
The_ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
|
||||
/* Begin link */
|
||||
if (PutLink)
|
||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\""
|
||||
" class=\"FRAME_TITLE_BIG\" title=\"%s\"",
|
||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\" title=\"%s\""
|
||||
" class=\"FRAME_TITLE_BIG %s\"",
|
||||
Gbl.Hierarchy.Cty.WWW[Gbl.Prefs.Language],
|
||||
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language],
|
||||
The_ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
|
||||
/* Country name */
|
||||
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||
|
|
|
@ -1208,7 +1208,8 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year)
|
|||
Hie_PutParamOtherHieCod (&Crs->CrsCod);
|
||||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Crs->InstitutionalCrsCod,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_INS_CODE\"");
|
||||
"class=\"INPUT_INS_CODE %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1264,7 +1265,8 @@ static void Crs_ListCoursesOfAYearForEdition (unsigned Year)
|
|||
Hie_PutParamOtherHieCod (&Crs->CrsCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Crs->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1360,7 +1362,8 @@ static void Crs_PutFormToCreateCourse (void)
|
|||
HTM_INPUT_TEXT ("InsCrsCod",Crs_MAX_CHARS_INSTITUTIONAL_CRS_COD,
|
||||
Crs_EditingCrs->InstitutionalCrsCod,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_INS_CODE\"");
|
||||
"class=\"INPUT_INS_CODE %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Year *****/
|
||||
|
|
|
@ -376,7 +376,8 @@ static void Deg_ListDegreesForEdition (void)
|
|||
Hie_PutParamOtherHieCod (&Deg->DegCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Deg->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -391,7 +392,8 @@ static void Deg_ListDegreesForEdition (void)
|
|||
Hie_PutParamOtherHieCod (&Deg->DegCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Deg->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -549,14 +551,18 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Deg_EditingDeg->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Degree full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Deg_EditingDeg->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Degree type *****/
|
||||
|
@ -580,7 +586,9 @@ static void Deg_PutFormToCreateDegree (void)
|
|||
/***** Degree WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Deg_EditingDeg->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Number of courses in this degree *****/
|
||||
|
|
|
@ -199,6 +199,7 @@ static void DegCfg_Title (bool PutLink)
|
|||
static void DegCfg_Center (bool PrintView,bool PutForm)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Center;
|
||||
unsigned NumCtr;
|
||||
|
||||
|
@ -221,7 +222,8 @@ static void DegCfg_Center (bool PrintView,bool PutForm)
|
|||
Frm_BeginForm (ActChgDegCtrCfg);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"id=\"OthCtrCod\" name=\"OthCtrCod\""
|
||||
" class=\"INPUT_SHORT_NAME\"");
|
||||
" class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
for (NumCtr = 0;
|
||||
NumCtr < Gbl.Hierarchy.Ctrs.Num;
|
||||
NumCtr++)
|
||||
|
|
|
@ -506,7 +506,8 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
|
|||
Dpt_PutParamDptCod (&Dpt->DptCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -516,7 +517,8 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
|
|||
Dpt_PutParamDptCod (&Dpt->DptCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -525,7 +527,9 @@ static void Dpt_ListDepartmentsForEdition (const struct Dpt_Departments *Departm
|
|||
Frm_BeginForm (ActChgDptWWW);
|
||||
Dpt_PutParamDptCod (&Dpt->DptCod);
|
||||
HTM_INPUT_URL ("WWW",Dpt->WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -845,20 +849,26 @@ static void Dpt_PutFormToCreateDepartment (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Dpt_EditingDpt->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Department full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Dpt_EditingDpt->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Department WWW *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Dpt_EditingDpt->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TR_End ();
|
||||
|
|
|
@ -50,16 +50,30 @@ void HieCfg_Title (bool PutLink,
|
|||
char LogoWWW[Cns_MAX_BYTES_WWW + 1],
|
||||
char TextFullName[Cns_HIERARCHY_MAX_BYTES_FULL_NAME + 1])
|
||||
{
|
||||
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG\"");
|
||||
extern const char *The_ClassFrameTitleColor[The_NUM_THEMES];
|
||||
|
||||
/***** Begin container *****/
|
||||
HTM_DIV_Begin ("class=\"FRAME_TITLE FRAME_TITLE_BIG %s\"",
|
||||
The_ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
|
||||
/* Begin link */
|
||||
if (PutLink)
|
||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\""
|
||||
" class=\"FRAME_TITLE_BIG\" title=\"%s\"",
|
||||
LogoWWW,LogoFullName);
|
||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\" title=\"%s\""
|
||||
" class=\"FRAME_TITLE_BIG %s\"",
|
||||
LogoWWW,
|
||||
LogoFullName,
|
||||
The_ClassFrameTitleColor[Gbl.Prefs.Theme]);
|
||||
|
||||
/* Logo and name */
|
||||
Lgo_DrawLogo (LogoScope,LogoCod,LogoShrtName,64,NULL,true);
|
||||
HTM_BR ();
|
||||
HTM_Txt (TextFullName);
|
||||
|
||||
/* End link */
|
||||
if (PutLink)
|
||||
HTM_A_End ();
|
||||
|
||||
/***** End container *****/
|
||||
HTM_DIV_End ();
|
||||
}
|
||||
|
||||
|
@ -71,6 +85,7 @@ void HieCfg_FullName (bool PutForm,const char *Label,Act_Action_t NextAction,
|
|||
const char FullName[Cns_HIERARCHY_MAX_BYTES_FULL_NAME + 1])
|
||||
{
|
||||
extern const char *The_ClassDatStrong[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
|
||||
/***** Full name *****/
|
||||
HTM_TR_Begin (NULL);
|
||||
|
@ -88,8 +103,9 @@ void HieCfg_FullName (bool PutForm,const char *Label,Act_Action_t NextAction,
|
|||
Frm_BeginForm (NextAction);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"id=\"FullName\" class=\"INPUT_FULL_NAME\""
|
||||
" required=\"required\"");
|
||||
"id=\"FullName\" class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit full name
|
||||
|
@ -107,6 +123,7 @@ void HieCfg_ShrtName (bool PutForm,Act_Action_t NextAction,
|
|||
const char ShrtName[Cns_HIERARCHY_MAX_BYTES_SHRT_NAME + 1])
|
||||
{
|
||||
extern const char *The_ClassDatStrong[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Short_name;
|
||||
|
||||
/***** Short name *****/
|
||||
|
@ -125,8 +142,9 @@ void HieCfg_ShrtName (bool PutForm,Act_Action_t NextAction,
|
|||
Frm_BeginForm (NextAction);
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"id=\"ShortName\" class=\"INPUT_SHORT_NAME\""
|
||||
" required=\"required\"");
|
||||
"id=\"ShortName\" class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not edit short name
|
||||
|
@ -144,6 +162,7 @@ void HieCfg_WWW (bool PrintView,bool PutForm,Act_Action_t NextAction,
|
|||
const char WWW[Cns_MAX_BYTES_WWW + 1])
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Web;
|
||||
|
||||
/***** Web *****/
|
||||
|
@ -161,7 +180,9 @@ void HieCfg_WWW (bool PrintView,bool PutForm,Act_Action_t NextAction,
|
|||
/* Form to change web */
|
||||
Frm_BeginForm (NextAction);
|
||||
HTM_INPUT_URL ("WWW",WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"id=\"WWW\" class=\"INPUT_WWW_WIDE\" required=\"required\"");
|
||||
"id=\"WWW\" class=\"INPUT_WWW_WIDE %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else // I can not change web
|
||||
|
|
|
@ -508,6 +508,7 @@ static void Hld_ListHolidaysForEdition (const struct Hld_Holidays *Holidays,
|
|||
{
|
||||
extern const char *Hlp_INSTITUTION_Holidays_edit;
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_Holidays;
|
||||
extern const char *Txt_All_places;
|
||||
extern const char *Txt_HOLIDAY_TYPES[Hld_NUM_TYPES_HOLIDAY];
|
||||
|
@ -550,7 +551,8 @@ static void Hld_ListHolidaysForEdition (const struct Hld_Holidays *Holidays,
|
|||
Frm_BeginForm (ActChgHldPlc);
|
||||
Hld_PutParamHldCod (&Hld->HldCod);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"name=\"PlcCod\" class=\"PLC_SEL\"");
|
||||
"name=\"PlcCod\" class=\"PLC_SEL %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_OPTION (HTM_Type_STRING,"-1",Hld->PlcCod <= 0,false,
|
||||
"%s",Txt_All_places);
|
||||
for (NumPlc = 0;
|
||||
|
@ -568,7 +570,9 @@ static void Hld_ListHolidaysForEdition (const struct Hld_Holidays *Holidays,
|
|||
Frm_BeginForm (ActChgHldTyp);
|
||||
Hld_PutParamHldCod (&Hld->HldCod);
|
||||
HTM_SELECT_Begin (HTM_SUBMIT_ON_CHANGE,
|
||||
"name=\"HldTyp\" style=\"width:62px;\"");
|
||||
"name=\"HldTyp\" class=\"%s\""
|
||||
" style=\"width:62px;\"", // TODO: Use a CSS class
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
for (HolidayType = (Hld_HolidayType_t) 0;
|
||||
HolidayType <= (Hld_HolidayType_t) (Hld_NUM_TYPES_HOLIDAY - 1);
|
||||
HolidayType++)
|
||||
|
@ -612,7 +616,8 @@ static void Hld_ListHolidaysForEdition (const struct Hld_Holidays *Holidays,
|
|||
Hld_PutParamHldCod (&Hld->HldCod);
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld->Name,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\"");
|
||||
"size=\"20\" class=\"%s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
HTM_TR_End ();
|
||||
|
@ -896,6 +901,7 @@ void Hld_ContEditAfterChgHld (void)
|
|||
static void Hld_PutFormToCreateHoliday (const struct Plc_Places *Places)
|
||||
{
|
||||
extern const char *Hlp_INSTITUTION_Holidays_edit;
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_All_places;
|
||||
extern const char *Txt_New_holiday;
|
||||
extern const char *Txt_Place;
|
||||
|
@ -930,7 +936,8 @@ static void Hld_PutFormToCreateHoliday (const struct Plc_Places *Places)
|
|||
/***** Holiday place *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"name=\"PlcCod\" class=\"PLC_SEL\"");
|
||||
"name=\"PlcCod\" class=\"PLC_SEL %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_OPTION (HTM_Type_STRING,"-1",Hld_EditingHld->PlcCod <= 0,false,
|
||||
"%s",Txt_All_places);
|
||||
for (NumPlc = 0;
|
||||
|
@ -945,7 +952,9 @@ static void Hld_PutFormToCreateHoliday (const struct Plc_Places *Places)
|
|||
/***** Holiday type *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_SELECT_Begin (HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"name=\"HldTyp\" style=\"width:62px;\"");
|
||||
"name=\"HldTyp\" class=\"%s\""
|
||||
" style=\"width:62px;\"", // TODO: Use a CSS class
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
for (HolidayType = (Hld_HolidayType_t) 0;
|
||||
HolidayType <= (Hld_HolidayType_t) (Hld_NUM_TYPES_HOLIDAY - 1);
|
||||
HolidayType++)
|
||||
|
@ -980,7 +989,8 @@ static void Hld_PutFormToCreateHoliday (const struct Plc_Places *Places)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("Name",Hld_MAX_CHARS_HOLIDAY_NAME,Hld_EditingHld->Name,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\" required=\"required\"");
|
||||
"size=\"20\" class=\"%s\" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TD_Empty (1);
|
||||
|
|
|
@ -925,6 +925,7 @@ void Ins_WriteSelectorOfInstitution (void)
|
|||
static void Ins_ListInstitutionsForEdition (void)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_INSTITUTION_STATUS[Hie_NUM_STATUS_TXT];
|
||||
unsigned NumIns;
|
||||
struct Ins_Instit *Ins;
|
||||
|
@ -992,7 +993,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
Hie_PutParamOtherHieCod (&Ins->InsCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ins->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1007,7 +1009,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
Hie_PutParamOtherHieCod (&Ins->InsCod);
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ins->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1021,7 +1024,9 @@ static void Ins_ListInstitutionsForEdition (void)
|
|||
Frm_BeginForm (ActChgInsWWW);
|
||||
Hie_PutParamOtherHieCod (&Ins->InsCod);
|
||||
HTM_INPUT_URL ("WWW",Ins->WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
}
|
||||
else
|
||||
|
@ -1436,6 +1441,7 @@ static void Ins_PutParamGoToIns (void *InsCod)
|
|||
static void Ins_PutFormToCreateInstitution (void)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_institution;
|
||||
extern const char *Txt_Create_institution;
|
||||
|
||||
|
@ -1474,20 +1480,26 @@ static void Ins_PutFormToCreateInstitution (void)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Cns_HIERARCHY_MAX_CHARS_SHRT_NAME,Ins_EditingIns->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Institution full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Cns_HIERARCHY_MAX_CHARS_FULL_NAME,Ins_EditingIns->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Institution WWW *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_URL ("WWW",Ins_EditingIns->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Number of users who claim to belong to this institution ****/
|
||||
|
|
26
swad_link.c
26
swad_link.c
|
@ -376,6 +376,7 @@ void Lnk_FreeListLinks (void)
|
|||
static void Lnk_ListLinksForEdition (void)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
unsigned NumLnk;
|
||||
struct Lnk_Link *Lnk;
|
||||
|
||||
|
@ -411,7 +412,9 @@ static void Lnk_ListLinksForEdition (void)
|
|||
Lnk_PutParamLnkCod (&Lnk->LnkCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -421,7 +424,9 @@ static void Lnk_ListLinksForEdition (void)
|
|||
Lnk_PutParamLnkCod (&Lnk->LnkCod);
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -430,7 +435,9 @@ static void Lnk_ListLinksForEdition (void)
|
|||
Frm_BeginForm (ActChgLnkWWW);
|
||||
Lnk_PutParamLnkCod (&Lnk->LnkCod);
|
||||
HTM_INPUT_URL ("WWW",Lnk->WWW,HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -655,6 +662,7 @@ void Lnk_ContEditAfterChgLnk (void)
|
|||
static void Lnk_PutFormToCreateLink (void)
|
||||
{
|
||||
extern const char *Hlp_SYSTEM_Links_edit;
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_link;
|
||||
extern const char *Txt_Create_link;
|
||||
|
||||
|
@ -681,20 +689,26 @@ static void Lnk_PutFormToCreateLink (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Lnk_MAX_CHARS_LINK_SHRT_NAME,Lnk_EditingLnk->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Link full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Lnk_MAX_CHARS_LINK_FULL_NAME,Lnk_EditingLnk->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Link WWW *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_URL ("WWW",Lnk_EditingLnk->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_WWW_NARROW\" required=\"required\"");
|
||||
"class=\"INPUT_WWW_NARROW %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TR_End ();
|
||||
|
|
16
swad_place.c
16
swad_place.c
|
@ -458,6 +458,7 @@ void Plc_FreeListPlaces (struct Plc_Places *Places)
|
|||
static void Plc_ListPlacesForEdition (const struct Plc_Places *Places)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
unsigned NumPlc;
|
||||
struct Plc_Place *Plc;
|
||||
|
||||
|
@ -496,7 +497,8 @@ static void Plc_ListPlacesForEdition (const struct Plc_Places *Places)
|
|||
Plc_PutParamPlcCod (&Plc->PlcCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -506,7 +508,8 @@ static void Plc_ListPlacesForEdition (const struct Plc_Places *Places)
|
|||
Plc_PutParamPlcCod (&Plc->PlcCod);
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\"");
|
||||
"class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -703,6 +706,7 @@ void Plc_ContEditAfterChgPlc (void)
|
|||
static void Plc_PutFormToCreatePlace (void)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_place;
|
||||
extern const char *Txt_Create_place;
|
||||
|
||||
|
@ -731,14 +735,18 @@ static void Plc_PutFormToCreatePlace (void)
|
|||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Plc_MAX_CHARS_PLACE_SHRT_NAME,Plc_EditingPlc->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Place full name *****/
|
||||
HTM_TD_Begin ("class=\"CM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Plc_MAX_CHARS_PLACE_FULL_NAME,Plc_EditingPlc->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Number of centers *****/
|
||||
|
|
16
swad_room.c
16
swad_room.c
|
@ -665,6 +665,7 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
|||
const struct Roo_Rooms *Rooms)
|
||||
{
|
||||
extern const char *The_ClassDat[The_NUM_THEMES];
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
unsigned NumRoom;
|
||||
struct Roo_Room *Room;
|
||||
char *Anchor = NULL;
|
||||
|
@ -734,7 +735,8 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
|||
Roo_PutParamRooCod (&Room->RooCod);
|
||||
HTM_INPUT_TEXT ("ShortName",Roo_MAX_CHARS_SHRT_NAME,Room->ShrtName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\"");
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -744,7 +746,8 @@ static void Roo_ListRoomsForEdition (const struct Bld_Buildings *Buildings,
|
|||
Roo_PutParamRooCod (&Room->RooCod);
|
||||
HTM_INPUT_TEXT ("FullName",Roo_MAX_CHARS_FULL_NAME,Room->FullName,
|
||||
HTM_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\"");
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME %s\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
Frm_EndForm ();
|
||||
HTM_TD_End ();
|
||||
|
||||
|
@ -1248,6 +1251,7 @@ void Roo_ContEditAfterChgRoom (void)
|
|||
|
||||
static void Roo_PutFormToCreateRoom (const struct Bld_Buildings *Buildings)
|
||||
{
|
||||
extern const char *The_ClassInput[The_NUM_THEMES];
|
||||
extern const char *Txt_New_room;
|
||||
extern const char *Txt_Create_room;
|
||||
char StrCapacity[Cns_MAX_DECIMAL_DIGITS_UINT + 1];
|
||||
|
@ -1297,14 +1301,18 @@ static void Roo_PutFormToCreateRoom (const struct Bld_Buildings *Buildings)
|
|||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("ShortName",Roo_MAX_CHARS_SHRT_NAME,Roo_EditingRoom->ShrtName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME\" required=\"required\"");
|
||||
"size=\"10\" class=\"INPUT_SHORT_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Room full name *****/
|
||||
HTM_TD_Begin ("class=\"LM\"");
|
||||
HTM_INPUT_TEXT ("FullName",Roo_MAX_CHARS_FULL_NAME,Roo_EditingRoom->FullName,
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME\" required=\"required\"");
|
||||
"size=\"20\" class=\"INPUT_FULL_NAME %s\""
|
||||
" required=\"required\"",
|
||||
The_ClassInput[Gbl.Prefs.Theme]);
|
||||
HTM_TD_End ();
|
||||
|
||||
/***** Seating capacity *****/
|
||||
|
|
11
swad_theme.c
11
swad_theme.c
|
@ -382,6 +382,17 @@ const char *The_ClassInput[The_NUM_THEMES] =
|
|||
[The_THEME_DARK ] = "INPUT_DARK",
|
||||
};
|
||||
|
||||
const char *The_ClassFrameTitleColor[The_NUM_THEMES] =
|
||||
{
|
||||
[The_THEME_WHITE ] = "FRAME_TITLE_WHITE",
|
||||
[The_THEME_GREY ] = "FRAME_TITLE_GREY",
|
||||
[The_THEME_PURPLE] = "FRAME_TITLE_PURPLE",
|
||||
[The_THEME_BLUE ] = "FRAME_TITLE_BLUE",
|
||||
[The_THEME_YELLOW] = "FRAME_TITLE_YELLOW",
|
||||
[The_THEME_PINK ] = "FRAME_TITLE_PINK",
|
||||
[The_THEME_DARK ] = "FRAME_TITLE_DARK",
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Private prototypes ***************************/
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue