mirror of https://github.com/acanas/swad-core.git
Version19.58
This commit is contained in:
parent
837a8a4dcd
commit
b215723389
22
swad_HTML.c
22
swad_HTML.c
|
@ -69,6 +69,7 @@ static unsigned HTM_DD_NestingLevel = 0;
|
||||||
static unsigned HTM_A_NestingLevel = 0;
|
static unsigned HTM_A_NestingLevel = 0;
|
||||||
static unsigned HTM_SCRIPT_NestingLevel = 0;
|
static unsigned HTM_SCRIPT_NestingLevel = 0;
|
||||||
static unsigned HTM_LABEL_NestingLevel = 0;
|
static unsigned HTM_LABEL_NestingLevel = 0;
|
||||||
|
static unsigned HTM_BUTTON_NestingLevel = 0;
|
||||||
static unsigned HTM_TEXTAREA_NestingLevel = 0;
|
static unsigned HTM_TEXTAREA_NestingLevel = 0;
|
||||||
static unsigned HTM_SELECT_NestingLevel = 0;
|
static unsigned HTM_SELECT_NestingLevel = 0;
|
||||||
|
|
||||||
|
@ -1215,6 +1216,27 @@ void HTM_INPUT_CHECKBOX (const char *Name,bool SubmitOnChange,
|
||||||
fprintf (Gbl.F.Out," />");
|
fprintf (Gbl.F.Out," />");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/********************************** Buttons **********************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void HTM_BUTTON_Begin (const char *Class)
|
||||||
|
{
|
||||||
|
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"%s\">",Class);
|
||||||
|
|
||||||
|
HTM_BUTTON_NestingLevel++;
|
||||||
|
}
|
||||||
|
|
||||||
|
void HTM_BUTTON_End (void)
|
||||||
|
{
|
||||||
|
if (HTM_BUTTON_NestingLevel == 0) // No BUTTON open
|
||||||
|
Ale_ShowAlert (Ale_ERROR,"Trying to close unopened BUTTON.");
|
||||||
|
|
||||||
|
fprintf (Gbl.F.Out,"</button>");
|
||||||
|
|
||||||
|
HTM_BUTTON_NestingLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/********************************* Text areas ********************************/
|
/********************************* Text areas ********************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -127,6 +127,9 @@ void HTM_INPUT_RADIO (const char *Name,bool SubmitOnClick,
|
||||||
void HTM_INPUT_CHECKBOX (const char *Name,bool SubmitOnChange,
|
void HTM_INPUT_CHECKBOX (const char *Name,bool SubmitOnChange,
|
||||||
const char *fmt,...);
|
const char *fmt,...);
|
||||||
|
|
||||||
|
void HTM_BUTTON_Begin (const char *Class);
|
||||||
|
void HTM_BUTTON_End (void);
|
||||||
|
|
||||||
void HTM_TEXTAREA_Begin (const char *fmt,...);
|
void HTM_TEXTAREA_Begin (const char *fmt,...);
|
||||||
void HTM_TEXTAREA_End (void);
|
void HTM_TEXTAREA_End (void);
|
||||||
|
|
||||||
|
|
|
@ -100,53 +100,47 @@ 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\"");
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT BT_CREATE\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT BT_CREATE");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Btn_PutCreateButtonInline (const char *TxtButton)
|
void Btn_PutCreateButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT_INLINE BT_CREATE\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT_INLINE BT_CREATE");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Btn_PutConfirmButton (const char *TxtButton)
|
void Btn_PutConfirmButton (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT BT_CONFIRM\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT BT_CONFIRM");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Btn_PutConfirmButtonInline (const char *TxtButton)
|
void Btn_PutConfirmButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT_INLINE BT_CONFIRM\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT_INLINE BT_CONFIRM");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Btn_PutRemoveButton (const char *TxtButton)
|
void Btn_PutRemoveButton (const char *TxtButton)
|
||||||
{
|
{
|
||||||
HTM_DIV_Begin ("class=\"CM\"");
|
HTM_DIV_Begin ("class=\"CM\"");
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT BT_REMOVE\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT BT_REMOVE");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Btn_PutRemoveButtonInline (const char *TxtButton)
|
void Btn_PutRemoveButtonInline (const char *TxtButton)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<button type=\"submit\" class=\"BT_SUBMIT_INLINE BT_REMOVE\">"
|
HTM_BUTTON_Begin ("BT_SUBMIT_INLINE BT_REMOVE");
|
||||||
"%s"
|
fprintf (Gbl.F.Out,"%s",TxtButton);
|
||||||
"</button>",
|
HTM_BUTTON_End ();
|
||||||
TxtButton);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -487,7 +487,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.57 (2019-11-09)"
|
#define Log_PLATFORM_VERSION "SWAD 19.58 (2019-11-09)"
|
||||||
#define CSS_FILE "swad19.47.css"
|
#define CSS_FILE "swad19.47.css"
|
||||||
#define JS_FILE "swad19.39.js"
|
#define JS_FILE "swad19.39.js"
|
||||||
/*
|
/*
|
||||||
|
@ -495,6 +495,7 @@ ps2pdf source.ps destination.pdf
|
||||||
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
||||||
// TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia)
|
// TODO: Importante: filtrar proyectos por usuarios (igual que en trabajos o en asistencia)
|
||||||
|
|
||||||
|
Version 19.58: Nov 09, 2019 Code refactoring in HTML definition lists. (246169 lines)
|
||||||
Version 19.57: Nov 09, 2019 Code refactoring in HTML definition lists. (246156 lines)
|
Version 19.57: Nov 09, 2019 Code refactoring in HTML definition lists. (246156 lines)
|
||||||
Version 19.56: Nov 08, 2019 Fixed bug in groups.
|
Version 19.56: Nov 08, 2019 Fixed bug in groups.
|
||||||
New constants for sizes of numerical strings. (246104 lines)
|
New constants for sizes of numerical strings. (246104 lines)
|
||||||
|
|
Loading…
Reference in New Issue