mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-05 08:15:25 +02:00
Version 21.90: Apr 01, 2022 Working on design of dark theme.
This commit is contained in:
parent
9caedfa8c1
commit
8850c2f8e1
51
swad_HTML.c
51
swad_HTML.c
|
@ -1470,22 +1470,7 @@ void HTM_INPUT_CHECKBOX (const char *Name,HTM_SubmitOnChange_t SubmitOnChange,
|
||||||
/********************************** Buttons **********************************/
|
/********************************** Buttons **********************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void HTM_BUTTON_OnMouseDown_Begin (const char *Title,const char *Class)
|
void HTM_BUTTON_Submit_Begin (const char *Title,const char *fmt,...)
|
||||||
{
|
|
||||||
HTM_Txt ("<button type=\"submit\"");
|
|
||||||
if (Title)
|
|
||||||
if (Title[0])
|
|
||||||
HTM_TxtF (" title=\"%s\"",Title);
|
|
||||||
if (Class)
|
|
||||||
if (Class[0])
|
|
||||||
HTM_TxtF (" class=\"%s\"",Class);
|
|
||||||
HTM_TxtF (" onmousedown=\"document.getElementById('%s').submit();return false;\">",
|
|
||||||
Gbl.Form.Id);
|
|
||||||
HTM_BUTTON_NestingLevel++;
|
|
||||||
}
|
|
||||||
|
|
||||||
void HTM_BUTTON_OnSubmit_Begin (const char *Title,const char *OnSubmit,
|
|
||||||
const char *fmt,...)
|
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int NumBytesPrinted;
|
int NumBytesPrinted;
|
||||||
|
@ -1512,27 +1497,43 @@ void HTM_BUTTON_OnSubmit_Begin (const char *Title,const char *OnSubmit,
|
||||||
free (Attr);
|
free (Attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if (OnSubmit) // JavaScript function to be called before submitting the form
|
if (OnSubmit) // JavaScript function to be called before submitting the form
|
||||||
if (OnSubmit[0])
|
if (OnSubmit[0])
|
||||||
HTM_TxtF (" onsubmit=\"%s;\"",OnSubmit);
|
HTM_TxtF (" onsubmit=\"%s;\"",OnSubmit); */
|
||||||
HTM_Txt (">");
|
HTM_Txt (">");
|
||||||
|
|
||||||
HTM_BUTTON_NestingLevel++;
|
HTM_BUTTON_NestingLevel++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTM_BUTTON_OnClick_Begin (const char *Title,const char *Class,const char *OnClick)
|
void HTM_BUTTON_Begin (const char *Title,const char *fmt,...)
|
||||||
{
|
{
|
||||||
|
va_list ap;
|
||||||
|
int NumBytesPrinted;
|
||||||
|
char *Attr;
|
||||||
|
|
||||||
HTM_Txt ("<button type=\"button\"");
|
HTM_Txt ("<button type=\"button\"");
|
||||||
if (Title)
|
if (Title)
|
||||||
if (Title[0])
|
if (Title[0])
|
||||||
HTM_TxtF (" title=\"%s\"",Title);
|
HTM_TxtF (" title=\"%s\"",Title);
|
||||||
if (Class)
|
|
||||||
if (Class[0])
|
if (fmt)
|
||||||
HTM_TxtF (" class=\"%s\"",Class);
|
{
|
||||||
if (OnClick) // JavaScript function to be called when clicking the button
|
if (fmt[0])
|
||||||
if (OnClick[0])
|
{
|
||||||
HTM_TxtF (" onclick=\"%s;\"",OnClick);
|
va_start (ap,fmt);
|
||||||
|
NumBytesPrinted = vasprintf (&Attr,fmt,ap);
|
||||||
|
va_end (ap);
|
||||||
|
if (NumBytesPrinted < 0) // -1 if no memory or any other error
|
||||||
|
Err_NotEnoughMemoryExit ();
|
||||||
|
|
||||||
|
/***** Print attributes *****/
|
||||||
|
HTM_SPTxt (Attr);
|
||||||
|
|
||||||
|
free (Attr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
HTM_Txt (">");
|
HTM_Txt (">");
|
||||||
|
|
||||||
HTM_BUTTON_NestingLevel++;
|
HTM_BUTTON_NestingLevel++;
|
||||||
|
|
|
@ -163,10 +163,8 @@ void HTM_INPUT_RADIO (const char *Name,bool SubmitOnClick,
|
||||||
void HTM_INPUT_CHECKBOX (const char *Name,HTM_SubmitOnChange_t SubmitOnChange,
|
void HTM_INPUT_CHECKBOX (const char *Name,HTM_SubmitOnChange_t SubmitOnChange,
|
||||||
const char *fmt,...);
|
const char *fmt,...);
|
||||||
|
|
||||||
void HTM_BUTTON_OnMouseDown_Begin (const char *Title,const char *Class);
|
void HTM_BUTTON_Submit_Begin (const char *Title,const char *fmt,...);
|
||||||
void HTM_BUTTON_OnSubmit_Begin (const char *Title,const char *OnSubmit,
|
void HTM_BUTTON_Begin (const char *Title,const char *fmt,...);
|
||||||
const char *fmt,...);
|
|
||||||
void HTM_BUTTON_OnClick_Begin (const char *Title,const char *Class,const char *OnClick);
|
|
||||||
void HTM_BUTTON_End (void);
|
void HTM_BUTTON_End (void);
|
||||||
|
|
||||||
void HTM_TEXTAREA_Begin (const char *fmt,...);
|
void HTM_TEXTAREA_Begin (const char *fmt,...);
|
||||||
|
|
|
@ -389,7 +389,7 @@ bool ID_ICanSeeOtherUsrIDs (const struct UsrData *UsrDat)
|
||||||
static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
|
static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
|
||||||
const char *Anchor)
|
const char *Anchor)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Confirm_ID;
|
extern const char *Txt_Confirm_ID;
|
||||||
static const Act_Action_t NextAction[Rol_NUM_ROLES] =
|
static const Act_Action_t NextAction[Rol_NUM_ROLES] =
|
||||||
{
|
{
|
||||||
|
@ -426,8 +426,9 @@ static void ID_PutLinkToConfirmID (struct UsrData *UsrDat,unsigned NumID,
|
||||||
Par_PutHiddenParamString (NULL,"UsrID",UsrDat->IDs.List[NumID].ID);
|
Par_PutHiddenParamString (NULL,"UsrID",UsrDat->IDs.List[NumID].ID);
|
||||||
|
|
||||||
/***** Put link *****/
|
/***** Put link *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Confirm_ID,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Confirm_ID,
|
||||||
"class=\"%s\"",The_ClassFormLinkOutBoxBold[Gbl.Prefs.Theme]);
|
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("check.svg",Ico_BLACK,Txt_Confirm_ID);
|
Ico_PutIconTextLink ("check.svg",Ico_BLACK,Txt_Confirm_ID);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
|
14
swad_MFU.c
14
swad_MFU.c
|
@ -181,7 +181,7 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
|
||||||
{
|
{
|
||||||
extern const char *Hlp_ANALYTICS_Frequent;
|
extern const char *Hlp_ANALYTICS_Frequent;
|
||||||
extern const char *Ico_ClassColor[Ico_NUM_COLORS][The_NUM_THEMES];
|
extern const char *Ico_ClassColor[Ico_NUM_COLORS][The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormLinkInBoxNoWrap[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_My_frequent_actions;
|
extern const char *Txt_My_frequent_actions;
|
||||||
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
|
||||||
unsigned NumAct;
|
unsigned NumAct;
|
||||||
|
@ -219,9 +219,9 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
|
||||||
/* Icon and text */
|
/* Icon and text */
|
||||||
HTM_LI_Begin ("class=\"ICO_HIGHLIGHT\"");
|
HTM_LI_Begin ("class=\"ICO_HIGHLIGHT\"");
|
||||||
Frm_BeginForm (Action);
|
Frm_BeginForm (Action);
|
||||||
HTM_BUTTON_OnSubmit_Begin (TabMenuStr,
|
HTM_BUTTON_Submit_Begin (TabMenuStr,
|
||||||
NULL,
|
"class=\"BT_LINK FORM_IN_%s NOWRAP\"",
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxNoWrap[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
HTM_IMG (Gbl.Prefs.URLIconSet,Act_GetIcon (Action),MenuStr,
|
HTM_IMG (Gbl.Prefs.URLIconSet,Act_GetIcon (Action),MenuStr,
|
||||||
"class=\"%s\"",
|
"class=\"%s\"",
|
||||||
Ico_ClassColor[Ico_BLACK][Gbl.Prefs.Theme]);
|
Ico_ClassColor[Ico_BLACK][Gbl.Prefs.Theme]);
|
||||||
|
@ -265,8 +265,7 @@ void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
Frm_BeginForm (ActMFUAct);
|
Frm_BeginForm (ActMFUAct);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_My_frequent_actions,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_My_frequent_actions,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
HTM_TxtF ("%s",Txt_Frequent_ACTIONS);
|
HTM_TxtF ("%s",Txt_Frequent_ACTIONS);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -291,8 +290,7 @@ void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
|
||||||
/* Icon and text */
|
/* Icon and text */
|
||||||
HTM_LI_Begin ("class=\"ICO_HIGHLIGHT\"");
|
HTM_LI_Begin ("class=\"ICO_HIGHLIGHT\"");
|
||||||
Frm_BeginForm (Action);
|
Frm_BeginForm (Action);
|
||||||
HTM_BUTTON_OnSubmit_Begin (TabMenuStr,NULL,
|
HTM_BUTTON_Submit_Begin (TabMenuStr,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
HTM_IMG (Gbl.Prefs.URLIconSet,Act_GetIcon (Action),MenuStr,
|
HTM_IMG (Gbl.Prefs.URLIconSet,Act_GetIcon (Action),MenuStr,
|
||||||
"class=\"%s\"",
|
"class=\"%s\"",
|
||||||
Ico_ClassColor[Ico_BLACK][Gbl.Prefs.Theme]);
|
Ico_ClassColor[Ico_BLACK][Gbl.Prefs.Theme]);
|
||||||
|
|
|
@ -663,7 +663,7 @@ static void Agd_WriteHeaderListEvents (const struct Agd_Agenda *Agenda,
|
||||||
Agenda->CurrentPage,
|
Agenda->CurrentPage,
|
||||||
-1L);
|
-1L);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_START_END_TIME_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_START_END_TIME_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Agenda->SelectedOrder)
|
if (Order == Agenda->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -241,7 +241,7 @@ static void Asg_PutHeadForSeeing (struct Asg_Assignments *Assignments,
|
||||||
Dat_PutHiddenParamOrder (Order);
|
Dat_PutHiddenParamOrder (Order);
|
||||||
|
|
||||||
/* Begin link to select order */
|
/* Begin link to select order */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_START_END_TIME_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_START_END_TIME_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Assignments->SelectedOrder)
|
if (Order == Assignments->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -269,7 +269,7 @@ static void Att_ShowAllAttEvents (struct Att_Events *Events)
|
||||||
Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Events->CurrentPage);
|
Pag_PutHiddenParamPagNum (Pag_ATT_EVENTS,Events->CurrentPage);
|
||||||
Dat_PutHiddenParamOrder (Order);
|
Dat_PutHiddenParamOrder (Order);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_START_END_TIME_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_START_END_TIME_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
|
|
||||||
if (Order == Events->SelectedOrder)
|
if (Order == Events->SelectedOrder)
|
||||||
|
@ -1864,7 +1864,7 @@ static void Att_PutLinkAttEvent (struct Att_Event *AttEvent,
|
||||||
Att_PutParamsCodGrps (AttEvent->AttCod);
|
Att_PutParamsCodGrps (AttEvent->AttCod);
|
||||||
|
|
||||||
/***** Link to view attendance event *****/
|
/***** Link to view attendance event *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt);
|
HTM_Txt (Txt);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -2664,7 +2664,6 @@ static void Att_PutButtonToShowDetails (const struct Att_Events *Events)
|
||||||
static void Att_ListEventsToSelect (const struct Att_Events *Events,
|
static void Att_ListEventsToSelect (const struct Att_Events *Events,
|
||||||
Att_TypeOfView_t TypeOfView)
|
Att_TypeOfView_t TypeOfView)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Events;
|
extern const char *Txt_Events;
|
||||||
extern const char *Txt_Event;
|
extern const char *Txt_Event;
|
||||||
|
@ -2782,8 +2781,9 @@ static void Att_ListEventsToSelect (const struct Att_Events *Events,
|
||||||
if (NormalView)
|
if (NormalView)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Update_attendance,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Update_attendance,
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_attendance);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_attendance);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
|
@ -3278,7 +3278,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
|
||||||
/***** Show user's name *****/
|
/***** Show user's name *****/
|
||||||
HTM_BR ();
|
HTM_BR ();
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_record_for_this_course,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_View_record_for_this_course,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (UsrDat->Surname1);
|
HTM_Txt (UsrDat->Surname1);
|
||||||
if (UsrDat->Surname2[0])
|
if (UsrDat->Surname2[0])
|
||||||
|
@ -5315,10 +5315,10 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic)
|
||||||
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
||||||
|
|
||||||
/* Link to the form and to the file */
|
/* Link to the form and to the file */
|
||||||
HTM_BUTTON_OnSubmit_Begin ((Gbl.FileBrowser.Type == Brw_SHOW_MRK_CRS ||
|
HTM_BUTTON_Submit_Begin ((Gbl.FileBrowser.Type == Brw_SHOW_MRK_CRS ||
|
||||||
Gbl.FileBrowser.Type == Brw_SHOW_MRK_GRP) ? Txt_Check_marks_in_the_file :
|
Gbl.FileBrowser.Type == Brw_SHOW_MRK_GRP) ? Txt_Check_marks_in_the_file :
|
||||||
Txt_Download,
|
Txt_Download,
|
||||||
NULL,"class=\"BT_LINK FILENAME\"");
|
"class=\"BT_LINK FILENAME\"");
|
||||||
HTM_Txt (FileNameToShow);
|
HTM_Txt (FileNameToShow);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -8545,7 +8545,7 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,
|
||||||
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
||||||
|
|
||||||
/* Begin link */
|
/* Begin link */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Check_marks_in_the_file,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Check_marks_in_the_file,
|
||||||
"class=\"%s\"",ClassFilename[Gbl.Prefs.Theme]);
|
"class=\"%s\"",ClassFilename[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
if (FileMetadata->FilFolLnk.Type == Brw_IS_FILE)
|
if (FileMetadata->FilFolLnk.Type == Brw_IS_FILE)
|
||||||
|
@ -8610,7 +8610,7 @@ static void Brw_WriteSmallLinkToDownloadFile (const char *URL,
|
||||||
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
Brw_PutImplicitParamsFileBrowser (&Gbl.FileBrowser.FilFolLnk);
|
||||||
|
|
||||||
/* Begin link */
|
/* Begin link */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Check_marks_in_the_file,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Check_marks_in_the_file,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
|
|
||||||
/* Name of the file of marks */
|
/* Name of the file of marks */
|
||||||
|
@ -10004,7 +10004,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeInsInf);
|
Frm_BeginFormGoTo (ActSeeInsInf);
|
||||||
Deg_PutParamDegCod (InsCod);
|
Deg_PutParamDegCod (InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (InsShortName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (InsShortName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
Lgo_DrawLogo (HieLvl_INS,InsCod,InsShortName,20,"BT_LINK LT",true);
|
Lgo_DrawLogo (HieLvl_INS,InsCod,InsShortName,20,"BT_LINK LT",true);
|
||||||
|
@ -10021,7 +10021,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeCtrInf);
|
Frm_BeginFormGoTo (ActSeeCtrInf);
|
||||||
Deg_PutParamDegCod (CtrCod);
|
Deg_PutParamDegCod (CtrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (CtrShortName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (CtrShortName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
Lgo_DrawLogo (HieLvl_CTR,CtrCod,CtrShortName,20,"LT",true);
|
Lgo_DrawLogo (HieLvl_CTR,CtrCod,CtrShortName,20,"LT",true);
|
||||||
|
@ -10038,7 +10038,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeDegInf);
|
Frm_BeginFormGoTo (ActSeeDegInf);
|
||||||
Deg_PutParamDegCod (DegCod);
|
Deg_PutParamDegCod (DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (DegShortName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (DegShortName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
Lgo_DrawLogo (HieLvl_DEG,DegCod,DegShortName,20,"LT",true);
|
Lgo_DrawLogo (HieLvl_DEG,DegCod,DegShortName,20,"LT",true);
|
||||||
|
@ -10055,7 +10055,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeCrsInf);
|
Frm_BeginFormGoTo (ActSeeCrsInf);
|
||||||
Crs_PutParamCrsCod (CrsCod);
|
Crs_PutParamCrsCod (CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (CrsShortName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (CrsShortName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_Txt (CrsShortName);
|
HTM_Txt (CrsShortName);
|
||||||
|
@ -10161,7 +10161,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
FileMetadata.FilCod);
|
FileMetadata.FilCod);
|
||||||
|
|
||||||
/* File or folder icon */
|
/* File or folder icon */
|
||||||
HTM_BUTTON_OnSubmit_Begin (FileNameToShow,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (FileNameToShow,"class=\"BT_LINK\"");
|
||||||
switch (FileMetadata.FilFolLnk.Type)
|
switch (FileMetadata.FilFolLnk.Type)
|
||||||
{
|
{
|
||||||
case Brw_IS_FILE:
|
case Brw_IS_FILE:
|
||||||
|
|
|
@ -128,7 +128,7 @@ void Bld_SeeBuildings (void)
|
||||||
HTM_TH_Begin (HTM_HEAD_LEFT);
|
HTM_TH_Begin (HTM_HEAD_LEFT);
|
||||||
Frm_BeginForm (ActSeeBld);
|
Frm_BeginForm (ActSeeBld);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_BUILDINGS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_BUILDINGS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Buildings.SelectedOrder)
|
if (Order == Buildings.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -68,7 +68,7 @@ void Btn_PutButtonInline (Btn_Button_t Button,const char *TxtButton)
|
||||||
void Btn_PutCreateButton (const char *TxtButton)
|
void Btn_PutCreateButton (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT BT_CREATE\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT BT_CREATE\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -76,7 +76,7 @@ void Btn_PutCreateButton (const char *TxtButton)
|
||||||
|
|
||||||
void Btn_PutCreateButtonInline (const char *TxtButton)
|
void Btn_PutCreateButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT_INLINE BT_CREATE\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT_INLINE BT_CREATE\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,7 @@ void Btn_PutCreateButtonInline (const char *TxtButton)
|
||||||
void Btn_PutConfirmButton (const char *TxtButton)
|
void Btn_PutConfirmButton (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT BT_CONFIRM\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT BT_CONFIRM\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -92,7 +92,7 @@ void Btn_PutConfirmButton (const char *TxtButton)
|
||||||
|
|
||||||
void Btn_PutConfirmButtonInline (const char *TxtButton)
|
void Btn_PutConfirmButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT_INLINE BT_CONFIRM\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT_INLINE BT_CONFIRM\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ void Btn_PutConfirmButtonInline (const char *TxtButton)
|
||||||
void Btn_PutRemoveButton (const char *TxtButton)
|
void Btn_PutRemoveButton (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT BT_REMOVE\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT BT_REMOVE\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -108,7 +108,7 @@ void Btn_PutRemoveButton (const char *TxtButton)
|
||||||
|
|
||||||
void Btn_PutRemoveButtonInline (const char *TxtButton)
|
void Btn_PutRemoveButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_SUBMIT_INLINE BT_REMOVE\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT_INLINE BT_REMOVE\"");
|
||||||
HTM_Txt (TxtButton);
|
HTM_Txt (TxtButton);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -190,7 +190,7 @@ void Ctr_DrawCenterLogoAndNameWithLink (struct Ctr_Center *Ctr,Act_Action_t Acti
|
||||||
Ctr_PutParamCtrCod (Ctr->CtrCod);
|
Ctr_PutParamCtrCod (Ctr->CtrCod);
|
||||||
|
|
||||||
/***** Link to action *****/
|
/***** Link to action *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Ctr->FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Ctr->FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
|
|
||||||
|
@ -1451,7 +1451,7 @@ static void Ctr_PutHeadCentersForSeeing (bool OrderSelectable)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeCtr);
|
Frm_BeginForm (ActSeeCtr);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_CENTERS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_CENTERS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Gbl.Hierarchy.Ctrs.SelectedOrder)
|
if (Order == Gbl.Hierarchy.Ctrs.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -597,7 +597,7 @@ static void CtrCfg_Institution (bool PrintView,bool PutForm)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeInsInf);
|
Frm_BeginFormGoTo (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Ins.ShrtName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Ins.ShrtName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
@ -776,7 +776,7 @@ static void CtrCfg_NumDegs (void)
|
||||||
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
||||||
if (asprintf (&Title,Txt_Degrees_of_CENTER_X,Gbl.Hierarchy.Ctr.ShrtName) < 0)
|
if (asprintf (&Title,Txt_Degrees_of_CENTER_X,Gbl.Hierarchy.Ctr.ShrtName) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
free (Title);
|
free (Title);
|
||||||
HTM_Unsigned (Deg_GetCachedNumDegsInCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
HTM_Unsigned (Deg_GetCachedNumDegsInCtr (Gbl.Hierarchy.Ctr.CtrCod));
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -606,10 +606,12 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
||||||
|
|
||||||
TODO: Attach pdf files in multimedia.
|
TODO: Attach pdf files in multimedia.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 21.88 (2022-03-31)"
|
#define Log_PLATFORM_VERSION "SWAD 21.90 (2022-04-01)"
|
||||||
#define CSS_FILE "swad21.86.7.css"
|
#define CSS_FILE "swad21.86.7.css"
|
||||||
#define JS_FILE "swad21.78.2.js"
|
#define JS_FILE "swad21.78.2.js"
|
||||||
/*
|
/*
|
||||||
|
Version 21.90: Apr 01, 2022 Working on design of dark theme. (323707 lines)
|
||||||
|
Version 21.89: Mar 31, 2022 Working on design of dark theme. (323736 lines)
|
||||||
Version 21.88: Mar 31, 2022 Working on design of dark theme. (323802 lines)
|
Version 21.88: Mar 31, 2022 Working on design of dark theme. (323802 lines)
|
||||||
Version 21.87.1: Mar 30, 2022 Working on design of dark theme. (323786 lines)
|
Version 21.87.1: Mar 30, 2022 Working on design of dark theme. (323786 lines)
|
||||||
Version 21.87: Mar 30, 2022 Working on design of dark theme. (323833 lines)
|
Version 21.87: Mar 30, 2022 Working on design of dark theme. (323833 lines)
|
||||||
|
|
|
@ -316,7 +316,7 @@ static void Cht_WriteLinkToChat1 (const char *RoomCode,const char *RoomShrtName,
|
||||||
Cht_WriteParamsRoomCodeAndNames (RoomCode,RoomShrtName,RoomFullName);
|
Cht_WriteParamsRoomCodeAndNames (RoomCode,RoomShrtName,RoomFullName);
|
||||||
|
|
||||||
/* Begin button */
|
/* Begin button */
|
||||||
HTM_BUTTON_OnSubmit_Begin (RoomFullName,NULL,
|
HTM_BUTTON_Submit_Begin (RoomFullName,
|
||||||
"class=\"BT_LINK FORM_IN_%s\"",
|
"class=\"BT_LINK FORM_IN_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -181,8 +181,7 @@ void Con_ShowGlobalConnectedUsrs (void)
|
||||||
Frm_BeginFormUnique (ActLstCon); // Must be unique because
|
Frm_BeginFormUnique (ActLstCon); // Must be unique because
|
||||||
// the list of connected users
|
// the list of connected users
|
||||||
// is dynamically updated via AJAX
|
// is dynamically updated via AJAX
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Connected_users,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Connected_users,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
|
|
||||||
/* Write total number of sessions */
|
/* Write total number of sessions */
|
||||||
HTM_TxtF ("%u %s",Gbl.Session.NumSessions,
|
HTM_TxtF ("%u %s",Gbl.Session.NumSessions,
|
||||||
|
@ -336,8 +335,7 @@ void Con_ShowConnectedUsrsBelongingToCurrentCrs (void)
|
||||||
Frm_BeginFormUnique (ActLstCon); // Must be unique because
|
Frm_BeginFormUnique (ActLstCon); // Must be unique because
|
||||||
// the list of connected users
|
// the list of connected users
|
||||||
// is dynamically updated via AJAX
|
// is dynamically updated via AJAX
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Connected_users,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Connected_users,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
Str_Copy (CourseName,Gbl.Hierarchy.Crs.ShrtName,sizeof (CourseName) - 1);
|
Str_Copy (CourseName,Gbl.Hierarchy.Crs.ShrtName,sizeof (CourseName) - 1);
|
||||||
Con_GetNumConnectedWithARoleBelongingToCurrentScope (Rol_UNK,&Usrs);
|
Con_GetNumConnectedWithARoleBelongingToCurrentScope (Rol_UNK,&Usrs);
|
||||||
HTM_TxtF ("%u %s %s",Usrs.NumUsrs,Txt_from,CourseName);
|
HTM_TxtF ("%u %s %s",Usrs.NumUsrs,Txt_from,CourseName);
|
||||||
|
@ -620,7 +618,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
|
|
||||||
HTM_DIV_Begin ("class=\"CON_NAME_NARROW\""); // Limited width
|
HTM_DIV_Begin ("class=\"CON_NAME_NARROW\""); // Limited width
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_record_for_this_course,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_View_record_for_this_course,
|
||||||
"class=\"BT_LINK LT\"");
|
"class=\"BT_LINK LT\"");
|
||||||
Usr_WriteFirstNameBRSurnames (UsrDat);
|
Usr_WriteFirstNameBRSurnames (UsrDat);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -730,7 +728,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PutLinkToRecord)
|
if (PutLinkToRecord)
|
||||||
HTM_BUTTON_OnSubmit_Begin (UsrDat.FullName,NULL,
|
HTM_BUTTON_Submit_Begin (UsrDat.FullName,
|
||||||
"class=\"BT_LINK LT\"");
|
"class=\"BT_LINK LT\"");
|
||||||
Usr_WriteFirstNameBRSurnames (&UsrDat);
|
Usr_WriteFirstNameBRSurnames (&UsrDat);
|
||||||
if (PutLinkToRecord)
|
if (PutLinkToRecord)
|
||||||
|
|
|
@ -369,7 +369,7 @@ static void Cty_PutHeadCountriesForSeeing (bool OrderSelectable)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeCty);
|
Frm_BeginForm (ActSeeCty);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_COUNTRIES_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_COUNTRIES_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Gbl.Hierarchy.Ctys.SelectedOrder)
|
if (Order == Gbl.Hierarchy.Ctys.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -520,7 +520,7 @@ void Cty_DrawCountryMapAndNameWithLink (struct Cty_Countr *Cty,Act_Action_t Acti
|
||||||
HTM_DIV_Begin ("class=\"%s\"",ClassContainer);
|
HTM_DIV_Begin ("class=\"%s\"",ClassContainer);
|
||||||
|
|
||||||
/***** Link to action *****/
|
/***** Link to action *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Cty->Name[Gbl.Prefs.Language]),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Cty->Name[Gbl.Prefs.Language]),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
|
|
||||||
|
@ -925,7 +925,7 @@ void Cty_WriteCountryName (long CtyCod)
|
||||||
/***** Write country name with link to country information *****/
|
/***** Write country name with link to country information *****/
|
||||||
Frm_BeginForm (ActSeeCtyInf);
|
Frm_BeginForm (ActSeeCtyInf);
|
||||||
Cty_PutParamCtyCod (CtyCod);
|
Cty_PutParamCtyCod (CtyCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (ActSeeCtyInf),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (ActSeeCtyInf),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (CtyName);
|
HTM_Txt (CtyName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -375,7 +375,7 @@ static void CtyCfg_Platform (bool PrintView)
|
||||||
if (!PrintView)
|
if (!PrintView)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeSysInf);
|
Frm_BeginFormGoTo (ActSeeSysInf);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Cfg_PLATFORM_SHORT_NAME),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Cfg_PLATFORM_SHORT_NAME),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
@ -486,7 +486,7 @@ static void CtyCfg_NumInss (void)
|
||||||
if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X,
|
if (asprintf (&Title,Txt_Institutions_of_COUNTRY_X,
|
||||||
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]) < 0)
|
Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
free (Title);
|
free (Title);
|
||||||
HTM_Unsigned (Ins_GetCachedNumInssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
HTM_Unsigned (Ins_GetCachedNumInssInCty (Gbl.Hierarchy.Cty.CtyCod));
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -147,8 +147,7 @@ void Crs_ShowIntroduction (void)
|
||||||
static void Crs_WriteListMyCoursesToSelectOne (void)
|
static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
{
|
{
|
||||||
extern const char *Hlp_PROFILE_Courses;
|
extern const char *Hlp_PROFILE_Courses;
|
||||||
extern const char *The_ClassFormLinkInBox[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_My_courses;
|
extern const char *Txt_My_courses;
|
||||||
extern const char *Txt_System;
|
extern const char *Txt_System;
|
||||||
struct Hie_Hierarchy Hie;
|
struct Hie_Hierarchy Hie;
|
||||||
|
@ -170,12 +169,13 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
unsigned NumDegs;
|
unsigned NumDegs;
|
||||||
unsigned NumCrs;
|
unsigned NumCrs;
|
||||||
unsigned NumCrss;
|
unsigned NumCrss;
|
||||||
const char *ClassNormal;
|
char ClassNormal[64];
|
||||||
char ClassHighlight[64];
|
char ClassHighlight[64];
|
||||||
|
|
||||||
ClassNormal = The_ClassFormLinkInBox[Gbl.Prefs.Theme];
|
snprintf (ClassNormal,sizeof (ClassNormal),"BT_LINK FORM_IN_%s",
|
||||||
snprintf (ClassHighlight,sizeof (ClassHighlight),"%s BG_HIGHLIGHT",
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
snprintf (ClassHighlight,sizeof (ClassHighlight),"BT_LINK FORM_IN_%s BOLD BG_HIGHLIGHT",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
/***** Begin box *****/
|
/***** Begin box *****/
|
||||||
Box_BoxBegin (NULL,Txt_My_courses,
|
Box_BoxBegin (NULL,Txt_My_courses,
|
||||||
|
@ -191,7 +191,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
ClassNormal);
|
ClassNormal);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Cty_PutParamCtyCod (-1L);
|
Cty_PutParamCtyCod (-1L);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_System,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_System,"class=\"BT_LINK\"");
|
||||||
Ico_PutIcon ("sitemap.svg",Ico_BLACK,Txt_System,"ICO16x16");
|
Ico_PutIcon ("sitemap.svg",Ico_BLACK,Txt_System,"ICO16x16");
|
||||||
HTM_TxtF (" %s",Txt_System);
|
HTM_TxtF (" %s",Txt_System);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -221,7 +221,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Cty_PutParamCtyCod (Hie.Cty.CtyCod);
|
Cty_PutParamCtyCod (Hie.Cty.CtyCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (ActSeeCtyInf),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (ActSeeCtyInf),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Cty_DrawCountryMap (&Hie.Cty,"ICO16x16");
|
Cty_DrawCountryMap (&Hie.Cty,"ICO16x16");
|
||||||
HTM_TxtF (" %s",Hie.Cty.Name[Gbl.Prefs.Language]);
|
HTM_TxtF (" %s",Hie.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
@ -254,7 +254,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Ins_PutParamInsCod (Hie.Ins.InsCod);
|
Ins_PutParamInsCod (Hie.Ins.InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (ActSeeInsInf),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (ActSeeInsInf),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Lgo_DrawLogo (HieLvl_INS,Hie.Ins.InsCod,Hie.Ins.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (HieLvl_INS,Hie.Ins.InsCod,Hie.Ins.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Hie.Ins.ShrtName);
|
HTM_TxtF (" %s",Hie.Ins.ShrtName);
|
||||||
|
@ -287,7 +287,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Ctr_PutParamCtrCod (Hie.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Hie.Ctr.CtrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (ActSeeCtrInf),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (ActSeeCtrInf),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Lgo_DrawLogo (HieLvl_CTR,Hie.Ctr.CtrCod,Hie.Ctr.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (HieLvl_CTR,Hie.Ctr.CtrCod,Hie.Ctr.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Hie.Ctr.ShrtName);
|
HTM_TxtF (" %s",Hie.Ctr.ShrtName);
|
||||||
|
@ -320,7 +320,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Deg_PutParamDegCod (Hie.Deg.DegCod);
|
Deg_PutParamDegCod (Hie.Deg.DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (ActSeeDegInf),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (ActSeeDegInf),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Lgo_DrawLogo (HieLvl_DEG,Hie.Deg.DegCod,Hie.Deg.ShrtName,16,NULL,true);
|
Lgo_DrawLogo (HieLvl_DEG,Hie.Deg.DegCod,Hie.Deg.ShrtName,16,NULL,true);
|
||||||
HTM_TxtF (" %s",Hie.Deg.ShrtName);
|
HTM_TxtF (" %s",Hie.Deg.ShrtName);
|
||||||
|
@ -353,7 +353,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
Lay_IndentDependingOnLevel (5,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (5,IsLastItemInLevel);
|
||||||
Frm_BeginForm (ActMyCrs);
|
Frm_BeginForm (ActMyCrs);
|
||||||
Crs_PutParamCrsCod (Hie.Crs.CrsCod);
|
Crs_PutParamCrsCod (Hie.Crs.CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Hie.Crs.ShrtName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Hie.Crs.ShrtName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
Ico_PutIcon ("chalkboard-teacher.svg",Ico_BLACK,Hie.Crs.FullName,"ICO16x16");
|
Ico_PutIcon ("chalkboard-teacher.svg",Ico_BLACK,Hie.Crs.FullName,"ICO16x16");
|
||||||
|
@ -994,7 +994,7 @@ static bool Crs_ListCoursesOfAYearForSeeing (unsigned Year)
|
||||||
TxtClassStrong,The_Colors[Gbl.Prefs.Theme],BgColor);
|
TxtClassStrong,The_Colors[Gbl.Prefs.Theme],BgColor);
|
||||||
Frm_BeginFormGoTo (ActSeeCrsInf);
|
Frm_BeginFormGoTo (ActSeeCrsInf);
|
||||||
Crs_PutParamCrsCod (Crs->CrsCod);
|
Crs_PutParamCrsCod (Crs->CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Crs->FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Crs->FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_Txt (Crs->FullName);
|
HTM_Txt (Crs->FullName);
|
||||||
|
@ -2470,7 +2470,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
|
||||||
ClassTxt,The_Colors[Gbl.Prefs.Theme],BgColor);
|
ClassTxt,The_Colors[Gbl.Prefs.Theme],BgColor);
|
||||||
Frm_BeginFormGoTo (ActSeeDegInf);
|
Frm_BeginFormGoTo (ActSeeDegInf);
|
||||||
Deg_PutParamDegCod (Deg.DegCod);
|
Deg_PutParamDegCod (Deg.DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (row[2]),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (row[2]),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
Lgo_DrawLogo (HieLvl_DEG,Deg.DegCod,Deg.ShrtName,20,"CT",true);
|
Lgo_DrawLogo (HieLvl_DEG,Deg.DegCod,Deg.ShrtName,20,"CT",true);
|
||||||
|
@ -2490,7 +2490,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
|
||||||
ClassTxt,The_Colors[Gbl.Prefs.Theme],BgColor);
|
ClassTxt,The_Colors[Gbl.Prefs.Theme],BgColor);
|
||||||
Frm_BeginFormGoTo (ActSeeCrsInf);
|
Frm_BeginFormGoTo (ActSeeCrsInf);
|
||||||
Crs_PutParamCrsCod (CrsCod);
|
Crs_PutParamCrsCod (CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (row[5]),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (row[5]),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_Txt (row[5]);
|
HTM_Txt (row[5]);
|
||||||
|
|
|
@ -250,7 +250,7 @@ static void CrsCfg_Degree (bool PrintView,bool PutForm)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeDegInf);
|
Frm_BeginFormGoTo (ActSeeDegInf);
|
||||||
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Deg.ShrtName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Deg.ShrtName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
@ -445,7 +445,7 @@ static void CrsCfg_Indicators (void)
|
||||||
IndicatorsCrs.NumIndicators,
|
IndicatorsCrs.NumIndicators,
|
||||||
Txt_of_PART_OF_A_TOTAL,Ind_NUM_INDICATORS) < 0)
|
Txt_of_PART_OF_A_TOTAL,Ind_NUM_INDICATORS) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
HTM_TxtF ("%s ",Title);
|
HTM_TxtF ("%s ",Title);
|
||||||
if (IndicatorsCrs.NumIndicators == Ind_NUM_INDICATORS)
|
if (IndicatorsCrs.NumIndicators == Ind_NUM_INDICATORS)
|
||||||
Ico_PutIcon ("check-circle.svg",Ico_GREEN,
|
Ico_PutIcon ("check-circle.svg",Ico_GREEN,
|
||||||
|
|
|
@ -339,7 +339,7 @@ void Dat_ShowClientLocalTime (void)
|
||||||
/* Month with link to calendar */
|
/* Month with link to calendar */
|
||||||
HTM_DIV_Begin ("id=\"current_month\"");
|
HTM_DIV_Begin ("id=\"current_month\"");
|
||||||
Frm_BeginForm (ActSeeCal);
|
Frm_BeginForm (ActSeeCal);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Show_calendar,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Show_calendar,
|
||||||
"class=\"BT_LINK CURRENT_MONTH\"");
|
"class=\"BT_LINK CURRENT_MONTH\"");
|
||||||
HTM_SPAN_Begin ("id=\"current_month_txt\"");
|
HTM_SPAN_Begin ("id=\"current_month_txt\"");
|
||||||
// JavaScript will write HTML here
|
// JavaScript will write HTML here
|
||||||
|
@ -353,7 +353,7 @@ void Dat_ShowClientLocalTime (void)
|
||||||
if (Gbl.Usrs.Me.Logged)
|
if (Gbl.Usrs.Me.Logged)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeMyAgd);
|
Frm_BeginForm (ActSeeMyAgd);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Show_agenda,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Show_agenda,
|
||||||
"class=\"BT_LINK CURRENT_DAY\"");
|
"class=\"BT_LINK CURRENT_DAY\"");
|
||||||
}
|
}
|
||||||
HTM_SPAN_Begin ("id=\"current_day_txt\"");
|
HTM_SPAN_Begin ("id=\"current_day_txt\"");
|
||||||
|
|
|
@ -194,7 +194,7 @@ void Deg_DrawDegreeLogoAndNameWithLink (struct Deg_Degree *Deg,Act_Action_t Acti
|
||||||
Deg_PutParamDegCod (Deg->DegCod);
|
Deg_PutParamDegCod (Deg->DegCod);
|
||||||
|
|
||||||
/***** Link to action *****/
|
/***** Link to action *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Deg->FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Deg->FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ static void DegCfg_Center (bool PrintView,bool PutForm)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeCtrInf);
|
Frm_BeginFormGoTo (ActSeeCtrInf);
|
||||||
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Ctr.ShrtName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Ctr.ShrtName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
@ -335,7 +335,7 @@ static void DegCfg_NumCrss (void)
|
||||||
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
||||||
if (asprintf (&Title,Txt_Courses_of_DEGREE_X,Gbl.Hierarchy.Deg.ShrtName) < 0)
|
if (asprintf (&Title,Txt_Courses_of_DEGREE_X,Gbl.Hierarchy.Deg.ShrtName) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
free (Title);
|
free (Title);
|
||||||
HTM_Unsigned (Crs_GetCachedNumCrssInDeg (Gbl.Hierarchy.Deg.DegCod));
|
HTM_Unsigned (Crs_GetCachedNumCrssInDeg (Gbl.Hierarchy.Deg.DegCod));
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -550,7 +550,7 @@ static void DegTyp_PutHeadDegreeTypesForSeeing (Act_Action_t NextAction,
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
|
|
||||||
/* Link with the head of this column */
|
/* Link with the head of this column */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_DEGREE_TYPES_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_DEGREE_TYPES_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == SelectedOrder)
|
if (Order == SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -150,7 +150,7 @@ void Dpt_SeeDepts (void)
|
||||||
|
|
||||||
Frm_BeginForm (ActSeeDpt);
|
Frm_BeginForm (ActSeeDpt);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_DEPARTMENTS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_DEPARTMENTS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Departments.SelectedOrder)
|
if (Order == Departments.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -2232,7 +2232,7 @@ static void Enr_ShowEnrolmentRequestsGivenRoles (unsigned RolesSelected)
|
||||||
|
|
||||||
Frm_BeginFormGoTo (ActSeeCrsInf);
|
Frm_BeginFormGoTo (ActSeeCrsInf);
|
||||||
Crs_PutParamCrsCod (Crs.CrsCod);
|
Crs_PutParamCrsCod (Crs.CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Crs.FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Crs.FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_TxtF ("%s > %s",Deg.ShrtName,Crs.ShrtName);
|
HTM_TxtF ("%s > %s",Deg.ShrtName,Crs.ShrtName);
|
||||||
|
|
|
@ -260,7 +260,7 @@ static void Exa_ListAllExams (struct Exa_Exams *Exams)
|
||||||
Frm_BeginForm (ActSeeAllExa);
|
Frm_BeginForm (ActSeeAllExa);
|
||||||
Pag_PutHiddenParamPagNum (Pag_EXAMS,Exams->CurrentPage);
|
Pag_PutHiddenParamPagNum (Pag_EXAMS,Exams->CurrentPage);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_EXAMS_ORDER_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_EXAMS_ORDER_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Exams->SelectedOrder)
|
if (Order == Exams->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -554,7 +554,7 @@ static void Exa_ShowOneExam (struct Exa_Exams *Exams,
|
||||||
HTM_ARTICLE_Begin (Anchor);
|
HTM_ARTICLE_Begin (Anchor);
|
||||||
Frm_BeginForm (ActSeeExa);
|
Frm_BeginForm (ActSeeExa);
|
||||||
Exa_PutParams (Exams);
|
Exa_PutParams (Exams);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_exam,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_View_exam,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Exam->Title);
|
HTM_Txt (Exam->Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -587,7 +587,7 @@ static void Exa_ShowOneExam (struct Exa_Exams *Exams,
|
||||||
Exams->ExaCod = Exam->ExaCod;
|
Exams->ExaCod = Exam->ExaCod;
|
||||||
Frm_BeginForm (ActSeeExa);
|
Frm_BeginForm (ActSeeExa);
|
||||||
Exa_PutParams (Exams);
|
Exa_PutParams (Exams);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Sessions,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Sessions,"class=\"BT_LINK\"");
|
||||||
if (ShowOnlyThisExam)
|
if (ShowOnlyThisExam)
|
||||||
HTM_TxtColonNBSP (Txt_Sessions);
|
HTM_TxtColonNBSP (Txt_Sessions);
|
||||||
HTM_Unsigned (Exam->NumSess);
|
HTM_Unsigned (Exam->NumSess);
|
||||||
|
|
|
@ -579,7 +579,6 @@ static void ExaRes_ShowResultsEnd (void)
|
||||||
|
|
||||||
static void ExaRes_ListExamsToSelect (struct Exa_Exams *Exams)
|
static void ExaRes_ListExamsToSelect (struct Exa_Exams *Exams)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Exams;
|
extern const char *Txt_Exams;
|
||||||
extern const char *Txt_Exam;
|
extern const char *Txt_Exam;
|
||||||
|
@ -656,8 +655,9 @@ static void ExaRes_ListExamsToSelect (struct Exa_Exams *Exams)
|
||||||
|
|
||||||
/***** Put link to refresh *****/
|
/***** Put link to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Update_results,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Update_results,
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
|
@ -526,9 +526,8 @@ static void ExaSes_ListOneOrMoreSessionsTitleGrps (struct Exa_Exams *Exams,
|
||||||
Frm_BeginForm (ActSeeExaPrn);
|
Frm_BeginForm (ActSeeExaPrn);
|
||||||
Exa_PutParams (Exams);
|
Exa_PutParams (Exams);
|
||||||
ExaSes_PutParamSesCod (Session->SesCod);
|
ExaSes_PutParamSesCod (Session->SesCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Usrs.Me.Role.Logged == Rol_STD ? Txt_Play :
|
HTM_BUTTON_Submit_Begin (Gbl.Usrs.Me.Role.Logged == Rol_STD ? Txt_Play :
|
||||||
Txt_Resume,
|
Txt_Resume,
|
||||||
NULL,
|
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Session->Title);
|
HTM_Txt (Session->Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -204,7 +204,7 @@ void Fol_SuggestUsrsToFollowMainZoneOnRightColumn (void)
|
||||||
|
|
||||||
/***** Title with link to suggest more users to follow *****/
|
/***** Title with link to suggest more users to follow *****/
|
||||||
Frm_BeginForm (ActSeeSocPrf);
|
Frm_BeginForm (ActSeeSocPrf);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Who_to_follow,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Who_to_follow,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_Who_to_follow);
|
HTM_Txt (Txt_Who_to_follow);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -391,8 +391,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
||||||
Act_Action_t Action,
|
Act_Action_t Action,
|
||||||
const char *Title)
|
const char *Title)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormOutBox[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormOutBoxBold[The_NUM_THEMES];
|
|
||||||
|
|
||||||
/***** Begin container *****/
|
/***** Begin container *****/
|
||||||
HTM_DIV_Begin ("class=\"FOLLOW_BOX %s\"",
|
HTM_DIV_Begin ("class=\"FOLLOW_BOX %s\"",
|
||||||
|
@ -405,7 +404,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
||||||
/* Form to list users */
|
/* Form to list users */
|
||||||
Frm_BeginFormAnchor (Action,Fol_FOLLOW_SECTION_ID);
|
Frm_BeginFormAnchor (Action,Fol_FOLLOW_SECTION_ID);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
}
|
}
|
||||||
HTM_Unsigned (NumUsrs);
|
HTM_Unsigned (NumUsrs);
|
||||||
if (NumUsrs)
|
if (NumUsrs)
|
||||||
|
@ -415,15 +414,16 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Text *****/
|
/***** Text *****/
|
||||||
HTM_DIV_Begin ("class=\"%s\"",
|
HTM_DIV_Begin ("class=\"FORM_OUT_%s%s\"",
|
||||||
(Gbl.Action.Act == Action) ? The_ClassFormOutBoxBold[Gbl.Prefs.Theme] :
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
The_ClassFormOutBox [Gbl.Prefs.Theme]);
|
(Gbl.Action.Act == Action) ? " BOLD" :
|
||||||
|
"");
|
||||||
if (NumUsrs)
|
if (NumUsrs)
|
||||||
{
|
{
|
||||||
/* Form to list users */
|
/* Form to list users */
|
||||||
Frm_BeginFormAnchor (Action,Fol_FOLLOW_SECTION_ID);
|
Frm_BeginFormAnchor (Action,Fol_FOLLOW_SECTION_ID);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
}
|
}
|
||||||
HTM_Txt (Title);
|
HTM_Txt (Title);
|
||||||
if (NumUsrs)
|
if (NumUsrs)
|
||||||
|
@ -634,7 +634,7 @@ static void Fol_ShowFollowedOrFollower (struct UsrData *UsrDat)
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_DIV_Begin ("class=\"LT FOLLOW_USR_NAME DAT_%s\"", // Limited width
|
HTM_DIV_Begin ("class=\"LT FOLLOW_USR_NAME DAT_%s\"", // Limited width
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Another_user_s_profile,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Another_user_s_profile,
|
||||||
"class=\"BT_LINK LT\"");
|
"class=\"BT_LINK LT\"");
|
||||||
Usr_WriteFirstNameBRSurnames (UsrDat);
|
Usr_WriteFirstNameBRSurnames (UsrDat);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -696,7 +696,7 @@ static void Fol_WriteRowUsrToFollowOnRightColumn (struct UsrData *UsrDat)
|
||||||
Frm_BeginForm (ActSeeOthPubPrf);
|
Frm_BeginForm (ActSeeOthPubPrf);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_DIV_Begin ("class=\"CON_NAME_FOLLOW CON_CRS LT\""); // Limited width
|
HTM_DIV_Begin ("class=\"CON_NAME_FOLLOW CON_CRS LT\""); // Limited width
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Another_user_s_profile,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Another_user_s_profile,
|
||||||
"class=\"BT_LINK LT\"");
|
"class=\"BT_LINK LT\"");
|
||||||
Usr_WriteFirstNameBRSurnames (UsrDat);
|
Usr_WriteFirstNameBRSurnames (UsrDat);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -1745,7 +1745,7 @@ static void For_WriteLinkToForum (const struct For_Forums *Forums,
|
||||||
-1L,
|
-1L,
|
||||||
-1L);
|
-1L);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetActionText (For_ActionsSeeFor[Forum->Type]),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetActionText (For_ActionsSeeFor[Forum->Type]),
|
||||||
NumThrsWithNewPosts ? "class=\"BT_LINK FORM_IN_%s BOLD\"" :
|
NumThrsWithNewPosts ? "class=\"BT_LINK FORM_IN_%s BOLD\"" :
|
||||||
"class=\"BT_LINK FORM_IN_%s\"",
|
"class=\"BT_LINK FORM_IN_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
@ -2080,7 +2080,7 @@ static void For_ShowForumThreadsHighlightingOneThread (struct For_Forums *Forums
|
||||||
Forums->Forum.Location,
|
Forums->Forum.Location,
|
||||||
-1L,
|
-1L,
|
||||||
-1L);
|
-1L);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_FORUM_THREAD_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_FORUM_THREAD_HELP_ORDER[Order],
|
||||||
"BT_LINK");
|
"BT_LINK");
|
||||||
if (Order == Forums->ThreadsOrder)
|
if (Order == Forums->ThreadsOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -2159,7 +2159,6 @@ static void For_ListForumThrs (struct For_Forums *Forums,
|
||||||
struct Pagination *PaginationThrs)
|
struct Pagination *PaginationThrs)
|
||||||
{
|
{
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Thread_with_posts_from_you;
|
extern const char *Txt_Thread_with_posts_from_you;
|
||||||
extern const char *Txt_There_are_new_posts;
|
extern const char *Txt_There_are_new_posts;
|
||||||
extern const char *Txt_No_new_posts;
|
extern const char *Txt_No_new_posts;
|
||||||
|
@ -2268,7 +2267,7 @@ static void For_ListForumThrs (struct For_Forums *Forums,
|
||||||
Forums,Thr.ThrCod,
|
Forums,Thr.ThrCod,
|
||||||
Thr.Enabled[Dat_STR_TIME],
|
Thr.Enabled[Dat_STR_TIME],
|
||||||
Thr.Subject,
|
Thr.Subject,
|
||||||
Thr.NumUnreadPosts ? The_ClassFormInBoxBold[Gbl.Prefs.Theme] : // !!!!!!!!!!!!!!!!!!!!!!
|
Thr.NumUnreadPosts ? "BOLD FORM_IN" :
|
||||||
"FORM_IN",
|
"FORM_IN",
|
||||||
true);
|
true);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
|
@ -283,7 +283,7 @@ static void Gam_ListAllGames (struct Gam_Games *Games)
|
||||||
Pag_PutHiddenParamPagNum (Pag_GAMES,Games->CurrentPage);
|
Pag_PutHiddenParamPagNum (Pag_GAMES,Games->CurrentPage);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_GAMES_ORDER_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_GAMES_ORDER_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Games->SelectedOrder)
|
if (Order == Games->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -605,7 +605,7 @@ static void Gam_ShowOneGame (struct Gam_Games *Games,
|
||||||
HTM_ARTICLE_Begin (Anchor);
|
HTM_ARTICLE_Begin (Anchor);
|
||||||
Frm_BeginForm (ActSeeGam);
|
Frm_BeginForm (ActSeeGam);
|
||||||
Gam_PutParams (Games);
|
Gam_PutParams (Games);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_game,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_View_game,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Game->Title);
|
HTM_Txt (Game->Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -638,7 +638,7 @@ static void Gam_ShowOneGame (struct Gam_Games *Games,
|
||||||
Games->GamCod = Game->GamCod;
|
Games->GamCod = Game->GamCod;
|
||||||
Frm_BeginForm (ActSeeGam);
|
Frm_BeginForm (ActSeeGam);
|
||||||
Gam_PutParams (Games);
|
Gam_PutParams (Games);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Matches,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Matches,"class=\"BT_LINK\"");
|
||||||
if (ShowOnlyThisGame)
|
if (ShowOnlyThisGame)
|
||||||
HTM_TxtColonNBSP (Txt_Matches);
|
HTM_TxtColonNBSP (Txt_Matches);
|
||||||
HTM_Unsigned (Game->NumMchs);
|
HTM_Unsigned (Game->NumMchs);
|
||||||
|
|
11
swad_group.c
11
swad_group.c
|
@ -357,7 +357,7 @@ void Grp_ShowFormToSelectSeveralGroups (void (*FuncParams) (void *Args),void *Ar
|
||||||
Grp_WhichGroups_t GroupsSelectableByStdsOrNETs)
|
Grp_WhichGroups_t GroupsSelectableByStdsOrNETs)
|
||||||
{
|
{
|
||||||
extern const char *Hlp_USERS_Groups;
|
extern const char *Hlp_USERS_Groups;
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Groups;
|
extern const char *Txt_Groups;
|
||||||
extern const char *Txt_Update_users;
|
extern const char *Txt_Update_users;
|
||||||
unsigned NumGrpTyp;
|
unsigned NumGrpTyp;
|
||||||
|
@ -409,10 +409,11 @@ void Grp_ShowFormToSelectSeveralGroups (void (*FuncParams) (void *Args),void *Ar
|
||||||
|
|
||||||
/***** Submit button *****/
|
/***** Submit button *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Update_users,
|
HTM_BUTTON_Submit_Begin (Txt_Update_users,
|
||||||
Gbl.Action.Act == ActReqMsgUsr ? "CopyMessageToHiddenFields();" :
|
"class=\"BT_LINK FORM_IN_%s BOLD\"%s",
|
||||||
NULL,
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
Gbl.Action.Act == ActReqMsgUsr ? " onsubmit=\"CopyMessageToHiddenFields();\"" :
|
||||||
|
"");
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_users);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_users);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
|
@ -210,7 +210,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
|
|
||||||
Frm_BeginFormGoTo (ActMnu);
|
Frm_BeginFormGoTo (ActMnu);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"NxtTab",(unsigned) TabSys);
|
Par_PutHiddenParamUnsigned (NULL,"NxtTab",(unsigned) TabSys);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_System,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_System,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_System);
|
HTM_Txt (Txt_System);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -227,7 +227,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
/***** Form to go to see institutions of this country *****/
|
/***** Form to go to see institutions of this country *****/
|
||||||
Frm_BeginFormGoTo (ActSeeIns);
|
Frm_BeginFormGoTo (ActSeeIns);
|
||||||
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language],NULL,
|
HTM_BUTTON_Submit_Begin (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
HTM_Txt (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -244,7 +244,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
|
|
||||||
/***** Form to go to select countries *****/
|
/***** Form to go to select countries *****/
|
||||||
Frm_BeginFormGoTo (ActSeeCty);
|
Frm_BeginFormGoTo (ActSeeCty);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Country,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Country,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_Country);
|
HTM_Txt (Txt_Country);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -262,7 +262,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
/***** Form to see centers of this institution *****/
|
/***** Form to see centers of this institution *****/
|
||||||
Frm_BeginFormGoTo (ActSeeCtr);
|
Frm_BeginFormGoTo (ActSeeCtr);
|
||||||
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
Ins_PutParamInsCod (Gbl.Hierarchy.Ins.InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Hierarchy.Ins.FullName,NULL,
|
HTM_BUTTON_Submit_Begin (Gbl.Hierarchy.Ins.FullName,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Gbl.Hierarchy.Ins.ShrtName);
|
HTM_Txt (Gbl.Hierarchy.Ins.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -279,7 +279,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
|
|
||||||
/***** Form to go to select institutions *****/
|
/***** Form to go to select institutions *****/
|
||||||
Frm_BeginFormGoTo (ActSeeIns);
|
Frm_BeginFormGoTo (ActSeeIns);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Institution,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Institution,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_Institution);
|
HTM_Txt (Txt_Institution);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -309,7 +309,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
/***** Form to see degrees of this center *****/
|
/***** Form to see degrees of this center *****/
|
||||||
Frm_BeginFormGoTo (ActSeeDeg);
|
Frm_BeginFormGoTo (ActSeeDeg);
|
||||||
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Gbl.Hierarchy.Ctr.CtrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Hierarchy.Ctr.FullName,NULL,
|
HTM_BUTTON_Submit_Begin (Gbl.Hierarchy.Ctr.FullName,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Gbl.Hierarchy.Ctr.ShrtName);
|
HTM_Txt (Gbl.Hierarchy.Ctr.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -326,7 +326,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
|
|
||||||
/***** Form to go to select centers *****/
|
/***** Form to go to select centers *****/
|
||||||
Frm_BeginFormGoTo (ActSeeCtr);
|
Frm_BeginFormGoTo (ActSeeCtr);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Center,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Center,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_Center);
|
HTM_Txt (Txt_Center);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -356,7 +356,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
/***** Form to go to see courses of this degree *****/
|
/***** Form to go to see courses of this degree *****/
|
||||||
Frm_BeginFormGoTo (ActSeeCrs);
|
Frm_BeginFormGoTo (ActSeeCrs);
|
||||||
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
Deg_PutParamDegCod (Gbl.Hierarchy.Deg.DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Hierarchy.Deg.FullName,NULL,
|
HTM_BUTTON_Submit_Begin (Gbl.Hierarchy.Deg.FullName,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Gbl.Hierarchy.Deg.ShrtName);
|
HTM_Txt (Gbl.Hierarchy.Deg.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -373,7 +373,7 @@ void Hie_WriteHierarchyInBreadcrumb (void)
|
||||||
|
|
||||||
/***** Form to go to select degrees *****/
|
/***** Form to go to select degrees *****/
|
||||||
Frm_BeginFormGoTo (ActSeeDeg);
|
Frm_BeginFormGoTo (ActSeeDeg);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Degree,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Degree,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_Degree);
|
HTM_Txt (Txt_Degree);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -273,7 +273,7 @@ void HieCfg_NumCtrs (unsigned NumCtrs,bool PutForm)
|
||||||
if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X,
|
if (asprintf (&Title,Txt_Centers_of_INSTITUTION_X,
|
||||||
Gbl.Hierarchy.Ins.ShrtName) < 0)
|
Gbl.Hierarchy.Ins.ShrtName) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
free (Title);
|
free (Title);
|
||||||
}
|
}
|
||||||
HTM_Unsigned (NumCtrs);
|
HTM_Unsigned (NumCtrs);
|
||||||
|
|
|
@ -137,7 +137,7 @@ void Hld_SeeHolidays (void)
|
||||||
HTM_TH_Begin (HTM_HEAD_LEFT);
|
HTM_TH_Begin (HTM_HEAD_LEFT);
|
||||||
Frm_BeginForm (ActSeeHld);
|
Frm_BeginForm (ActSeeHld);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_HOLIDAYS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_HOLIDAYS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Holidays.SelectedOrder)
|
if (Order == Holidays.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -539,7 +539,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
|
||||||
{
|
{
|
||||||
HTM_LI_Begin (NULL);
|
HTM_LI_Begin (NULL);
|
||||||
Frm_BeginForm (Inf_ActionsSeeInfo[InfoType]);
|
Frm_BeginForm (Inf_ActionsSeeInfo[InfoType]);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]),NULL,
|
HTM_BUTTON_Submit_Begin (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]),
|
||||||
"class=\"BT_LINK FORM_IN_%s\"",
|
"class=\"BT_LINK FORM_IN_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
HTM_Txt (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]));
|
HTM_Txt (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]));
|
||||||
|
@ -821,7 +821,7 @@ void Inf_WriteURLIntoTxtBuffer (char TxtBuffer[Cns_MAX_BYTES_WWW + 1])
|
||||||
|
|
||||||
static void Inf_ShowPage (const char *URL)
|
static void Inf_ShowPage (const char *URL)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_View_in_a_new_window;
|
extern const char *Txt_View_in_a_new_window;
|
||||||
extern const char *Txt_INFO_TITLE[Inf_NUM_TYPES];
|
extern const char *Txt_INFO_TITLE[Inf_NUM_TYPES];
|
||||||
bool ICanEdit = (Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
|
bool ICanEdit = (Gbl.Usrs.Me.Role.Logged == Rol_TCH ||
|
||||||
|
@ -849,8 +849,8 @@ static void Inf_ShowPage (const char *URL)
|
||||||
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
|
Help[Gbl.Crs.Info.Type],Box_NOT_CLOSABLE);
|
||||||
|
|
||||||
/***** Link to view in a new window *****/
|
/***** Link to view in a new window *****/
|
||||||
HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"%s\"",
|
HTM_A_Begin ("href=\"%s\" target=\"_blank\" class=\"FORM_OUT_%s BOLD\"",
|
||||||
URL,The_ClassFormOutBoxBold[Gbl.Prefs.Theme]);
|
URL,The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("expand-arrows-alt.svg",Ico_BLACK,
|
Ico_PutIconTextLink ("expand-arrows-alt.svg",Ico_BLACK,
|
||||||
Txt_View_in_a_new_window);
|
Txt_View_in_a_new_window);
|
||||||
HTM_A_End ();
|
HTM_A_End ();
|
||||||
|
|
|
@ -213,7 +213,7 @@ void Ins_DrawInstitutionLogoWithLink (struct Ins_Instit *Ins,unsigned Size)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeInsInf);
|
Frm_BeginForm (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Ins->InsCod);
|
Ins_PutParamInsCod (Ins->InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Ins->FullName,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Ins->FullName,"class=\"BT_LINK\"");
|
||||||
}
|
}
|
||||||
Lgo_DrawLogo (HieLvl_INS,Ins->InsCod,Ins->FullName,
|
Lgo_DrawLogo (HieLvl_INS,Ins->InsCod,Ins->FullName,
|
||||||
Size,NULL,true);
|
Size,NULL,true);
|
||||||
|
@ -236,7 +236,7 @@ void Ins_DrawInstitLogoAndNameWithLink (struct Ins_Instit *Ins,Act_Action_t Acti
|
||||||
Ins_PutParamInsCod (Ins->InsCod);
|
Ins_PutParamInsCod (Ins->InsCod);
|
||||||
|
|
||||||
/***** Link to action *****/
|
/***** Link to action *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Ins->FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Ins->FullName),
|
||||||
"class=\"BT_LINK LT\"");
|
"class=\"BT_LINK LT\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
|
|
||||||
|
@ -484,7 +484,7 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeIns);
|
Frm_BeginForm (ActSeeIns);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_INSTITUTIONS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_INSTITUTIONS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Gbl.Hierarchy.Inss.SelectedOrder)
|
if (Order == Gbl.Hierarchy.Inss.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -2352,7 +2352,8 @@ static void Ins_ShowInss (MYSQL_RES **mysql_res,unsigned NumInss,
|
||||||
/* Icon and name of this institution */
|
/* Icon and name of this institution */
|
||||||
Frm_BeginForm (ActSeeInsInf);
|
Frm_BeginForm (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Ins.InsCod);
|
Ins_PutParamInsCod (Ins.InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Ins.ShrtName,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Ins.ShrtName,
|
||||||
|
"class=\"BT_LINK\"");
|
||||||
if (Gbl.Usrs.Listing.WithPhotos)
|
if (Gbl.Usrs.Listing.WithPhotos)
|
||||||
{
|
{
|
||||||
Lgo_DrawLogo (HieLvl_INS,Ins.InsCod,Ins.ShrtName,
|
Lgo_DrawLogo (HieLvl_INS,Ins.InsCod,Ins.ShrtName,
|
||||||
|
|
|
@ -342,7 +342,7 @@ static void InsCfg_Country (bool PrintView,bool PutForm)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeCtyInf);
|
Frm_BeginFormGoTo (ActSeeCtyInf);
|
||||||
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
Cty_PutParamCtyCod (Gbl.Hierarchy.Cty.CtyCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Gbl.Hierarchy.Cty.Name[Gbl.Prefs.Language]),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1019,7 +1019,7 @@ static void Lay_WritePageTopHeading (void)
|
||||||
|
|
||||||
HTM_DIV_Begin ("id=\"head_row_1_tagline\" class=\"TAGLINE_%s\"",
|
HTM_DIV_Begin ("id=\"head_row_1_tagline\" class=\"TAGLINE_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_TAGLINE,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_TAGLINE,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_TAGLINE_BR);
|
HTM_Txt (Txt_TAGLINE_BR);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End (); // head_row_1_tagline
|
HTM_DIV_End (); // head_row_1_tagline
|
||||||
|
@ -1218,7 +1218,7 @@ void Lay_PutContextualLinkIconText (Act_Action_t NextAction,const char *Anchor,
|
||||||
const char *Icon,Ico_Color_t Color,
|
const char *Icon,Ico_Color_t Color,
|
||||||
const char *Text,const char *OnSubmit)
|
const char *Text,const char *OnSubmit)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
|
|
||||||
/***** Separator *****/
|
/***** Separator *****/
|
||||||
HTM_Txt (" "); // This space is necessary to enable
|
HTM_Txt (" "); // This space is necessary to enable
|
||||||
|
@ -1230,8 +1230,14 @@ void Lay_PutContextualLinkIconText (Act_Action_t NextAction,const char *Anchor,
|
||||||
FuncParams (Args);
|
FuncParams (Args);
|
||||||
|
|
||||||
/***** Put icon and text with link *****/
|
/***** Put icon and text with link *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Text,OnSubmit,
|
if (OnSubmit)
|
||||||
"class=\"%s\"",The_ClassFormLinkOutBoxBold[Gbl.Prefs.Theme]);
|
HTM_BUTTON_Submit_Begin (Text,
|
||||||
|
"class=\"BT_LINK FORM_OUT_%s BOLD\" onsubmit=\"%s;\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme],OnSubmit);
|
||||||
|
else
|
||||||
|
HTM_BUTTON_Submit_Begin (Text,
|
||||||
|
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink (Icon,Color,Text);
|
Ico_PutIconTextLink (Icon,Color,Text);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -1253,7 +1259,7 @@ void Lay_PutContextualCheckbox (Act_Action_t NextAction,
|
||||||
bool Checked,bool Disabled,
|
bool Checked,bool Disabled,
|
||||||
const char *Title,const char *Text)
|
const char *Title,const char *Text)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
|
|
||||||
/***** Separator *****/
|
/***** Separator *****/
|
||||||
if (Text)
|
if (Text)
|
||||||
|
@ -1266,10 +1272,10 @@ void Lay_PutContextualCheckbox (Act_Action_t NextAction,
|
||||||
FuncParams ();
|
FuncParams ();
|
||||||
|
|
||||||
/***** Begin container *****/
|
/***** Begin container *****/
|
||||||
HTM_DIV_Begin ("class=\"CONTEXT_OPT %s %s\" title=\"%s\"",
|
HTM_DIV_Begin ("class=\"CONTEXT_OPT %s FORM_OUT_%s BOLD\" title=\"%s\"",
|
||||||
Checked ? "CHECKBOX_CHECKED" :
|
Checked ? "CHECKBOX_CHECKED" :
|
||||||
"CHECKBOX_UNCHECKED",
|
"CHECKBOX_UNCHECKED",
|
||||||
The_ClassFormOutBoxBold[Gbl.Prefs.Theme],
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
Title);
|
Title);
|
||||||
|
|
||||||
/***** Begin label *****/
|
/***** Begin label *****/
|
||||||
|
|
|
@ -161,7 +161,7 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
Frm_BeginForm (ActSeeLnk);
|
Frm_BeginForm (ActSeeLnk);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Links,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Links,"class=\"BT_LINK\"");
|
||||||
HTM_TxtF ("%s",Txt_Links);
|
HTM_TxtF ("%s",Txt_Links);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -136,7 +136,7 @@ void Mai_SeeMailDomains (void)
|
||||||
|
|
||||||
Frm_BeginForm (ActSeeMai);
|
Frm_BeginForm (ActSeeMai);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_EMAIL_DOMAIN_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_EMAIL_DOMAIN_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Gbl.Mails.SelectedOrder)
|
if (Order == Gbl.Mails.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -804,7 +804,6 @@ static void Mai_ListEmails (__attribute__((unused)) void *Args)
|
||||||
{
|
{
|
||||||
extern const char *Hlp_COMMUNICATION_Email;
|
extern const char *Hlp_COMMUNICATION_Email;
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *The_ClassFormOutBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Email_addresses;
|
extern const char *Txt_Email_addresses;
|
||||||
extern const char *Txt_X_users_who_have_email;
|
extern const char *Txt_X_users_who_have_email;
|
||||||
extern const char *Txt_X_users_who_have_accepted_and_who_have_email;
|
extern const char *Txt_X_users_who_have_accepted_and_who_have_email;
|
||||||
|
@ -893,13 +892,13 @@ static void Mai_ListEmails (__attribute__((unused)) void *Args)
|
||||||
|
|
||||||
/* Open the client email program */
|
/* Open the client email program */
|
||||||
HTM_A_Begin ("href=\"mailto:%s?subject=%s&cc=%s&bcc=%s\""
|
HTM_A_Begin ("href=\"mailto:%s?subject=%s&cc=%s&bcc=%s\""
|
||||||
" title=\"%s\" class=\"%s\"",
|
" title=\"%s\" class=\"FORM_OUT_%s BOLD\"",
|
||||||
Gbl.Usrs.Me.UsrDat.Email,
|
Gbl.Usrs.Me.UsrDat.Email,
|
||||||
Gbl.Hierarchy.Crs.FullName,
|
Gbl.Hierarchy.Crs.FullName,
|
||||||
Gbl.Usrs.Me.UsrDat.Email,
|
Gbl.Usrs.Me.UsrDat.Email,
|
||||||
StrAddresses,
|
StrAddresses,
|
||||||
Txt_Create_email_message,
|
Txt_Create_email_message,
|
||||||
The_ClassFormOutBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("marker.svg",Ico_BLACK,
|
Ico_PutIconTextLink ("marker.svg",Ico_BLACK,
|
||||||
Txt_Create_email_message);
|
Txt_Create_email_message);
|
||||||
HTM_A_End ();
|
HTM_A_End ();
|
||||||
|
|
10
swad_mark.c
10
swad_mark.c
|
@ -84,7 +84,7 @@ static bool Mrk_GetUsrMarks (FILE *FileUsrMarks,struct UsrData *UsrDat,
|
||||||
|
|
||||||
void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormInBoxNoWrap[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_TABLE_Header;
|
extern const char *Txt_TABLE_Header;
|
||||||
extern const char *Txt_TABLE_Footer;
|
extern const char *Txt_TABLE_Footer;
|
||||||
struct Mrk_Properties Marks;
|
struct Mrk_Properties Marks;
|
||||||
|
@ -98,8 +98,8 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
||||||
Mrk_GetNumRowsHeaderAndFooter (&Marks);
|
Mrk_GetNumRowsHeaderAndFooter (&Marks);
|
||||||
|
|
||||||
/***** Write the number of rows of header *****/
|
/***** Write the number of rows of header *****/
|
||||||
HTM_TD_Begin ("class=\"%s RT %s\"",
|
HTM_TD_Begin ("class=\"RT FORM_IN_%s NOWRAP %s\"",
|
||||||
The_ClassFormInBoxNoWrap[Gbl.Prefs.Theme],
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
Frm_BeginForm (Gbl.Crs.Grps.GrpCod > 0 ? ActChgNumRowHeaGrp : // Group zone
|
Frm_BeginForm (Gbl.Crs.Grps.GrpCod > 0 ? ActChgNumRowHeaGrp : // Group zone
|
||||||
ActChgNumRowHeaCrs); // Course zone
|
ActChgNumRowHeaCrs); // Course zone
|
||||||
|
@ -116,8 +116,8 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (void)
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
/***** Write the number of rows of footer *****/
|
/***** Write the number of rows of footer *****/
|
||||||
HTM_TD_Begin ("class=\"%s RT %s\"",
|
HTM_TD_Begin ("class=\"RT FORM_IN_%s NOWRAP %s\"",
|
||||||
The_ClassFormInBoxNoWrap[Gbl.Prefs.Theme],
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
The_GetColorRows ());
|
The_GetColorRows ());
|
||||||
Frm_BeginForm (Gbl.Crs.Grps.GrpCod > 0 ? ActChgNumRowFooGrp : // Group zone
|
Frm_BeginForm (Gbl.Crs.Grps.GrpCod > 0 ? ActChgNumRowFooGrp : // Group zone
|
||||||
ActChgNumRowFooCrs); // Course zone
|
ActChgNumRowFooCrs); // Course zone
|
||||||
|
|
49
swad_match.c
49
swad_match.c
|
@ -637,9 +637,8 @@ static void Mch_ListOneOrMoreMatchesTitleGrps (const struct Mch_Match *Match,
|
||||||
ActResMch);
|
ActResMch);
|
||||||
Mch_PutParamMchCod (Match->MchCod);
|
Mch_PutParamMchCod (Match->MchCod);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Gbl.Usrs.Me.Role.Logged == Rol_STD ? Txt_Play :
|
HTM_BUTTON_Submit_Begin (Gbl.Usrs.Me.Role.Logged == Rol_STD ? Txt_Play :
|
||||||
Txt_Resume,
|
Txt_Resume,
|
||||||
NULL,
|
|
||||||
"class=\"BT_LINK LT ASG_TITLE\"");
|
"class=\"BT_LINK LT ASG_TITLE\"");
|
||||||
HTM_Txt (Match->Title);
|
HTM_Txt (Match->Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -2324,7 +2323,7 @@ static void Mch_PutCountdownAndHourglassIcon (struct Mch_Match *Match)
|
||||||
/***** Write countdown and put hourglass icon *****/
|
/***** Write countdown and put hourglass icon *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_SHOW_HOURGLASS\"");
|
HTM_DIV_Begin ("class=\"MCH_SHOW_HOURGLASS\"");
|
||||||
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
||||||
HTM_BUTTON_OnClick_Begin (Txt_Countdown,Class,NULL);
|
HTM_BUTTON_Begin (Txt_Countdown,"class=\"%s\"",Class);
|
||||||
|
|
||||||
/* Countdown */
|
/* Countdown */
|
||||||
if (Match->Status.Countdown > 0)
|
if (Match->Status.Countdown > 0)
|
||||||
|
@ -2385,8 +2384,7 @@ static void Mch_PutFormCountdown (struct Mch_Match *Match,long Seconds,const cha
|
||||||
/***** Put icon *****/
|
/***** Put icon *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_SMALLBUTTON_CONT %s\"",Color);
|
HTM_DIV_Begin ("class=\"MCH_SMALLBUTTON_CONT %s\"",Color);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (PutForm ? Txt_Countdown :
|
HTM_BUTTON_Submit_Begin (PutForm ? Txt_Countdown :
|
||||||
NULL,
|
|
||||||
NULL,
|
NULL,
|
||||||
PutForm ? "class=\"BT_LINK MCH_BUTTON_ON\"" :
|
PutForm ? "class=\"BT_LINK MCH_BUTTON_ON\"" :
|
||||||
"class=\"BT_LINK_OFF MCH_BUTTON_HIDDEN\"");
|
"class=\"BT_LINK_OFF MCH_BUTTON_HIDDEN\"");
|
||||||
|
@ -2700,7 +2698,7 @@ static void Mch_PutCheckboxResult (const struct Mch_Match *Match)
|
||||||
Mch_PutParamMchCod (Match->MchCod); // Current match being played
|
Mch_PutParamMchCod (Match->MchCod); // Current match being played
|
||||||
|
|
||||||
/***** Put icon with link *****/
|
/***** Put icon with link *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_results,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_View_results,
|
||||||
"class=\"BT_LINK ICO_HIGHLIGHT\"");
|
"class=\"BT_LINK ICO_HIGHLIGHT\"");
|
||||||
HTM_TxtF ("<i class=\"%s\"></i>",
|
HTM_TxtF ("<i class=\"%s\"></i>",
|
||||||
Match->Status.ShowQstResults ? "fas fa-toggle-on" :
|
Match->Status.ShowQstResults ? "fas fa-toggle-on" :
|
||||||
|
@ -2725,7 +2723,6 @@ static void Mch_PutIfAnswered (const struct Mch_Match *Match,bool Answered)
|
||||||
extern const char *Txt_View_my_answer;
|
extern const char *Txt_View_my_answer;
|
||||||
extern const char *Txt_MATCH_QUESTION_Answered;
|
extern const char *Txt_MATCH_QUESTION_Answered;
|
||||||
extern const char *Txt_MATCH_QUESTION_Unanswered;
|
extern const char *Txt_MATCH_QUESTION_Unanswered;
|
||||||
char *Class;
|
|
||||||
|
|
||||||
/***** Begin container *****/
|
/***** Begin container *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_SHOW_ANSWERED\"");
|
HTM_DIV_Begin ("class=\"MCH_SHOW_ANSWERED\"");
|
||||||
|
@ -2739,11 +2736,11 @@ static void Mch_PutIfAnswered (const struct Mch_Match *Match,bool Answered)
|
||||||
Frm_BeginForm (ActSeeMchAnsQstStd);
|
Frm_BeginForm (ActSeeMchAnsQstStd);
|
||||||
Mch_PutParamMchCod (Match->MchCod); // Current match being played
|
Mch_PutParamMchCod (Match->MchCod); // Current match being played
|
||||||
|
|
||||||
if (asprintf (&Class,"BT_LINK DAT_SMALL_GREEN_%s",
|
HTM_BUTTON_Submit_Begin (Txt_View_my_answer,
|
||||||
The_Colors[Gbl.Prefs.Theme]) < 0) // Background
|
"class=\"BT_LINK DAT_SMALL_GREEN_%s\""
|
||||||
Err_NotEnoughMemoryExit ();
|
" onmousedown=\"document.getElementById('%s').submit();return false;\"",
|
||||||
HTM_BUTTON_OnMouseDown_Begin (Txt_View_my_answer,Class);
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
free (Class);
|
Gbl.Form.Id);
|
||||||
HTM_TxtF ("<i class=\"%s\"></i>","fas fa-check-circle");
|
HTM_TxtF ("<i class=\"%s\"></i>","fas fa-check-circle");
|
||||||
HTM_TxtF (" %s",Txt_MATCH_QUESTION_Answered);
|
HTM_TxtF (" %s",Txt_MATCH_QUESTION_Answered);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -2788,8 +2785,10 @@ static void Mch_PutIconToRemoveMyAnswer (const struct Mch_Match *Match)
|
||||||
|
|
||||||
/***** Put icon with link *****/
|
/***** Put icon with link *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
||||||
HTM_BUTTON_OnMouseDown_Begin (Txt_Delete_my_answer,
|
HTM_BUTTON_Submit_Begin (Txt_Delete_my_answer,
|
||||||
"BT_LINK MCH_BUTTON_ON ICO_DARKRED");
|
"BT_LINK MCH_BUTTON_ON ICO_DARKRED\""
|
||||||
|
" onmousedown=\"document.getElementById('%s').submit();return false;\"",
|
||||||
|
Gbl.Form.Id);
|
||||||
HTM_Txt ("<i class=\"fas fa-trash\"></i>");
|
HTM_Txt ("<i class=\"fas fa-trash\"></i>");
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -3015,7 +3014,6 @@ static void Mch_ShowQuestionAndAnswersStd (const struct Mch_Match *Match,
|
||||||
{
|
{
|
||||||
unsigned NumOptions;
|
unsigned NumOptions;
|
||||||
unsigned NumOpt;
|
unsigned NumOpt;
|
||||||
char *Class;
|
|
||||||
|
|
||||||
/***** Get number of options in this question *****/
|
/***** Get number of options in this question *****/
|
||||||
NumOptions = Qst_DB_GetNumAnswersQst (Match->Status.QstCod);
|
NumOptions = Qst_DB_GetNumAnswersQst (Match->Status.QstCod);
|
||||||
|
@ -3043,16 +3041,16 @@ static void Mch_ShowQuestionAndAnswersStd (const struct Mch_Match *Match,
|
||||||
Gam_PutParamQstInd (Match->Status.QstInd); // Current question index shown
|
Gam_PutParamQstInd (Match->Status.QstInd); // Current question index shown
|
||||||
Mch_PutParamNumOpt (NumOpt); // Number of button
|
Mch_PutParamNumOpt (NumOpt); // Number of button
|
||||||
|
|
||||||
if (asprintf (&Class,"MCH_STD_BUTTON%s BT_%c",
|
HTM_BUTTON_Submit_Begin (NULL,
|
||||||
|
"class=\"MCH_STD_BUTTON%s BT_%c\""
|
||||||
|
" onmousedown=\"document.getElementById('%s').submit();return false;\"",
|
||||||
UsrAnswer->NumOpt == (int) NumOpt && // Student's answer
|
UsrAnswer->NumOpt == (int) NumOpt && // Student's answer
|
||||||
Update == Mch_CHANGE_STATUS_BY_STUDENT ? " MCH_STD_ANSWER_SELECTED" :
|
Update == Mch_CHANGE_STATUS_BY_STUDENT ? " MCH_STD_ANSWER_SELECTED" :
|
||||||
"",
|
"",
|
||||||
'A' + (char) NumOpt) < 0)
|
'A' + (char) NumOpt,
|
||||||
Err_NotEnoughMemoryExit ();
|
Gbl.Form.Id);
|
||||||
HTM_BUTTON_OnMouseDown_Begin (NULL,Class);
|
|
||||||
HTM_TxtF ("%c",'a' + (char) NumOpt);
|
HTM_TxtF ("%c",'a' + (char) NumOpt);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
free (Class);
|
|
||||||
|
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
||||||
|
@ -3309,7 +3307,7 @@ static void Mch_PutBigButton (Act_Action_t NextAction,const char *Id,
|
||||||
|
|
||||||
/***** Put icon with link *****/
|
/***** Put icon with link *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt,NULL,
|
HTM_BUTTON_Submit_Begin (Txt,
|
||||||
"class=\"BT_LINK MCH_BUTTON_ON ICO_BLACK\"");
|
"class=\"BT_LINK MCH_BUTTON_ON ICO_BLACK\"");
|
||||||
HTM_TxtF ("<i class=\"%s\"></i>",Icon);
|
HTM_TxtF ("<i class=\"%s\"></i>",Icon);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -3327,8 +3325,7 @@ static void Mch_PutBigButtonHidden (const char *Icon)
|
||||||
{
|
{
|
||||||
/***** Put inactive icon *****/
|
/***** Put inactive icon *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
||||||
HTM_BUTTON_OnClick_Begin (NULL,"BT_LINK_OFF MCH_BUTTON_HIDDEN ICO_BLACK",
|
HTM_BUTTON_Begin (NULL,"class=\"BT_LINK_OFF MCH_BUTTON_HIDDEN ICO_BLACK\"");
|
||||||
NULL);
|
|
||||||
HTM_TxtF ("<i class=\"%s\"></i>",Icon);
|
HTM_TxtF ("<i class=\"%s\"></i>",Icon);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -3343,9 +3340,9 @@ static void Mch_PutBigButtonClose (void)
|
||||||
|
|
||||||
/***** Put icon with link *****/
|
/***** Put icon with link *****/
|
||||||
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
HTM_DIV_Begin ("class=\"MCH_BIGBUTTON_CONT\"");
|
||||||
HTM_BUTTON_OnClick_Begin (Txt_Close,"BT_LINK MCH_BUTTON_ON ICO_DARKRED",
|
HTM_BUTTON_Begin (Txt_Close,
|
||||||
"window.close();"
|
"class=\"BT_LINK MCH_BUTTON_ON ICO_DARKRED\""
|
||||||
"return false;");
|
" onclick=\"window.close();return false;\"");
|
||||||
HTM_TxtF ("<i class=\"%s\"></i>",Mch_ICON_CLOSE);
|
HTM_TxtF ("<i class=\"%s\"></i>",Mch_ICON_CLOSE);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
|
@ -536,7 +536,6 @@ static void MchRes_ShowResultsEnd (void)
|
||||||
|
|
||||||
static void MchRes_ListGamesToSelect (struct Gam_Games *Games)
|
static void MchRes_ListGamesToSelect (struct Gam_Games *Games)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Games;
|
extern const char *Txt_Games;
|
||||||
extern const char *Txt_Game;
|
extern const char *Txt_Game;
|
||||||
|
@ -612,8 +611,9 @@ static void MchRes_ListGamesToSelect (struct Gam_Games *Games)
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Update_results,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Update_results,
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_results);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
|
@ -268,7 +268,7 @@ void Mnu_WriteMenuThisTab (void)
|
||||||
Frm_BeginForm (NumAct);
|
Frm_BeginForm (NumAct);
|
||||||
|
|
||||||
/***** Begin link *****/
|
/***** Begin link *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
|
|
||||||
/***** Icon and text *****/
|
/***** Icon and text *****/
|
||||||
HTM_DIV_Begin ("class=\"MENU_ICO_TXT\"");
|
HTM_DIV_Begin ("class=\"MENU_ICO_TXT\"");
|
||||||
|
|
|
@ -1435,7 +1435,7 @@ static void Msg_ShowSntOrRcvMessages (struct Msg_Messages *Messages)
|
||||||
extern const char *Hlp_COMMUNICATION_Messages_received_filter;
|
extern const char *Hlp_COMMUNICATION_Messages_received_filter;
|
||||||
extern const char *Hlp_COMMUNICATION_Messages_sent;
|
extern const char *Hlp_COMMUNICATION_Messages_sent;
|
||||||
extern const char *Hlp_COMMUNICATION_Messages_sent_filter;
|
extern const char *Hlp_COMMUNICATION_Messages_sent_filter;
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Filter;
|
extern const char *Txt_Filter;
|
||||||
extern const char *Txt_Update_messages;
|
extern const char *Txt_Update_messages;
|
||||||
char FilterFromToSubquery[Msg_DB_MAX_BYTES_MESSAGES_QUERY + 1];
|
char FilterFromToSubquery[Msg_DB_MAX_BYTES_MESSAGES_QUERY + 1];
|
||||||
|
@ -1525,9 +1525,9 @@ static void Msg_ShowSntOrRcvMessages (struct Msg_Messages *Messages)
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_DIV_Begin ("class=\"UPD\"");
|
HTM_DIV_Begin ("class=\"UPD\"");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Update_messages,
|
HTM_BUTTON_Submit_Begin (Txt_Update_messages,
|
||||||
NULL,
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_messages);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Update_messages);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
@ -2286,9 +2286,8 @@ static void Msg_WriteSentOrReceivedMsgSubject (struct Msg_Messages *Messages,
|
||||||
Messages->MsgCod = MsgCod; // Message to be contracted/expanded
|
Messages->MsgCod = MsgCod; // Message to be contracted/expanded
|
||||||
Msg_PutHiddenParamsOneMsg (Messages);
|
Msg_PutHiddenParamsOneMsg (Messages);
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Expanded ? Txt_Hide_message :
|
HTM_BUTTON_Submit_Begin (Expanded ? Txt_Hide_message :
|
||||||
Txt_See_message,
|
Txt_See_message,
|
||||||
NULL,
|
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
|
|
||||||
/***** Write subject *****/
|
/***** Write subject *****/
|
||||||
|
@ -2413,7 +2412,7 @@ static bool Msg_WriteCrsOrgMsg (long CrsCod)
|
||||||
Crs_PutParamCrsCod (Crs.CrsCod);
|
Crs_PutParamCrsCod (Crs.CrsCod);
|
||||||
HTM_DIV_Begin ("class=\"AUTHOR_TXT\"");
|
HTM_DIV_Begin ("class=\"AUTHOR_TXT\"");
|
||||||
HTM_Txt ("(");
|
HTM_Txt ("(");
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Crs.FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Crs.FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_Txt (Crs.ShrtName);
|
HTM_Txt (Crs.ShrtName);
|
||||||
|
@ -2691,7 +2690,7 @@ static void Msg_WriteMsgTo (struct Msg_Messages *Messages,long MsgCod)
|
||||||
Messages->MsgCod = MsgCod; // Message to be expanded with all recipients visible
|
Messages->MsgCod = MsgCod; // Message to be expanded with all recipients visible
|
||||||
Msg_PutHiddenParamsOneMsg (Messages);
|
Msg_PutHiddenParamsOneMsg (Messages);
|
||||||
Par_PutHiddenParamChar ("SeeAllRcpts",'Y');
|
Par_PutHiddenParamChar ("SeeAllRcpts",'Y');
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_all_recipients,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_View_all_recipients,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_TxtF (Txt_and_X_other_recipients,
|
HTM_TxtF (Txt_and_X_other_recipients,
|
||||||
NumRecipients.Known - NumRecipients.ToShow);
|
NumRecipients.Known - NumRecipients.ToShow);
|
||||||
|
|
|
@ -612,7 +612,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
/* Form to view full notice */
|
/* Form to view full notice */
|
||||||
Frm_BeginFormAnchor (ActSeeOneNot,Anchor);
|
Frm_BeginFormAnchor (ActSeeOneNot,Anchor);
|
||||||
Not_PutHiddenParamNotCod (NotCod);
|
Not_PutHiddenParamNotCod (NotCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_See_full_notice,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_See_full_notice,
|
||||||
"class=\"RT BT_LINK\"");
|
"class=\"RT BT_LINK\"");
|
||||||
}
|
}
|
||||||
if (asprintf (&Id,"not_date_%u",UniqueId) < 0)
|
if (asprintf (&Id,"not_date_%u",UniqueId) < 0)
|
||||||
|
|
|
@ -503,7 +503,7 @@ void Ntf_ShowMyNotifications (void)
|
||||||
if (PutLink)
|
if (PutLink)
|
||||||
{
|
{
|
||||||
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
|
||||||
"class=\"%s\"",ClassLink);
|
"class=\"%s\"",ClassLink);
|
||||||
HTM_Txt (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
HTM_Txt (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -532,7 +532,7 @@ void Ntf_ShowMyNotifications (void)
|
||||||
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
||||||
|
|
||||||
if (PutLink)
|
if (PutLink)
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
|
||||||
"class=\"%s\"",ClassLink);
|
"class=\"%s\"",ClassLink);
|
||||||
else
|
else
|
||||||
HTM_SPAN_Begin ("class=\"%s\"",ClassText);
|
HTM_SPAN_Begin ("class=\"%s\"",ClassText);
|
||||||
|
@ -551,7 +551,7 @@ void Ntf_ShowMyNotifications (void)
|
||||||
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
PutLink = Ntf_StartFormGoToAction (NotifyEvent,Hie.Crs.CrsCod,&UsrDat,Cod,&Forums);
|
||||||
|
|
||||||
if (PutLink)
|
if (PutLink)
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
|
||||||
"class=\"%s\"",ClassLink);
|
"class=\"%s\"",ClassLink);
|
||||||
else
|
else
|
||||||
HTM_SPAN_Begin ("class=\"%s\"",ClassText);
|
HTM_SPAN_Begin ("class=\"%s\"",ClassText);
|
||||||
|
@ -1650,7 +1650,7 @@ void Ntf_WriteNumberOfNewNtfs (void)
|
||||||
Frm_BeginFormId (ActSeeNewNtf,"form_ntf");
|
Frm_BeginFormId (ActSeeNewNtf,"form_ntf");
|
||||||
|
|
||||||
/***** Begin link *****/
|
/***** Begin link *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_See_notifications,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_See_notifications,"class=\"BT_LINK\"");
|
||||||
|
|
||||||
/***** Number of unseen notifications *****/
|
/***** Number of unseen notifications *****/
|
||||||
HTM_SPAN_Begin ("id=\"notif_all\"");
|
HTM_SPAN_Begin ("id=\"notif_all\"");
|
||||||
|
|
|
@ -268,7 +268,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
}
|
}
|
||||||
if (asprintf (&Title,Txt_Page_X_of_Y,1,Pagination->NumPags) < 0)
|
if (asprintf (&Title,Txt_Page_X_of_Y,1,Pagination->NumPags) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"LT BT_LINK %s_%s\"",
|
"class=\"LT BT_LINK %s_%s\"",
|
||||||
ClassTxt,The_Colors[Gbl.Prefs.Theme]);
|
ClassTxt,The_Colors[Gbl.Prefs.Theme]);
|
||||||
free (Title);
|
free (Title);
|
||||||
|
@ -391,7 +391,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
}
|
}
|
||||||
if (asprintf (&Title,Txt_Page_X_of_Y,1,Pagination->NumPags) < 0)
|
if (asprintf (&Title,Txt_Page_X_of_Y,1,Pagination->NumPags) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
||||||
HTM_Unsigned (1);
|
HTM_Unsigned (1);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -506,7 +506,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
if (asprintf (&Title,Txt_Page_X_of_Y,
|
if (asprintf (&Title,Txt_Page_X_of_Y,
|
||||||
Pagination->LeftPage,Pagination->NumPags) < 0)
|
Pagination->LeftPage,Pagination->NumPags) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
||||||
HTM_Unsigned (Pagination->LeftPage);
|
HTM_Unsigned (Pagination->LeftPage);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -629,7 +629,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
||||||
HTM_Unsigned (NumPage);
|
HTM_Unsigned (NumPage);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -745,7 +745,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
if (asprintf (&Title,Txt_Page_X_of_Y,
|
if (asprintf (&Title,Txt_Page_X_of_Y,
|
||||||
Pagination->RightPage,Pagination->NumPags) < 0)
|
Pagination->RightPage,Pagination->NumPags) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
||||||
HTM_Unsigned (Pagination->RightPage);
|
HTM_Unsigned (Pagination->RightPage);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -859,7 +859,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,
|
||||||
if (asprintf (&Title,Txt_Page_X_of_Y,
|
if (asprintf (&Title,Txt_Page_X_of_Y,
|
||||||
Pagination->NumPags,Pagination->NumPags) < 0)
|
Pagination->NumPags,Pagination->NumPags) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
"class=\"BT_LINK PAG %s\"",ClassTxt);
|
||||||
HTM_Unsigned (Pagination->NumPags);
|
HTM_Unsigned (Pagination->NumPags);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
11
swad_photo.c
11
swad_photo.c
|
@ -1291,7 +1291,7 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
else
|
else
|
||||||
Frm_BeginForm (ActSeeOthPubPrf);
|
Frm_BeginForm (ActSeeOthPubPrf);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_LINK\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Hidden div to pass user's name to Javascript *****/
|
/***** Hidden div to pass user's name to Javascript *****/
|
||||||
|
@ -1998,7 +1998,6 @@ static void Pho_PutLinkToPrintViewOfDegreeStatsParams (void *DegPhotos)
|
||||||
|
|
||||||
static void Pho_PutLinkToCalculateDegreeStats (const struct Pho_DegPhotos *DegPhotos)
|
static void Pho_PutLinkToCalculateDegreeStats (const struct Pho_DegPhotos *DegPhotos)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Calculate_average_photo_of_THE_DEGREE_X;
|
extern const char *Txt_Calculate_average_photo_of_THE_DEGREE_X;
|
||||||
extern const char *Txt_unknown_TIME;
|
extern const char *Txt_unknown_TIME;
|
||||||
|
@ -2030,9 +2029,9 @@ static void Pho_PutLinkToCalculateDegreeStats (const struct Pho_DegPhotos *DegPh
|
||||||
Set_PutParamsPrefsAboutUsrList ();
|
Set_PutParamsPrefsAboutUsrList ();
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Calculate_average_photo_of_THE_DEGREE_X,
|
HTM_BUTTON_Submit_Begin (Txt_Calculate_average_photo_of_THE_DEGREE_X,
|
||||||
NULL,
|
"class=\"BT_LINK FORM_IN_%s BOLD\"",
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate_average_photo_of_THE_DEGREE_X);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate_average_photo_of_THE_DEGREE_X);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -2391,7 +2390,7 @@ static void Pho_ShowDegreeAvgPhotoAndStat (const struct Deg_Degree *Deg,
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeDegInf);
|
Frm_BeginFormGoTo (ActSeeDegInf);
|
||||||
Deg_PutParamDegCod (Deg->DegCod);
|
Deg_PutParamDegCod (Deg->DegCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Deg->FullName),NULL,
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Deg->FullName),
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ void Plc_SeePlaces (void)
|
||||||
|
|
||||||
Frm_BeginForm (ActSeePlc);
|
Frm_BeginForm (ActSeePlc);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_PLACES_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_PLACES_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Places.SelectedOrder)
|
if (Order == Places.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -775,16 +775,16 @@ static void Prf_EndListItem (void)
|
||||||
|
|
||||||
static void Prf_PutLinkCalculateFigures (const char *EncryptedUsrCod)
|
static void Prf_PutLinkCalculateFigures (const char *EncryptedUsrCod)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Calculate;
|
extern const char *Txt_Calculate;
|
||||||
|
|
||||||
Frm_BeginForm (ActCalFig);
|
Frm_BeginForm (ActCalFig);
|
||||||
Usr_PutParamUsrCodEncrypted (EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (EncryptedUsrCod);
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Calculate,
|
HTM_BUTTON_Submit_Begin (Txt_Calculate,
|
||||||
NULL,
|
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
||||||
"class=\"%s\"",The_ClassFormLinkOutBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_Calculate);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -863,7 +863,7 @@ static void Prf_ShowRanking (unsigned Rank,unsigned NumUsrs)
|
||||||
if (asprintf (&Title,"#%u %s %u",
|
if (asprintf (&Title,"#%u %s %u",
|
||||||
Rank,Txt_of_PART_OF_A_TOTAL,NumUsrs) < 0)
|
Rank,Txt_of_PART_OF_A_TOTAL,NumUsrs) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,
|
||||||
"class=\"BT_LINK FORM_OUT_%s\"",
|
"class=\"BT_LINK FORM_OUT_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
free (Title);
|
free (Title);
|
||||||
|
@ -1350,7 +1350,7 @@ static void Prf_ShowUsrInRanking (struct UsrData *UsrDat,unsigned Rank,bool ItsM
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActSeeOthPubPrf);
|
Frm_BeginForm (ActSeeOthPubPrf);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Another_user_s_profile,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Another_user_s_profile,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Usr_WriteFirstNameBRSurnames (UsrDat);
|
Usr_WriteFirstNameBRSurnames (UsrDat);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -1009,7 +1009,7 @@ static void Prj_ShowProjectsHead (struct Prj_Projects *Projects,
|
||||||
Order,
|
Order,
|
||||||
Projects->CurrentPage,
|
Projects->CurrentPage,
|
||||||
-1L);
|
-1L);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_PROJECT_ORDER_HELP[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_PROJECT_ORDER_HELP[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Projects->SelectedOrder)
|
if (Order == Projects->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
@ -1383,7 +1383,7 @@ static void Prj_ShowOneProject (struct Prj_Projects *Projects,
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActAdmDocPrj);
|
Frm_BeginForm (ActAdmDocPrj);
|
||||||
Prj_PutCurrentParams (Projects);
|
Prj_PutCurrentParams (Projects);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Project_files,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Project_files,
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Prj->Title);
|
HTM_Txt (Prj->Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -944,7 +944,7 @@ void Qst_WriteHeadingRowQuestionsForEdition (struct Qst_Questions *Questions)
|
||||||
Frm_BeginForm (ActLstTstQst);
|
Frm_BeginForm (ActLstTstQst);
|
||||||
Qst_PutParamsEditQst (Questions);
|
Qst_PutParamsEditQst (Questions);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_TST_STR_ORDER_FULL[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_TST_STR_ORDER_FULL[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Questions->SelectedOrder)
|
if (Order == Questions->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -169,7 +169,7 @@ void QstImp_ShowFormImpQstsFromXML (void)
|
||||||
|
|
||||||
void QstImp_CreateXML (unsigned NumQsts,MYSQL_RES *mysql_res)
|
void QstImp_CreateXML (unsigned NumQsts,MYSQL_RES *mysql_res)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormOutBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_NEW_LINE;
|
extern const char *Txt_NEW_LINE;
|
||||||
extern const char *Txt_XML_file;
|
extern const char *Txt_XML_file;
|
||||||
char PathPubFile[PATH_MAX + 1];
|
char PathPubFile[PATH_MAX + 1];
|
||||||
|
@ -223,11 +223,12 @@ void QstImp_CreateXML (unsigned NumQsts,MYSQL_RES *mysql_res)
|
||||||
mysql_data_seek (mysql_res,0);
|
mysql_data_seek (mysql_res,0);
|
||||||
|
|
||||||
/***** Write the link to XML file *****/
|
/***** Write the link to XML file *****/
|
||||||
HTM_A_Begin ("href=\"%s/%s/%s/test.xml\" class=\"%s\" target=\"_blank\"",
|
HTM_A_Begin ("href=\"%s/%s/%s/test.xml\" target=\"_blank\""
|
||||||
|
" class=\"FORM_OUT_%s BOLD\"",
|
||||||
Cfg_URL_FILE_BROWSER_TMP_PUBLIC,
|
Cfg_URL_FILE_BROWSER_TMP_PUBLIC,
|
||||||
Gbl.FileBrowser.TmpPubDir.L,
|
Gbl.FileBrowser.TmpPubDir.L,
|
||||||
Gbl.FileBrowser.TmpPubDir.R,
|
Gbl.FileBrowser.TmpPubDir.R,
|
||||||
The_ClassFormOutBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("file.svg",Ico_BLACK,Txt_XML_file);
|
Ico_PutIconTextLink ("file.svg",Ico_BLACK,Txt_XML_file);
|
||||||
HTM_A_End ();
|
HTM_A_End ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1400,14 +1400,14 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView)
|
||||||
|
|
||||||
static void Rec_ShowLinkToPrintPreviewOfRecords (void)
|
static void Rec_ShowLinkToPrintPreviewOfRecords (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkOutBoxBold[The_NUM_THEMES];
|
|
||||||
extern const char *The_Colors[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_Print;
|
extern const char *Txt_Print;
|
||||||
extern const char *Txt_record_cards_per_page;
|
extern const char *Txt_record_cards_per_page;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Print,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_Print,
|
||||||
"class=\"%s\"",The_ClassFormLinkOutBoxBold[Gbl.Prefs.Theme]);
|
"class=\"BT_LINK FORM_OUT_%s BOLD\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("print.svg",Ico_BLACK,Txt_Print);
|
Ico_PutIconTextLink ("print.svg",Ico_BLACK,Txt_Print);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
@ -2577,8 +2577,7 @@ static void Rec_ShowInstitutionInHead (struct Ins_Instit *Ins,bool PutFormLinks)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeInsInf);
|
Frm_BeginFormGoTo (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Ins->InsCod);
|
Ins_PutParamInsCod (Ins->InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Ins->FullName,NULL,
|
HTM_BUTTON_Submit_Begin (Ins->FullName,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
}
|
}
|
||||||
Lgo_DrawLogo (HieLvl_INS,Ins->InsCod,Ins->ShrtName,
|
Lgo_DrawLogo (HieLvl_INS,Ins->InsCod,Ins->ShrtName,
|
||||||
Rec_INSTITUTION_LOGO_SIZE,NULL,true);
|
Rec_INSTITUTION_LOGO_SIZE,NULL,true);
|
||||||
|
@ -2599,8 +2598,7 @@ static void Rec_ShowInstitutionInHead (struct Ins_Instit *Ins,bool PutFormLinks)
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeInsInf);
|
Frm_BeginFormGoTo (ActSeeInsInf);
|
||||||
Ins_PutParamInsCod (Ins->InsCod);
|
Ins_PutParamInsCod (Ins->InsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Ins->FullName,NULL,
|
HTM_BUTTON_Submit_Begin (Ins->FullName,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
}
|
}
|
||||||
HTM_Txt (Ins->FullName);
|
HTM_Txt (Ins->FullName);
|
||||||
if (PutFormLinks)
|
if (PutFormLinks)
|
||||||
|
@ -2678,9 +2676,8 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks)
|
||||||
ItsMe = Usr_ItsMe (UsrDat->UsrCod);
|
ItsMe = Usr_ItsMe (UsrDat->UsrCod);
|
||||||
Frm_BeginForm (ActSeeOthPubPrf);
|
Frm_BeginForm (ActSeeOthPubPrf);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (ItsMe ? Txt_My_public_profile :
|
HTM_BUTTON_Submit_Begin (ItsMe ? Txt_My_public_profile :
|
||||||
Txt_Another_user_s_profile,
|
Txt_Another_user_s_profile,
|
||||||
NULL,
|
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
}
|
}
|
||||||
HTM_TxtF ("@%s",UsrDat->Nickname);
|
HTM_TxtF ("@%s",UsrDat->Nickname);
|
||||||
|
|
|
@ -185,7 +185,7 @@ void Roo_SeeRooms (void)
|
||||||
HTM_TH_Begin (HTM_HEAD_LEFT);
|
HTM_TH_Begin (HTM_HEAD_LEFT);
|
||||||
Frm_BeginForm (ActSeeRoo);
|
Frm_BeginForm (ActSeeRoo);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
Par_PutHiddenParamUnsigned (NULL,"Order",(unsigned) Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_ROOMS_HELP_ORDER[Order],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_ROOMS_HELP_ORDER[Order],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Rooms.SelectedOrder)
|
if (Order == Rooms.SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
|
|
|
@ -1152,8 +1152,7 @@ static void Sta_ShowDetailedAccessesList (const struct Sta_Stats *Stats,
|
||||||
{
|
{
|
||||||
if (asprintf (&Title,Txt_Show_previous_X_clicks,Stats->RowsPerPage) < 0)
|
if (asprintf (&Title,Txt_Show_previous_X_clicks,Stats->RowsPerPage) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
free (Title);
|
free (Title);
|
||||||
HTM_TxtF ("<%s",Txt_PAGES_Previous);
|
HTM_TxtF ("<%s",Txt_PAGES_Previous);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -1187,8 +1186,7 @@ static void Sta_ShowDetailedAccessesList (const struct Sta_Stats *Stats,
|
||||||
{
|
{
|
||||||
if (asprintf (&Title,Txt_Show_next_X_clicks,Stats->RowsPerPage) < 0)
|
if (asprintf (&Title,Txt_Show_next_X_clicks,Stats->RowsPerPage) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_OnSubmit_Begin (Title,NULL,
|
HTM_BUTTON_Submit_Begin (Title,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
free (Title);
|
free (Title);
|
||||||
HTM_TxtF ("%s>",Txt_PAGES_Next);
|
HTM_TxtF ("%s>",Txt_PAGES_Next);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -3297,8 +3295,8 @@ static void Sta_ShowNumHitsPerCourse (Sta_CountType_t CountType,
|
||||||
{
|
{
|
||||||
Frm_BeginFormGoTo (ActSeeCrsInf);
|
Frm_BeginFormGoTo (ActSeeCrsInf);
|
||||||
Crs_PutParamCrsCod (Crs.CrsCod);
|
Crs_PutParamCrsCod (Crs.CrsCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Str_BuildGoToTitle (Crs.FullName),
|
HTM_BUTTON_Submit_Begin (Str_BuildGoToTitle (Crs.FullName),
|
||||||
NULL,"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
Str_FreeGoToTitle ();
|
Str_FreeGoToTitle ();
|
||||||
HTM_Txt (Crs.ShrtName);
|
HTM_Txt (Crs.ShrtName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
|
@ -257,8 +257,8 @@ static void Svy_ListAllSurveys (struct Svy_Surveys *Surveys)
|
||||||
Grp_PutParamWhichGroups (&WhichGroups);
|
Grp_PutParamWhichGroups (&WhichGroups);
|
||||||
Pag_PutHiddenParamPagNum (Pag_SURVEYS,Surveys->CurrentPage);
|
Pag_PutHiddenParamPagNum (Pag_SURVEYS,Surveys->CurrentPage);
|
||||||
Dat_PutHiddenParamOrder (Order);
|
Dat_PutHiddenParamOrder (Order);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_START_END_TIME_HELP[Order],
|
HTM_BUTTON_Submit_Begin (Txt_START_END_TIME_HELP[Order],
|
||||||
NULL,"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
if (Order == Surveys->SelectedOrder)
|
if (Order == Surveys->SelectedOrder)
|
||||||
HTM_U_Begin ();
|
HTM_U_Begin ();
|
||||||
HTM_Txt (Txt_START_END_TIME[Order]);
|
HTM_Txt (Txt_START_END_TIME[Order]);
|
||||||
|
@ -538,8 +538,7 @@ static void Svy_ShowOneSurvey (struct Svy_Surveys *Surveys,
|
||||||
WhichGroups = Grp_GetParamWhichGroups ();
|
WhichGroups = Grp_GetParamWhichGroups ();
|
||||||
Grp_PutParamWhichGroups (&WhichGroups);
|
Grp_PutParamWhichGroups (&WhichGroups);
|
||||||
Pag_PutHiddenParamPagNum (Pag_SURVEYS,Surveys->CurrentPage);
|
Pag_PutHiddenParamPagNum (Pag_SURVEYS,Surveys->CurrentPage);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_View_survey,NULL,
|
HTM_BUTTON_Submit_Begin (Txt_View_survey,"class=\"BT_LINK\"");
|
||||||
"class=\"BT_LINK\"");
|
|
||||||
HTM_Txt (Svy.Title);
|
HTM_Txt (Svy.Title);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -311,7 +311,7 @@ static void SysCfg_NumCtys (void)
|
||||||
/* Data */
|
/* Data */
|
||||||
HTM_TD_Begin ("class=\"LB DAT_%s\"",The_Colors[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"LB DAT_%s\"",The_Colors[Gbl.Prefs.Theme]);
|
||||||
Frm_BeginFormGoTo (ActSeeCty);
|
Frm_BeginFormGoTo (ActSeeCty);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Countries,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Countries,"class=\"BT_LINK\"");
|
||||||
HTM_Unsigned (Cty_GetCachedNumCtysInSys ());
|
HTM_Unsigned (Cty_GetCachedNumCtysInSys ());
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
|
@ -119,7 +119,7 @@ void Tab_DrawTabs (void)
|
||||||
|
|
||||||
Frm_BeginForm (ActMnu);
|
Frm_BeginForm (ActMnu);
|
||||||
Par_PutHiddenParamUnsigned (NULL,"NxtTab",(unsigned) NumTab);
|
Par_PutHiddenParamUnsigned (NULL,"NxtTab",(unsigned) NumTab);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_TABS_TXT[NumTab],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_TABS_TXT[NumTab],
|
||||||
"class=\"BT_LINK\"");
|
"class=\"BT_LINK\"");
|
||||||
HTM_IMG (Gbl.Prefs.URLIconSet,Tab_GetIcon (NumTab),Txt_TABS_TXT[NumTab],
|
HTM_IMG (Gbl.Prefs.URLIconSet,Tab_GetIcon (NumTab),Txt_TABS_TXT[NumTab],
|
||||||
"class=\"TAB_ICO%s\"",ClassIcoTab[Gbl.Prefs.IconSet][Gbl.Prefs.Theme]);
|
"class=\"TAB_ICO%s\"",ClassIcoTab[Gbl.Prefs.IconSet][Gbl.Prefs.Theme]);
|
||||||
|
|
88
swad_theme.c
88
swad_theme.c
|
@ -78,94 +78,6 @@ const char *The_ThemeNames[The_NUM_THEMES] =
|
||||||
[The_THEME_DARK ] = "Dark",
|
[The_THEME_DARK ] = "Dark",
|
||||||
};
|
};
|
||||||
|
|
||||||
const char *The_ClassFormLinkInBox[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "BT_LINK FORM_IN_WHITE",
|
|
||||||
[The_THEME_GREY ] = "BT_LINK FORM_IN_GREY",
|
|
||||||
[The_THEME_PURPLE] = "BT_LINK FORM_IN_PURPLE",
|
|
||||||
[The_THEME_BLUE ] = "BT_LINK FORM_IN_BLUE",
|
|
||||||
[The_THEME_YELLOW] = "BT_LINK FORM_IN_YELLOW",
|
|
||||||
[The_THEME_PINK ] = "BT_LINK FORM_IN_PINK",
|
|
||||||
[The_THEME_DARK ] = "BT_LINK FORM_IN_DARK",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "BT_LINK FORM_IN_WHITE BOLD",
|
|
||||||
[The_THEME_GREY ] = "BT_LINK FORM_IN_GREY BOLD",
|
|
||||||
[The_THEME_PURPLE] = "BT_LINK FORM_IN_PURPLE BOLD",
|
|
||||||
[The_THEME_BLUE ] = "BT_LINK FORM_IN_BLUE BOLD",
|
|
||||||
[The_THEME_YELLOW] = "BT_LINK FORM_IN_YELLOW BOLD",
|
|
||||||
[The_THEME_PINK ] = "BT_LINK FORM_IN_PINK BOLD",
|
|
||||||
[The_THEME_DARK ] = "BT_LINK FORM_IN_DARK BOLD",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormInBoxBold[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "FORM_IN_WHITE BOLD",
|
|
||||||
[The_THEME_GREY ] = "FORM_IN_GREY BOLD",
|
|
||||||
[The_THEME_PURPLE] = "FORM_IN_PURPLE BOLD",
|
|
||||||
[The_THEME_BLUE ] = "FORM_IN_BLUE BOLD",
|
|
||||||
[The_THEME_YELLOW] = "FORM_IN_YELLOW BOLD",
|
|
||||||
[The_THEME_PINK ] = "FORM_IN_PINK BOLD",
|
|
||||||
[The_THEME_DARK ] = "FORM_IN_DARK BOLD",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormLinkInBoxNoWrap[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "BT_LINK FORM_IN_WHITE NOWRAP",
|
|
||||||
[The_THEME_GREY ] = "BT_LINK FORM_IN_GREY NOWRAP",
|
|
||||||
[The_THEME_PURPLE] = "BT_LINK FORM_IN_PURPLE NOWRAP",
|
|
||||||
[The_THEME_BLUE ] = "BT_LINK FORM_IN_BLUE NOWRAP",
|
|
||||||
[The_THEME_YELLOW] = "BT_LINK FORM_IN_YELLOW NOWRAP",
|
|
||||||
[The_THEME_PINK ] = "BT_LINK FORM_IN_PINK NOWRAP",
|
|
||||||
[The_THEME_DARK ] = "BT_LINK FORM_IN_DARK NOWRAP",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormInBoxNoWrap[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "FORM_IN_WHITE NOWRAP",
|
|
||||||
[The_THEME_GREY ] = "FORM_IN_GREY NOWRAP",
|
|
||||||
[The_THEME_PURPLE] = "FORM_IN_PURPLE NOWRAP",
|
|
||||||
[The_THEME_BLUE ] = "FORM_IN_BLUE NOWRAP",
|
|
||||||
[The_THEME_YELLOW] = "FORM_IN_YELLOW NOWRAP",
|
|
||||||
[The_THEME_PINK ] = "FORM_IN_PINK NOWRAP",
|
|
||||||
[The_THEME_DARK ] = "FORM_IN_DARK NOWRAP",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormOutBox[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "FORM_OUT_WHITE",
|
|
||||||
[The_THEME_GREY ] = "FORM_OUT_GREY",
|
|
||||||
[The_THEME_PURPLE] = "FORM_OUT_PURPLE",
|
|
||||||
[The_THEME_BLUE ] = "FORM_OUT_BLUE",
|
|
||||||
[The_THEME_YELLOW] = "FORM_OUT_YELLOW",
|
|
||||||
[The_THEME_PINK ] = "FORM_OUT_PINK",
|
|
||||||
[The_THEME_DARK ] = "FORM_OUT_DARK",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormLinkOutBoxBold[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "BT_LINK FORM_OUT_WHITE BOLD",
|
|
||||||
[The_THEME_GREY ] = "BT_LINK FORM_OUT_GREY BOLD",
|
|
||||||
[The_THEME_PURPLE] = "BT_LINK FORM_OUT_PURPLE BOLD",
|
|
||||||
[The_THEME_BLUE ] = "BT_LINK FORM_OUT_BLUE BOLD",
|
|
||||||
[The_THEME_YELLOW] = "BT_LINK FORM_OUT_YELLOW BOLD",
|
|
||||||
[The_THEME_PINK ] = "BT_LINK FORM_OUT_PINK BOLD",
|
|
||||||
[The_THEME_DARK ] = "BT_LINK FORM_OUT_DARK BOLD",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_ClassFormOutBoxBold[The_NUM_THEMES] =
|
|
||||||
{
|
|
||||||
[The_THEME_WHITE ] = "FORM_OUT_WHITE BOLD",
|
|
||||||
[The_THEME_GREY ] = "FORM_OUT_GREY BOLD",
|
|
||||||
[The_THEME_PURPLE] = "FORM_OUT_PURPLE BOLD",
|
|
||||||
[The_THEME_BLUE ] = "FORM_OUT_BLUE BOLD",
|
|
||||||
[The_THEME_YELLOW] = "FORM_OUT_YELLOW BOLD",
|
|
||||||
[The_THEME_PINK ] = "FORM_OUT_PINK BOLD",
|
|
||||||
[The_THEME_DARK ] = "FORM_OUT_DARK BOLD",
|
|
||||||
};
|
|
||||||
|
|
||||||
const char *The_Colors[The_NUM_THEMES] =
|
const char *The_Colors[The_NUM_THEMES] =
|
||||||
{
|
{
|
||||||
[The_THEME_WHITE ] = "WHITE",
|
[The_THEME_WHITE ] = "WHITE",
|
||||||
|
|
|
@ -509,20 +509,15 @@ static void TmlCom_LinkToShowComms (TmlCom_ContractExpand_t ConExp,
|
||||||
static void TmlCom_PutIconToToggleComms (const char *UniqueId,
|
static void TmlCom_PutIconToToggleComms (const char *UniqueId,
|
||||||
const char *Icon,const char *Text)
|
const char *Icon,const char *Text)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBox[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
char *OnClick;
|
|
||||||
|
|
||||||
/***** Build onclick text *****/
|
|
||||||
if (asprintf (&OnClick,"toggleComments('%s');return false;",UniqueId) < 0)
|
|
||||||
Err_NotEnoughMemoryExit ();
|
|
||||||
|
|
||||||
/***** Link to toggle on/off some divs *****/
|
/***** Link to toggle on/off some divs *****/
|
||||||
HTM_BUTTON_OnClick_Begin (Text,The_ClassFormLinkInBox[Gbl.Prefs.Theme],OnClick);
|
HTM_BUTTON_Begin (Text,
|
||||||
|
"class=\"BT_LINK FORM_IN_%s\""
|
||||||
|
" onclick=\"toggleComments('%s');return false;\"",
|
||||||
|
The_Colors[Gbl.Prefs.Theme],UniqueId);
|
||||||
Ico_PutIconTextLink (Icon,Ico_BLACK,Text);
|
Ico_PutIconTextLink (Icon,Ico_BLACK,Text);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
/***** Free onclick text *****/
|
|
||||||
free (OnClick);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -630,9 +625,8 @@ static void TmlCom_WriteAuthorName (const struct UsrData *UsrDat) // Author
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
|
|
||||||
/* Author's name */
|
/* Author's name */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Usr_ItsMe (UsrDat->UsrCod) ? Txt_My_public_profile :
|
HTM_BUTTON_Submit_Begin (Usr_ItsMe (UsrDat->UsrCod) ? Txt_My_public_profile :
|
||||||
Txt_Another_user_s_profile,
|
Txt_Another_user_s_profile,
|
||||||
NULL,
|
|
||||||
"class=\"Tml_COM_AUTHOR Tml_COM_AUTHOR_WIDTH BT_LINK DAT_%s BOLD\"",
|
"class=\"Tml_COM_AUTHOR Tml_COM_AUTHOR_WIDTH BT_LINK DAT_%s BOLD\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
HTM_Txt (UsrDat->FullName);
|
HTM_Txt (UsrDat->FullName);
|
||||||
|
|
|
@ -345,7 +345,7 @@ void TmlFrm_FormToShowHiddenComms (long NotCod,
|
||||||
free (OnSubmit);
|
free (OnSubmit);
|
||||||
|
|
||||||
/* Put icon and text with link to show the first hidden comments */
|
/* Put icon and text with link to show the first hidden comments */
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,
|
HTM_BUTTON_Submit_Begin (NULL,
|
||||||
"class=\"BT_LINK FORM_IN_%s\"",
|
"class=\"BT_LINK FORM_IN_%s\"",
|
||||||
The_Colors[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
if (asprintf (&Text,Txt_See_the_previous_X_COMMENTS,NumInitialComms) < 0)
|
if (asprintf (&Text,Txt_See_the_previous_X_COMMENTS,NumInitialComms) < 0)
|
||||||
|
|
|
@ -355,9 +355,8 @@ void TmlNot_WriteAuthorName (const struct UsrData *UsrDat,
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
|
|
||||||
/* Author's name */
|
/* Author's name */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Usr_ItsMe (UsrDat->UsrCod) ? Txt_My_public_profile :
|
HTM_BUTTON_Submit_Begin (Usr_ItsMe (UsrDat->UsrCod) ? Txt_My_public_profile :
|
||||||
Txt_Another_user_s_profile,
|
Txt_Another_user_s_profile,
|
||||||
NULL,
|
|
||||||
"class=\"%s\"",Class);
|
"class=\"%s\"",Class);
|
||||||
HTM_Txt (UsrDat->FullName);
|
HTM_Txt (UsrDat->FullName);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
@ -543,7 +542,7 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
||||||
const struct For_Forums *Forums)
|
const struct For_Forums *Forums)
|
||||||
{
|
{
|
||||||
extern const Act_Action_t For_ActionsSeeFor[For_NUM_TYPES_FORUM];
|
extern const Act_Action_t For_ActionsSeeFor[For_NUM_TYPES_FORUM];
|
||||||
extern const char *The_ClassFormInBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES];
|
extern const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES];
|
||||||
extern const char *Txt_not_available;
|
extern const char *Txt_not_available;
|
||||||
char *Anchor = NULL;
|
char *Anchor = NULL;
|
||||||
|
@ -689,9 +688,9 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
||||||
|
|
||||||
/***** Icon and link to go to action *****/
|
/***** Icon and link to go to action *****/
|
||||||
/* Begin button */
|
/* Begin button */
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_TIMELINE_NOTE[Not->Type],NULL,
|
HTM_BUTTON_Submit_Begin (Txt_TIMELINE_NOTE[Not->Type],
|
||||||
"class=\"BT_LINK %s ICO_HIGHLIGHT\"",
|
"class=\"BT_LINK FORM_IN_WHITE %s ICO_HIGHLIGHT\"",
|
||||||
The_ClassFormInBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
/* Icon and text */
|
/* Icon and text */
|
||||||
Ico_PutIcon (Tml_Icons[Not->Type],Ico_BLACK,
|
Ico_PutIcon (Tml_Icons[Not->Type],Ico_BLACK,
|
||||||
|
|
|
@ -243,8 +243,7 @@ void TmlPst_PutTextarea (const char *Placeholder,const char *ClassTextArea)
|
||||||
free (ClassInput);
|
free (ClassInput);
|
||||||
|
|
||||||
/***** Submit button *****/
|
/***** Submit button *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (NULL,NULL,
|
HTM_BUTTON_Submit_Begin (NULL,"class=\"BT_SUBMIT_INLINE BT_CREATE\"");
|
||||||
"class=\"BT_SUBMIT_INLINE BT_CREATE\"");
|
|
||||||
HTM_Txt (Txt_Post);
|
HTM_Txt (Txt_Post);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
|
|
@ -458,7 +458,7 @@ Tml_TopMessage_t TmlPub_GetTopMessage (TmlPub_Type_t PubType)
|
||||||
|
|
||||||
void TmlPub_PutLinkToViewNewPubs (void)
|
void TmlPub_PutLinkToViewNewPubs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormInBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_See_new_activity;
|
extern const char *Txt_See_new_activity;
|
||||||
|
|
||||||
/***** Link to view (show hidden) new publications *****/
|
/***** Link to view (show hidden) new publications *****/
|
||||||
|
@ -469,9 +469,9 @@ void TmlPub_PutLinkToViewNewPubs (void)
|
||||||
" style=\"display:none;\"");
|
" style=\"display:none;\"");
|
||||||
|
|
||||||
/* Begin anchor */
|
/* Begin anchor */
|
||||||
HTM_A_Begin ("href=\"\" class=\"%s\""
|
HTM_A_Begin ("href=\"\" class=\"FORM_IN_%s BOLD\""
|
||||||
" onclick=\"moveNewTimelineToTimeline();return false;\"",
|
" onclick=\"moveNewTimelineToTimeline();return false;\"",
|
||||||
The_ClassFormInBoxBold[Gbl.Prefs.Theme]);
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
/* Text */
|
/* Text */
|
||||||
HTM_TxtF ("%s (",Txt_See_new_activity);
|
HTM_TxtF ("%s (",Txt_See_new_activity);
|
||||||
|
@ -493,7 +493,7 @@ void TmlPub_PutLinkToViewNewPubs (void)
|
||||||
|
|
||||||
void TmlPub_PutLinkToViewOldPubs (void)
|
void TmlPub_PutLinkToViewOldPubs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxBold[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_See_more;
|
extern const char *Txt_See_more;
|
||||||
|
|
||||||
/***** Begin container *****/
|
/***** Begin container *****/
|
||||||
|
@ -502,10 +502,10 @@ void TmlPub_PutLinkToViewOldPubs (void)
|
||||||
|
|
||||||
|
|
||||||
/***** Put button to refresh *****/
|
/***** Put button to refresh *****/
|
||||||
HTM_BUTTON_OnClick_Begin (Txt_See_more,
|
HTM_BUTTON_Begin (Txt_See_more,
|
||||||
The_ClassFormLinkInBoxBold[Gbl.Prefs.Theme],
|
"class=\"BT_LINK FORM_IN_%s BOLD\""
|
||||||
"refreshOldTimeline();"
|
" onclick=\"refreshOldTimeline();return false;\"",
|
||||||
"return false;");
|
The_Colors[Gbl.Prefs.Theme]);
|
||||||
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_See_more);
|
Ico_PutIconTextLink ("recycle.svg",Ico_BLACK,Txt_See_more);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
|
15
swad_user.c
15
swad_user.c
|
@ -1366,7 +1366,7 @@ void Usr_WriteLoggedUsrHead (void)
|
||||||
if (NumAvailableRoles == 1)
|
if (NumAvailableRoles == 1)
|
||||||
{
|
{
|
||||||
Frm_BeginForm (ActFrmRolSes);
|
Frm_BeginForm (ActFrmRolSes);
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_Role,NULL,"class=\"BT_LINK\"");
|
HTM_BUTTON_Submit_Begin (Txt_Role,"class=\"BT_LINK\"");
|
||||||
HTM_Txt (Txt_ROLES_SINGUL_Abc[Gbl.Usrs.Me.Role.Logged][Gbl.Usrs.Me.UsrDat.Sex]);
|
HTM_Txt (Txt_ROLES_SINGUL_Abc[Gbl.Usrs.Me.Role.Logged][Gbl.Usrs.Me.UsrDat.Sex]);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
@ -3661,7 +3661,7 @@ void Usr_ShowFormsToSelectUsrListType (void (*FuncParams) (void *Args),void *Arg
|
||||||
static void Set_FormToSelectUsrListType (void (*FuncParams) (void *Args),void *Args,
|
static void Set_FormToSelectUsrListType (void (*FuncParams) (void *Args),void *Args,
|
||||||
Set_ShowUsrsType_t ListType)
|
Set_ShowUsrsType_t ListType)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormLinkInBoxNoWrap[The_NUM_THEMES];
|
extern const char *The_Colors[The_NUM_THEMES];
|
||||||
extern const char *Txt_USR_LIST_TYPES[Set_NUM_USR_LIST_TYPES];
|
extern const char *Txt_USR_LIST_TYPES[Set_NUM_USR_LIST_TYPES];
|
||||||
|
|
||||||
/***** Begin form *****/
|
/***** Begin form *****/
|
||||||
|
@ -3674,10 +3674,11 @@ static void Set_FormToSelectUsrListType (void (*FuncParams) (void *Args),void *A
|
||||||
FuncParams (Args);
|
FuncParams (Args);
|
||||||
|
|
||||||
/***** Link and image *****/
|
/***** Link and image *****/
|
||||||
HTM_BUTTON_OnSubmit_Begin (Txt_USR_LIST_TYPES[ListType],
|
HTM_BUTTON_Submit_Begin (Txt_USR_LIST_TYPES[ListType],
|
||||||
Gbl.Action.Act == ActReqMsgUsr ? "CopyMessageToHiddenFields();" :
|
"class=\"BT_LINK FORM_IN_%s NOWRAP\"%s",
|
||||||
NULL,
|
The_Colors[Gbl.Prefs.Theme],
|
||||||
"class=\"%s\"",The_ClassFormLinkInBoxNoWrap[Gbl.Prefs.Theme]);
|
Gbl.Action.Act == ActReqMsgUsr ? " onsubmit=\"CopyMessageToHiddenFields();\"" :
|
||||||
|
"");
|
||||||
Ico_PutIcon (Usr_IconsClassPhotoOrList[ListType],Ico_BLACK,
|
Ico_PutIcon (Usr_IconsClassPhotoOrList[ListType],Ico_BLACK,
|
||||||
Txt_USR_LIST_TYPES[ListType],"ICO20x20");
|
Txt_USR_LIST_TYPES[ListType],"ICO20x20");
|
||||||
HTM_TxtF (" %s",Txt_USR_LIST_TYPES[ListType]);
|
HTM_TxtF (" %s",Txt_USR_LIST_TYPES[ListType]);
|
||||||
|
@ -6462,7 +6463,7 @@ void Usr_ShowTableCellWithUsrData (struct UsrData *UsrDat,unsigned NumRows)
|
||||||
/* Begin form to go to user's record card */
|
/* Begin form to go to user's record card */
|
||||||
Frm_BeginForm (NextAction[UsrDat->Roles.InCurrentCrs]);
|
Frm_BeginForm (NextAction[UsrDat->Roles.InCurrentCrs]);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EnUsrCod);
|
||||||
HTM_BUTTON_OnSubmit_Begin (UsrDat->FullName,NULL,
|
HTM_BUTTON_Submit_Begin (UsrDat->FullName,
|
||||||
"class=\"BT_LINK AUTHOR_TXT\"");
|
"class=\"BT_LINK AUTHOR_TXT\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user