mirror of https://github.com/acanas/swad-core.git
Version 17.8.1
This commit is contained in:
parent
3534acdf30
commit
be9274aee0
|
@ -252,13 +252,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 17.8 (2017-09-23)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 17.8.1 (2017-09-23)"
|
||||
#define CSS_FILE "swad17.0.css"
|
||||
#define JS_FILE "swad16.206.3.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 17.8.1: Sep 23, 2017 Icon to show all projects in a table. (230980 lines)
|
||||
Version 17.8: Sep 23, 2017 Projects can be ordered by start, end, title and department. (230963 lines)
|
||||
Version 17.7.1: Sep 23, 2017 Changes in listing of projects. (230764 lines)
|
||||
Version 17.7: Sep 23, 2017 Remove user from project. (230798 lines)
|
||||
|
|
|
@ -72,6 +72,7 @@ static bool Prj_CheckIfICanCreateProjects (void);
|
|||
static void Prj_PutIconsListProjects (void);
|
||||
static void Prj_PutIconToCreateNewPrj (void);
|
||||
static void Prj_PutButtonToCreateNewPrj (void);
|
||||
static void Prj_PutIconToShowAllData (void);
|
||||
static void Prj_ShowOneProject (struct Project *Prj,Prj_ProjectView_t ProjectView);
|
||||
static void Prj_ShowOneProjectDepartment (const struct Project *Prj,
|
||||
Prj_ProjectView_t ProjectView);
|
||||
|
@ -261,6 +262,9 @@ static void Prj_PutIconsListProjects (void)
|
|||
if (Prj_CheckIfICanCreateProjects ())
|
||||
Prj_PutIconToCreateNewPrj ();
|
||||
|
||||
/***** Put icon to show all data in a table *****/
|
||||
Prj_PutIconToShowAllData ();
|
||||
|
||||
/***** Put icon to show a figure *****/
|
||||
Gbl.Stat.FigureType = Sta_PROJECTS;
|
||||
Sta_PutIconToShowFigure ();
|
||||
|
@ -297,6 +301,20 @@ static void Prj_PutButtonToCreateNewPrj (void)
|
|||
Act_FormEnd ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************** Put button to create a new project *********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Prj_PutIconToShowAllData (void)
|
||||
{
|
||||
extern const char *Txt_Show_all_data_in_a_table;
|
||||
|
||||
Lay_PutContextualLink (ActSeePrj,NULL,Prj_PutParams,
|
||||
"table64x64.gif",
|
||||
Txt_Show_all_data_in_a_table,NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/********************** Show print view of one project ***********************/
|
||||
/*****************************************************************************/
|
||||
|
@ -470,26 +488,29 @@ static void Prj_ShowOneProjectDepartment (const struct Project *Prj,
|
|||
Prj_ProjectView_t ProjectView)
|
||||
{
|
||||
struct Department Dpt;
|
||||
bool PutLink;
|
||||
|
||||
/***** Get data of department *****/
|
||||
Dpt.DptCod = Prj->DptCod;
|
||||
Dpt_GetDataOfDepartmentByCod (&Dpt);
|
||||
|
||||
/***** Show department *****/
|
||||
PutLink = (ProjectView == Prj_LIST_PROJECTS && Dpt.WWW[0]);
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP",
|
||||
Prj->Hidden ? "DAT_LIGHT" :
|
||||
"DAT_N");
|
||||
if (ProjectView == Prj_LIST_PROJECTS)
|
||||
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
|
||||
fprintf (Gbl.F.Out,"\">");
|
||||
if (Dpt.WWW[0])
|
||||
if (PutLink)
|
||||
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
|
||||
" class=\"%s\">",
|
||||
Dpt.WWW,
|
||||
Prj->Hidden ? "DAT_LIGHT" :
|
||||
"DAT_N");
|
||||
fprintf (Gbl.F.Out,"%s",Dpt.FullName);
|
||||
if (Dpt.WWW[0])
|
||||
if (PutLink)
|
||||
fprintf (Gbl.F.Out,"</a>");
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
|
20
swad_text.c
20
swad_text.c
|
@ -39051,25 +39051,25 @@ const char *Txt_Show_FOLDER_FILE_OR_LINK_X = // Warning: it is very important to
|
|||
"Mostrar %s";
|
||||
#endif
|
||||
|
||||
const char *Txt_Show_all_data =
|
||||
const char *Txt_Show_all_data_in_a_table =
|
||||
#if L==1
|
||||
"Mostrar totes les dades";
|
||||
"Mostrar totes les dades en una taula";
|
||||
#elif L==2
|
||||
"Alle Daten";
|
||||
"Alle Daten in einer Tabelle anzeigen";
|
||||
#elif L==3
|
||||
"Show all data";
|
||||
"Show all data in a table";
|
||||
#elif L==4
|
||||
"Mostrar todos los datos";
|
||||
"Mostrar todos los datos en una tabla";
|
||||
#elif L==5
|
||||
"Voir toutes les données";
|
||||
"Voir toutes les données dans une table";
|
||||
#elif L==6
|
||||
"Mostrar todos los datos"; // Okoteve traducción
|
||||
"Mostrar todos los datos en una tabla"; // Okoteve traducción
|
||||
#elif L==7
|
||||
"Visualizza tutti i dati";
|
||||
"Visualizza tutti i dati in una tabella";
|
||||
#elif L==8
|
||||
"Show all data"; // Potrzebujesz tlumaczenie
|
||||
"Pokaż wszystkie dane w tabeli";
|
||||
#elif L==9
|
||||
"Mostrar todos os dados";
|
||||
"Mostrar todos os dados em uma tabela";
|
||||
#endif
|
||||
|
||||
const char *Txt_Show_all_files =
|
||||
|
|
12
swad_user.c
12
swad_user.c
|
@ -7835,31 +7835,31 @@ static void Usr_PutIconToPrintTchs (void)
|
|||
|
||||
static void Usr_PutIconToShowGstsAllData (void)
|
||||
{
|
||||
extern const char *Txt_Show_all_data;
|
||||
extern const char *Txt_Show_all_data_in_a_table;
|
||||
|
||||
Lay_PutContextualLink (ActLstGstAll,NULL,Usr_ShowGstsAllDataParams,
|
||||
"table64x64.gif",
|
||||
Txt_Show_all_data,NULL,
|
||||
Txt_Show_all_data_in_a_table,NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void Usr_PutIconToShowStdsAllData (void)
|
||||
{
|
||||
extern const char *Txt_Show_all_data;
|
||||
extern const char *Txt_Show_all_data_in_a_table;
|
||||
|
||||
Lay_PutContextualLink (ActLstStdAll,NULL,Usr_ShowStdsAllDataParams,
|
||||
"table64x64.gif",
|
||||
Txt_Show_all_data,NULL,
|
||||
Txt_Show_all_data_in_a_table,NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void Usr_PutIconToShowTchsAllData (void)
|
||||
{
|
||||
extern const char *Txt_Show_all_data;
|
||||
extern const char *Txt_Show_all_data_in_a_table;
|
||||
|
||||
Lay_PutContextualLink (ActLstTchAll,NULL,Usr_ShowTchsAllDataParams,
|
||||
"table64x64.gif",
|
||||
Txt_Show_all_data,NULL,
|
||||
Txt_Show_all_data_in_a_table,NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue