Version 22.107.16:May 07, 2023 Changes in edition of banners.

This commit is contained in:
acanas 2023-05-09 00:11:13 +02:00
parent b08a1a4f8f
commit 9337ab68f1
4 changed files with 73 additions and 88 deletions

View File

@ -789,75 +789,82 @@ void Ban_ContEditAfterChgBan (void)
static void Ban_PutFormToCreateBanner (const struct Ban_Banner *Ban) static void Ban_PutFormToCreateBanner (const struct Ban_Banner *Ban)
{ {
extern const char *Txt_Create_banner; extern const char *Txt_Actions[ActLst_NUM_ACTIONS];
extern const char *Txt_Create;
/***** Begin form *****/ /***** Begin fieldset *****/
Frm_BeginForm (ActNewBan); HTM_FIELDSET_Begin (NULL);
HTM_LEGEND (Txt_Actions[ActNewBan]);
/***** Begin box and table *****/ /***** Begin form *****/
Box_BoxTableBegin (NULL,NULL, Frm_BeginForm (ActNewBan);
NULL,NULL,
NULL,Box_NOT_CLOSABLE,2);
/***** Write heading *****/ /***** Begin table *****/
Ban_PutHeadBanners (); HTM_TABLE_BeginWidePadding (2);
/***** Table row for input fields *****/ /***** Write heading *****/
/* Begin table row */ Ban_PutHeadBanners ();
HTM_TR_Begin (NULL);
/* Banner code */ /***** Table row for input fields *****/
HTM_TD_Begin ("class=\"BM\""); /* Begin table row */
HTM_TD_End (); HTM_TR_Begin (NULL);
HTM_TD_Begin ("class=\"BM\""); /* Banner code */
HTM_TD_End (); HTM_TD_Begin ("class=\"BM\"");
HTM_TD_End ();
HTM_TD_Empty (1); HTM_TD_Begin ("class=\"BM\"");
HTM_TD_End ();
/* Banner short name */ HTM_TD_Empty (1);
HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,
HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_SHORT_NAME INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/* Banner full name */ /* Banner short name */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName, HTM_INPUT_TEXT ("ShortName",Ban_MAX_CHARS_SHRT_NAME,Ban->ShrtName,
HTM_DONT_SUBMIT_ON_CHANGE, HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_FULL_NAME INPUT_%s\"" "class=\"INPUT_SHORT_NAME INPUT_%s\""
" required=\"required\"", " required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
/* Banner image */ /* Banner full name */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img, HTM_INPUT_TEXT ("FullName",Ban_MAX_CHARS_FULL_NAME,Ban->FullName,
HTM_DONT_SUBMIT_ON_CHANGE, HTM_DONT_SUBMIT_ON_CHANGE,
"size=\"12\" class=\"INPUT_%s\"" "class=\"INPUT_FULL_NAME INPUT_%s\""
" required=\"required\"", " required=\"required\"",
The_GetSuffix ()); The_GetSuffix ());
HTM_TD_End (); HTM_TD_End ();
/* Banner WWW */ /* Banner image */
HTM_TD_Begin ("class=\"CM\""); HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_URL ("WWW",Ban->WWW,HTM_DONT_SUBMIT_ON_CHANGE, HTM_INPUT_TEXT ("Img",Ban_MAX_CHARS_IMAGE,Ban->Img,
"class=\"INPUT_WWW_NARROW INPUT_%s\"" HTM_DONT_SUBMIT_ON_CHANGE,
" required=\"required\"", "size=\"12\" class=\"INPUT_%s\""
The_GetSuffix ()); " required=\"required\"",
HTM_TD_End (); The_GetSuffix ());
HTM_TD_End ();
/* End table row */ /* Banner WWW */
HTM_TR_End (); HTM_TD_Begin ("class=\"CM\"");
HTM_INPUT_URL ("WWW",Ban->WWW,HTM_DONT_SUBMIT_ON_CHANGE,
"class=\"INPUT_WWW_NARROW INPUT_%s\""
" required=\"required\"",
The_GetSuffix ());
HTM_TD_End ();
/***** End table, send button and end box *****/ /* End table row */
Box_BoxTableWithButtonEnd (Btn_CREATE_BUTTON,Txt_Create_banner); HTM_TR_End ();
/***** End form *****/ /***** End table and send button *****/
Frm_EndForm (); HTM_TABLE_End ();
Btn_PutButton (Btn_CREATE_BUTTON,Txt_Create);
/***** End form *****/
Frm_EndForm ();
/***** End fieldset *****/
HTM_FIELDSET_End ();
} }
/*****************************************************************************/ /*****************************************************************************/

