mirror of https://github.com/acanas/swad-core.git
Version 14.124.6
This commit is contained in:
parent
d9a13d5d8b
commit
d2b6a07311
|
@ -107,7 +107,7 @@ void QR_PrintQRCode (void)
|
|||
|
||||
static void QR_ImageQRCode (const char *QRString)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div style=\"width:%upx; text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"width:%upx;\">"
|
||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;"
|
||||
|
@ -153,7 +153,7 @@ void QR_ExamAnnnouncement (void)
|
|||
extern const char *Txt_Link_to_announcement_of_exam;
|
||||
|
||||
/***** Show QR code with direct link to the exam announcement *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
|
||||
"<img src=\"https://chart.googleapis.com/chart?cht=qr&chs=%ux%u&chl=%s/?crs=%ld%%26act=%ld\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:200px; height:200px;\" />"
|
||||
|
|
|
@ -103,11 +103,12 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.124.5 (2015/08/06)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 14.124.6 (2015/08/24)"
|
||||
|
||||
// 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 14.124.6: Aug 24, 2015 Changes in CSS of forms. (184735 lines)
|
||||
Version 14.124.5: Aug 06, 2015 Changes in CSS of forms. (184760 lines)
|
||||
Version 14.124.4: Aug 06, 2015 Fixed bug in function to draw institution / centre / degree logo.
|
||||
Changes in CSS of forms. (184781 lines)
|
||||
|
|
|
@ -317,21 +317,19 @@ void Ntf_ShowMyNotifications (void)
|
|||
/***** Table start *****/
|
||||
Lay_StartRoundFrameTable (NULL,2,Txt_Notifications);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left;\">"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL\""
|
||||
" style=\"text-align:left;\">"
|
||||
"<th colspan=\"2\" class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -426,8 +424,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
/***** Write row for this notification *****/
|
||||
/* Write event icon */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s\" style=\"width:20px;"
|
||||
" text-align:left; vertical-align:top;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:20px;\">",
|
||||
ClassBackground);
|
||||
if (PutLink)
|
||||
{
|
||||
|
@ -451,8 +448,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Write event type */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\">",
|
||||
ClassBackground);
|
||||
if (PutLink)
|
||||
{
|
||||
|
@ -471,8 +467,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
Msg_WriteMsgAuthor (&UsrDat,80,11,ClassAuthorBg,true,NULL);
|
||||
|
||||
/* Write location */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\">",
|
||||
ClassBackground);
|
||||
if (NotifyEvent == Ntf_EVENT_FORUM_POST_COURSE ||
|
||||
NotifyEvent == Ntf_EVENT_FORUM_REPLY)
|
||||
|
@ -535,8 +530,7 @@ void Ntf_ShowMyNotifications (void)
|
|||
Msg_WriteMsgDate (DateTime,ClassBackground);
|
||||
|
||||
/* Write status (sent by email / pending to be sent by email) */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\">"
|
||||
"%s"
|
||||
"</td>" \
|
||||
"</tr>",
|
||||
|
@ -550,9 +544,8 @@ void Ntf_ShowMyNotifications (void)
|
|||
Cod,Crs.CrsCod,Gbl.Usrs.Me.UsrDat.UsrCod,Cfg_MAX_CHARS_NOTIF_SUMMARY_SWAD,false);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\"></td>"
|
||||
"<td colspan=\"5\" class=\"DAT\""
|
||||
" style=\"text-align:left; vertical-align:top;"
|
||||
" padding-bottom:10px;\">"
|
||||
"<td colspan=\"5\" class=\"DAT LEFT_TOP\""
|
||||
" style=\"padding-bottom:10px;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -1695,10 +1688,10 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
|||
Lay_StartRoundFrameTable (NULL,2,Txt_Notifications);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -1714,7 +1707,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:center;\">"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"checkbox\" name=\"%s\" value=\"Y\"",
|
||||
The_ClassForm[Gbl.Prefs.Theme],
|
||||
Txt_NOTIFY_EVENTS_PLURAL[NotifyEvent],
|
||||
|
@ -1723,7 +1716,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
|||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||
fprintf (Gbl.F.Out," />"
|
||||
"</td>"
|
||||
"<td style=\"text-align:center;\">"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"checkbox\" name=\"%s\" value=\"Y\"",
|
||||
Ntf_ParamEmailMeAboutNotifyEvents[NotifyEvent]);
|
||||
if ((Gbl.Usrs.Me.UsrDat.Prefs.EmailNtfEvents & (1 << NotifyEvent)))
|
||||
|
|
|
@ -100,7 +100,7 @@ void Pag_CalculatePagination (struct Pagination *Pagination)
|
|||
|
||||
void Pag_WriteLinksToPagesCentered (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct Pagination *Pagination)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Pag_WriteLinksToPages (WhatPaginate,ThrCod,Pagination,true,NULL,"TIT",false);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
@ -190,10 +190,10 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
/***** Links to several pages start here *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:5px;\">"
|
||||
"<tr>"
|
||||
"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"["
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>",
|
||||
Font,Font,Txt_Page);
|
||||
|
@ -201,7 +201,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
/***** Possible link to page 1 *****/
|
||||
if (Pagination->StartPage > 1)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">",
|
||||
Font);
|
||||
switch (WhatPaginate)
|
||||
{
|
||||
|
@ -252,7 +252,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
Act_FormEnd ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
if (Pagination->LeftPage > 2)
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"..."
|
||||
"</td>",
|
||||
Font);
|
||||
|
@ -261,7 +261,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
/***** Posible link to page left *****/
|
||||
if (Pagination->LeftPage > 1 && Pagination->LeftPage < Pagination->StartPage)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">",
|
||||
Font);
|
||||
switch (WhatPaginate)
|
||||
{
|
||||
|
@ -313,7 +313,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
Act_FormEnd ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
if (Pagination->LeftPage < Pagination->StartPage-1)
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"..."
|
||||
"</td>",
|
||||
Font);
|
||||
|
@ -324,7 +324,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
NumPage <= Pagination->EndPage;
|
||||
NumPage++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">",
|
||||
Font);
|
||||
if (!LinkToPagCurrent && NumPage == Pagination->CurrentPage)
|
||||
fprintf (Gbl.F.Out,"<u>%u</u>",(unsigned) NumPage);
|
||||
|
@ -383,14 +383,15 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
}
|
||||
|
||||
/***** Posible link to page right *****/
|
||||
if (Pagination->RightPage > Pagination->EndPage && Pagination->RightPage < Pagination->NumPags)
|
||||
if (Pagination->RightPage > Pagination->EndPage &&
|
||||
Pagination->RightPage < Pagination->NumPags)
|
||||
{
|
||||
if (Pagination->RightPage > Pagination->EndPage+1)
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"..."
|
||||
"</td>",
|
||||
Font);
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">",
|
||||
Font);
|
||||
switch (WhatPaginate)
|
||||
{
|
||||
|
@ -446,11 +447,11 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
if (Pagination->EndPage < Pagination->NumPags)
|
||||
{
|
||||
if (Pagination->NumPags > Pagination->RightPage+1)
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"..."
|
||||
"</td>",
|
||||
Font);
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">",
|
||||
Font);
|
||||
switch (WhatPaginate)
|
||||
{
|
||||
|
@ -501,7 +502,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
|||
Act_FormEnd ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
}
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE\">"
|
||||
"]"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
|
|
|
@ -690,7 +690,7 @@ void Pwd_ShowFormChgPwd (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s: "
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"password\" name=\"UsrPwd\""
|
||||
" size=\"25\" maxlength=\"%u\" autocomplete=\"off\" />"
|
||||
"</td>"
|
||||
|
@ -738,7 +738,7 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s: "
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"password\" name=\"Paswd1\""
|
||||
" size=\"25\" maxlength=\"%u\" placeholder=\"%s\" />"
|
||||
"</td>"
|
||||
|
@ -747,7 +747,7 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s: "
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"password\" name=\"Paswd2\""
|
||||
" size=\"25\" maxlength=\"%u\" placeholder=\"%s\" />"
|
||||
"</td>"
|
||||
|
@ -785,7 +785,7 @@ void Pwd_ShowFormOthPwd (void)
|
|||
/***** Show user's record *****/
|
||||
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto;\">"
|
||||
"<tr>"
|
||||
"<td colspan=\"2\" style=\"text-align:center;\">");
|
||||
"<td colspan=\"2\" class=\"CENTER_MIDDLE\">");
|
||||
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
@ -871,7 +871,7 @@ void Pwd_AskForConfirmationOnDangerousAction (void)
|
|||
extern const char *Txt_I_understand_that_this_action_may_have_serious_consequences_and_can_not_be_undone;
|
||||
extern const char *Txt_For_security_enter_your_password;
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin:10px;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:10px;\">"
|
||||
"<input type=\"checkbox\" name=\"Consent\" value=\"Y\" />"
|
||||
"<span class=\"%s\">%s</span><br />"
|
||||
"<span class=\"%s\">%s: </span>"
|
||||
|
|
45
swad_photo.c
45
swad_photo.c
|
@ -288,7 +288,7 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left;\">"
|
||||
"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"file\" name=\"%s\""
|
||||
" size=\"40\" maxlength=\"100\" value=\"%ld.jpg\" />"
|
||||
"</td>"
|
||||
|
@ -634,7 +634,7 @@ void Pho_ReceivePhotoAndDetectFaces (bool ItsMe,const struct UsrData *UsrDat)
|
|||
/***** Show map photo *****/
|
||||
sprintf (FileNamePhotoMap,"%s/%s/%s/%s_map.jpg",
|
||||
Cfg_PATH_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP,Gbl.UniqueNameEncrypted);
|
||||
fprintf (Gbl.F.Out,"<div class=\"TIT\" style=\"text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<div class=\"TIT CENTER_MIDDLE\">"
|
||||
"<img src=\"%s/%s/%s/%s_map.jpg\""
|
||||
" usemap=\"#faces_map\""
|
||||
" alt=\"%s\" title=\"%s\" />"
|
||||
|
@ -728,8 +728,7 @@ static void Pho_UpdatePhoto2 (void)
|
|||
for (NumPhoto = 0;
|
||||
NumPhoto < 3;
|
||||
NumPhoto++)
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"width:33%%;"
|
||||
" text-align:center; vertical-align:top;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_TOP\" style=\"width:33%%;\">"
|
||||
"<img src=\"%s/%s/%s/%s_paso%u.jpg\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;\" />"
|
||||
|
@ -1467,7 +1466,8 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
|
||||
if (SeeOrPrint == Pho_DEGREES_SEE)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 auto;\">");
|
||||
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
|
||||
" style=\"margin:0 auto;\">");
|
||||
|
||||
/***** Put a selector for the type of average *****/
|
||||
Pho_PutSelectorForTypeOfAvg ();
|
||||
|
@ -1520,7 +1520,7 @@ static void Pho_PutSelectorForTypeOfAvg (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Average_type);
|
||||
Act_FormStart (ActSeePhoDeg);
|
||||
Pho_PutHiddenParamPhotoSize ();
|
||||
|
@ -1589,7 +1589,7 @@ static void Pho_PutSelectorForHowComputePhotoSize (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Size_of_photos);
|
||||
Act_FormStart (ActSeePhoDeg);
|
||||
Pho_PutHiddenParamTypeOfAvg ();
|
||||
|
@ -1658,7 +1658,7 @@ static void Pho_PutSelectorForHowOrderDegrees (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"LEFT_MIDDLE\">",
|
||||
The_ClassForm[Gbl.Prefs.Theme],Txt_Sort_degrees_by);
|
||||
Act_FormStart (ActSeePhoDeg);
|
||||
Pho_PutHiddenParamTypeOfAvg ();
|
||||
|
@ -1909,8 +1909,7 @@ static void Pho_ShowOrPrintClassPhotoDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrin
|
|||
}
|
||||
|
||||
/***** Show average photo of students belonging to this degree *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"CLASSPHOTO\""
|
||||
" style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CLASSPHOTO CENTER_MIDDLE\">");
|
||||
Pho_ShowDegreeAvgPhotoAndStat (&Deg,SeeOrPrint,Usr_SEX_ALL,NumStds,NumStdsWithPhoto,&DateAvgPhoto);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
|
@ -1958,21 +1957,19 @@ static void Pho_ShowOrPrintListDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;"
|
||||
" vertical-align:top;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_TOP\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:center;"
|
||||
" vertical-align:top;\">"
|
||||
"%s "
|
||||
"<td class=\"TIT_TBL CENTER_TOP\">"
|
||||
"%s"
|
||||
"</td>",
|
||||
Txt_No_INDEX,
|
||||
Txt_Degree);
|
||||
for (Sex = (Usr_Sex_t) 0;
|
||||
Sex < Usr_NUM_SEXS;
|
||||
Sex++)
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:center; vertical-align:top;\">"
|
||||
"%s "
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL CENTER_TOP\">"
|
||||
"%s"
|
||||
"</td>",
|
||||
Txt_SEX_PLURAL_Abc[Sex]);
|
||||
fprintf (Gbl.F.Out,"</tr>");
|
||||
|
@ -2002,15 +1999,15 @@ static void Pho_ShowOrPrintListDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
|
||||
/***** Show logo and name of this degree *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;"
|
||||
" background-color:%s;\">"
|
||||
"%u "
|
||||
"<td class=\"DAT RIGHT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">"
|
||||
"%u"
|
||||
"</td>",
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd],++NumDegsNotEmpty);
|
||||
|
||||
/***** Show logo and name of this degree *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:left;"
|
||||
" background-color:%s;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\""
|
||||
" style=\"background-color:%s;\">",
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||
if (SeeOrPrint == Pho_DEGREES_SEE)
|
||||
fprintf (Gbl.F.Out,"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">",
|
||||
|
@ -2029,8 +2026,8 @@ static void Pho_ShowOrPrintListDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
|
|||
{
|
||||
/***** Show average photo of students belonging to this degree *****/
|
||||
Pho_GetNumStdsInDegree (Deg.DegCod,Sex,&NumStds,&NumStdsWithPhoto);
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" background-color:%s;\">",
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\""
|
||||
" style=\"background-color:%s;\">",
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||
if (Gbl.Usrs.Listing.WithPhotos)
|
||||
Pho_ShowDegreeAvgPhotoAndStat (&Deg,SeeOrPrint,Sex,NumStds,NumStdsWithPhoto,&DateAvgPhoto);
|
||||
|
|
53
swad_place.c
53
swad_place.c
|
@ -97,14 +97,13 @@ void Plc_SeePlaces (void)
|
|||
Plc_PutFormToEditPlcs ();
|
||||
|
||||
/***** Table head *****/
|
||||
Lay_StartRoundFrameTable (NULL,0,Txt_Places);
|
||||
Lay_StartRoundFrameTable (NULL,2,Txt_Places);
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
for (Order = Plc_ORDER_BY_PLACE;
|
||||
Order <= Plc_ORDER_BY_NUM_CTRS;
|
||||
Order++)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\""
|
||||
" style=\"text-align:left;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL LEFT_MIDDLE\">");
|
||||
Act_FormStart (ActSeePlc);
|
||||
Par_PutHiddenParamUnsigned ("Order",(unsigned) Order);
|
||||
Act_LinkFormSubmit (Txt_PLACES_HELP_ORDER[Order],"TIT_TBL");
|
||||
|
@ -126,12 +125,12 @@ void Plc_SeePlaces (void)
|
|||
{
|
||||
/* Write data of this place */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>",
|
||||
Gbl.Plcs.Lst[NumPlc].FullName);
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
" %u "
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
Gbl.Plcs.Lst[NumPlc].NumCtrs);
|
||||
|
@ -148,11 +147,11 @@ void Plc_SeePlaces (void)
|
|||
/***** Write centres with other place *****/
|
||||
NumCtrsInOtherPlcs = Ctr_GetNumCtrsInPlc (0);
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
" %u "
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
Txt_Other_places,NumCtrsInOtherPlcs);
|
||||
|
@ -160,11 +159,11 @@ void Plc_SeePlaces (void)
|
|||
|
||||
/***** Write centres with no place *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
" %u "
|
||||
"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
Txt_Place_unspecified,
|
||||
|
@ -438,14 +437,13 @@ static void Plc_ListPlacesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Place code */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
"%ld "
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%ld"
|
||||
"</td>",
|
||||
Plc->PlcCod);
|
||||
|
||||
/* Place short name */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRenPlcSho);
|
||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -455,8 +453,7 @@ static void Plc_ListPlacesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Place full name */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRenPlcFul);
|
||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -466,8 +463,8 @@ static void Plc_ListPlacesForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Number of centres */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
" %u "
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%u"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
Plc->NumCtrs);
|
||||
|
@ -682,10 +679,10 @@ static void Plc_PutFormToCreatePlace (void)
|
|||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -694,13 +691,13 @@ static void Plc_PutFormToCreatePlace (void)
|
|||
|
||||
/***** Place short name *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName);
|
||||
|
||||
/***** Place full name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>"
|
||||
"<td></td>"
|
||||
|
@ -727,16 +724,16 @@ static void Plc_PutHeadPlaces (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\"></td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||
"<td class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
|
|
@ -101,7 +101,7 @@ void Plg_ListPlugins (void)
|
|||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"width:32px;\">"
|
||||
"</td>"
|
||||
"<td class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<td class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -118,15 +118,14 @@ void Plg_ListPlugins (void)
|
|||
|
||||
/* Plugin logo */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"DAT\" style=\"width:32px;"
|
||||
" text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\" style=\"width:32px;\">"
|
||||
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
|
||||
"<img src=\"%s/%s/%s24x24.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:24px; height:24px;\" />"
|
||||
"</a>"
|
||||
"</td>"
|
||||
"<td class=\"DAT\" style=\"text-align:left;\">"
|
||||
"<td class=\"DAT LEFT_MIDDLE\">"
|
||||
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
|
||||
"%s"
|
||||
"</a>"
|
||||
|
@ -376,13 +375,13 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin code */
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||
"%ld "
|
||||
fprintf (Gbl.F.Out,"<td class=\"DAT RIGHT_MIDDLE\">"
|
||||
"%ld"
|
||||
"</td>",
|
||||
Plg->PlgCod);
|
||||
|
||||
/* Plugin logo */
|
||||
fprintf (Gbl.F.Out,"<td style=\"width:28px; text-align:center;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:28px;\">"
|
||||
"<img src=\"%s/%s/%s24x24.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" style=\"width:24px; height:24px;\" />"
|
||||
|
@ -393,8 +392,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
Gbl.Plugins.Lst[NumPlg].Name);
|
||||
|
||||
/* Plugin name */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActRenPlg);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -404,8 +402,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin description */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgPlgDes);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Description\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -415,8 +412,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin logo */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgPlgLog);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Logo\" size=\"4\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -426,8 +422,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin application key */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgPlgAppKey);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"AppKey\" size=\"16\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -437,8 +432,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin URL */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgPlgURL);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -448,8 +442,7 @@ static void Plg_ListPluginsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Plugin IP */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgPlgIP);
|
||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"IP\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||
|
@ -845,22 +838,22 @@ static void Plg_PutFormToCreatePlugin (void)
|
|||
|
||||
/***** Write heading *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -872,37 +865,37 @@ static void Plg_PutFormToCreatePlugin (void)
|
|||
Txt_IP);
|
||||
|
||||
/***** Plugin name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"Name\" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Plg_MAX_LENGTH_PLUGIN_NAME,Plg->Name);
|
||||
|
||||
/***** Plugin description *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"Description\" size=\"30\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Plg_MAX_LENGTH_PLUGIN_DESCRIPTION,Plg->Description);
|
||||
|
||||
/***** Plugin logo *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"Logo\" size=\"4\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Plg_MAX_LENGTH_PLUGIN_LOGO,Plg->Logo);
|
||||
|
||||
/***** Plugin application key *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"AppKey\" size=\"16\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Plg_MAX_LENGTH_PLUGIN_APP_KEY,Plg->AppKey);
|
||||
|
||||
/***** Plugin URL *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"URL\" size=\"15\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Cns_MAX_LENGTH_WWW,Plg->URL);
|
||||
|
||||
/***** Plugin IP address *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"IP\" size=\"10\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -931,26 +924,26 @@ static void Plg_PutHeadPlugins (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||
"<th class=\"TIT_TBL RIGHT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th style=\"width:28px;\"></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||
"<th class=\"TIT_TBL LEFT_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
|
|
@ -230,7 +230,7 @@ void Pre_PutSelectorToSelectLanguage (void)
|
|||
};
|
||||
|
||||
Act_FormStart (ActReqChgLan);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Lan\" style=\"width:%upx;margin:0;\""
|
||||
fprintf (Gbl.F.Out,"<select name=\"Lan\" style=\"width:%upx; margin:0;\""
|
||||
" onchange=\"javascript:document.getElementById('%s').submit();\">",
|
||||
SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId);
|
||||
for (Lan = (Txt_Language_t) 0;
|
||||
|
@ -377,7 +377,7 @@ void Pre_PutLeftIconToHideShowCols (void)
|
|||
Act_FormStart (ActHidLftCol);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||
" src=\"%s/central_left_8x800.gif\" alt=\"%s\""
|
||||
" title=\"%s\" style=\"width:8px;height:800px;\" />",
|
||||
" title=\"%s\" style=\"width:8px; height:800px;\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Hide_left_column,
|
||||
Txt_Hide_left_column);
|
||||
|
@ -387,7 +387,7 @@ void Pre_PutLeftIconToHideShowCols (void)
|
|||
Act_FormStart (ActShoLftCol);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||
" src=\"%s/central_right_8x800.gif\" alt=\"%s\""
|
||||
" title=\"%s\" style=\"width:8px;height:800px;\" />",
|
||||
" title=\"%s\" style=\"width:8px; height:800px;\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Show_left_column,
|
||||
Txt_Show_left_column);
|
||||
|
@ -409,7 +409,7 @@ void Pre_PutRigthIconToHideShowCols (void)
|
|||
Act_FormStart (ActHidRgtCol);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||
" src=\"%s/central_right_8x800.gif\" alt=\"%s\""
|
||||
" title=\"%s\" style=\"width:8px;height:800px;\" />",
|
||||
" title=\"%s\" style=\"width:8px; height:800px;\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Hide_right_column,
|
||||
Txt_Hide_right_column);
|
||||
|
@ -419,7 +419,7 @@ void Pre_PutRigthIconToHideShowCols (void)
|
|||
Act_FormStart (ActShoRgtCol);
|
||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||
" src=\"%s/central_left_8x800.gif\" alt=\"%s\""
|
||||
" title=\"%s\" style=\"width:8px;height:800px;\" />",
|
||||
" title=\"%s\" style=\"width:8px; height:800px;\" />",
|
||||
Gbl.Prefs.IconsURL,
|
||||
Txt_Show_right_column,
|
||||
Txt_Show_right_column);
|
||||
|
|
|
@ -228,15 +228,13 @@ bool Prf_ShowUserProfile (void)
|
|||
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto;\">"
|
||||
"<table style=\"margin:0 auto;\">"
|
||||
"<tr>"
|
||||
"<td rowspan=\"2\" style=\"text-align:center;"
|
||||
" vertical-align:top;\">");
|
||||
"<td rowspan=\"2\" class=\"CENTER_TOP\">");
|
||||
|
||||
/***** Common record *****/
|
||||
Rec_ShowSharedUsrRecord (Rec_RECORD_PUBLIC,&Gbl.Usrs.Other.UsrDat);
|
||||
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td style=\"text-align:left;"
|
||||
" vertical-align:top;\">");
|
||||
"<td class=\"LEFT_TOP\">");
|
||||
|
||||
/***** Show details of user's profile *****/
|
||||
Prf_ShowDetailsUserProfile (&Gbl.Usrs.Other.UsrDat);
|
||||
|
@ -245,7 +243,7 @@ bool Prf_ShowUserProfile (void)
|
|||
"</tr>"
|
||||
"<tr>"
|
||||
"</td>"
|
||||
"<td style=\"vertical-align:bottom;\">");
|
||||
"<td class=\"CENTER_BOTTOM\">");
|
||||
|
||||
/***** Show following and followers *****/
|
||||
Fol_ShowFollowingAndFollowers (&Gbl.Usrs.Other.UsrDat);
|
||||
|
@ -1320,7 +1318,7 @@ void Prf_ShowRankingFigure (const char *Query)
|
|||
/***** Show row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Prf_ShowUsrInRanking (&UsrDat,Rank);
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:right; height:40px;"
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"height:40px;"
|
||||
" background-color:%s;\">%ld</td>"
|
||||
"</tr>",
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd],Figure);
|
||||
|
@ -1462,7 +1460,7 @@ void Prf_GetAndShowRankingClicksPerDay (void)
|
|||
/***** Show row *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Prf_ShowUsrInRanking (&UsrDat,Rank);
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:right; height:40px;"
|
||||
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"height:40px;"
|
||||
" background-color:%s;\">",
|
||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||
Str_WriteFloatNum (NumClicksPerDay);
|
||||
|
@ -1491,8 +1489,8 @@ void Prf_ShowUsrInRanking (const struct UsrData *UsrDat,unsigned Rank)
|
|||
char PhotoURL[PATH_MAX+1];
|
||||
bool Visible = Pri_ShowIsAllowed (UsrDat->ProfileVisibility,UsrDat->UsrCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<td class=\"RANK\" style=\"text-align:right;"
|
||||
" height:40px; background-color:%s;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"RANK RIGHT_MIDDLE\" style=\"height:40px;"
|
||||
" background-color:%s;\">"
|
||||
"#%u"
|
||||
"</td>"
|
||||
"<td style=\"width:28px; height:40px;"
|
||||
|
|
181
swad_record.c
181
swad_record.c
|
@ -205,8 +205,7 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Name of the field */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">");
|
||||
Act_FormStart (ActRenFie);
|
||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FieldName\""
|
||||
|
@ -219,8 +218,7 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Number of lines in the form */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgRowFie);
|
||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NumLines\" size=\"2\""
|
||||
|
@ -232,8 +230,7 @@ void Rec_ListFieldsRecordsForEdition (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Visibility of a field */
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||
" vertical-align:middle;\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActChgVisFie);
|
||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||
fprintf (Gbl.F.Out,"<select name=\"Visibility\""
|
||||
|
@ -283,20 +280,20 @@ void Rec_ShowFormCreateRecordField (void)
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Field name *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"FieldName\""
|
||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\" />"
|
||||
"</td>",
|
||||
Rec_MAX_LENGTH_NAME_FIELD,Gbl.CurrentCrs.Records.Field.Name);
|
||||
|
||||
/***** Number of lines in form ******/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<input type=\"text\" name=\"NumLines\" size=\"2\" maxlength=\"2\" value=\"%u\" />"
|
||||
"</td>",
|
||||
Gbl.CurrentCrs.Records.Field.NumLines);
|
||||
|
||||
/***** Visibility to students *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
|
||||
"<select name=\"Visibility\">");
|
||||
for (Vis = (Rec_VisibilityRecordFields_t) 0;
|
||||
Vis < (Rec_VisibilityRecordFields_t) Rec_NUM_TYPES_VISIBILITY;
|
||||
|
@ -332,13 +329,13 @@ static void Rec_WriteHeadingRecordFields (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<th></th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||
"<th class=\"TIT_TBL CENTER_MIDDLE\">"
|
||||
"%s"
|
||||
"</th>"
|
||||
"</tr>",
|
||||
|
@ -917,8 +914,8 @@ void Rec_ListRecordsInvs (void)
|
|||
Usr_GetUsrCodFromEncryptedUsrCod (&UsrDat);
|
||||
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat)) // Get from the database the data of the student
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||
" margin-bottom:10px;");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
if (Gbl.CurrentAct == ActPrnRecSevInv &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1078,8 +1075,8 @@ void Rec_ListRecordsStdsCrs (void)
|
|||
{
|
||||
UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat.UsrCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||
" margin-bottom:10px;");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
if (Gbl.CurrentAct == ActPrnRecSevStd &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1162,8 +1159,8 @@ static void Rec_ShowRecordOneTchCrs (void)
|
|||
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||
" margin-bottom:10px;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;\">");
|
||||
|
||||
/* Common record */
|
||||
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
|
||||
|
@ -1247,8 +1244,8 @@ void Rec_ListRecordsTchsCrs (void)
|
|||
{
|
||||
UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat.UsrCod);
|
||||
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||
" margin-bottom:10px;");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
|
||||
" style=\"margin-bottom:10px;");
|
||||
if (Gbl.CurrentAct == ActPrnRecSevTch &&
|
||||
NumUsrs != 0 &&
|
||||
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
|
||||
|
@ -1534,16 +1531,15 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
|
||||
/***** Header *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td colspan=\"2\" style=\"text-align:left;"
|
||||
" vertical-align:top;\">"
|
||||
"<td colspan=\"2\" class=\"LEFT_TOP\">"
|
||||
"<table style=\"width:100%%;\">"
|
||||
"<tr>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
Rec_DEGREE_LOGO_SIZE);
|
||||
Log_DrawLogo (Sco_SCOPE_DEG,Gbl.CurrentDeg.Deg.DegCod,
|
||||
Gbl.CurrentDeg.Deg.ShortName,Rec_DEGREE_LOGO_SIZE,NULL,true);
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td class=\"%s\" style=\"text-align:center;\">"
|
||||
"<td class=\"%s CENTER_MIDDLE\">"
|
||||
"%s<br />%s<br />%s"
|
||||
"</td>"
|
||||
"</tr>"
|
||||
|
@ -1593,8 +1589,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
|||
ThisFieldHasText = false;
|
||||
|
||||
/***** Write form, text, or nothing depending on the user's role and the visibility of the field... */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:%upx;"
|
||||
" text-align:left; vertical-align:top;"
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\" style=\"width:%upx;"
|
||||
" background-color:%s;\">",
|
||||
ClassData,Col2Width,Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||
if (ICanEdit) // Show with form
|
||||
|
@ -1851,7 +1846,7 @@ void Rec_ShowFormSignUpWithMyCommonRecord (void)
|
|||
extern const char *Txt_Sign_up;
|
||||
|
||||
/***** Show the form *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Act_FormStart (ActSignUp);
|
||||
Rec_ShowSharedUsrRecord (Rec_FORM_SIGN_UP,&Gbl.Usrs.Me.UsrDat);
|
||||
Lay_PutConfirmButton (Txt_Sign_up);
|
||||
|
@ -1927,7 +1922,7 @@ void Rec_ShowCommonRecordUnmodifiable (struct UsrData *UsrDat)
|
|||
UsrDat->Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat->UsrCod);
|
||||
|
||||
/***** Show user's record *****/
|
||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
|
||||
Rec_ShowSharedUsrRecord (Rec_CHECK_OTHER_USR_COMMON_RECORD,UsrDat);
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
|
@ -2113,8 +2108,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Institution *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td style=\"width:%upx; height:%upx;"
|
||||
" text-align:center; vertical-align:middle;\">",
|
||||
"<td class=\"CENTER_MIDDLE\""
|
||||
" style=\"width:%upx; height:%upx;\">",
|
||||
TopC1Width,TopC1Width);
|
||||
if (UsrDat->InsCod > 0)
|
||||
{
|
||||
|
@ -2137,9 +2132,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
}
|
||||
}
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; height:%upx;"
|
||||
" text-align:left; vertical-align:middle;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx; height:%upx;\">",
|
||||
ClassHead,TopC2Width,TopC1Width);
|
||||
if (UsrDat->InsCod > 0)
|
||||
{
|
||||
|
@ -2161,8 +2155,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Photo *****/
|
||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"3\" style=\"width:%upx;"
|
||||
" text-align:center; vertical-align:top;\">",
|
||||
fprintf (Gbl.F.Out,"<td rowspan=\"3\" class=\"CENTER_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
TopC3Width);
|
||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||
NULL,
|
||||
|
@ -2172,8 +2166,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Commands *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td rowspan=\"3\""
|
||||
" style=\"width:%upx; vertical-align:top;\">",
|
||||
"<td rowspan=\"3\" class=\"LEFT_TOP\""
|
||||
" style=\"width:%upx;\">",
|
||||
TopC1Width);
|
||||
|
||||
if (PutFormLinks && Gbl.Usrs.Me.Logged)
|
||||
|
@ -2392,8 +2386,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/***** Full name *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME\" style=\"width:%upx;"
|
||||
" text-align:left; vertical-align:top;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_TOP\""
|
||||
" style=\"width:%upx;\">"
|
||||
"%s<br />%s<br />%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -2403,8 +2397,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
UsrDat->Surname2);
|
||||
|
||||
/***** User's nickname *****/
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME\" style=\"width:%upx;"
|
||||
" text-align:left; vertical-align:bottom;\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_BOTTOM\""
|
||||
" style=\"width:%upx;\">"
|
||||
"<div class=\"REC_NICK\">",
|
||||
TopC2Width);
|
||||
if (UsrDat->Nickname[0])
|
||||
|
@ -2432,8 +2426,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** Country *****/
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"%s\" style=\"width:%upx;"
|
||||
" text-align:left; vertical-align:top;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">",
|
||||
ClassData,TopC2Width);
|
||||
if (ShowData && UsrDat->CtyCod > 0)
|
||||
{
|
||||
|
@ -2444,7 +2437,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
|
||||
/***** User's web and social networks *****/
|
||||
fprintf (Gbl.F.Out,"<td style=\"width:%upx;\">"
|
||||
"<div style=\"vertical-align:top; margin:0 auto;\">",
|
||||
"<div class=\"CENTER_TOP\" style=\"margin:0 auto;\">",
|
||||
TopC3Width);
|
||||
Net_ShowWebsAndSocialNets (UsrDat);
|
||||
fprintf (Gbl.F.Out,"</div>"
|
||||
|
@ -2485,8 +2478,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Email,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (UsrDat->Email[0])
|
||||
|
@ -2526,8 +2519,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
"%s:</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Role,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
@ -2634,8 +2627,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
"<td class=\"%s RIGHT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
"%s*:</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Sex,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
@ -2650,7 +2643,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
"<img src=\"%s/%s16x16.gif\""
|
||||
" alt=\"%s\" title=\"%s\""
|
||||
" class=\"ICON16x16\""
|
||||
" style=\"vertical-align:bottom;\" />%s",
|
||||
" style=\"vertical-align:bottom;\" />"
|
||||
"%s",
|
||||
Gbl.Prefs.IconsURL,Usr_StringsSexDB[Sex],
|
||||
Txt_SEX_SINGULAR_Abc[Sex],
|
||||
Txt_SEX_SINGULAR_Abc[Sex],
|
||||
|
@ -2665,8 +2659,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">"
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">"
|
||||
"%s"
|
||||
"</td>"
|
||||
"</tr>",
|
||||
|
@ -2687,8 +2681,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname1\""
|
||||
|
@ -2707,8 +2701,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,
|
||||
Txt_Surname_2,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
@ -2733,8 +2727,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td class=\"%s\" colspan=\"2\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FirstName\""
|
||||
|
@ -2765,8 +2759,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
|
||||
fprintf (Gbl.F.Out,"*");
|
||||
fprintf (Gbl.F.Out,":</td>"
|
||||
"<td class=\"%s\" colspan=\"2\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
|
||||
/* Selector of country */
|
||||
|
@ -2804,8 +2798,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Place_of_origin,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2828,8 +2822,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Date_of_birth,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2852,8 +2846,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Local_address,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2876,8 +2870,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2900,8 +2894,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Family_address,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2924,8 +2918,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -2948,15 +2942,16 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\" style=\"width:%upx;"
|
||||
" text-align:left; vertical-align:top;\">",
|
||||
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_USER_comments,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
{
|
||||
if (DataForm)
|
||||
fprintf (Gbl.F.Out,"<textarea name=\"Comments\" rows=\"3\""
|
||||
" style=\"width:%upx;\">%s</textarea>",
|
||||
" style=\"width:%upx;\">"
|
||||
"%s"
|
||||
"</textarea>",
|
||||
Rec_C2_BOTTOM_WIDE - 60,
|
||||
UsrDat->Comments);
|
||||
else if (UsrDat->Comments[0])
|
||||
|
@ -2979,8 +2974,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Institution,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3004,8 +2999,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Centre,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3031,8 +3026,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Department,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3058,8 +3053,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Office,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3073,8 +3068,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
|||
" style=\"width:%upx;\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td class=\"%s\""
|
||||
" style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"%s LEFT_MIDDLE\""
|
||||
" style=\"width:%upx;\">",
|
||||
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
|
||||
ClassData,Rec_C2_BOTTOM_WIDE);
|
||||
if (ShowData)
|
||||
|
@ -3137,7 +3132,7 @@ static void Rec_WriteLinkToDataProtectionClause (void)
|
|||
extern const char *Txt_DATA_PROTECTION_CLAUSE;
|
||||
char Title[1024];
|
||||
|
||||
sprintf (Title,"<div style=\"text-align:center;\">"
|
||||
sprintf (Title,"<div class=\"CENTER_MIDDLE\">"
|
||||
"<a href=\"%s/%s/\" target=\"_blank\">%s</a>"
|
||||
"</div>",
|
||||
Cfg_HTTP_URL_SWAD_PUBLIC,Cfg_DATA_PROTECTION_FOLDER,
|
||||
|
@ -3341,7 +3336,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Country_of_institution,
|
||||
COL2_WIDTH);
|
||||
|
||||
|
@ -3382,7 +3377,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Institution,
|
||||
COL2_WIDTH);
|
||||
|
||||
|
@ -3428,7 +3423,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Centre,
|
||||
COL2_WIDTH);
|
||||
|
||||
|
@ -3472,7 +3467,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Department,
|
||||
COL2_WIDTH);
|
||||
|
||||
|
@ -3516,7 +3511,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Office,
|
||||
COL2_WIDTH);
|
||||
Act_FormGoToStart (ActChgMyOff);
|
||||
|
@ -3535,7 +3530,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
|||
"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%s:"
|
||||
"</td>"
|
||||
"<td style=\"width:%upx; text-align:left;\">",
|
||||
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
|
||||
ClassForm,Txt_Phone,
|
||||
COL2_WIDTH);
|
||||
Act_FormGoToStart (ActChgMyOffPho);
|
||||
|
|
Loading…
Reference in New Issue