mirror of https://github.com/acanas/swad-core.git
Version 14.117.15
This commit is contained in:
parent
9d53b736f9
commit
ea408cfc96
15
swad_QR.c
15
swad_QR.c
|
@ -109,14 +109,17 @@ static void QR_ImageQRCode (const char *QRString)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<div style=\"width:%upx; text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"width:%upx; text-align:center;\">"
|
||||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s\""
|
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s\""
|
||||||
" alt=\"%s\" style=\"width:%upx; height:%upx;"
|
" alt=\"%s\" title=\"%s\""
|
||||||
" border:1px dashed silver;\" /><br />"
|
" style=\"width:%upx; height:%upx;"
|
||||||
|
" border:1px dashed silver;\" />"
|
||||||
|
"<br />"
|
||||||
"<span class=\"DAT\">%s</span>"
|
"<span class=\"DAT\">%s</span>"
|
||||||
"</div>",
|
"</div>",
|
||||||
QR_CODE_SIZE,
|
QR_CODE_SIZE,
|
||||||
QR_CODE_SIZE,QR_CODE_SIZE,
|
QR_CODE_SIZE,QR_CODE_SIZE,
|
||||||
QRString,
|
QRString,
|
||||||
QRString,
|
QRString,
|
||||||
|
QRString,
|
||||||
QR_CODE_SIZE,QR_CODE_SIZE,
|
QR_CODE_SIZE,QR_CODE_SIZE,
|
||||||
QRString);
|
QRString);
|
||||||
}
|
}
|
||||||
|
@ -132,10 +135,12 @@ void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod)
|
||||||
|
|
||||||
/***** Show QR code with direct link to the current centre *****/
|
/***** Show QR code with direct link to the current centre *****/
|
||||||
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/%s?%s=%ld\""
|
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/%s?%s=%ld\""
|
||||||
" alt=\"%s\" style=\"width:%upx; height:%upx;\" />",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:%upx; height:%upx;\" />",
|
||||||
Size,Size,
|
Size,Size,
|
||||||
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],ParamStr,Cod,
|
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],ParamStr,Cod,
|
||||||
Txt_Shortcut,
|
Txt_Shortcut,
|
||||||
|
Txt_Shortcut,
|
||||||
Size,Size);
|
Size,Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,9 +155,11 @@ void QR_ExamAnnnouncement (void)
|
||||||
/***** Show QR code with direct link to the exam announcement *****/
|
/***** Show QR code with direct link to the exam announcement *****/
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/?crs=%ld%%26act=%ld\""
|
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/?crs=%ld%%26act=%ld\""
|
||||||
" alt=\"%s\" style=\"width:200px; height:200px;\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:200px; height:200px;\" />"
|
||||||
"</div>",
|
"</div>",
|
||||||
200,200,
|
200,200,
|
||||||
Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCrs.Crs.CrsCod,Act_Actions[ActSeeExaAnn].ActCod,
|
Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCrs.Crs.CrsCod,Act_Actions[ActSeeExaAnn].ActCod,
|
||||||
|
Txt_Link_to_announcement_of_exam,
|
||||||
Txt_Link_to_announcement_of_exam);
|
Txt_Link_to_announcement_of_exam);
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.117.14 (2015/07/22)"
|
#define Log_PLATFORM_VERSION "SWAD 14.117.15 (2015/07/22)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.117.15:Jul 22, 2015 Checking "alt" and "title" in all images. (185279 lines)
|
||||||
Version 14.117.14:Jul 22, 2015 Checking "alt" and "title" in all images. (185203 lines)
|
Version 14.117.14:Jul 22, 2015 Checking "alt" and "title" in all images. (185203 lines)
|
||||||
Version 14.117.13:Jul 22, 2015 Checking "alt" and "title" in all images.
|
Version 14.117.13:Jul 22, 2015 Checking "alt" and "title" in all images.
|
||||||
Removed unused function about mail domains. (185153 lines)
|
Removed unused function about mail domains. (185153 lines)
|
||||||
|
|
|
@ -408,6 +408,7 @@ void Plc_FreeListPlaces (void)
|
||||||
static void Plc_ListPlacesForEdition (void)
|
static void Plc_ListPlacesForEdition (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Places;
|
extern const char *Txt_Places;
|
||||||
|
extern const char *Txt_Removal_not_allowed;
|
||||||
extern const char *Txt_Remove_place;
|
extern const char *Txt_Remove_place;
|
||||||
unsigned NumPlc;
|
unsigned NumPlc;
|
||||||
struct Place *Plc;
|
struct Place *Plc;
|
||||||
|
@ -429,7 +430,9 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
"<td class=\"BM\">");
|
"<td class=\"BM\">");
|
||||||
if (Plc->NumCtrs) // Place has centres ==> deletion forbidden
|
if (Plc->NumCtrs) // Place has centres ==> deletion forbidden
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
|
||||||
" alt=\"\" class=\"ICON16x16\" />",
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\" />",
|
||||||
|
Txt_Removal_not_allowed,Txt_Removal_not_allowed,
|
||||||
Gbl.Prefs.IconsURL);
|
Gbl.Prefs.IconsURL);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -121,7 +121,8 @@ void Plg_ListPlugins (void)
|
||||||
"<td class=\"DAT\" style=\"width:32px;"
|
"<td class=\"DAT\" style=\"width:32px;"
|
||||||
" text-align:left;\">"
|
" text-align:left;\">"
|
||||||
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
|
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
|
||||||
"<img src=\"%s/%s/%s24x24.gif\" alt=\"%s\""
|
"<img src=\"%s/%s/%s24x24.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" style=\"width:24px; height:24px;\" />"
|
" style=\"width:24px; height:24px;\" />"
|
||||||
"</a>"
|
"</a>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -132,7 +133,8 @@ void Plg_ListPlugins (void)
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>",
|
"</tr>",
|
||||||
URL,Plg->Name,
|
URL,Plg->Name,
|
||||||
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,Gbl.Plugins.Lst[NumPlg].Logo,Plg->Name,
|
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,Gbl.Plugins.Lst[NumPlg].Logo,
|
||||||
|
Plg->Name,Plg->Name,
|
||||||
URL,Plg->Name,
|
URL,Plg->Name,
|
||||||
Plg->Name);
|
Plg->Name);
|
||||||
}
|
}
|
||||||
|
@ -386,11 +388,14 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
|
|
||||||
/* Plugin logo */
|
/* Plugin logo */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"width:28px; text-align:center;\">"
|
fprintf (Gbl.F.Out,"<td style=\"width:28px; text-align:center;\">"
|
||||||
"<img src=\"%s/%s/%s24x24.gif\" alt=\"%s\""
|
"<img src=\"%s/%s/%s24x24.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" style=\"width:24px; height:24px;\" />"
|
" style=\"width:24px; height:24px;\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,
|
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,
|
||||||
Gbl.Plugins.Lst[NumPlg].Logo,Gbl.Plugins.Lst[NumPlg].Name);
|
Gbl.Plugins.Lst[NumPlg].Logo,
|
||||||
|
Gbl.Plugins.Lst[NumPlg].Name,
|
||||||
|
Gbl.Plugins.Lst[NumPlg].Name);
|
||||||
|
|
||||||
/* Plugin name */
|
/* Plugin name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
|
|
@ -345,7 +345,8 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
NumStds = Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_TEACHER,Rol_STUDENT);
|
NumStds = Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_TEACHER,Rol_STUDENT);
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/tch64x64.gif\" title=\"%s\""
|
"<img src=\"%s/tch64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">"
|
"<td class=\"PRF_FIG DAT\">"
|
||||||
|
@ -355,6 +356,7 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_ROLES_SINGUL_Abc[Rol_TEACHER][UsrDat->Sex],
|
Txt_ROLES_SINGUL_Abc[Rol_TEACHER][UsrDat->Sex],
|
||||||
|
Txt_ROLES_SINGUL_Abc[Rol_TEACHER][UsrDat->Sex],
|
||||||
NumCrssUsrIsTeacher,
|
NumCrssUsrIsTeacher,
|
||||||
(NumCrssUsrIsTeacher == 1) ? Txt_course :
|
(NumCrssUsrIsTeacher == 1) ? Txt_course :
|
||||||
Txt_courses,
|
Txt_courses,
|
||||||
|
@ -369,7 +371,8 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
NumStds = Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_STUDENT,Rol_STUDENT);
|
NumStds = Usr_GetNumUsrsInCrssOfAUsr (UsrDat->UsrCod,Rol_STUDENT,Rol_STUDENT);
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/std64x64.gif\" title=\"%s\""
|
"<img src=\"%s/std64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">"
|
"<td class=\"PRF_FIG DAT\">"
|
||||||
|
@ -379,6 +382,7 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_ROLES_SINGUL_Abc[Rol_STUDENT][UsrDat->Sex],
|
Txt_ROLES_SINGUL_Abc[Rol_STUDENT][UsrDat->Sex],
|
||||||
|
Txt_ROLES_SINGUL_Abc[Rol_STUDENT][UsrDat->Sex],
|
||||||
NumCrssUsrIsStudent,
|
NumCrssUsrIsStudent,
|
||||||
(NumCrssUsrIsStudent == 1) ? Txt_course :
|
(NumCrssUsrIsStudent == 1) ? Txt_course :
|
||||||
Txt_courses,
|
Txt_courses,
|
||||||
|
@ -395,7 +399,8 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
NumPublicFiles = 0;
|
NumPublicFiles = 0;
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/file64x64.gif\" title=\"%s\""
|
"<img src=\"%s/file64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">"
|
"<td class=\"PRF_FIG DAT\">"
|
||||||
|
@ -405,6 +410,7 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Files,
|
Txt_Files,
|
||||||
|
Txt_Files,
|
||||||
NumFiles,
|
NumFiles,
|
||||||
(NumFiles == 1) ? Txt_file :
|
(NumFiles == 1) ? Txt_file :
|
||||||
Txt_files,
|
Txt_files,
|
||||||
|
@ -416,11 +422,13 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
/* First click time */
|
/* First click time */
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/clock64x64.gif\" title=\"%s\""
|
"<img src=\"%s/clock64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">",
|
"<td class=\"PRF_FIG DAT\">",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_From_TIME,
|
||||||
Txt_From_TIME);
|
Txt_From_TIME);
|
||||||
if (UsrFigures.FirstClickTime.Date.Year)
|
if (UsrFigures.FirstClickTime.Date.Year)
|
||||||
{
|
{
|
||||||
|
@ -449,11 +457,13 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
/* Number of clicks */
|
/* Number of clicks */
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/click64x64.gif\" title=\"%s\""
|
"<img src=\"%s/click64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">",
|
"<td class=\"PRF_FIG DAT\">",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Clicks,
|
||||||
Txt_Clicks);
|
Txt_Clicks);
|
||||||
|
|
||||||
if (UsrFigures.NumClicks >= 0)
|
if (UsrFigures.NumClicks >= 0)
|
||||||
|
@ -488,11 +498,13 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
/***** Number of file views *****/
|
/***** Number of file views *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/download64x64.gif\" title=\"%s\""
|
"<img src=\"%s/download64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">",
|
"<td class=\"PRF_FIG DAT\">",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Downloads,
|
||||||
Txt_Downloads);
|
Txt_Downloads);
|
||||||
if (UsrFigures.NumFileViews >= 0)
|
if (UsrFigures.NumFileViews >= 0)
|
||||||
{
|
{
|
||||||
|
@ -525,11 +537,13 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
/***** Number of posts in forums *****/
|
/***** Number of posts in forums *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/forum64x64.gif\" title=\"%s\""
|
"<img src=\"%s/forum64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">",
|
"<td class=\"PRF_FIG DAT\">",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Forums,
|
||||||
Txt_Forums);
|
Txt_Forums);
|
||||||
if (UsrFigures.NumForPst >= 0)
|
if (UsrFigures.NumForPst >= 0)
|
||||||
{
|
{
|
||||||
|
@ -562,11 +576,13 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
/***** Number of messages sent *****/
|
/***** Number of messages sent *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"PRF_ICON_CONTAINER\">"
|
"<td class=\"PRF_ICON_CONTAINER\">"
|
||||||
"<img src=\"%s/msg64x64.gif\" title=\"%s\""
|
"<img src=\"%s/msg64x64.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"PRF_ICON\" />"
|
" class=\"PRF_ICON\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td class=\"PRF_FIG DAT\">",
|
"<td class=\"PRF_FIG DAT\">",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Messages,
|
||||||
Txt_Messages);
|
Txt_Messages);
|
||||||
if (UsrFigures.NumMsgSnt >= 0)
|
if (UsrFigures.NumMsgSnt >= 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -268,6 +268,7 @@ void Rec_ListFieldsRecordsForEdition (void)
|
||||||
void Rec_ShowFormCreateRecordField (void)
|
void Rec_ShowFormCreateRecordField (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_New_record_field;
|
extern const char *Txt_New_record_field;
|
||||||
|
extern const char *Txt_Removal_not_allowed;
|
||||||
extern const char *Txt_RECORD_FIELD_VISIBILITY_MENU[Rec_NUM_TYPES_VISIBILITY];
|
extern const char *Txt_RECORD_FIELD_VISIBILITY_MENU[Rec_NUM_TYPES_VISIBILITY];
|
||||||
extern const char *Txt_Create_record_field;
|
extern const char *Txt_Create_record_field;
|
||||||
Rec_VisibilityRecordFields_t Vis;
|
Rec_VisibilityRecordFields_t Vis;
|
||||||
|
@ -285,9 +286,12 @@ void Rec_ShowFormCreateRecordField (void)
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"BM\">"
|
"<td class=\"BM\">"
|
||||||
"<img src=\"%s/deloff16x16.gif\""
|
"<img src=\"%s/deloff16x16.gif\""
|
||||||
" alt=\"\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\" />"
|
||||||
"</td>",
|
"</td>",
|
||||||
Gbl.Prefs.IconsURL);
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Removal_not_allowed,
|
||||||
|
Txt_Removal_not_allowed);
|
||||||
|
|
||||||
/***** Field name *****/
|
/***** Field name *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||||
|
@ -1352,12 +1356,14 @@ static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListU
|
||||||
fprintf (Gbl.F.Out," style=\"vertical-align:middle;\""
|
fprintf (Gbl.F.Out," style=\"vertical-align:middle;\""
|
||||||
" onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
" onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
"<img src=\"%s/clock16x16.gif\""
|
"<img src=\"%s/clock16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" class=\"ICON16x16\" />"
|
||||||
"<span class=\"%s\"> %s</span>"
|
"<span class=\"%s\"> %s</span>"
|
||||||
"</div>",
|
"</div>",
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Show_office_hours,
|
Txt_Show_office_hours,
|
||||||
|
Txt_Show_office_hours,
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_Show_office_hours);
|
Txt_Show_office_hours);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
@ -2191,12 +2197,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
{
|
{
|
||||||
Act_FormStart (ActReqEdiRecCom);
|
Act_FormStart (ActReqEdiRecCom);
|
||||||
Act_LinkFormSubmit (Txt_Edit_my_personal_data,NULL);
|
Act_LinkFormSubmit (Txt_Edit_my_personal_data,NULL);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/edit16x16.gif\""
|
"<img src=\"%s/edit16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Edit,
|
||||||
Txt_Edit);
|
Txt_Edit);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2213,12 +2223,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
ActSeeRecOneTch);
|
ActSeeRecOneTch);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_View_record_for_this_course,NULL);
|
Act_LinkFormSubmit (Txt_View_record_for_this_course,NULL);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/card16x16.gif\""
|
"<img src=\"%s/card16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_View_record_for_this_course,
|
||||||
Txt_View_record_for_this_course);
|
Txt_View_record_for_this_course);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2234,12 +2248,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Act_FormStart (ActReqMdfUsr);
|
Act_FormStart (ActReqMdfUsr);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Admin_user,NULL);
|
Act_LinkFormSubmit (Txt_Admin_user,NULL);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/config16x16.gif\""
|
"<img src=\"%s/config16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Admin_user,
|
||||||
Txt_Admin_user);
|
Txt_Admin_user);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2259,12 +2277,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Grp_PutParamAllGroups ();
|
Grp_PutParamAllGroups ();
|
||||||
Par_PutHiddenParamChar ("FullTree",'Y'); // By default, show all files
|
Par_PutHiddenParamChar ("FullTree",'Y'); // By default, show all files
|
||||||
Act_LinkFormSubmit (Txt_View_works,ClassData);
|
Act_LinkFormSubmit (Txt_View_works,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/folder16x16.gif\""
|
"<img src=\"%s/folder16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_View_works,
|
||||||
Txt_View_works);
|
Txt_View_works);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
|
||||||
|
@ -2278,12 +2300,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
}
|
}
|
||||||
Grp_PutParamAllGroups ();
|
Grp_PutParamAllGroups ();
|
||||||
Act_LinkFormSubmit (Txt_See_exams,ClassData);
|
Act_LinkFormSubmit (Txt_See_exams,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/file16x16.gif\""
|
"<img src=\"%s/file16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_See_exams,
|
||||||
Txt_See_exams);
|
Txt_See_exams);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
|
||||||
|
@ -2295,12 +2321,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Par_PutHiddenParamString ("UsrCodStd",UsrDat->EncryptedUsrCod);
|
Par_PutHiddenParamString ("UsrCodStd",UsrDat->EncryptedUsrCod);
|
||||||
Grp_PutParamAllGroups ();
|
Grp_PutParamAllGroups ();
|
||||||
Act_LinkFormSubmit (Txt_Attendance,ClassData);
|
Act_LinkFormSubmit (Txt_Attendance,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/rollcall16x16.gif\""
|
"<img src=\"%s/rollcall16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Attendance,
|
||||||
Txt_Attendance);
|
Txt_Attendance);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2314,12 +2344,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
else
|
else
|
||||||
Msg_PutHiddenParamAnotherRecipient (UsrDat);
|
Msg_PutHiddenParamAnotherRecipient (UsrDat);
|
||||||
Act_LinkFormSubmit (Txt_Write_a_message,ClassData);
|
Act_LinkFormSubmit (Txt_Write_a_message,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/msg16x16.gif\""
|
"<img src=\"%s/msg16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Write_a_message,
|
||||||
Txt_Write_a_message);
|
Txt_Write_a_message);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
|
|
||||||
|
@ -2332,12 +2366,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Act_FormStart (ActUnfUsr);
|
Act_FormStart (ActUnfUsr);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Unfollow,ClassData);
|
Act_LinkFormSubmit (Txt_Unfollow,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/unfollow16x16.gif\""
|
"<img src=\"%s/unfollow16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Unfollow,
|
||||||
Txt_Unfollow);
|
Txt_Unfollow);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2346,12 +2384,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Act_FormStart (ActFolUsr);
|
Act_FormStart (ActFolUsr);
|
||||||
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Follow,ClassData);
|
Act_LinkFormSubmit (Txt_Follow,ClassData);
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
|
||||||
|
" style=\"display:inline;\" >"
|
||||||
"<img src=\"%s/follow16x16.gif\""
|
"<img src=\"%s/follow16x16.gif\""
|
||||||
" style=\"width:16px; height:16px; padding:0 2px;\" alt=\"%s\" />"
|
" alt=\"%s\" title=\"%s\""
|
||||||
|
" style=\"width:16px; height:16px;"
|
||||||
|
" padding:0 2px;\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>",
|
"</a>",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_Follow,
|
||||||
Txt_Follow);
|
Txt_Follow);
|
||||||
Act_FormEnd ();
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
@ -2617,11 +2659,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
if (Sex == Gbl.Usrs.Me.UsrDat.Sex)
|
if (Sex == Gbl.Usrs.Me.UsrDat.Sex)
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," />"
|
fprintf (Gbl.F.Out," />"
|
||||||
"<img src=\"%s/%s16x16.gif\" alt=\"%s\""
|
"<img src=\"%s/%s16x16.gif\""
|
||||||
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON16x16\""
|
" class=\"ICON16x16\""
|
||||||
" style=\"vertical-align:bottom;\" />%s",
|
" style=\"vertical-align:bottom;\" />%s",
|
||||||
Gbl.Prefs.IconsURL,Usr_StringsSexDB[Sex],
|
Gbl.Prefs.IconsURL,Usr_StringsSexDB[Sex],
|
||||||
Txt_SEX_SINGULAR_Abc[Sex],
|
Txt_SEX_SINGULAR_Abc[Sex],
|
||||||
|
Txt_SEX_SINGULAR_Abc[Sex],
|
||||||
Txt_SEX_SINGULAR_Abc[Sex]);
|
Txt_SEX_SINGULAR_Abc[Sex]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
|
Loading…
Reference in New Issue