mirror of https://github.com/acanas/swad-core.git
Version 21.97.1: May 30, 2022 Fixing design of dark theme.
This commit is contained in:
parent
5ea4e44b4e
commit
9a559522ce
|
@ -2788,21 +2788,25 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
|||
{
|
||||
border-top-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#808080;
|
||||
}
|
||||
.LINE_BOTTOM
|
||||
{
|
||||
border-bottom-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#808080;
|
||||
}
|
||||
.LINE_LEFT
|
||||
{
|
||||
border-left-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#808080;
|
||||
}
|
||||
.LINE_RIGHT
|
||||
{
|
||||
border-right-style:solid;
|
||||
border-width:1px;
|
||||
border-color:#808080;
|
||||
}
|
||||
|
||||
.DAT_SMALL_LIGHT_WHITE,
|
||||
|
@ -4167,7 +4171,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
|||
.Tml_COM_WIDTH {width:220px;} /* 460-240 */
|
||||
.Tml_COM_AUTHOR_WIDTH {width: 60px;} /* 300-240 */
|
||||
.Tml_MED_INPUT_WIDTH {width:160px;} /* 400-240 */
|
||||
.Tml_NOTE_FOOT_WIDTH {width:260px;} /* 500-240 */
|
||||
.TmlNot_FOOT_WIDTH {width:260px;} /* 500-240 */
|
||||
.Tml_COMM_FOOT_WIDTH {width:220px;} /* 460-240 */
|
||||
.Tml_FAV_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
||||
.Tml_SHA_NOT_WIDTH {width:120px;} /* (480-240)/2 */
|
|
@ -8741,28 +8741,28 @@ void Brw_ChgFileMetadata (void)
|
|||
switch (Gbl.FileBrowser.Type)
|
||||
{
|
||||
case Brw_ADMI_DOC_INS:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_INS_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_INS_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_SHR_INS:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_INS_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_INS_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_DOC_CTR:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_CTR_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_CTR_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_SHR_CTR:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_CTR_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_CTR_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_DOC_DEG:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_DEG_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_DEG_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_SHR_DEG:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_DEG_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_DEG_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_DOC_CRS:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_CRS_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_CRS_DOC_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
case Brw_ADMI_SHR_CRS:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_CRS_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_CRS_SHA_PUB_FILE,FileMetadata.FilCod);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -358,7 +358,7 @@ void Cfe_ReceiveCallForExam2 (void)
|
|||
Cfe_DB_UpdateNumUsrsNotifiedByEMailAboutCallForExam (CallsForExams->HighlightExaCod,NumUsrsToBeNotifiedByEMail);
|
||||
|
||||
/***** Create a new social note about the new call for exam *****/
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_CALL_FOR_EXAM,CallsForExams->HighlightExaCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_CALL_FOR_EXAM,CallsForExams->HighlightExaCod);
|
||||
|
||||
/***** Update RSS of current course *****/
|
||||
RSS_UpdateRSSFileForACrs (&Gbl.Hierarchy.Crs);
|
||||
|
@ -457,7 +457,7 @@ void Cfe_RemoveCallForExam1 (void)
|
|||
Ntf_DB_MarkNotifAsRemoved (Ntf_EVENT_CALL_FOR_EXAM,ExaCod);
|
||||
|
||||
/***** Mark possible social note as unavailable *****/
|
||||
Tml_DB_MarkNoteAsUnavailable (Tml_NOTE_CALL_FOR_EXAM,ExaCod);
|
||||
Tml_DB_MarkNoteAsUnavailable (TmlNot_CALL_FOR_EXAM,ExaCod);
|
||||
|
||||
/***** Update RSS of current course *****/
|
||||
RSS_UpdateRSSFileForACrs (&Gbl.Hierarchy.Crs);
|
||||
|
|
|
@ -606,10 +606,13 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
|||
|
||||
TODO: Attach pdf files in multimedia.
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.96.6 (2022-05-18)"
|
||||
#define CSS_FILE "swad21.95.5.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.97.1 (2022-05-30)"
|
||||
#define CSS_FILE "swad21.97.1.css"
|
||||
#define JS_FILE "swad21.92.js"
|
||||
/*
|
||||
Version 21.97.1: May 30, 2022 Fixing design of dark theme. (323166 lines)
|
||||
Version 21.97: May 25, 2022 Code refactoring in timeline. (? lines)
|
||||
Version 21.96.7: May 19, 2022 Fixed bug in places. (323157 lines)
|
||||
Version 21.96.6: May 18, 2022 Some messages translated. (323156 lines)
|
||||
Version 21.96.5: May 17, 2022 Some messages translated. (323160 lines)
|
||||
Version 21.96.4: May 16, 2022 Some messages translated. (323159 lines)
|
||||
|
|
|
@ -2887,7 +2887,7 @@ void For_ReceiveForumPost (void)
|
|||
{
|
||||
case For_FORUM_GLOBAL_USRS:
|
||||
case For_FORUM__SWAD__USRS:
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_FORUM_POST,PstCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_FORUM_POST,PstCod);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -2960,7 +2960,7 @@ void For_RemovePost (void)
|
|||
{
|
||||
case For_FORUM_GLOBAL_USRS:
|
||||
case For_FORUM__SWAD__USRS:
|
||||
Tml_DB_MarkNoteAsUnavailable (Tml_NOTE_FORUM_POST,Forums.PstCod);
|
||||
Tml_DB_MarkNoteAsUnavailable (TmlNot_FORUM_POST,Forums.PstCod);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -1270,7 +1270,7 @@ static void Hie_ShowHierarchyRow (const char *Text1,const char *Text2,
|
|||
static void Hie_ShowHierarchyCell (const char *ClassTxt,int Num)
|
||||
{
|
||||
/***** Write number *****/
|
||||
HTM_TD_Begin ("class=\"%s RM\"",ClassTxt);
|
||||
HTM_TD_Begin ("class=\"RM %s_%s\"",ClassTxt,The_GetSuffix ());
|
||||
if (Num >= 0)
|
||||
HTM_Unsigned ((unsigned) Num);
|
||||
else // < 0 ==> do not show number
|
||||
|
|
|
@ -154,7 +154,10 @@ void Lay_WriteStartOfPage (void)
|
|||
/***** Write start of HTML code *****/
|
||||
// WARNING: It is necessary to comment the line 'AddDefaultCharset UTF8'
|
||||
// in httpd.conf to enable meta tag
|
||||
HTM_TxtF ("<html lang=\"%s\">\n",Lan_STR_LANG_ID[Gbl.Prefs.Language]);
|
||||
HTM_TxtF ("<html lang=\"%s\" style=\"color-scheme:%s\">\n",
|
||||
Lan_STR_LANG_ID[Gbl.Prefs.Language],
|
||||
Gbl.Prefs.Theme == The_THEME_DARK ? "dark" :
|
||||
"light");
|
||||
HTM_Txt ("<head>\n"
|
||||
"<meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-1252\" />\n"
|
||||
"<meta name=\"description\" content=\"A free-software, educational, online tool for managing courses and students.\" />\n"
|
||||
|
@ -1561,8 +1564,8 @@ void Lay_AdvertisementMobile (void)
|
|||
HTM_Txt (Txt_Stay_connected_with_SWADroid);
|
||||
HTM_BR ();
|
||||
HTM_BR ();
|
||||
HTM_IMG (Cfg_URL_ICON_PUBLIC,"SWADroid200x300.png",Txt_Stay_connected_with_SWADroid,
|
||||
"style=\"width:250px; height:375px;\"");
|
||||
HTM_IMG (Cfg_URL_ICON_PUBLIC,Cfg_SWADROID_ICO,Txt_Stay_connected_with_SWADroid,
|
||||
"class=\"SWADROID\"");
|
||||
HTM_A_End ();
|
||||
HTM_TD_End ();
|
||||
HTM_TR_End ();
|
||||
|
|
|
@ -163,7 +163,7 @@ void Not_ReceiveNotice (void)
|
|||
Not_DB_UpdateNumUsrsNotifiedByEMailAboutNotice (NotCod,NumUsrsToBeNotifiedByEMail);
|
||||
|
||||
/***** Create a new social note about the new notice *****/
|
||||
TmlNot_StoreAndPublishNote (Tml_NOTE_NOTICE,NotCod);
|
||||
TmlNot_StoreAndPublishNote (TmlNot_NOTICE,NotCod);
|
||||
|
||||
/***** Set notice to be highlighted *****/
|
||||
Gbl.Crs.Notices.HighlightNotCod = NotCod;
|
||||
|
@ -299,7 +299,7 @@ void Not_RemoveNotice (void)
|
|||
Ntf_DB_MarkNotifAsRemoved (Ntf_EVENT_NOTICE,NotCod);
|
||||
|
||||
/***** Mark possible social note as unavailable *****/
|
||||
Tml_DB_MarkNoteAsUnavailable (Tml_NOTE_NOTICE,NotCod);
|
||||
Tml_DB_MarkNoteAsUnavailable (TmlNot_NOTICE,NotCod);
|
||||
|
||||
/***** Update RSS of current course *****/
|
||||
RSS_UpdateRSSFileForACrs (&Gbl.Hierarchy.Crs);
|
||||
|
|
|
@ -42,7 +42,7 @@ extern struct Globals Gbl;
|
|||
void Plc_DB_CreatePlace (const struct Plc_Place *Plc)
|
||||
{
|
||||
DB_QueryINSERT ("can not create place",
|
||||
"INSERT INTO places"
|
||||
"INSERT INTO plc_places"
|
||||
" (InsCod,ShortName,FullName)"
|
||||
" VALUES"
|
||||
" (%ld,'%s','%s')",
|
||||
|
|
26
swad_text.c
26
swad_text.c
|
@ -52342,7 +52342,7 @@ const char *Txt_TIMELINE_Not_shared_by_anyone = // No shared
|
|||
|
||||
const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
||||
{
|
||||
[Tml_NOTE_UNKNOWN] =
|
||||
[TmlNot_UNKNOWN] =
|
||||
#if L==1 // ca
|
||||
"Esdeveniment desconegut"
|
||||
#elif L==2 // de
|
||||
|
@ -52363,7 +52363,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Evento desconhecido"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_INS_DOC_PUB_FILE] =
|
||||
[TmlNot_INS_DOC_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Document públic (institució)"
|
||||
#elif L==2 // de
|
||||
|
@ -52384,7 +52384,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo de documento público (institução)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_INS_SHA_PUB_FILE] =
|
||||
[TmlNot_INS_SHA_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Arxiu compartit públic (institució)"
|
||||
#elif L==2 // de
|
||||
|
@ -52405,7 +52405,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo compartilhado público (institução)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_CTR_DOC_PUB_FILE] =
|
||||
[TmlNot_CTR_DOC_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Document públic (center)"
|
||||
#elif L==2 // de
|
||||
|
@ -52426,7 +52426,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo de documento público (centro)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_CTR_SHA_PUB_FILE] =
|
||||
[TmlNot_CTR_SHA_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Arxiu compartit públic (center)"
|
||||
#elif L==2 // de
|
||||
|
@ -52447,7 +52447,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo compartilhado público (centro)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_DEG_DOC_PUB_FILE] =
|
||||
[TmlNot_DEG_DOC_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Document públic (titulació)"
|
||||
#elif L==2 // de
|
||||
|
@ -52468,7 +52468,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo de documento público (grau)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_DEG_SHA_PUB_FILE] =
|
||||
[TmlNot_DEG_SHA_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Arxiu compartit públic (titulació)"
|
||||
#elif L==2 // de
|
||||
|
@ -52489,7 +52489,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo compartilhado público (grau)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_CRS_DOC_PUB_FILE] =
|
||||
[TmlNot_CRS_DOC_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Document públic (assignatura)"
|
||||
#elif L==2 // de
|
||||
|
@ -52510,7 +52510,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo de documento público (disciplina)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_CRS_SHA_PUB_FILE] =
|
||||
[TmlNot_CRS_SHA_PUB_FILE] =
|
||||
#if L==1 // ca
|
||||
"Arxiu compartit públic (assignatura)"
|
||||
#elif L==2 // de
|
||||
|
@ -52531,7 +52531,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Arquivo compartilhado público (disciplina)"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_CALL_FOR_EXAM] =
|
||||
[TmlNot_CALL_FOR_EXAM] =
|
||||
#if L==1 // ca
|
||||
"Convocatòria d'examen"
|
||||
#elif L==2 // de
|
||||
|
@ -52552,7 +52552,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Chamada para exame"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_POST] =
|
||||
[TmlNot_POST] =
|
||||
#if L==1 // ca
|
||||
"Missatge social"
|
||||
#elif L==2 // de
|
||||
|
@ -52573,7 +52573,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Post sociais"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_FORUM_POST] =
|
||||
[TmlNot_FORUM_POST] =
|
||||
#if L==1 // ca
|
||||
"Comentari en un fòrum"
|
||||
#elif L==2 // de
|
||||
|
@ -52594,7 +52594,7 @@ const char *Txt_TIMELINE_NOTE[Tml_NOT_NUM_NOTE_TYPES] =
|
|||
"Post em um fórum"
|
||||
#endif
|
||||
,
|
||||
[Tml_NOTE_NOTICE] =
|
||||
[TmlNot_NOTICE] =
|
||||
#if L==1 // ca
|
||||
"Avís"
|
||||
#elif L==2 // de
|
||||
|
|
|
@ -84,7 +84,7 @@ struct Tml_Timeline
|
|||
Tml_WhatToGet_t WhatToGet;
|
||||
struct
|
||||
{
|
||||
struct TmlPub_Publication *Top; // Points to first element in list of publications
|
||||
struct TmlPub_Publication *Top; // Points to first element in list of publications
|
||||
struct TmlPub_Publication *Bottom; // Points to last element in list of publications
|
||||
} Pubs;
|
||||
long NotCod; // Used as parameter about social note to be edited, removed...
|
||||
|
|
|
@ -617,7 +617,7 @@ void Tml_DB_RemoveAllPostsUsr (long UsrCod)
|
|||
" FROM tml_notes"
|
||||
" WHERE UsrCod=%ld"
|
||||
" AND NoteType=%u)",
|
||||
UsrCod,(unsigned) Tml_NOTE_POST);
|
||||
UsrCod,(unsigned) TmlNot_POST);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -60,14 +60,14 @@ extern struct Globals Gbl;
|
|||
|
||||
static const TmlNot_Type_t TmlNot_NoteType[Brw_NUM_TYPES_FILE_BROWSER] =
|
||||
{
|
||||
[Brw_ADMI_DOC_INS] = Tml_NOTE_INS_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_INS] = Tml_NOTE_INS_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_CTR] = Tml_NOTE_CTR_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_CTR] = Tml_NOTE_CTR_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_DEG] = Tml_NOTE_DEG_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_DEG] = Tml_NOTE_DEG_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_CRS] = Tml_NOTE_CRS_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_CRS] = Tml_NOTE_CRS_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_INS] = TmlNot_INS_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_INS] = TmlNot_INS_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_CTR] = TmlNot_CTR_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_CTR] = TmlNot_CTR_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_DEG] = TmlNot_DEG_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_DEG] = TmlNot_DEG_SHA_PUB_FILE,
|
||||
[Brw_ADMI_DOC_CRS] = TmlNot_CRS_DOC_PUB_FILE,
|
||||
[Brw_ADMI_SHR_CRS] = TmlNot_CRS_SHA_PUB_FILE,
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -173,9 +173,9 @@ void TmlNot_ShowHighlightedNote (struct Tml_Timeline *Timeline,
|
|||
/*****************************************************************************/
|
||||
|
||||
void TmlNot_CheckAndWriteNoteWithTopMsg (const struct Tml_Timeline *Timeline,
|
||||
const struct TmlNot_Note *Not,
|
||||
Tml_TopMessage_t TopMessage,
|
||||
long PublisherCod) // Who did the action (publication, commenting, faving, sharing, mentioning)
|
||||
const struct TmlNot_Note *Not,
|
||||
Tml_TopMessage_t TopMessage,
|
||||
long PublisherCod) // Who did the action (publication, commenting, faving, sharing, mentioning)
|
||||
{
|
||||
/*
|
||||
___________________________________________
|
||||
|
@ -206,7 +206,7 @@ void TmlNot_CheckAndWriteNoteWithTopMsg (const struct Tml_Timeline *Timeline,
|
|||
/***** Trivial check: codes *****/
|
||||
if (Not->NotCod <= 0 ||
|
||||
Not->UsrCod <= 0 ||
|
||||
Not->Type == Tml_NOTE_UNKNOWN)
|
||||
Not->Type == TmlNot_UNKNOWN)
|
||||
{
|
||||
Ale_ShowAlert (Ale_ERROR,"Error in note.");
|
||||
return;
|
||||
|
@ -371,7 +371,7 @@ void TmlNot_WriteAuthorName (const struct UsrData *UsrDat,
|
|||
|
||||
static void TmlNot_WriteContent (const struct TmlNot_Note *Not)
|
||||
{
|
||||
if (Not->Type == Tml_NOTE_POST) // It's a post
|
||||
if (Not->Type == TmlNot_POST) // It's a post
|
||||
TmlPst_GetAndWritePost (Not->Cod);
|
||||
else // Not a post
|
||||
TmlNot_GetAndWriteNoPost (Not);
|
||||
|
@ -431,33 +431,33 @@ static void TmlNot_GetLocationInHierarchy (const struct TmlNot_Note *Not,
|
|||
/***** Get location in hierarchy *****/
|
||||
switch (Not->Type)
|
||||
{
|
||||
case Tml_NOTE_INS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_INS_SHA_PUB_FILE:
|
||||
case TmlNot_INS_DOC_PUB_FILE:
|
||||
case TmlNot_INS_SHA_PUB_FILE:
|
||||
/* Get institution data */
|
||||
Hie->Ins.InsCod = Not->HieCod;
|
||||
Ins_GetDataOfInstitByCod (&Hie->Ins);
|
||||
break;
|
||||
case Tml_NOTE_CTR_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CTR_SHA_PUB_FILE:
|
||||
case TmlNot_CTR_DOC_PUB_FILE:
|
||||
case TmlNot_CTR_SHA_PUB_FILE:
|
||||
/* Get center data */
|
||||
Hie->Ctr.CtrCod = Not->HieCod;
|
||||
Ctr_GetDataOfCenterByCod (&Hie->Ctr);
|
||||
break;
|
||||
case Tml_NOTE_DEG_DOC_PUB_FILE:
|
||||
case Tml_NOTE_DEG_SHA_PUB_FILE:
|
||||
case TmlNot_DEG_DOC_PUB_FILE:
|
||||
case TmlNot_DEG_SHA_PUB_FILE:
|
||||
/* Get degree data */
|
||||
Hie->Deg.DegCod = Not->HieCod;
|
||||
Deg_GetDataOfDegreeByCod (&Hie->Deg);
|
||||
break;
|
||||
case Tml_NOTE_CRS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CRS_SHA_PUB_FILE:
|
||||
case Tml_NOTE_CALL_FOR_EXAM:
|
||||
case Tml_NOTE_NOTICE:
|
||||
case TmlNot_CRS_DOC_PUB_FILE:
|
||||
case TmlNot_CRS_SHA_PUB_FILE:
|
||||
case TmlNot_CALL_FOR_EXAM:
|
||||
case TmlNot_NOTICE:
|
||||
/* Get course data */
|
||||
Hie->Crs.CrsCod = Not->HieCod;
|
||||
Crs_GetDataOfCourseByCod (&Hie->Crs);
|
||||
break;
|
||||
case Tml_NOTE_FORUM_POST:
|
||||
case TmlNot_FORUM_POST:
|
||||
/* Get forum type of the post */
|
||||
For_GetForumTypeAndLocationOfAPost (Not->Cod,Forum);
|
||||
|
||||
|
@ -489,37 +489,37 @@ static void TmlNot_WriteLocationInHierarchy (const struct TmlNot_Note *Not,
|
|||
/***** Write location *****/
|
||||
switch (Not->Type)
|
||||
{
|
||||
case Tml_NOTE_INS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_INS_SHA_PUB_FILE:
|
||||
case TmlNot_INS_DOC_PUB_FILE:
|
||||
case TmlNot_INS_SHA_PUB_FILE:
|
||||
/* Write location (institution) in hierarchy */
|
||||
HTM_TxtF ("%s: %s",
|
||||
Txt_Institution,
|
||||
Hie->Ins.ShrtName);
|
||||
break;
|
||||
case Tml_NOTE_CTR_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CTR_SHA_PUB_FILE:
|
||||
case TmlNot_CTR_DOC_PUB_FILE:
|
||||
case TmlNot_CTR_SHA_PUB_FILE:
|
||||
/* Write location (center) in hierarchy */
|
||||
HTM_TxtF ("%s: %s",
|
||||
Txt_Center,
|
||||
Hie->Ctr.ShrtName);
|
||||
break;
|
||||
case Tml_NOTE_DEG_DOC_PUB_FILE:
|
||||
case Tml_NOTE_DEG_SHA_PUB_FILE:
|
||||
case TmlNot_DEG_DOC_PUB_FILE:
|
||||
case TmlNot_DEG_SHA_PUB_FILE:
|
||||
/* Write location (degree) in hierarchy */
|
||||
HTM_TxtF ("%s: %s",
|
||||
Txt_Degree,
|
||||
Hie->Deg.ShrtName);
|
||||
break;
|
||||
case Tml_NOTE_CRS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CRS_SHA_PUB_FILE:
|
||||
case Tml_NOTE_CALL_FOR_EXAM:
|
||||
case Tml_NOTE_NOTICE:
|
||||
case TmlNot_CRS_DOC_PUB_FILE:
|
||||
case TmlNot_CRS_SHA_PUB_FILE:
|
||||
case TmlNot_CALL_FOR_EXAM:
|
||||
case TmlNot_NOTICE:
|
||||
/* Write location (course) in hierarchy */
|
||||
HTM_TxtF ("%s: %s",
|
||||
Txt_Course,
|
||||
Hie->Crs.ShrtName);
|
||||
break;
|
||||
case Tml_NOTE_FORUM_POST:
|
||||
case TmlNot_FORUM_POST:
|
||||
/* Write forum name */
|
||||
HTM_TxtF ("%s: %s",
|
||||
Txt_Forum,
|
||||
|
@ -546,53 +546,53 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
|||
char *Anchor = NULL;
|
||||
static const Act_Action_t Tml_DefaultActions[Tml_NOT_NUM_NOTE_TYPES] =
|
||||
{
|
||||
[Tml_NOTE_UNKNOWN ] = ActUnk,
|
||||
[TmlNot_UNKNOWN ] = ActUnk,
|
||||
/* Start tab */
|
||||
[Tml_NOTE_POST ] = ActUnk, // action not used
|
||||
[TmlNot_POST ] = ActUnk, // action not used
|
||||
/* Institution tab */
|
||||
[Tml_NOTE_INS_DOC_PUB_FILE ] = ActReqDatSeeDocIns,
|
||||
[Tml_NOTE_INS_SHA_PUB_FILE ] = ActReqDatShaIns,
|
||||
[TmlNot_INS_DOC_PUB_FILE ] = ActReqDatSeeDocIns,
|
||||
[TmlNot_INS_SHA_PUB_FILE ] = ActReqDatShaIns,
|
||||
/* Center tab */
|
||||
[Tml_NOTE_CTR_DOC_PUB_FILE ] = ActReqDatSeeDocCtr,
|
||||
[Tml_NOTE_CTR_SHA_PUB_FILE ] = ActReqDatShaCtr,
|
||||
[TmlNot_CTR_DOC_PUB_FILE ] = ActReqDatSeeDocCtr,
|
||||
[TmlNot_CTR_SHA_PUB_FILE ] = ActReqDatShaCtr,
|
||||
/* Degree tab */
|
||||
[Tml_NOTE_DEG_DOC_PUB_FILE ] = ActReqDatSeeDocDeg,
|
||||
[Tml_NOTE_DEG_SHA_PUB_FILE ] = ActReqDatShaDeg,
|
||||
[TmlNot_DEG_DOC_PUB_FILE ] = ActReqDatSeeDocDeg,
|
||||
[TmlNot_DEG_SHA_PUB_FILE ] = ActReqDatShaDeg,
|
||||
/* Course tab */
|
||||
[Tml_NOTE_CRS_DOC_PUB_FILE ] = ActReqDatSeeDocCrs,
|
||||
[Tml_NOTE_CRS_SHA_PUB_FILE ] = ActReqDatShaCrs,
|
||||
[TmlNot_CRS_DOC_PUB_FILE ] = ActReqDatSeeDocCrs,
|
||||
[TmlNot_CRS_SHA_PUB_FILE ] = ActReqDatShaCrs,
|
||||
/* Assessment tab */
|
||||
[Tml_NOTE_CALL_FOR_EXAM ] = ActSeeOneCfe,
|
||||
[TmlNot_CALL_FOR_EXAM ] = ActSeeOneCfe,
|
||||
/* Users tab */
|
||||
/* Messages tab */
|
||||
[Tml_NOTE_NOTICE ] = ActSeeOneNot,
|
||||
[Tml_NOTE_FORUM_POST ] = ActSeeFor,
|
||||
[TmlNot_NOTICE ] = ActSeeOneNot,
|
||||
[TmlNot_FORUM_POST ] = ActSeeFor,
|
||||
/* Analytics tab */
|
||||
/* Profile tab */
|
||||
};
|
||||
static const char *Tml_Icons[Tml_NOT_NUM_NOTE_TYPES] =
|
||||
{
|
||||
[Tml_NOTE_UNKNOWN ] = NULL,
|
||||
[TmlNot_UNKNOWN ] = NULL,
|
||||
/* Start tab */
|
||||
[Tml_NOTE_POST ] = NULL, // icon not used
|
||||
[TmlNot_POST ] = NULL, // icon not used
|
||||
/* Institution tab */
|
||||
[Tml_NOTE_INS_DOC_PUB_FILE ] = "file.svg",
|
||||
[Tml_NOTE_INS_SHA_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_INS_DOC_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_INS_SHA_PUB_FILE ] = "file.svg",
|
||||
/* Center tab */
|
||||
[Tml_NOTE_CTR_DOC_PUB_FILE ] = "file.svg",
|
||||
[Tml_NOTE_CTR_SHA_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_CTR_DOC_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_CTR_SHA_PUB_FILE ] = "file.svg",
|
||||
/* Degree tab */
|
||||
[Tml_NOTE_DEG_DOC_PUB_FILE ] = "file.svg",
|
||||
[Tml_NOTE_DEG_SHA_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_DEG_DOC_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_DEG_SHA_PUB_FILE ] = "file.svg",
|
||||
/* Course tab */
|
||||
[Tml_NOTE_CRS_DOC_PUB_FILE ] = "file.svg",
|
||||
[Tml_NOTE_CRS_SHA_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_CRS_DOC_PUB_FILE ] = "file.svg",
|
||||
[TmlNot_CRS_SHA_PUB_FILE ] = "file.svg",
|
||||
/* Assessment tab */
|
||||
[Tml_NOTE_CALL_FOR_EXAM ] = "bullhorn.svg",
|
||||
[TmlNot_CALL_FOR_EXAM ] = "bullhorn.svg",
|
||||
/* Users tab */
|
||||
/* Messages tab */
|
||||
[Tml_NOTE_NOTICE ] = "sticky-note.svg",
|
||||
[Tml_NOTE_FORUM_POST ] = "comments.svg",
|
||||
[TmlNot_NOTICE ] = "sticky-note.svg",
|
||||
[TmlNot_FORUM_POST ] = "comments.svg",
|
||||
/* Analytics tab */
|
||||
/* Profile tab */
|
||||
};
|
||||
|
@ -620,35 +620,35 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
|||
/***** Begin form with parameters depending on the type of note *****/
|
||||
switch (Not->Type)
|
||||
{
|
||||
case Tml_NOTE_INS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_INS_SHA_PUB_FILE:
|
||||
case TmlNot_INS_DOC_PUB_FILE:
|
||||
case TmlNot_INS_SHA_PUB_FILE:
|
||||
Frm_BeginFormUnique (Tml_DefaultActions[Not->Type]);
|
||||
Brw_PutHiddenParamFilCod (Not->Cod);
|
||||
if (Not->HieCod != Gbl.Hierarchy.Ins.InsCod) // Not the current institution
|
||||
Ins_PutParamInsCod (Not->HieCod); // Go to another institution
|
||||
break;
|
||||
case Tml_NOTE_CTR_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CTR_SHA_PUB_FILE:
|
||||
case TmlNot_CTR_DOC_PUB_FILE:
|
||||
case TmlNot_CTR_SHA_PUB_FILE:
|
||||
Frm_BeginFormUnique (Tml_DefaultActions[Not->Type]);
|
||||
Brw_PutHiddenParamFilCod (Not->Cod);
|
||||
if (Not->HieCod != Gbl.Hierarchy.Ctr.CtrCod) // Not the current center
|
||||
Ctr_PutParamCtrCod (Not->HieCod); // Go to another center
|
||||
break;
|
||||
case Tml_NOTE_DEG_DOC_PUB_FILE:
|
||||
case Tml_NOTE_DEG_SHA_PUB_FILE:
|
||||
case TmlNot_DEG_DOC_PUB_FILE:
|
||||
case TmlNot_DEG_SHA_PUB_FILE:
|
||||
Frm_BeginFormUnique (Tml_DefaultActions[Not->Type]);
|
||||
Brw_PutHiddenParamFilCod (Not->Cod);
|
||||
if (Not->HieCod != Gbl.Hierarchy.Deg.DegCod) // Not the current degree
|
||||
Deg_PutParamDegCod (Not->HieCod); // Go to another degree
|
||||
break;
|
||||
case Tml_NOTE_CRS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CRS_SHA_PUB_FILE:
|
||||
case TmlNot_CRS_DOC_PUB_FILE:
|
||||
case TmlNot_CRS_SHA_PUB_FILE:
|
||||
Frm_BeginFormUnique (Tml_DefaultActions[Not->Type]);
|
||||
Brw_PutHiddenParamFilCod (Not->Cod);
|
||||
if (Not->HieCod != Gbl.Hierarchy.Crs.CrsCod) // Not the current course
|
||||
Crs_PutParamCrsCod (Not->HieCod); // Go to another course
|
||||
break;
|
||||
case Tml_NOTE_CALL_FOR_EXAM:
|
||||
case TmlNot_CALL_FOR_EXAM:
|
||||
Frm_SetAnchorStr (Not->Cod,&Anchor);
|
||||
Frm_BeginFormUniqueAnchor (Tml_DefaultActions[Not->Type],
|
||||
Anchor); // Locate on this specific exam
|
||||
|
@ -657,9 +657,9 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
|||
if (Not->HieCod != Gbl.Hierarchy.Crs.CrsCod) // Not the current course
|
||||
Crs_PutParamCrsCod (Not->HieCod); // Go to another course
|
||||
break;
|
||||
case Tml_NOTE_POST: // Not applicable
|
||||
case TmlNot_POST: // Not applicable
|
||||
return;
|
||||
case Tml_NOTE_FORUM_POST:
|
||||
case TmlNot_FORUM_POST:
|
||||
Frm_BeginFormUnique (For_ActionsSeeFor[Forums->Forum.Type]);
|
||||
For_PutAllHiddenParamsForum (1, // Page of threads = first
|
||||
1, // Page of posts = first
|
||||
|
@ -671,7 +671,7 @@ static void TmlNot_PutFormGoToAction (const struct TmlNot_Note *Not,
|
|||
if (Not->HieCod != Gbl.Hierarchy.Crs.CrsCod) // Not the current course
|
||||
Crs_PutParamCrsCod (Not->HieCod); // Go to another course
|
||||
break;
|
||||
case Tml_NOTE_NOTICE:
|
||||
case TmlNot_NOTICE:
|
||||
Frm_SetAnchorStr (Not->Cod,&Anchor);
|
||||
Frm_BeginFormUniqueAnchor (Tml_DefaultActions[Not->Type],
|
||||
Anchor);
|
||||
|
@ -717,28 +717,28 @@ void TmlNot_GetNoteSummary (const struct TmlNot_Note *Not,
|
|||
|
||||
switch (Not->Type)
|
||||
{
|
||||
case Tml_NOTE_UNKNOWN:
|
||||
case TmlNot_UNKNOWN:
|
||||
break;
|
||||
case Tml_NOTE_INS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_INS_SHA_PUB_FILE:
|
||||
case Tml_NOTE_CTR_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CTR_SHA_PUB_FILE:
|
||||
case Tml_NOTE_DEG_DOC_PUB_FILE:
|
||||
case Tml_NOTE_DEG_SHA_PUB_FILE:
|
||||
case Tml_NOTE_CRS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CRS_SHA_PUB_FILE:
|
||||
case TmlNot_INS_DOC_PUB_FILE:
|
||||
case TmlNot_INS_SHA_PUB_FILE:
|
||||
case TmlNot_CTR_DOC_PUB_FILE:
|
||||
case TmlNot_CTR_SHA_PUB_FILE:
|
||||
case TmlNot_DEG_DOC_PUB_FILE:
|
||||
case TmlNot_DEG_SHA_PUB_FILE:
|
||||
case TmlNot_CRS_DOC_PUB_FILE:
|
||||
case TmlNot_CRS_SHA_PUB_FILE:
|
||||
Brw_GetSummaryAndContentOfFile (SummaryStr,NULL,Not->Cod,false);
|
||||
break;
|
||||
case Tml_NOTE_CALL_FOR_EXAM:
|
||||
case TmlNot_CALL_FOR_EXAM:
|
||||
Cfe_GetSummaryAndContentCallForExam (SummaryStr,NULL,Not->Cod,false);
|
||||
break;
|
||||
case Tml_NOTE_POST:
|
||||
case TmlNot_POST:
|
||||
// Not applicable
|
||||
break;
|
||||
case Tml_NOTE_FORUM_POST:
|
||||
case TmlNot_FORUM_POST:
|
||||
For_GetSummaryAndContentForumPst (SummaryStr,NULL,Not->Cod,false);
|
||||
break;
|
||||
case Tml_NOTE_NOTICE:
|
||||
case TmlNot_NOTICE:
|
||||
Not_GetSummaryAndContentNotice (SummaryStr,NULL,Not->Cod,false);
|
||||
break;
|
||||
}
|
||||
|
@ -890,22 +890,22 @@ void TmlNot_StoreAndPublishNoteInternal (TmlNot_Type_t NoteType,long Cod,
|
|||
|
||||
switch (NoteType)
|
||||
{
|
||||
case Tml_NOTE_INS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_INS_SHA_PUB_FILE:
|
||||
case TmlNot_INS_DOC_PUB_FILE:
|
||||
case TmlNot_INS_SHA_PUB_FILE:
|
||||
HieCod = Gbl.Hierarchy.Ins.InsCod;
|
||||
break;
|
||||
case Tml_NOTE_CTR_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CTR_SHA_PUB_FILE:
|
||||
case TmlNot_CTR_DOC_PUB_FILE:
|
||||
case TmlNot_CTR_SHA_PUB_FILE:
|
||||
HieCod = Gbl.Hierarchy.Ctr.CtrCod;
|
||||
break;
|
||||
case Tml_NOTE_DEG_DOC_PUB_FILE:
|
||||
case Tml_NOTE_DEG_SHA_PUB_FILE:
|
||||
case TmlNot_DEG_DOC_PUB_FILE:
|
||||
case TmlNot_DEG_SHA_PUB_FILE:
|
||||
HieCod = Gbl.Hierarchy.Deg.DegCod;
|
||||
break;
|
||||
case Tml_NOTE_CRS_DOC_PUB_FILE:
|
||||
case Tml_NOTE_CRS_SHA_PUB_FILE:
|
||||
case Tml_NOTE_CALL_FOR_EXAM:
|
||||
case Tml_NOTE_NOTICE:
|
||||
case TmlNot_CRS_DOC_PUB_FILE:
|
||||
case TmlNot_CRS_SHA_PUB_FILE:
|
||||
case TmlNot_CALL_FOR_EXAM:
|
||||
case TmlNot_NOTICE:
|
||||
HieCod = Gbl.Hierarchy.Crs.CrsCod;
|
||||
break;
|
||||
default:
|
||||
|
@ -1177,7 +1177,7 @@ static void TmlNot_RemoveNoteMediaAndDBEntries (struct TmlNot_Note *Not)
|
|||
DB_FreeMySQLResult (&mysql_res);
|
||||
|
||||
/***** Remove media associated to post *****/
|
||||
if (Not->Type == Tml_NOTE_POST)
|
||||
if (Not->Type == TmlNot_POST)
|
||||
if ((MedCod = Tml_DB_GetMedCodFromPost (Not->Cod)) > 0)
|
||||
Med_RemoveMedia (MedCod);
|
||||
|
||||
|
@ -1199,7 +1199,7 @@ static void TmlNot_RemoveNoteMediaAndDBEntries (struct TmlNot_Note *Not)
|
|||
/***** Remove note *****/
|
||||
Tml_DB_RemoveNote (Not->NotCod);
|
||||
|
||||
if (Not->Type == Tml_NOTE_POST)
|
||||
if (Not->Type == TmlNot_POST)
|
||||
/***** Remove post *****/
|
||||
Tml_DB_RemovePost (Not->Cod);
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ static TmlNot_Type_t TmlNot_GetNoteTypeFromStr (const char *Str)
|
|||
if (UnsignedNum < Tml_NOT_NUM_NOTE_TYPES)
|
||||
return (TmlNot_Type_t) UnsignedNum;
|
||||
|
||||
return Tml_NOTE_UNKNOWN;
|
||||
return TmlNot_UNKNOWN;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -1266,7 +1266,7 @@ static TmlNot_Type_t TmlNot_GetNoteTypeFromStr (const char *Str)
|
|||
static void TmlNot_ResetNote (struct TmlNot_Note *Not)
|
||||
{
|
||||
Not->NotCod = -1L;
|
||||
Not->Type = Tml_NOTE_UNKNOWN;
|
||||
Not->Type = TmlNot_UNKNOWN;
|
||||
Not->UsrCod = -1L;
|
||||
Not->HieCod = -1L;
|
||||
Not->Cod = -1L;
|
||||
|
|
|
@ -38,27 +38,27 @@
|
|||
// it is necessary to change old numbers to new ones in database table tml_notes
|
||||
typedef enum
|
||||
{
|
||||
Tml_NOTE_UNKNOWN = 0,
|
||||
TmlNot_UNKNOWN = 0,
|
||||
/* Start tab */
|
||||
Tml_NOTE_POST = 10, // Post written directly in timeline
|
||||
TmlNot_POST = 10, // Post written directly in timeline
|
||||
/* Institution tab */
|
||||
Tml_NOTE_INS_DOC_PUB_FILE = 1, // Public file in documents of institution
|
||||
Tml_NOTE_INS_SHA_PUB_FILE = 2, // Public file in shared files of institution
|
||||
TmlNot_INS_DOC_PUB_FILE = 1, // Public file in documents of institution
|
||||
TmlNot_INS_SHA_PUB_FILE = 2, // Public file in shared files of institution
|
||||
/* Center tab */
|
||||
Tml_NOTE_CTR_DOC_PUB_FILE = 3, // Public file in documents of center
|
||||
Tml_NOTE_CTR_SHA_PUB_FILE = 4, // Public file in shared files of center
|
||||
TmlNot_CTR_DOC_PUB_FILE = 3, // Public file in documents of center
|
||||
TmlNot_CTR_SHA_PUB_FILE = 4, // Public file in shared files of center
|
||||
/* Degree tab */
|
||||
Tml_NOTE_DEG_DOC_PUB_FILE = 5, // Public file in documents of degree
|
||||
Tml_NOTE_DEG_SHA_PUB_FILE = 6, // Public file in shared files of degree
|
||||
TmlNot_DEG_DOC_PUB_FILE = 5, // Public file in documents of degree
|
||||
TmlNot_DEG_SHA_PUB_FILE = 6, // Public file in shared files of degree
|
||||
/* Course tab */
|
||||
Tml_NOTE_CRS_DOC_PUB_FILE = 7, // Public file in documents of course
|
||||
Tml_NOTE_CRS_SHA_PUB_FILE = 8, // Public file in shared files of course
|
||||
TmlNot_CRS_DOC_PUB_FILE = 7, // Public file in documents of course
|
||||
TmlNot_CRS_SHA_PUB_FILE = 8, // Public file in shared files of course
|
||||
/* Assessment tab */
|
||||
Tml_NOTE_CALL_FOR_EXAM = 9, // Call for exam in a course
|
||||
TmlNot_CALL_FOR_EXAM = 9, // Call for exam in a course
|
||||
/* Users tab */
|
||||
/* Messages tab */
|
||||
Tml_NOTE_NOTICE = 12, // A public notice in a course
|
||||
Tml_NOTE_FORUM_POST = 11, // Post in global/swad forums
|
||||
TmlNot_NOTICE = 12, // A public notice in a course
|
||||
TmlNot_FORUM_POST = 11, // Post in global/swad forums
|
||||
/* Analytics tab */
|
||||
/* Profile tab */
|
||||
} TmlNot_Type_t;
|
||||
|
@ -73,7 +73,7 @@ struct TmlNot_Note
|
|||
// (institution/center/degree/course)
|
||||
long Cod; // Code of file, forum post,
|
||||
// notice, timeline post...
|
||||
bool Unavailable; // File, forum post, notice,...
|
||||
bool Unavailable; // File, forum post, notice...
|
||||
// unavailable (removed)
|
||||
time_t DateTimeUTC; // Date-time of publication in UTC time
|
||||
unsigned NumShared; // Number of times (users)
|
||||
|
@ -87,22 +87,22 @@ struct TmlNot_Note
|
|||
/*****************************************************************************/
|
||||
|
||||
void TmlNot_ShowHighlightedNote (struct Tml_Timeline *Timeline,
|
||||
struct TmlNot_Note *Not);
|
||||
struct TmlNot_Note *Not);
|
||||
|
||||
void TmlNot_CheckAndWriteNoteWithTopMsg (const struct Tml_Timeline *Timeline,
|
||||
const struct TmlNot_Note *Not,
|
||||
Tml_TopMessage_t TopMessage,
|
||||
long PublisherCod);
|
||||
const struct TmlNot_Note *Not,
|
||||
Tml_TopMessage_t TopMessage,
|
||||
long PublisherCod);
|
||||
void TmlNot_ShowAuthorPhoto (struct UsrData *UsrDat,bool FormUnique);
|
||||
void TmlNot_WriteAuthorName (const struct UsrData *UsrDat,
|
||||
const char *Class);
|
||||
const char *Class);
|
||||
|
||||
void TmlNot_GetNoteSummary (const struct TmlNot_Note *Not,
|
||||
char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1]);
|
||||
char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1]);
|
||||
|
||||
void TmlNot_StoreAndPublishNote (TmlNot_Type_t NoteType,long Cod);
|
||||
void TmlNot_StoreAndPublishNoteInternal (TmlNot_Type_t NoteType,long Cod,
|
||||
struct TmlPub_Publication *Pub);
|
||||
struct TmlPub_Publication *Pub);
|
||||
void TmlNot_MarkNoteOneFileAsUnavailable (const char *Path);
|
||||
void TmlNot_MarkNotesChildrenOfFolderAsUnavailable (const char *Path);
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ void TmlNtf_GetNotifPublication (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
|||
Not.NotCod = Pub.NotCod;
|
||||
TmlNot_GetDataOfNoteByCod (&Not);
|
||||
|
||||
if (Not.Type == Tml_NOTE_POST)
|
||||
if (Not.Type == TmlNot_POST)
|
||||
{
|
||||
/***** Get post from database *****/
|
||||
if (Tml_DB_GetPostByCod (Not.Cod,&mysql_res) == 1) // Result should have a unique row
|
||||
|
|
|
@ -331,7 +331,7 @@ static long TmlPst_ReceivePost (void)
|
|||
PstCod = Tml_DB_CreateNewPost (&Content);
|
||||
|
||||
/* Insert post in notes */
|
||||
TmlNot_StoreAndPublishNoteInternal (Tml_NOTE_POST,PstCod,&Pub);
|
||||
TmlNot_StoreAndPublishNoteInternal (TmlNot_POST,PstCod,&Pub);
|
||||
|
||||
/***** Analyze content and store notifications about mentions *****/
|
||||
Str_AnalyzeTxtAndStoreNotifyEventToMentionedUsrs (Pub.PubCod,Content.Txt);
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
/*****************************************************************************/
|
||||
|
||||
static void TmlPub_InitializeRangeOfPubs (Tml_WhatToGet_t WhatToGet,
|
||||
struct TmlPub_RangePubsToGet *RangePubsToGet);
|
||||
struct TmlPub_RangePubsToGet *RangePubsToGet);
|
||||
|
||||
static unsigned TmlPub_GetMaxPubsToGet (const struct Tml_Timeline *Timeline);
|
||||
|
||||
|
@ -195,7 +195,7 @@ void TmlPub_GetListPubsToShowInTimeline (struct Tml_Timeline *Timeline)
|
|||
/*****************************************************************************/
|
||||
|
||||
static void TmlPub_InitializeRangeOfPubs (Tml_WhatToGet_t WhatToGet,
|
||||
struct TmlPub_RangePubsToGet *RangePubsToGet)
|
||||
struct TmlPub_RangePubsToGet *RangePubsToGet)
|
||||
{
|
||||
/* tml_pubs
|
||||
_____ 0
|
||||
|
|
Loading…
Reference in New Issue