mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-13 04:04:35 +02:00
Version19.73
This commit is contained in:
parent
da5bcb3977
commit
e269fbd9b9
|
@ -1751,13 +1751,13 @@ a:hover /* Default ==> underlined */
|
||||||
{
|
{
|
||||||
width:16px;
|
width:16px;
|
||||||
height:16px;
|
height:16px;
|
||||||
margin-top:-2px;
|
/* margin-top:-2px; */
|
||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
.CONTEXT_ICO_x16
|
.CONTEXT_ICO_x16
|
||||||
{
|
{
|
||||||
height:16px;
|
height:16px;
|
||||||
margin-top:-2px;
|
/* margin-top:-2px; */
|
||||||
vertical-align:middle;
|
vertical-align:middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2034,7 +2034,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
/******************************* User's photo ********************************/
|
/******************************* User's photo ********************************/
|
||||||
.PHOTO12x16 {width: 12px; height: 16px; border-radius:1px; vertical-align:middle; margin-top:-2px;}
|
.PHOTO12x16 {width: 12px; height: 16px; border-radius:1px; vertical-align:middle; margin-top:-2px;}
|
||||||
.PHOTO15x20 {width: 15px; height: 20px; border-radius:2px; vertical-align:middle;}
|
.PHOTO15x20 {width: 15px; height: 20px; border-radius:2px; vertical-align:middle;}
|
||||||
.PHOTO15x20B {width: 15px; height: 20px; border-radius:2px; display:block; margin:0 auto;}
|
.PHOTO15x20B {width: 15px; height: 20px; border-radius:2px; vertical-align:middle; display:block; margin:0 auto;}
|
||||||
.PHOTO18x24 {width: 18px; height: 24px; border-radius:2px; vertical-align:middle;}
|
.PHOTO18x24 {width: 18px; height: 24px; border-radius:2px; vertical-align:middle;}
|
||||||
.PHOTO21x28 {width: 21px; height: 28px; border-radius:2px; vertical-align:middle;}
|
.PHOTO21x28 {width: 21px; height: 28px; border-radius:2px; vertical-align:middle;}
|
||||||
.PHOTO30x40 {width: 30px; height: 40px; border-radius:2px; vertical-align:middle;}
|
.PHOTO30x40 {width: 30px; height: 40px; border-radius:2px; vertical-align:middle;}
|
||||||
|
@ -2278,6 +2278,8 @@ a:hover img.CENTRE_PHOTO_SHOW
|
||||||
.LST_EDIT_REC_HID {width:250px; color:#89BE87; font-weight:bold; font-size:11pt; height:20px; padding:0; margin:-1px; border-width:1px; border-style:solid; border-color:#ECE9D8;}
|
.LST_EDIT_REC_HID {width:250px; color:#89BE87; font-weight:bold; font-size:11pt; height:20px; padding:0; margin:-1px; border-width:1px; border-style:solid; border-color:#ECE9D8;}
|
||||||
.LST_EDIT_ROWS {width:30px; color:#202020; font-weight:bold; font-size:11pt; height:20px; padding:0; margin:-1px; border-width:1px; border-style:solid; border-color:#ECE9D8;}
|
.LST_EDIT_ROWS {width:30px; color:#202020; font-weight:bold; font-size:11pt; height:20px; padding:0; margin:-1px; border-width:1px; border-style:solid; border-color:#ECE9D8;}
|
||||||
|
|
||||||
|
.LICENSE {max-width:260px;}
|
||||||
|
|
||||||
/************** Paragraph (margin on top and bottom of a div) ****************/
|
/************** Paragraph (margin on top and bottom of a div) ****************/
|
||||||
.PAR
|
.PAR
|
||||||
{
|
{
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
|
@ -2494,7 +2494,7 @@ static void Ctr_PutFormToCreateCentre (void)
|
||||||
/***** Place *****/
|
/***** Place *****/
|
||||||
HTM_TD_Begin ("class=\"LM\"");
|
HTM_TD_Begin ("class=\"LM\"");
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"name=\"PlcCod\" class=\"PLC_SEL\">");
|
"name=\"PlcCod\" class=\"PLC_SEL\"");
|
||||||
HTM_OPTION (HTM_Type_STRING,"0",
|
HTM_OPTION (HTM_Type_STRING,"0",
|
||||||
Ctr_EditingCtr->PlcCod == 0,false,
|
Ctr_EditingCtr->PlcCod == 0,false,
|
||||||
"%s",Txt_Another_place);
|
"%s",Txt_Another_place);
|
||||||
|
|
|
@ -488,13 +488,14 @@ 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.72.2 (2019-11-18)"
|
#define Log_PLATFORM_VERSION "SWAD 19.73 (2019-11-18)"
|
||||||
#define CSS_FILE "swad19.71.css"
|
#define CSS_FILE "swad19.73.css"
|
||||||
#define JS_FILE "swad19.70.js"
|
#define JS_FILE "swad19.70.js"
|
||||||
/*
|
/*
|
||||||
// TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.)
|
// TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.)
|
||||||
// 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.
|
||||||
|
|
||||||
|
Version 19.73: Nov 18, 2019 Changes in file browser. (247005 lines)
|
||||||
Version 19.72.2: Nov 18, 2019 Fixed bugs related to buttons. (247024 lines)
|
Version 19.72.2: Nov 18, 2019 Fixed bugs related to buttons. (247024 lines)
|
||||||
Version 19.72.1: Nov 18, 2019 Fixed bugs related to buttons. (247023 lines)
|
Version 19.72.1: Nov 18, 2019 Fixed bugs related to buttons. (247023 lines)
|
||||||
Version 19.72: Nov 17, 2019 Converted animated links to buttons. (247014 lines)
|
Version 19.72: Nov 17, 2019 Converted animated links to buttons. (247014 lines)
|
||||||
|
|
|
@ -1211,7 +1211,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
HTM_SELECT_End ();
|
HTM_SELECT_End ();
|
||||||
|
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"name=\"ExamMinute\">");
|
"name=\"ExamMinute\"");
|
||||||
for (Minute = 0;
|
for (Minute = 0;
|
||||||
Minute <= 59;
|
Minute <= 59;
|
||||||
Minute++)
|
Minute++)
|
||||||
|
@ -1238,7 +1238,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
if (TypeViewExamAnnouncement == Exa_FORM_VIEW)
|
||||||
{
|
{
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"name=\"DurationHour\">");
|
"name=\"DurationHour\"");
|
||||||
for (Hour = 0;
|
for (Hour = 0;
|
||||||
Hour <= 8;
|
Hour <= 8;
|
||||||
Hour++)
|
Hour++)
|
||||||
|
@ -1248,7 +1248,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,
|
||||||
HTM_SELECT_End ();
|
HTM_SELECT_End ();
|
||||||
|
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"name=\"DurationMinute\">");
|
"name=\"DurationMinute\"");
|
||||||
for (Minute = 0;
|
for (Minute = 0;
|
||||||
Minute <= 59;
|
Minute <= 59;
|
||||||
Minute++)
|
Minute++)
|
||||||
|
|
|
@ -1311,9 +1311,9 @@ static void Brw_PutIconFolderWithPlus (const char *FileBrowserId,const char *Row
|
||||||
bool Open,bool Hidden);
|
bool Open,bool Hidden);
|
||||||
|
|
||||||
static void Brw_PutIconNewFileOrFolder (void);
|
static void Brw_PutIconNewFileOrFolder (void);
|
||||||
static void Brw_PutIconFileWithLinkToViewMetadata (unsigned Size,
|
static void Brw_PutIconFileWithLinkToViewMetadata (struct FileMetadata *FileMetadata);
|
||||||
struct FileMetadata *FileMetadata);
|
static void Brw_PutIconFile (Brw_FileType_t FileType,const char *FileName,
|
||||||
static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *FileName);
|
const char *Class,bool Input);
|
||||||
|
|
||||||
static void Brw_PutButtonToDownloadZIPOfAFolder (void);
|
static void Brw_PutButtonToDownloadZIPOfAFolder (void);
|
||||||
|
|
||||||
|
@ -5593,7 +5593,7 @@ static bool Brw_WriteRowFileBrowser (unsigned Level,const char *RowId,
|
||||||
|
|
||||||
/***** Indentation depending on level, icon, and file/folder name *****/
|
/***** Indentation depending on level, icon, and file/folder name *****/
|
||||||
/* Start column */
|
/* Start column */
|
||||||
HTM_TD_Begin ("class=\"NO_BR LT COLOR%u\" style=\"width:99%%;\"",Gbl.RowEvenOdd);
|
HTM_TD_Begin ("class=\"NO_BR LM COLOR%u\" style=\"width:99%%;\"",Gbl.RowEvenOdd);
|
||||||
|
|
||||||
HTM_TABLE_Begin (NULL);
|
HTM_TABLE_Begin (NULL);
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
@ -5616,12 +5616,8 @@ static bool Brw_WriteRowFileBrowser (unsigned Level,const char *RowId,
|
||||||
/* Icon with folder */
|
/* Icon with folder */
|
||||||
Brw_PutIconFolder (Level,FileBrowserId,RowId,IconThisRow);
|
Brw_PutIconFolder (Level,FileBrowserId,RowId,IconThisRow);
|
||||||
else // File or link
|
else // File or link
|
||||||
{
|
|
||||||
/* Icon with file type or link */
|
/* Icon with file type or link */
|
||||||
HTM_TD_Begin ("class=\"BM%u\"",Gbl.RowEvenOdd);
|
Brw_PutIconFileWithLinkToViewMetadata (&FileMetadata);
|
||||||
Brw_PutIconFileWithLinkToViewMetadata (16,&FileMetadata);
|
|
||||||
HTM_TD_End ();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check if is a new file or folder */
|
/* Check if is a new file or folder */
|
||||||
// If our last access was before the last modify ==> indicate the file is new by putting a blinking star
|
// If our last access was before the last modify ==> indicate the file is new by putting a blinking star
|
||||||
|
@ -5992,7 +5988,7 @@ static void Brw_PutIconFolder (unsigned Level,
|
||||||
bool ICanCreate;
|
bool ICanCreate;
|
||||||
|
|
||||||
/***** Start cell *****/
|
/***** Start cell *****/
|
||||||
HTM_TD_Begin ("class=\"LM\" style=\"width:%upx;\"",Level * 20);
|
HTM_TD_Begin ("class=\"BM%u\"",Gbl.RowEvenOdd);
|
||||||
|
|
||||||
/***** Put icon to create a new file or folder *****/
|
/***** Put icon to create a new file or folder *****/
|
||||||
if ((ICanCreate = Brw_CheckIfICanCreateIntoFolder (Level))) // I can create a new file or folder
|
if ((ICanCreate = Brw_CheckIfICanCreateIntoFolder (Level))) // I can create a new file or folder
|
||||||
|
@ -6131,11 +6127,10 @@ static void Brw_PutIconNewFileOrFolder (void)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
// FileType can be Brw_IS_FILE or Brw_IS_LINK
|
// FileType can be Brw_IS_FILE or Brw_IS_LINK
|
||||||
|
|
||||||
static void Brw_PutIconFileWithLinkToViewMetadata (unsigned Size,
|
static void Brw_PutIconFileWithLinkToViewMetadata (struct FileMetadata *FileMetadata)
|
||||||
struct FileMetadata *FileMetadata)
|
|
||||||
{
|
{
|
||||||
extern const char *Txt_View_data;
|
/***** Start cell *****/
|
||||||
char *Class;
|
HTM_TD_Begin ("class=\"BM%u\"",Gbl.RowEvenOdd);
|
||||||
|
|
||||||
/***** Begin form *****/
|
/***** Begin form *****/
|
||||||
Frm_StartForm (Brw_ActReqDatFile[Gbl.FileBrowser.Type]);
|
Frm_StartForm (Brw_ActReqDatFile[Gbl.FileBrowser.Type]);
|
||||||
|
@ -6144,25 +6139,23 @@ static void Brw_PutIconFileWithLinkToViewMetadata (unsigned Size,
|
||||||
Brw_IS_UNKNOWN, // Not used
|
Brw_IS_UNKNOWN, // Not used
|
||||||
FileMetadata->FilCod);
|
FileMetadata->FilCod);
|
||||||
|
|
||||||
/***** Name and link of the file or folder *****/
|
|
||||||
if (asprintf (&Class,"BT_LINK %s",Gbl.FileBrowser.TxtStyle) < 0)
|
|
||||||
Lay_NotEnoughMemoryExit ();
|
|
||||||
HTM_BUTTON_Begin (Txt_View_data,Class,NULL);
|
|
||||||
free (Class);
|
|
||||||
|
|
||||||
/***** Icon depending on the file extension *****/
|
/***** Icon depending on the file extension *****/
|
||||||
Brw_PutIconFile (Size,FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name);
|
Brw_PutIconFile (FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name,
|
||||||
|
"CONTEXT_OPT ICO_HIGHLIGHT CONTEXT_ICO_16x16",true);
|
||||||
|
|
||||||
/***** End link and form *****/
|
/***** End form *****/
|
||||||
HTM_BUTTON_End ();
|
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
||||||
|
/***** End cell *****/
|
||||||
|
HTM_TD_End ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************************** Put icon of a file ****************************/
|
/***************************** Put icon of a file ****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *FileName)
|
static void Brw_PutIconFile (Brw_FileType_t FileType,const char *FileName,
|
||||||
|
const char *Class,bool Input)
|
||||||
{
|
{
|
||||||
extern const unsigned Ext_NUM_FILE_EXT_ALLOWED;
|
extern const unsigned Ext_NUM_FILE_EXT_ALLOWED;
|
||||||
extern const char *Ext_FileExtensionsAllowed[];
|
extern const char *Ext_FileExtensionsAllowed[];
|
||||||
|
@ -6176,22 +6169,24 @@ static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *F
|
||||||
|
|
||||||
/***** Icon depending on the file extension *****/
|
/***** Icon depending on the file extension *****/
|
||||||
if (FileType == Brw_IS_LINK)
|
if (FileType == Brw_IS_LINK)
|
||||||
Ico_PutIcon ("link.svg",Txt_Link,(Size == 16) ? "CONTEXT_ICO_16x16" :
|
{
|
||||||
"ICO40x40");
|
if (Input)
|
||||||
|
HTM_INPUT_IMAGE (Cfg_URL_ICON_PUBLIC,"link.svg",Txt_Link,Class);
|
||||||
|
else
|
||||||
|
Ico_PutIcon ("link.svg",Txt_Link,Class);
|
||||||
|
}
|
||||||
else // FileType == Brw_IS_FILE
|
else // FileType == Brw_IS_FILE
|
||||||
{
|
{
|
||||||
if (asprintf (&URL,"%s%ux%u",
|
if (asprintf (&URL,"%s32x32",
|
||||||
CfG_URL_ICON_FILEXT_PUBLIC,
|
CfG_URL_ICON_FILEXT_PUBLIC) < 0)
|
||||||
Size,Size) < 0)
|
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
for (DocType = 0, NotFound = true;
|
for (DocType = 0, NotFound = true;
|
||||||
DocType < Ext_NUM_FILE_EXT_ALLOWED && NotFound;
|
DocType < Ext_NUM_FILE_EXT_ALLOWED && NotFound;
|
||||||
DocType++)
|
DocType++)
|
||||||
if (Str_FileIs (FileName,Ext_FileExtensionsAllowed[DocType]))
|
if (Str_FileIs (FileName,Ext_FileExtensionsAllowed[DocType]))
|
||||||
{
|
{
|
||||||
if (asprintf (&Icon,"%s%ux%u.gif",
|
if (asprintf (&Icon,"%s32x32.gif",
|
||||||
Ext_FileExtensionsAllowed[DocType],
|
Ext_FileExtensionsAllowed[DocType]) < 0)
|
||||||
Size,Size) < 0)
|
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
if (asprintf (&Title,Txt_X_file,
|
if (asprintf (&Title,Txt_X_file,
|
||||||
Ext_FileExtensionsAllowed[DocType]) < 0)
|
Ext_FileExtensionsAllowed[DocType]) < 0)
|
||||||
|
@ -6200,15 +6195,17 @@ static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *F
|
||||||
}
|
}
|
||||||
if (NotFound)
|
if (NotFound)
|
||||||
{
|
{
|
||||||
if (asprintf (&Icon,"xxx%ux%u.gif",Size,Size) < 0)
|
if (asprintf (&Icon,"xxx32x32.gif") < 0)
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
if (asprintf (&Title,"%s","") < 0)
|
if (asprintf (&Title,"%s","") < 0)
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Input)
|
||||||
|
HTM_INPUT_IMAGE (URL,Icon,Title,Class);
|
||||||
|
else
|
||||||
HTM_IMG (URL,Icon,Title,
|
HTM_IMG (URL,Icon,Title,
|
||||||
"class=\"CONTEXT_OPT ICO_HIGHLIGHT %s\"",
|
"class=\"%s\"",Class);
|
||||||
(Size == 16) ? "CONTEXT_ICO_16x16" :
|
|
||||||
"ICO40x40");
|
|
||||||
free (Title);
|
free (Title);
|
||||||
free (Icon);
|
free (Icon);
|
||||||
free (URL);
|
free (URL);
|
||||||
|
@ -6307,21 +6304,20 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic)
|
||||||
Gbl.FileBrowser.TxtStyle);
|
Gbl.FileBrowser.TxtStyle);
|
||||||
|
|
||||||
HTM_NBSP ();
|
HTM_NBSP ();
|
||||||
HTM_DIV_Begin ("class=\"FILENAME\"");
|
|
||||||
|
|
||||||
Frm_StartForm (Brw_ActDowFile[Gbl.FileBrowser.Type]);
|
Frm_StartForm (Brw_ActDowFile[Gbl.FileBrowser.Type]);
|
||||||
Brw_PutImplicitParamsFileBrowser ();
|
Brw_PutImplicitParamsFileBrowser ();
|
||||||
|
|
||||||
/* Link to the form and to the file */
|
/* Link to the form and to the file */
|
||||||
if (asprintf (&Class,"BT_LINK %s",Gbl.FileBrowser.TxtStyle) < 0)
|
if (asprintf (&Class,"BT_LINK FILENAME %s",Gbl.FileBrowser.TxtStyle) < 0)
|
||||||
Lay_NotEnoughMemoryExit ();
|
Lay_NotEnoughMemoryExit ();
|
||||||
HTM_BUTTON_Begin ((Gbl.FileBrowser.Type == Brw_SHOW_MRK_CRS ||
|
HTM_BUTTON_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,
|
||||||
Class,NULL);
|
Class,NULL);
|
||||||
free (Class);
|
|
||||||
HTM_Txt (FileNameToShow);
|
HTM_Txt (FileNameToShow);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
free (Class);
|
||||||
Frm_EndForm ();
|
Frm_EndForm ();
|
||||||
|
|
||||||
/* Put icon to make public/private file */
|
/* Put icon to make public/private file */
|
||||||
|
@ -6329,7 +6325,6 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic)
|
||||||
Ico_PutIconOff ("unlock.svg",
|
Ico_PutIconOff ("unlock.svg",
|
||||||
Txt_Public_open_educational_resource_OER_for_everyone);
|
Txt_Public_open_educational_resource_OER_for_everyone);
|
||||||
|
|
||||||
HTM_DIV_End ();
|
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9511,11 +9506,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Filename *****/
|
/***** Filename *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Filename);
|
HTM_TxtF ("%s:",Txt_Filename);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
Brw_WriteSmallLinkToDownloadFile (URL,&FileMetadata,FileNameToShow);
|
Brw_WriteSmallLinkToDownloadFile (URL,&FileMetadata,FileNameToShow);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
@ -9524,11 +9519,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Publisher's data *****/
|
/***** Publisher's data *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Uploaded_by);
|
HTM_TxtF ("%s:",Txt_Uploaded_by);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
if (FileHasPublisher)
|
if (FileHasPublisher)
|
||||||
{
|
{
|
||||||
/* Show photo */
|
/* Show photo */
|
||||||
|
@ -9538,6 +9533,7 @@ void Brw_ShowFileMetadata (void)
|
||||||
"PHOTO15x20",Pho_ZOOM,false);
|
"PHOTO15x20",Pho_ZOOM,false);
|
||||||
|
|
||||||
/* Write name */
|
/* Write name */
|
||||||
|
HTM_NBSP ();
|
||||||
HTM_Txt (PublisherUsrDat.FullName);
|
HTM_Txt (PublisherUsrDat.FullName);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -9555,11 +9551,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
Fil_WriteFileSizeFull ((double) FileMetadata.Size,FileSizeStr);
|
Fil_WriteFileSizeFull ((double) FileMetadata.Size,FileSizeStr);
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_File_size);
|
HTM_TxtF ("%s:",Txt_File_size);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
HTM_Txt (FileSizeStr);
|
HTM_Txt (FileSizeStr);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
@ -9568,11 +9564,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Write the date *****/
|
/***** Write the date *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Date_of_creation);
|
HTM_TxtF ("%s:",Txt_Date_of_creation);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("id=\"filedate\" class=\"DAT LM\"");
|
HTM_TD_Begin ("id=\"filedate\" class=\"DAT LB\"");
|
||||||
Dat_WriteLocalDateHMSFromUTC ("filedate",FileMetadata.Time,
|
Dat_WriteLocalDateHMSFromUTC ("filedate",FileMetadata.Time,
|
||||||
Gbl.Prefs.DateFormat,Dat_SEPARATOR_COMMA,
|
Gbl.Prefs.DateFormat,Dat_SEPARATOR_COMMA,
|
||||||
true,true,true,0x7);
|
true,true,true,0x7);
|
||||||
|
@ -9583,14 +9579,14 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Private or public? *****/
|
/***** Private or public? *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"RM\"");
|
HTM_TD_Begin ("class=\"RT\"");
|
||||||
HTM_LABEL_Begin ("for=\"PublicFile\" class=\"%s\"",
|
HTM_LABEL_Begin ("for=\"PublicFile\" class=\"%s\"",
|
||||||
The_ClassFormInBox[Gbl.Prefs.Theme]);
|
The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Availability);
|
HTM_TxtF ("%s:",Txt_Availability);
|
||||||
HTM_LABEL_End ();
|
HTM_LABEL_End ();
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
if (ICanChangePublic) // I can change file to public
|
if (ICanChangePublic) // I can change file to public
|
||||||
{
|
{
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
|
@ -9624,7 +9620,7 @@ void Brw_ShowFileMetadata (void)
|
||||||
if (ICanEdit) // I can edit file properties
|
if (ICanEdit) // I can edit file properties
|
||||||
{
|
{
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"id=\"License\" name=\"License\">");
|
"id=\"License\" name=\"License\" class=\"LICENSE\"");
|
||||||
for (License = 0;
|
for (License = 0;
|
||||||
License < Brw_NUM_LICENSES;
|
License < Brw_NUM_LICENSES;
|
||||||
License++)
|
License++)
|
||||||
|
@ -9647,11 +9643,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
{
|
{
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_My_views);
|
HTM_TxtF ("%s:",Txt_My_views);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
HTM_Unsigned (FileMetadata.NumMyViews);
|
HTM_Unsigned (FileMetadata.NumMyViews);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
@ -9661,11 +9657,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Write number of identificated views *****/
|
/***** Write number of identificated views *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Identified_views);
|
HTM_TxtF ("%s:",Txt_Identified_views);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
HTM_TxtF ("%u ",FileMetadata.NumViewsFromLoggedUsrs);
|
HTM_TxtF ("%u ",FileMetadata.NumViewsFromLoggedUsrs);
|
||||||
HTM_TxtF ("(%u %s)",
|
HTM_TxtF ("(%u %s)",
|
||||||
FileMetadata.NumLoggedUsrs,
|
FileMetadata.NumLoggedUsrs,
|
||||||
|
@ -9678,11 +9674,11 @@ void Brw_ShowFileMetadata (void)
|
||||||
/***** Write number of public views *****/
|
/***** Write number of public views *****/
|
||||||
HTM_TR_Begin (NULL);
|
HTM_TR_Begin (NULL);
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"%s RM\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
HTM_TD_Begin ("class=\"%s RT\"",The_ClassFormInBox[Gbl.Prefs.Theme]);
|
||||||
HTM_TxtF ("%s:",Txt_Public_views);
|
HTM_TxtF ("%s:",Txt_Public_views);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
HTM_TD_Begin ("class=\"DAT LM\"");
|
HTM_TD_Begin ("class=\"DAT LB\"");
|
||||||
HTM_Unsigned (FileMetadata.NumPublicViews);
|
HTM_Unsigned (FileMetadata.NumPublicViews);
|
||||||
HTM_TD_End ();
|
HTM_TD_End ();
|
||||||
|
|
||||||
|
@ -10029,7 +10025,8 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,
|
||||||
|
|
||||||
/* Link begin */
|
/* Link begin */
|
||||||
HTM_BUTTON_Begin (Txt_Check_marks_in_the_file,"BT_LINK FILENAME_TXT",NULL);
|
HTM_BUTTON_Begin (Txt_Check_marks_in_the_file,"BT_LINK FILENAME_TXT",NULL);
|
||||||
Brw_PutIconFile (32,FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name);
|
Brw_PutIconFile (FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name,
|
||||||
|
"ICO40x40",false);
|
||||||
|
|
||||||
/* Name of the file of marks, link end and form end */
|
/* Name of the file of marks, link end and form end */
|
||||||
HTM_TxtF (" %s ",FileNameToShow);
|
HTM_TxtF (" %s ",FileNameToShow);
|
||||||
|
@ -10045,7 +10042,8 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,
|
||||||
/* Put anchor and filename */
|
/* Put anchor and filename */
|
||||||
HTM_A_Begin ("href=\"%s\" class=\"FILENAME_TXT\" title=\"%s\" target=\"_blank\"",
|
HTM_A_Begin ("href=\"%s\" class=\"FILENAME_TXT\" title=\"%s\" target=\"_blank\"",
|
||||||
URL,Title);
|
URL,Title);
|
||||||
Brw_PutIconFile (32,FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name);
|
Brw_PutIconFile (FileMetadata->FilFolLnk.Type,FileMetadata->FilFolLnk.Name,
|
||||||
|
"ICO40x40",false);
|
||||||
HTM_TxtF (" %s ",FileNameToShow);
|
HTM_TxtF (" %s ",FileNameToShow);
|
||||||
Ico_PutIcon ("download.svg",Title,"ICO40x40");
|
Ico_PutIcon ("download.svg",Title,"ICO40x40");
|
||||||
HTM_A_End ();
|
HTM_A_End ();
|
||||||
|
@ -12091,7 +12089,8 @@ static void Brw_WriteRowDocData (unsigned long *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
Ico_PutIcon ("folder-yellow.png",Txt_Folder,"CONTEXT_ICO_16x16");
|
Ico_PutIcon ("folder-yellow.png",Txt_Folder,"CONTEXT_ICO_16x16");
|
||||||
else
|
else
|
||||||
/* Icon with file type or link */
|
/* Icon with file type or link */
|
||||||
Brw_PutIconFile (16,FileMetadata.FilFolLnk.Type,FileMetadata.FilFolLnk.Name);
|
Brw_PutIconFile (FileMetadata.FilFolLnk.Type,FileMetadata.FilFolLnk.Name,
|
||||||
|
"CONTEXT_ICO_16x16",false);
|
||||||
HTM_TxtF (" %s",FileNameToShow);
|
HTM_TxtF (" %s",FileNameToShow);
|
||||||
HTM_BUTTON_End ();
|
HTM_BUTTON_End ();
|
||||||
|
|
||||||
|
|
|
@ -1191,7 +1191,7 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
else
|
else
|
||||||
Frm_StartForm (ActSeeOthPubPrf);
|
Frm_StartForm (ActSeeOthPubPrf);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
HTM_BUTTON_Begin (NULL,"BT_LINK",NULL);
|
HTM_BUTTON_Begin (NULL,"BT_LINK CM",NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Hidden div to pass user's name to Javascript *****/
|
/***** Hidden div to pass user's name to Javascript *****/
|
||||||
|
|
|
@ -455,7 +455,8 @@ void Sta_AskShowCrsHits (void)
|
||||||
HTM_TxtF ("(%s: ",Txt_results_per_page);
|
HTM_TxtF ("(%s: ",Txt_results_per_page);
|
||||||
HTM_SELECT_Begin (false,
|
HTM_SELECT_Begin (false,
|
||||||
"id=\"RowsPage\" name=\"RowsPage\"%s",
|
"id=\"RowsPage\" name=\"RowsPage\"%s",
|
||||||
Gbl.Stat.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST ? "" : " disabled=\"disabled\"");
|
Gbl.Stat.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST ? "" :
|
||||||
|
" disabled=\"disabled\"");
|
||||||
for (i = 0;
|
for (i = 0;
|
||||||
i < NUM_OPTIONS_ROWS_PER_PAGE;
|
i < NUM_OPTIONS_ROWS_PER_PAGE;
|
||||||
i++)
|
i++)
|
||||||
|
|
21
swad_text.c
21
swad_text.c
|
@ -52569,27 +52569,6 @@ const char *Txt_View_attendance =
|
||||||
"Ver presença";
|
"Ver presença";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_View_data =
|
|
||||||
#if L==1 // ca
|
|
||||||
"Veure dades";
|
|
||||||
#elif L==2 // de
|
|
||||||
"Siehe Daten";
|
|
||||||
#elif L==3 // en
|
|
||||||
"View data";
|
|
||||||
#elif L==4 // es
|
|
||||||
"Ver datos";
|
|
||||||
#elif L==5 // fr
|
|
||||||
"Voir les données";
|
|
||||||
#elif L==6 // gn
|
|
||||||
"Ver datos"; // Okoteve traducción
|
|
||||||
#elif L==7 // it
|
|
||||||
"Visualizza i dati";
|
|
||||||
#elif L==8 // pl
|
|
||||||
"Zobacz dane";
|
|
||||||
#elif L==9 // pt
|
|
||||||
"Ver os dados";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *Txt_View_email_addresses =
|
const char *Txt_View_email_addresses =
|
||||||
#if L==1 // ca
|
#if L==1 // ca
|
||||||
"Veure adreces de correu";
|
"Veure adreces de correu";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user