View File

@ -633,6 +633,7 @@ TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la ho
#define CSS_FILE "swad22.107.css" #define CSS_FILE "swad22.107.css"
#define JS_FILE "swad22.49.js" #define JS_FILE "swad22.49.js"
/* /*
Version 22.107.16:May 07, 2023 Changes in edition of banners. (337915 lines)
Version 22.107.15:May 07, 2023 Changes in edition of assignments. (337915 lines) Version 22.107.15:May 07, 2023 Changes in edition of assignments. (337915 lines)
Version 22.107.14:May 07, 2023 Changes in edition of announcements. (337936 lines) Version 22.107.14:May 07, 2023 Changes in edition of announcements. (337936 lines)
Version 22.107.13:May 07, 2023 Changes in edition of exam sessions. (337957 lines) Version 22.107.13:May 07, 2023 Changes in edition of exam sessions. (337957 lines)

View File

@ -6618,29 +6618,6 @@ const char *Txt_Create_another_type_of_degree =
"Create another type of degree"; // Çeviri lazim! "Create another type of degree"; // Çeviri lazim!
#endif #endif
const char *Txt_Create_banner =
#if L==1 // ca
"Crear banner";
#elif L==2 // de
"Werbebanner erstellen";
#elif L==3 // en
"Create banner";
#elif L==4 // es
"Crear banner";
#elif L==5 // fr
"Créer banniére";
#elif L==6 // gn
"Crear banner"; // Okoteve traducción
#elif L==7 // it
"Crea banner";
#elif L==8 // pl
"Utwórz banner";
#elif L==9 // pt
"Criar banner";
#elif L==10 // tr
"Create banner"; // Çeviri lazim!
#endif
const char *Txt_Create_building = const char *Txt_Create_building =
#if L==1 // ca #if L==1 // ca
"Crear edifici"; "Crear edifici";

View File

@ -1994,25 +1994,25 @@ const char *Txt_Actions[ActLst_NUM_ACTIONS] =
, ,
[ActNewBan] = [ActNewBan] =
#if L==1 // ca #if L==1 // ca
"Request creation of a banner" // Necessita traducció "Crear banner"
#elif L==2 // de #elif L==2 // de
"Request creation of a banner" // Need Übersetzung "Werbebanner erstellen"
#elif L==3 // en #elif L==3 // en
"Request creation of a banner" "Create banner"
#elif L==4 // es #elif L==4 // es
"Solicitar creaci&ocute;n de un banner" "Crear banner"
#elif L==5 // fr #elif L==5 // fr
"Request creation of a banner" // Besoin de traduction "Créer banniére"
#elif L==6 // gn #elif L==6 // gn
"Solicitar creaci&ocute;n de un banner" // Okoteve traducción "Omoheñói pancarta"
#elif L==7 // it #elif L==7 // it
"Request creation of a banner" // Bisogno di traduzione "Crea banner"
#elif L==8 // pl #elif L==8 // pl
"Request creation of a banner" // Potrzebujesz tlumaczenie "Utwórz banner"
#elif L==9 // pt #elif L==9 // pt
"Request creation of a banner" // Precisa de tradução "Criar banner"
#elif L==10 // tr #elif L==10 // tr
"Request creation of a banner" // Çeviri lazim! "Afiş oluştur"
#endif #endif
, ,
[ActRemBan] = [ActRemBan] =