Version 15.0.2

This commit is contained in:
Antonio Cañas Vargas 2015-09-24 18:02:21 +02:00
parent 69a3171aa3
commit a76fa88186
53 changed files with 504 additions and 499 deletions

View File

@ -101,7 +101,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
padding:6px;
border-radius:6px;
font-family:Arial,"Nimbus Sans L","DejaVu LGC Sans","Bitstream Vera Sans",sans-serif;
font-size:13pt;
font-size:14pt;
color:#398000;
overflow:hidden;
}

View File

@ -73,7 +73,7 @@ form {margin:0; display:inline;}
padding:6px;
border-radius:6px;
font-family:Arial,"Nimbus Sans L","DejaVu LGC Sans","Bitstream Vera Sans",sans-serif;
font-size:13pt;
font-size:14pt;
color:#398000;
overflow:hidden;
}

View File

@ -41,7 +41,7 @@
/***************************** Internal constants ****************************/
/*****************************************************************************/
#define QR_CODE_SIZE ((6+25+6)*9) // Changed!
#define QR_CODE_SIZE ((6+25+6)*9)
#define QR_DEFAULT_TYPE QR_ID
/*****************************************************************************/
@ -106,11 +106,11 @@ void QR_PrintQRCode (void)
static void QR_ImageQRCode (const char *QRString)
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"width:%upx;\">" // Changed!
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"width:%upx;\">"
"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s\""
" alt=\"%s\" title=\"%s\""
" style=\"width:%upx; height:%upx;" // Changed!
" border:1px dashed silver;\" />" // Changed!
" style=\"width:%upx; height:%upx;"
" border:1px dashed silver;\" />"
"<br />"
"<span class=\"DAT\">%s</span>"
"</div>",
@ -133,10 +133,10 @@ void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod)
extern const char *Txt_STR_LANG_ID[Txt_NUM_LANGUAGES];
/***** Show QR code with direct link to the current centre *****/
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s/%s?%s=%ld\"" // Changed!
fprintf (Gbl.F.Out,"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s/%s?%s=%ld\""
" alt=\"%s\" title=\"%s\""
" style=\"width:%upx; height:%upx;\" />", // Changed!
Size,Size, // Changed!
" style=\"width:%upx; height:%upx;\" />",
Size,Size,
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],ParamStr,Cod,
Txt_Shortcut,
Txt_Shortcut,
@ -155,9 +155,9 @@ void QR_ExamAnnnouncement (void)
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s/?crs=%ld%%26act=%ld\""
" alt=\"%s\" title=\"%s\""
" style=\"width:300px; height:300px;\" />" // Changed!
" style=\"width:300px; height:300px;\" />"
"</div>",
300,300, // Changed!
300,300,
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);

View File

@ -42,7 +42,7 @@
void QR_PutLinkToPrintQRCode (struct UsrData *UsrDat,bool PrintText);
void QR_PrintQRCode (void);
void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod); // Changed!
void QR_LinkTo (unsigned Size,const char *ParamStr,long Cod);
void QR_ExamAnnnouncement (void);
#endif

View File

@ -4874,12 +4874,12 @@ void Act_WriteBigMFUActions (struct Act_ListMFUActions *ListMFUActions)
/* Icon and text */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE\""
" style=\"padding-left:3px;\">"); // Changed!
" style=\"padding-left:3px;\">");
Act_FormStart (Action);
Act_LinkFormSubmit (TabMenuStr,The_ClassFormNoWrap[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" style=\"margin:6px;\" />", // Changed!
" class=\"ICON32x32\" style=\"margin:6px;\" />",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_Actions[Action].Icon,
MenuStr,TabMenuStr);
@ -4944,7 +4944,7 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\""
" style=\"margin:1px;\" />", // Changed!
" style=\"margin:1px;\" />",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_Actions[Action].Icon,
MenuStr,TabMenuStr);

View File

@ -209,7 +209,7 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
/***** Start yellow note *****/
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\""
" style=\"width:600px;\">"); // Changed!
" style=\"width:600px;\">");
/***** Write the content of the announcement *****/
fprintf (Gbl.F.Out,"<div class=\"NOTICE_SUBJECT\">%s</div>",
@ -220,7 +220,7 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
Content);
/***** Write form *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:15px;\">"); // Changed!
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:15px;\">");
if (ShowAllAnnouncements)
{

View File

@ -1887,7 +1887,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
"<th></th>"
"<th></th>");
if (Gbl.Usrs.Listing.WithPhotos)
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>"); // Changed!
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>");
fprintf (Gbl.F.Out,"<th colspan=\"2\" class=\"TIT_TBL LEFT_MIDDLE\">"
"%s"
"</th>"
@ -1958,7 +1958,7 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
"<th></th>"
"<th></th>");
if (Gbl.Usrs.Listing.WithPhotos)
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>"); // Changed!
fprintf (Gbl.F.Out,"<th style=\"width:27px;\"></th>");
fprintf (Gbl.F.Out,"<th colspan=\"2\" class=\"LEFT_MIDDLE\">"
"%s"
"</th>"
@ -3158,7 +3158,7 @@ static void Att_WriteRowStdSeveralAttEvents (unsigned NumStd,struct UsrData *Usr
if (Gbl.Usrs.Listing.WithPhotos)
{
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE COLOR%u\""
" style=\"width:27px;\">", // Changed!
" style=\"width:27px;\">",
Gbl.RowEvenOdd);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
@ -3292,7 +3292,7 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
/***** Show student's photo *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE COLOR%u\""
" style=\"width:27px;\">", // Changed!
" style=\"width:27px;\">",
Gbl.RowEvenOdd);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :

View File

@ -906,7 +906,7 @@ void Ban_WriteMenuWithBanners (void)
{
/* Write data of this banner */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:180px;\">"); // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:180px;\">");
Act_FormStart (ActClkBan);
Ban_PutParamBanCod (Gbl.Banners.Lst[NumBan].BanCod);
Par_PutHiddenParamString ("URL",Gbl.Banners.Lst[NumBan].WWW);

View File

@ -142,7 +142,7 @@ void Cal_DrawCalendar (void)
/***** Draw several months *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\">"
"<table style=\"border-spacing:7px;\">"); // Changed!
"<table style=\"border-spacing:7px;\">");
for (Row = 0;
Row < 4;
Row++)
@ -152,7 +152,7 @@ void Cal_DrawCalendar (void)
Col < 4;
Col++)
{
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:180px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:180px;\">");
Cal_DrawMonth (Year,Month,true,!PrintView,(Gbl.CurrentAct == ActPrnCal));
fprintf (Gbl.F.Out,"</td>");
if (++Month == 13)

View File

@ -432,7 +432,7 @@ static void Ctr_Configuration (bool PrintView)
"<td class=\"DAT LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (300,"ctr",Gbl.CurrentCtr.Ctr.CtrCod); // Changed!
QR_LinkTo (300,"ctr",Gbl.CurrentCtr.Ctr.CtrCod);
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
@ -1046,7 +1046,7 @@ void Ctr_WriteSelectorOfCentre (void)
/***** Start form *****/
Act_FormGoToStart (ActSeeDeg);
fprintf (Gbl.F.Out,"<select name=\"ctr\" style=\"width:210px;\""); // Changed!
fprintf (Gbl.F.Out,"<select name=\"ctr\" style=\"width:210px;\"");
if (Gbl.CurrentIns.Ins.InsCod > 0)
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
Gbl.FormId);
@ -1164,7 +1164,7 @@ static void Ctr_ListCentresForEdition (void)
/* Centre logo */
fprintf (Gbl.F.Out,"<td title=\"%s\" class=\"LEFT_MIDDLE\""
" style=\"width:30px;\">", // Changed!
" style=\"width:30px;\">",
Ctr->FullName);
Log_DrawLogo (Sco_SCOPE_CTR,Ctr->CtrCod,Ctr->ShortName,16,NULL,true);
fprintf (Gbl.F.Out,"</td>");
@ -1175,7 +1175,7 @@ static void Ctr_ListCentresForEdition (void)
{
Act_FormStart (ActChgCtrIns);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (NumIns = 0;
@ -1199,7 +1199,7 @@ static void Ctr_ListCentresForEdition (void)
{
Act_FormStart (ActChgCtrPlc);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
fprintf (Gbl.F.Out,"<option value=\"0\"");
@ -1300,7 +1300,7 @@ static void Ctr_ListCentresForEdition (void)
{
Act_FormStart (ActChgCtrSta);
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"%u\" selected=\"selected\">%s</option>"
"<option value=\"%u\">%s</option>"
@ -1319,10 +1319,10 @@ static void Ctr_ListCentresForEdition (void)
/* Centre requester */
UsrDat.UsrCod = Ctr->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -1960,13 +1960,13 @@ static void Ctr_PutFormToCreateCentre (void)
fprintf (Gbl.F.Out,"<td></td>");
/***** Centre logo *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">");
Log_DrawLogo (Sco_SCOPE_CTR,-1L,"",16,NULL,true);
fprintf (Gbl.F.Out,"</td>");
/***** Institution *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
"<select name=\"OthInsCod\" style=\"width:75px;\""
" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">"
"%s"
@ -1978,7 +1978,7 @@ static void Ctr_PutFormToCreateCentre (void)
/***** Place *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"PlcCod\" style=\"width:75px;\">" // Changed!
"<select name=\"PlcCod\" style=\"width:75px;\">"
"<option value=\"0\"");
if (Ctr->PlcCod == 0)
fprintf (Gbl.F.Out," selected=\"selected\"");
@ -2029,10 +2029,10 @@ static void Ctr_PutFormToCreateCentre (void)
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING]);
/***** Centre requester *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -2128,7 +2128,7 @@ static void Ctr_PutHeadCentresForEdition (void)
"<th class=\"RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th style=\"width:30px;\"></th>" // Changed!
"<th style=\"width:30px;\"></th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
"</th>"

View File

@ -98,13 +98,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.0.1 (2015/09/23)"
#define Log_PLATFORM_VERSION "SWAD 15.0.2 (2015/09/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
/*
BUG: Enlace a "Instituciones" sale erróneamente en País > Información > Imprimir.
Version 15.0.2: Sep 24, 2015 New layout in preferences. (185011 lines)
Version 15.0.1: Sep 23, 2015 Fix bugs in size of background images. (185006 lines)
Version 15.0: Sep 23, 2015 All sizes are multiplied by 1.5 (50% bigger). (184885 lines)
Version 14.135: Sep 23, 2015 Option to show last clicks in real time is moved inside "Users - Connected". (184883 lines)

View File

@ -121,7 +121,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
"<ul class=\"LIST_LEFT\">");
/***** Title of top level *****/
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">" // Changed!
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">"
"<img src=\"%s/chat16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -301,7 +301,7 @@ static void Cht_WriteLinkToChat1 (const char *RoomCode,const char *RoomShortName
{
extern const char *The_ClassForm[The_NUM_THEMES];
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
Lay_IndentDependingOnLevel (Level,IsLastItemInLevel);
Act_FormStart (ActCht);
Cht_WriteParamsRoomCodeAndNames (RoomCode,RoomShortName,RoomFullName);

View File

@ -73,8 +73,8 @@
#define Cfg_ABOUT_NAME "Centro de Educaci&oacute;n Virtual de la Universidad Nacional de Asunci&oacute;n"
#define Cfg_ABOUT_URL "http://www.cevuna.una.py/"
#define Cfg_ABOUT_LOGO "cevuna.una.py100x32.gif"
#define Cfg_ABOUT_LOGO_WIDTH 150 // Changed!
#define Cfg_ABOUT_LOGO_HEIGHT 48 // Changed!
#define Cfg_ABOUT_LOGO_WIDTH 150
#define Cfg_ABOUT_LOGO_HEIGHT 48
#define Cfg_DEFAULT_COLUMNS Lay_SHOW_BOTH_COLUMNS
#define Cfg_DEFAULT_ACTION_WHEN_NO_USR_LOGGED ActFrmUsrAcc

View File

@ -101,7 +101,7 @@ void Con_ShowConnectedUsrs (void)
/***** Put form to update connected users *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_MIDDLE\""
" style=\"padding-bottom:15px;\">"); // Changed!
" style=\"padding-bottom:15px;\">");
Act_FormStart (ActLstCon);
Gbl.Scope.Current = Sco_SCOPE_CRS;
if (Gbl.Usrs.Me.LoggedRole >= Rol_DEG_ADM)
@ -201,23 +201,23 @@ void Con_GetAndShowLastClicks (void)
fprintf (Gbl.F.Out,"<table class=\"TABLE10\">"
"<tr>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:105px;\">" // Changed!
" style=\"width:105px;\">"
"%s"
"</th>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:90px;\">" // Changed!
" style=\"width:90px;\">"
"%s"
"</th>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:150px;\">" // Changed!
" style=\"width:150px;\">"
"%s"
"</th>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:225px;\">" // Changed!
" style=\"width:225px;\">"
"%s"
"</th>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:330px;\">" // Changed!
" style=\"width:330px;\">"
"%s"
"</th>"
"</tr>",
@ -297,12 +297,12 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Start table *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
" style=\"width:165px; \">" // Changed!
"<table style=\"width:165px;\">"); // Changed!
" style=\"width:165px; \">"
"<table style=\"width:165px;\">");
/***** Write total number of sessions *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
"<td class=\"CENTER_TOP\" style=\"width:165px;\">"
"%u %s"
"</td>"
"</tr>",
@ -312,7 +312,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of users *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
"<td class=\"CENTER_TOP\" style=\"width:165px;\">"
"%u %s:"
"</td>"
"</tr>",
@ -322,7 +322,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of students *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
"<td class=\"CENTER_TOP\" style=\"width:165px;\">"
"%u %s"
"</td>"
"</tr>",
@ -332,7 +332,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of teachers *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
"<td class=\"CENTER_TOP\" style=\"width:165px;\">"
"%u %s"
"</td>"
"</tr>",
@ -343,7 +343,7 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Write total number of users who do not belong to any course *****/
if (WithoutCoursesTotal)
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:165px;\">" // Changed!
"<td class=\"CENTER_TOP\" style=\"width:165px;\">"
"%u %s"
"</td>"
"</tr>",
@ -457,12 +457,12 @@ void Con_ShowConnectedUsrsBelongingToScope (void)
switch (Gbl.Usrs.Connected.WhereToShow)
{
case Con_SHOW_ON_MAIN_ZONE:
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:468px;\">" // Changed!
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:468px;\">"
"<table>");
break;
case Con_SHOW_ON_RIGHT_COLUMN:
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:165px;\">" // Changed!
"<table style=\"width:165px;\">"); // Changed!
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\" style=\"width:165px;\">"
"<table style=\"width:165px;\">");
break;
}
@ -601,7 +601,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnRightColum
Gbl.Usrs.Connected.NumUsrsToList = Cfg_MAX_CONNECTED_SHOWN;
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"3\" class=\"CENTER_TOP\""
" style=\"width:165px;\">" // Changed!
" style=\"width:165px;\">"
"%u %s"
"</td>"
"</tr>",
@ -1017,7 +1017,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
/***** Show photo *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE COLOR%u\""
" style=\"width:27px;\">", // Changed!
" style=\"width:27px;\">",
Gbl.RowEvenOdd);
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
Act_FormStartId (ActSeePubPrf,Gbl.FormId);
@ -1033,7 +1033,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
/***** Write full name and link *****/
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
" style=\"width:81px;\">", // Changed!
" style=\"width:81px;\">",
Font,Gbl.RowEvenOdd);
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
Act_FormStartId ((Role == Rol_STUDENT) ? ActSeeRecOneStd :
@ -1048,7 +1048,7 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
/***** Write time from last access *****/
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE COLOR%u\""
" style=\"width:57px;\">", // Changed!
" style=\"width:57px;\">",
Font,Gbl.RowEvenOdd);
fprintf (Gbl.F.Out,"<div id=\"hm%u\">",
@ -1214,7 +1214,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
/***** Show photo *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE COLOR%u\""
" style=\"width:27px;\">", // Changed!
" style=\"width:27px;\">",
Gbl.RowEvenOdd);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
@ -1224,7 +1224,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
/***** Write full name and link *****/
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
" style=\"width:384px;\">", // Changed!
" style=\"width:384px;\">",
Font,Gbl.RowEvenOdd);
if (PutLinkToRecord)
{
@ -1243,7 +1243,7 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
/***** Write time from last access *****/
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE COLOR%u\""
" style=\"width:57px;\">", // Changed!
" style=\"width:57px;\">",
Font,Gbl.RowEvenOdd);
Hours = Seconds / (60 * 60);
Minutes = (Seconds / 60) % 60;

View File

@ -348,7 +348,7 @@ static void Cty_Configuration (bool PrintView)
"<td class=\"DAT LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (300,"cty",Gbl.CurrentCty.Cty.CtyCod); // Changed!
QR_LinkTo (300,"cty",Gbl.CurrentCty.Cty.CtyCod);
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
@ -663,8 +663,8 @@ void Cty_ListCountries2 (void)
/***** Div for Google Geochart *****/
if (Gbl.CurrentAct == ActSeeCty)
{
fprintf (Gbl.F.Out,"<div id='chart_div' style=\"width:750px;" // Changed!
" margin:15px auto;\">" // Changed!
fprintf (Gbl.F.Out,"<div id='chart_div' style=\"width:750px;"
" margin:15px auto;\">"
"</div>");
}
@ -970,7 +970,7 @@ void Cty_WriteSelectorOfCountry (void)
/***** Start form *****/
Act_FormGoToStart (ActSeeIns);
fprintf (Gbl.F.Out,"<select name=\"cty\" style=\"width:210px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"cty\" style=\"width:210px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"\"",
Gbl.FormId);

View File

@ -113,7 +113,7 @@ void Crs_ShowIntroduction (void)
{
/***** Course configuration *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin-bottom:30px;\">"); // Changed!
" style=\"margin-bottom:30px;\">");
Crs_Configuration (false);
fprintf (Gbl.F.Out,"</div>");
@ -362,7 +362,7 @@ static void Crs_Configuration (bool PrintView)
"<td class=\"DAT LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (300,"crs",Gbl.CurrentCrs.Crs.CrsCod); // Changed!
QR_LinkTo (300,"crs",Gbl.CurrentCrs.Crs.CrsCod);
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
@ -568,7 +568,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
"<ul class=\"LIST_LEFT\">");
/***** Write link to platform *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
Act_FormGoToStart (ActMnu);
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) TabSys);
Act_LinkFormSubmit (Txt_System,
@ -604,7 +604,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
Lay_ShowErrorAndExit ("Country not found.");
/***** Write link to country *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
IsLastItemInLevel[1] = (NumCty == NumCtys - 1);
Lay_IndentDependingOnLevel (1,IsLastItemInLevel);
Act_FormStart (ActSeeCtyInf);
@ -647,7 +647,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
Lay_ShowErrorAndExit ("Institution not found.");
/***** Write link to institution *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
IsLastItemInLevel[2] = (NumIns == NumInss - 1);
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
Act_FormStart (ActSeeInsInf);
@ -685,7 +685,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
Lay_ShowErrorAndExit ("Centre not found.");
/***** Write link to centre *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
IsLastItemInLevel[3] = (NumCtr == NumCtrs - 1);
Lay_IndentDependingOnLevel (3,IsLastItemInLevel);
Act_FormStart (ActSeeCtrInf);
@ -723,7 +723,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
Lay_ShowErrorAndExit ("Degree not found.");
/***** Write link to degree *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
IsLastItemInLevel[4] = (NumDeg == NumDegs - 1);
Lay_IndentDependingOnLevel (4,IsLastItemInLevel);
Act_FormStart (ActSeeDegInf);
@ -761,7 +761,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
Lay_ShowErrorAndExit ("Course not found.");
/***** Write link to course *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
IsLastItemInLevel[5] = (NumCrs == NumCrss - 1);
Lay_IndentDependingOnLevel (5,IsLastItemInLevel);
Act_FormStart (ActSeeCrsInf);
@ -942,7 +942,7 @@ void Crs_WriteSelectorOfCourse (void)
/***** Start form *****/
Act_FormGoToStart (ActSeeCrsInf);
fprintf (Gbl.F.Out,"<select name=\"crs\" style=\"width:210px;\""); // Changed!
fprintf (Gbl.F.Out,"<select name=\"crs\" style=\"width:210px;\"");
if (Gbl.CurrentDeg.Deg.DegCod > 0)
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
Gbl.FormId);
@ -1129,8 +1129,8 @@ void Crs_WriteSelectorMyCourses (void)
extern const char *Txt_No_COURSE_SELECTED;
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
{
210, // Lay_LAYOUT_DESKTOP // Changed!
360, // Lay_LAYOUT_MOBILE // Changed!
210, // Lay_LAYOUT_DESKTOP
360, // Lay_LAYOUT_MOBILE
};
unsigned NumMyCrs;
bool IBelongToCurrentCrs = false;
@ -1150,7 +1150,7 @@ void Crs_WriteSelectorMyCourses (void)
/***** Start of selector of courses *****/
fprintf (Gbl.F.Out,"<select name=\"CrsCod\""
" style=\"width:%upx; margin:1px;\"" // Changed!
" style=\"width:%upx; margin:1px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
SelectorWidth[Gbl.Prefs.Layout],Gbl.FormId);
@ -1454,7 +1454,7 @@ static void Crs_ListCoursesForEdition (void)
Act_FormStart (ActChgCrsDeg);
Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"OthDegCod\""
" style=\"width:120px;\"" // Changed!
" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (NumDeg = 0;
@ -1479,7 +1479,7 @@ static void Crs_ListCoursesForEdition (void)
Act_FormStart (ActChgCrsYea);
Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"OthCrsYear\""
" style=\"width:60px;\"" // Changed!
" style=\"width:60px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (YearAux = 0;
@ -1576,7 +1576,7 @@ static void Crs_ListCoursesForEdition (void)
Act_FormStart (ActChgCrsSta);
Crs_PutParamOtherCrsCod (Crs->CrsCod);
fprintf (Gbl.F.Out,"<select name=\"Status\""
" style=\"width:120px;\"" // Changed!
" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"%u\" selected=\"selected\">%s</option>"
"<option value=\"%u\">%s</option>"
@ -1596,11 +1596,11 @@ static void Crs_ListCoursesForEdition (void)
UsrDat.UsrCod = Crs->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
" style=\"width:150px;\">" // Changed!
" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\""
" style=\"width:150px;\">" // Changed!
" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -1721,7 +1721,7 @@ static void Crs_PutFormToCreateCourse (void)
/***** Degree *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"OthDegCod\""
" style=\"width:120px;\" disabled=\"disabled\">" // Changed!
" style=\"width:120px;\" disabled=\"disabled\">"
"<option value=\"%ld\">%s</option>"
"</select>"
"</td>",
@ -1730,7 +1730,7 @@ static void Crs_PutFormToCreateCourse (void)
/***** Year *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"OthCrsYear\" style=\"width:60px;\">"); // Changed!
"<select name=\"OthCrsYear\" style=\"width:60px;\">");
for (Year = 0;
Year <= Gbl.CurrentDeg.Deg.LastYear;
Year++)
@ -1786,10 +1786,10 @@ static void Crs_PutFormToCreateCourse (void)
Txt_COURSE_STATUS[Crs_STATUS_PENDING]);
/***** Course requester *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"

View File

@ -160,7 +160,7 @@ void Dat_ShowCurrentDateTime (void)
extern const char *The_ClassCurrentTime[The_NUM_THEMES];
extern const char *Txt_MONTHS_SMALL_SHORT[12];
fprintf (Gbl.F.Out,"<div id=\"hm\" class=\"%s\" style=\"padding-top:12px;\">" // Changed!
fprintf (Gbl.F.Out,"<div id=\"hm\" class=\"%s\" style=\"padding-top:12px;\">"
"%u %s, %u:%02u"
"</div>",
The_ClassCurrentTime[Gbl.Prefs.Theme],

View File

@ -416,7 +416,7 @@ static void Deg_Configuration (bool PrintView)
"<td class=\"DAT LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (300,"deg",Gbl.CurrentDeg.Deg.DegCod); // Changed!
QR_LinkTo (300,"deg",Gbl.CurrentDeg.Deg.DegCod);
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
@ -481,7 +481,7 @@ void Deg_WriteMenuAllCourses (void)
/***** Start of table *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:0 auto 15px auto;\">"); // Changed!
" style=\"margin:0 auto 15px auto;\">");
/***** Write a 1st selector
with all the countries *****/
@ -575,7 +575,7 @@ static void Deg_WriteSelectorOfDegree (void)
/***** Start form *****/
Act_FormGoToStart (ActSeeCrs);
fprintf (Gbl.F.Out,"<select name=\"deg\" style=\"width:210px;\""); // Changed!
fprintf (Gbl.F.Out,"<select name=\"deg\" style=\"width:210px;\"");
if (Gbl.CurrentCtr.Ctr.CtrCod > 0)
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
Gbl.FormId);
@ -1412,7 +1412,7 @@ static void Deg_ListDegreesForEdition (void)
/* Degree logo */
fprintf (Gbl.F.Out,"<td title=\"%s LEFT_MIDDLE\""
" style=\"width:30px;>", // Changed!
" style=\"width:30px;>",
Deg->FullName);
Log_DrawLogo (Sco_SCOPE_DEG,Deg->DegCod,Deg->ShortName,16,NULL,true);
fprintf (Gbl.F.Out,"</td>");
@ -1423,7 +1423,7 @@ static void Deg_ListDegreesForEdition (void)
{
Act_FormStart (ActChgDegCtr);
Deg_PutParamOtherDegCod (Deg->DegCod);
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (NumCtr = 0;
@ -1478,7 +1478,7 @@ static void Deg_ListDegreesForEdition (void)
Act_FormStart (ActChgDegTyp);
Deg_PutParamOtherDegCod (Deg->DegCod);
fprintf (Gbl.F.Out,"<select name=\"OthDegTypCod\""
" style=\"width:75px;\"" // Changed!
" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (NumDegTyp = 0;
@ -1616,7 +1616,7 @@ static void Deg_ListDegreesForEdition (void)
{
Act_FormStart (ActChgDegSta);
Deg_PutParamOtherDegCod (Deg->DegCod);
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"%u\" selected=\"selected\">%s</option>"
"<option value=\"%u\">%s</option>"
@ -1635,10 +1635,10 @@ static void Deg_ListDegreesForEdition (void)
/* Degree requester */
UsrDat.UsrCod = Deg->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -1809,7 +1809,7 @@ static void Deg_PutFormToCreateDegree (void)
/***** Centre *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"OthCtrCod\""
" style=\"width:75px;\" disabled=\"disabled\">" // Changed!
" style=\"width:75px;\" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">"
"%s"
"</option>"
@ -1832,7 +1832,7 @@ static void Deg_PutFormToCreateDegree (void)
/***** Degree type *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select name=\"OthDegTypCod\" style=\"width:75px;\">"); // Changed!
"<select name=\"OthDegTypCod\" style=\"width:75px;\">");
for (NumDegTyp = 0;
NumDegTyp < Gbl.Degs.DegTypes.Num;
NumDegTyp++)
@ -1899,10 +1899,10 @@ static void Deg_PutFormToCreateDegree (void)
Txt_DEGREE_STATUS[Deg_STATUS_PENDING]);
/***** Degree requester *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -2047,7 +2047,7 @@ static void Deg_PutHeadDegreesForEdition (void)
"<th class=\"RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th style=\"width:30px;\"></th>" // Changed!
"<th style=\"width:30px;\"></th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
"</th>"

View File

@ -527,7 +527,7 @@ static void Dpt_ListDepartmentsForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgDptIns);
Dpt_PutParamDptCod (Dpt->DptCod);
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:75px;\""
"onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"0\"",
Gbl.FormId);
@ -895,7 +895,7 @@ static void Dpt_PutFormToCreateDepartment (void)
/***** Institution *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_MIDDLE\">"
"<select name=\"OthInsCod\" style=\"width:75px;\">" // Changed!
"<select name=\"OthInsCod\" style=\"width:75px;\">"
"<option value=\"0\"");
if (Dpt->InsCod == 0)
fprintf (Gbl.F.Out," selected=\"selected\"");
@ -1106,7 +1106,7 @@ void Dpt_WriteSelectorDepartment (long InsCod)
/* Get list of departments */
Dpt_GetListDepartments (InsCod);
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:450px;\">" // Changed!
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:450px;\">"
"<option value=\"-1\"");
if (Gbl.Stat.DptCod == -1L)
fprintf (Gbl.F.Out," selected=\"selected\"");

View File

@ -875,7 +875,7 @@ bool Enr_PutActionsRegRemOneUsr (bool ItsMe)
/***** Start list of options *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"display:inline-block; margin:15px;\">" // Changed!
" style=\"display:inline-block; margin:15px;\">"
"<ul class=\"LIST_LEFT %s\">",
The_ClassForm[Gbl.Prefs.Theme]);
@ -2159,7 +2159,7 @@ void Enr_ShowEnrollmentRequests (void)
/***** Selection of scope and roles *****/
/* Start form */
Act_FormStart (ActSeeSignUpReq);
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">"); // Changed!
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">");
/* Scope (whole platform, current centre, current degree or current course) */
fprintf (Gbl.F.Out,"<tr>"
@ -2505,7 +2505,7 @@ void Enr_ShowEnrollmentRequests (void)
/***** User photo *****/
fprintf (Gbl.F.Out,"<td class=\"DAT CENTER_TOP\""
" style=\"width:27px;\">"); // Changed!
" style=\"width:27px;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,

View File

@ -762,7 +762,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
}
/***** Start frame *****/
Lay_StartRoundFrameTable ("750px",0,NULL); // Changed!
Lay_StartRoundFrameTable ("750px",0,NULL);
if (TypeViewExamAnnouncement == Exa_NORMAL_VIEW)
{
@ -805,7 +805,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"width:100%%;"
" padding:30px 30px 150px 30px;\">"); // Bottom space used for signatures // Changed!
" padding:30px 30px 150px 30px;\">"); // Bottom space used for signatures
/***** Institution logo *****/
fprintf (Gbl.F.Out,"<tr>" \

View File

@ -3089,7 +3089,7 @@ static void Brw_FormToChangeCrsGrpZone (void)
"<img src=\"%s/%s20x20.gif\""
" alt=\"\" title=\"\""
" class=\"ICON20x20\""
" style=\"margin-left:7px;\" />" // Changed!
" style=\"margin-left:7px;\" />"
"<input type=\"radio\" name=\"GrpCod\" value=\"%ld\"",
(IsGroupZone &&
GrpDat.GrpCod == Gbl.CurrentCrs.Grps.GrpCod) ? "BROWSER_TITLE" :
@ -3155,7 +3155,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
char PhotoURL[PATH_MAX+1];
/***** Show user's photo *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:120px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:120px;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
@ -3163,7 +3163,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"</td>");
/***** Start form to send a message to this user *****/
fprintf (Gbl.F.Out,"<td class=\"MSG_AUT LEFT_TOP\" style=\"width:240px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"MSG_AUT LEFT_TOP\" style=\"width:240px;\">");
Act_FormStart (UsrDat->RoleInCurrentCrsDB == Rol_STUDENT ? ActSeeRecOneStd :
ActSeeRecOneTch);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
@ -3525,7 +3525,7 @@ static void Brw_WriteSubtitleOfFileBrowser (void)
extern const char *Txt_nobody_else_can_access_this_content;
char Subtitle[1024];
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto; min-width:900px;\">"); // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin:0 auto; min-width:900px;\">");
/***** Form to change zone (course and group browsers) *****/
switch (Gbl.FileBrowser.Type)
@ -5287,7 +5287,7 @@ static void Brw_IndentDependingOnLevel (unsigned Level)
for (i = 1;
i < Level;
i++)
fprintf (Gbl.F.Out,"<td style=\"width:24px;\">" // Changed!
fprintf (Gbl.F.Out,"<td style=\"width:24px;\">"
"<img src=\"%s/tr16x16.gif\""
" alt=\"\" title=\"\""
" class=\"ICON16x16B\" />"
@ -5392,8 +5392,8 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
bool ICanCreate;
/***** Start cell *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
Level * 24); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
Level * 24);
/***** Put icon *****/
if ((ICanCreate = Brw_CheckIfICanCreateIntoFolder (Level))) // I can create a new file or folder
@ -5771,7 +5771,7 @@ static void Brw_WriteDatesAssignment (void)
Gbl.FileBrowser.Asg.DateTimes[Asg_START_TIME].Time.Minute);
/***** Arrow *****/
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:24px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:24px;\">"
"<img src=\"%s/arrow%s16x12.gif\""
" alt=\"\" title=\"\""
" class=\"ICON16x16B\" />"
@ -7708,7 +7708,7 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
Lay_ShowAlert (Lay_INFO,Gbl.Message);
/***** Form to upload files using the library Dropzone.js *****/
// Use min-height:150px; or other number to stablish the height? // Changed!
// Use min-height:150px; or other number to stablish the height?
Gbl.NumForm++;
fprintf (Gbl.F.Out,"<form method=\"post\" action=\"%s/%s\""
" class=\"dropzone\""

View File

@ -100,7 +100,7 @@ void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat)
extern const char *Txt_Followers;
/***** Start table *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto 6px auto;\">" // Changed!
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto 6px auto;\">"
"<tr>");
/***** Followed users *****/
@ -132,7 +132,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
" style=\"min-width:150px;\">"); // Changed!
" style=\"min-width:150px;\">");
/* Number */
fprintf (Gbl.F.Out,"<div class=\"%s\">",
(Gbl.CurrentAct == Action) ? "FOLLOW_B" :
@ -238,7 +238,7 @@ void Fol_ListFollowing (void)
/***** Start listing *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:15px auto;\">"); // Changed!
" style=\"margin:15px auto;\">");
for (NumUsr = 0;
NumUsr < NumUsrs;
@ -315,7 +315,7 @@ void Fol_ListFollowers (void)
/***** Start listing *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\""
" style=\"margin:15px auto;\">"); // Changed!
" style=\"margin:15px auto;\">");
for (NumUsr = 0;
NumUsr < NumUsrs;
@ -374,7 +374,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
/***** Put form to follow / unfollow *****/
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\""
" style=\"width:30px; height:75px;\">"); // Changed!
" style=\"width:30px; height:75px;\">");
if (Visible &&
Gbl.Usrs.Me.Logged &&
Gbl.Usrs.Me.UsrDat.UsrCod != UsrDat->UsrCod)
@ -414,7 +414,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
/***** Check if I can see the public profile *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\""
" style=\"width:60px; height:75px;\">"); // Changed!
" style=\"width:60px; height:75px;\">");
if (Visible)
{
/***** User's photo *****/
@ -427,7 +427,7 @@ static void Fol_ShowFollowedOrFollowed (const struct UsrData *UsrDat)
/***** Put form to go to public profile *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\""
" style=\"min-width:105px; height:75px;\">"); // Changed!
" style=\"min-width:105px; height:75px;\">");
if (Visible &&
UsrDat->Nickname[0])
{

View File

@ -916,7 +916,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
For_WriteLinkToAForum (Gbl.Forum.ForumType,true,1,IsLastItemInLevel);
/* Write thread title */
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:30px;\">");
IsLastItemInLevel[2] = true;
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
@ -1079,7 +1079,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
/***** Put an icon with post status *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s CENTER_TOP\" style=\"width:36px;\">" // Changed!
"<td class=\"%s CENTER_TOP\" style=\"width:36px;\">"
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -1119,7 +1119,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
/***** Form to remove post *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\" style=\"width:27px;\">"); // Changed!
"<td class=\"CENTER_TOP\" style=\"width:27px;\">");
if (LastPst && Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat.UsrCod)
// Post can be removed if post is the last (without answers) and it's mine
{
@ -1179,13 +1179,13 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
/***** Write author or destinatary, and form to reply (in case of received post) *****/
fprintf (Gbl.F.Out,"</td>"
"<td colspan=\"2\" class=\"LEFT_TOP\""
" style=\"width:180px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:180px;\">"); // Changed!
" style=\"width:180px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:180px;\">");
/* Write author */
fprintf (Gbl.F.Out,"<tr>");
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
Msg_WriteMsgAuthor (&UsrDat,150,16,"MSG_AUT",Enabled,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,150,16,"MSG_AUT",Enabled,NULL);
fprintf (Gbl.F.Out,"</tr>");
if (Enabled)
{
@ -1312,7 +1312,7 @@ static void For_WriteNumberOfPosts (For_ForumType_t ForumType,long UsrCod)
/***** Star table cell *****/
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"MSG_AUT CENTER_TOP\""
" style=\"width:180px;\">"); // Changed!
" style=\"width:180px;\">");
/***** Get number of posts from database *****/
switch (ForumType)
@ -1751,7 +1751,7 @@ static void For_PutFormWhichForums (void)
Act_FormStart (ActSeeFor);
For_PutParamForumOrder ();
For_PutParamsForumInsDegCrs ();
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">"
"<ul class=\"LIST_CENTER\">");
for (WhichForums = (For_WhichForums_t) 0;
@ -1783,7 +1783,7 @@ static void For_WriteLinkToTopLevelOfForums (void)
extern const char *The_ClassForm[The_NUM_THEMES];
extern const char *Txt_Forums;
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
Act_FormStart (ActSeeFor);
For_PutAllHiddenParamsForum ();
Act_LinkFormSubmit (Txt_Forums,The_ClassForm[Gbl.Prefs.Theme]);
@ -2122,7 +2122,7 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
The_ClassForm[Gbl.Prefs.Theme]);
/***** Start row *****/
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<li style=\"height:30px;\">");
/***** Indent forum title *****/
Lay_IndentDependingOnLevel (Level,IsLastItemInLevel);
@ -2491,10 +2491,10 @@ void For_ShowForumThrs (void)
/***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:21px;\">" // Changed!
" style=\"width:21px;\">"
"</th>"
"<th class=\"LEFT_MIDDLE\""
" style=\"width:27px;\">" // Changed!
" style=\"width:27px;\">"
"</th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
@ -3246,7 +3246,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
/***** Show my photo if I have any posts in this thread *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"RIGHT_TOP %s\" style=\"width:21px;\">", // Changed!
"<td class=\"RIGHT_TOP %s\" style=\"width:21px;\">",
BgColor);
if (Thr.NumMyPosts)
{
@ -3269,7 +3269,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
fprintf (Gbl.F.Out,"</td>");
/***** Put an icon with thread status *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:36px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:36px;\">"
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />",
@ -3336,7 +3336,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
/* Write the author of first or last message */
UsrDat.UsrCod = Thr.UsrCod[Order];
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
Msg_WriteMsgAuthor (&UsrDat,82,9,Style,Thr.Enabled[Order],BgColor); // Changed!
Msg_WriteMsgAuthor (&UsrDat,82,9,Style,Thr.Enabled[Order],BgColor);
/* Write the date of first or last message (it's in YYYYMMDDHHMMSS format) */
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP %s\">",

View File

@ -278,7 +278,7 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
/***** Submit button *****/
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"6\" class=\"CENTER_MIDDLE\""
" style=\"padding-top:15px;\">"); // Changed!
" style=\"padding-top:15px;\">");
Act_LinkFormSubmitAnimated (Txt_Update_students_according_to_selected_groups,The_ClassFormBold[Gbl.Prefs.Theme]);
Lay_PutCalculateIconWithText (Txt_Update_students_according_to_selected_groups,Txt_Update_students);
fprintf (Gbl.F.Out,"</td>"
@ -1159,7 +1159,7 @@ static void Grp_ListGroupTypesForEdition (void)
Act_FormStart (ActChgMdtGrpTyp);
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
fprintf (Gbl.F.Out,"<select name=\"MandatoryEnrollment\""
" style=\"width:180px;\"" // Changed!
" style=\"width:180px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"N\"",
Gbl.FormId);
@ -1181,7 +1181,7 @@ static void Grp_ListGroupTypesForEdition (void)
Act_FormStart (ActChgMulGrpTyp);
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
fprintf (Gbl.F.Out,"<select name=\"MultipleEnrollment\""
" style=\"width:180px;\"" // Changed!
" style=\"width:180px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"N\"",
Gbl.FormId);
@ -1204,7 +1204,7 @@ static void Grp_ListGroupTypesForEdition (void)
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\">"
"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">"
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -1966,7 +1966,7 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE");
if (Highlight)
fprintf (Gbl.F.Out," LIGHT_BLUE");
fprintf (Gbl.F.Out,"\" style=\"width:18px;\">" // Changed!
fprintf (Gbl.F.Out,"\" style=\"width:18px;\">"
"<img src=\"%s/%s_off16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -2059,7 +2059,7 @@ static void Grp_PutFormToCreateGroupType (void)
/***** Is it mandatory to register in any groups of this type? *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"MandatoryEnrollment\""
" style=\"width:180px;\">" // Changed!
" style=\"width:180px;\">"
"<option value=\"N\"");
if (!Gbl.CurrentCrs.Grps.GrpTyp.MandatoryEnrollment)
fprintf (Gbl.F.Out," selected=\"selected\"");
@ -2076,7 +2076,7 @@ static void Grp_PutFormToCreateGroupType (void)
/***** Is it possible to register in multiple groups of this type? *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"MultipleEnrollment\""
" style=\"width:180px;\">" // Changed!
" style=\"width:180px;\">"
"<option value=\"N\"");
if (!Gbl.CurrentCrs.Grps.GrpTyp.MultipleEnrollment)
fprintf (Gbl.F.Out," selected=\"selected\"");
@ -2099,7 +2099,7 @@ static void Grp_PutFormToCreateGroupType (void)
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
"</td>"
"<td class=\"LEFT_BOTTOM\" style=\"width:24px;\">", // Changed!
"<td class=\"LEFT_BOTTOM\" style=\"width:24px;\">",
Gbl.Prefs.IconsURL,
Gbl.CurrentCrs.Grps.GrpTyp.MustBeOpened ? "time" :
"time-off",
@ -4175,7 +4175,7 @@ void Grp_ShowSelectorWhichGrps (void)
extern const char *Txt_Show_WHICH_groups[2];
Grp_WhichGroups_t WhichGrps;
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">"
"<ul class=\"LIST_CENTER\">");
for (WhichGrps = Grp_ONLY_MY_GROUPS;
WhichGrps <= Grp_ALL_GROUPS;

View File

@ -503,7 +503,7 @@ static void Hld_ListHolidaysForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgHldPlc);
Hld_PutParamHldCod (Hld->HldCod);
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"PlcCod\" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"-1\"",
Gbl.FormId);
@ -526,7 +526,7 @@ static void Hld_ListHolidaysForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
Act_FormStart (ActChgHldTyp);
Hld_PutParamHldCod (Hld->HldCod);
fprintf (Gbl.F.Out,"<select name=\"HldTyp\" style=\"width:75px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"HldTyp\" style=\"width:75px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (HolidayType = (Hld_HolidayType_t) 0;
@ -937,7 +937,7 @@ static void Hld_PutFormToCreateHoliday (void)
/***** Holiday place *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_MIDDLE\">"
"<select name=\"PlcCod\" style=\"width:75px;\">" // Changed!
"<select name=\"PlcCod\" style=\"width:75px;\">"
"<option value=\"-1\"");
if (Hld->PlcCod <= 0)
fprintf (Gbl.F.Out," selected=\"selected\"");
@ -955,7 +955,7 @@ static void Hld_PutFormToCreateHoliday (void)
/***** Holiday type *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"HldTyp\" style=\"width:75px;\">"); // Changed!
"<select name=\"HldTyp\" style=\"width:75px;\">");
for (HolidayType = (Hld_HolidayType_t) 0;
HolidayType < Hld_NUM_TYPES_HOLIDAY;
HolidayType++)

View File

@ -355,7 +355,7 @@ static void Ins_Configuration (bool PrintView)
"<td class=\"LEFT_MIDDLE\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_QR_code);
QR_LinkTo (300,"ins",Gbl.CurrentIns.Ins.InsCod); // Changed!
QR_LinkTo (300,"ins",Gbl.CurrentIns.Ins.InsCod);
fprintf (Gbl.F.Out,"</td>"
"</tr>");
}
@ -526,7 +526,7 @@ static void Ins_ListOneInstitutionForSeeing (struct Institution *Ins,unsigned Nu
/***** Icon *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE %s\""
" style=\"width:30px;\">" // Changed!
" style=\"width:30px;\">"
"<a href=\"%s\" target=\"_blank\" title=\"%s\">",
BgColor,
Ins->WWW,Ins->FullName);
@ -602,7 +602,7 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
fprintf (Gbl.F.Out,"<tr>"
"<th></th>"
"<th style=\"width:30px;\"></th>"); // Changed!
"<th style=\"width:30px;\"></th>");
for (Order = Ins_ORDER_BY_INSTITUTION;
Order <= Ins_ORDER_BY_NUM_USRS;
Order++)
@ -989,7 +989,7 @@ void Ins_WriteSelectorOfInstitution (void)
/***** Start form *****/
Act_FormGoToStart (ActSeeCtr);
fprintf (Gbl.F.Out,"<select name=\"ins\" style=\"width:210px;\""); // Changed!
fprintf (Gbl.F.Out,"<select name=\"ins\" style=\"width:210px;\"");
if (Gbl.CurrentCty.Cty.CtyCod > 0)
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\"",
Gbl.FormId);
@ -1103,7 +1103,7 @@ static void Ins_ListInstitutionsForEdition (void)
/* Institution logo */
fprintf (Gbl.F.Out,"<td title=\"%s\" class=\"LEFT_MIDDLE\""
" style=\"width:30px;\">", // Changed!
" style=\"width:30px;\">",
Ins->FullName);
Log_DrawLogo (Sco_SCOPE_INS,Ins->InsCod,Ins->ShortName,
16,NULL,true);
@ -1115,7 +1115,7 @@ static void Ins_ListInstitutionsForEdition (void)
{
Act_FormStart (ActChgInsCty);
Ins_PutParamOtherInsCod (Ins->InsCod);
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:120px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
"<option value=\"0\"",
Gbl.FormId);
@ -1216,7 +1216,7 @@ static void Ins_ListInstitutionsForEdition (void)
{
Act_FormStart (ActChgInsSta);
Ins_PutParamOtherInsCod (Ins->InsCod);
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"Status\" style=\"width:120px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"%u\" selected=\"selected\">%s</option>"
"<option value=\"%u\">%s</option>"
@ -1235,10 +1235,10 @@ static void Ins_ListInstitutionsForEdition (void)
/* Degree requester */
UsrDat.UsrCod = Ins->RequesterUsrCod;
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -1737,14 +1737,14 @@ static void Ins_PutFormToCreateInstitution (void)
fprintf (Gbl.F.Out,"<td></td>");
/***** Institution logo *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:30px;\">");
Log_DrawLogo (Sco_SCOPE_INS,-1L,"",16,NULL,true);
fprintf (Gbl.F.Out,"</td>");
/***** Country *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">"
"<select name=\"OthCtyCod\""
" style=\"width:120px;\" disabled=\"disabled\">" // Changed!
" style=\"width:120px;\" disabled=\"disabled\">"
"<option value=\"%ld\" selected=\"selected\">"
"%s"
"</option>"
@ -1788,10 +1788,10 @@ static void Ins_PutFormToCreateInstitution (void)
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING]);
/***** Centre requester *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">" // Changed!
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:150px;\">"
"<table class=\"CELLS_PAD_2\" style=\"width:150px;\">"
"<tr>");
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL); // Changed!
Msg_WriteMsgAuthor (&Gbl.Usrs.Me.UsrDat,120,10,"DAT",true,NULL);
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"</td>"
@ -1825,7 +1825,7 @@ static void Ins_PutHeadInstitutionsForEdition (void)
"<th class=\"RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th style=\"width:30px;\"></th>" // Changed!
"<th style=\"width:30px;\"></th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
"</th>"

View File

@ -285,14 +285,14 @@ void Lay_WriteStartOfPage (void)
{
case Lay_LAYOUT_DESKTOP:
/* Left bar used to expand-contract central zone */
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:15px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:15px;\">");
Pre_PutLeftIconToHideShowCols ();
fprintf (Gbl.F.Out,"</td>");
if (Gbl.Prefs.Menu == Mnu_MENU_VERTICAL)
{
/* Tab content, including vertical menu (left) and main zone (right) */
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:210px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:210px;\">");
Mnu_WriteVerticalMenuThisTabDesktop ();
fprintf (Gbl.F.Out,"</td>");
}
@ -316,7 +316,7 @@ void Lay_WriteStartOfPage (void)
/***** Main zone *****/
/* Start of main zone for actions output */
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\""
" style=\"padding:0 15px 15px 15px;\">"); // Changed!
" style=\"padding:0 15px 15px 15px;\">");
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP &&
Gbl.Prefs.Menu == Mnu_MENU_HORIZONTAL)
@ -345,7 +345,7 @@ void Lay_WriteStartOfPage (void)
Gbl.Now.Date.Day == 1)
{
fprintf (Gbl.F.Out,"<div class=\"ASG_TITLE CENTER_MIDDLE\""
" style=\"margin:75px;\">"); // Changed!
" style=\"margin:75px;\">");
fprintf (Gbl.F.Out,Txt_NEW_YEAR_GREETING,Gbl.Now.Date.Year);
fprintf (Gbl.F.Out,"</div>");
}
@ -368,7 +368,7 @@ static void Lay_WriteEndOfPage (void)
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
{
/* Right bar used to expand-contract central zone */
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:15px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:15px;\">");
Pre_PutRigthIconToHideShowCols ();
fprintf (Gbl.F.Out,"</td>");
}
@ -609,10 +609,10 @@ static void Lay_WritePageTopHeading (void)
} LogoLayout[Lay_NUM_LAYOUTS] =
{
{ // Lay_LAYOUT_DESKTOP
"swad112x32.gif",168,48, // Changed!
"swad112x32.gif",168,48,
},
{ // Lay_LAYOUT_MOBILE
"swad168x48.gif",252,72, // Changed!
"swad168x48.gif",252,72,
},
};
@ -622,15 +622,15 @@ static void Lay_WritePageTopHeading (void)
Gbl.Prefs.PathTheme);
/***** 1st. row, 1st. column: logo *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:%upx;\">", // Changed!
LogoLayout[Gbl.Prefs.Layout].Width + 24); // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:%upx;\">",
LogoLayout[Gbl.Prefs.Layout].Width + 24);
/* Left logo */
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\">"
"<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\""
" class=\"CENTER_MIDDLE\""
" style=\"width:%upx; height:%upx;\" />" // Changed!
" style=\"width:%upx; height:%upx;\" />"
"</a>",
Cfg_HTTPS_URL_SWAD_CGI,Gbl.Prefs.PathTheme,
LogoLayout[Gbl.Prefs.Layout].Icon,
@ -673,7 +673,7 @@ static void Lay_WritePageTopHeading (void)
"</td>");
/***** 1st. row, 3rd. column: link to open/close session *****/
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_MIDDLE\" style=\"width:192px;\">", // Changed!
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_MIDDLE\" style=\"width:192px;\">",
The_ClassHead[Gbl.Prefs.Theme]);
if (Gbl.Usrs.Me.Logged)
Usr_PutFormLogOut ();
@ -683,7 +683,7 @@ static void Lay_WritePageTopHeading (void)
"</tr>");
/***** 2nd. row *****/
fprintf (Gbl.F.Out,"<tr style=\"height:96px;" // Changed!
fprintf (Gbl.F.Out,"<tr style=\"height:96px;"
" background-image:url('%s/head_row2_1x64.gif');"
" background-size:1px 96px;"
" background-repeat:repeat-x;\">",
@ -695,14 +695,14 @@ static void Lay_WritePageTopHeading (void)
/***** 2nd. row, 1st. column *****/
/* Clock with hour:minute (server hour is shown) */
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
" style=\"width:192px; height:96px;\">"); // Changed!
" style=\"width:192px; height:96px;\">");
Dat_ShowCurrentDateTime ();
fprintf (Gbl.F.Out,"</td>"); // End of first column
/***** 2nd. row, 2nd. column: degree and course *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"height:96px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"height:96px;\">"
"<div class=\"CENTER_TOP\""
" style=\"padding-top:6px;\">"); // Changed!
" style=\"padding-top:6px;\">");
Deg_WriteCtyInsCtrDeg ();
Crs_WriteSelectorMyCourses ();
Deg_WriteBigNameCtyInsCtrDegCrs ();
@ -711,19 +711,19 @@ static void Lay_WritePageTopHeading (void)
/***** 2nd. row, 3rd. column *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
" style=\"width:192px; height:96px;\">"); // Changed!
" style=\"width:192px; height:96px;\">");
if (Gbl.Usrs.Me.Logged)
{
/* Number of new messages (not seen) */
fprintf (Gbl.F.Out,"<div id=\"msg\"" // Used for AJAX based refresh
" style=\"padding-top:12px;\">"); // Changed!
" style=\"padding-top:12px;\">");
Ntf_WriteNumberOfNewNtfs ();
fprintf (Gbl.F.Out,"</div>"); // Used for AJAX based refresh
}
break;
case Lay_LAYOUT_MOBILE:
fprintf (Gbl.F.Out,"<td colspan=\"3\" class=\"CENTER_MIDDLE\""
" style=\"height:48px;" // Changed!
" style=\"height:48px;"
" background-image:url('%s/head_row2_1x64.gif');"
" background-size:1px 96px;"
" background-repeat:repeat-x;\">",
@ -745,7 +745,7 @@ static void Lay_WritePageTopHeading (void)
case Lay_LAYOUT_DESKTOP:
/***** 3rd. row, 1st. column *****/
if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:192px;" // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:192px;"
" background-image:url('%s/head_base_background_1x56.gif');"
" background-size:1px 84px;"
" background-repeat:repeat-x;\">"
@ -759,7 +759,7 @@ static void Lay_WritePageTopHeading (void)
if (Gbl.Prefs.SideCols & Lay_SHOW_RIGHT_COLUMN) // Right column visible
{
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"CENTER_TOP\""
" style=\"width:192px;\">"); // Changed!
" style=\"width:192px;\">");
Lay_ShowRightColumn ();
fprintf (Gbl.F.Out,"</td>");
}
@ -771,7 +771,7 @@ static void Lay_WritePageTopHeading (void)
if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible
{
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\""
" style=\"width:192px;\">"); // Changed!
" style=\"width:192px;\">");
Lay_ShowLeftColumn ();
fprintf (Gbl.F.Out,"</td>");
}
@ -826,10 +826,10 @@ static void Lay_ShowLeftColumn (void)
{
struct Act_ListMFUActions ListMFUActions;
fprintf (Gbl.F.Out,"<table style=\"width:192px;\">" // Changed!
fprintf (Gbl.F.Out,"<table style=\"width:192px;\">"
"<tr>"
"<td class=\"LEFT_TOP\">"
"<table style=\"width:192px; border-spacing:6px;\">"); // Changed!
"<table style=\"width:192px; border-spacing:6px;\">");
/***** Most frequently used actions *****/
if (Gbl.Usrs.Me.Logged)
@ -887,8 +887,8 @@ static void Lay_ShowRightColumn (void)
" style=\"background-image:url('%s/head_base_background_1x56.gif');"
" background-size:1px 84px;"
" background-repeat:repeat-x;\">"
"<table style=\"width:100%%; padding-top:84px;" // Changed!
" border-spacing:6px;\">", // Changed!
"<table style=\"width:100%%; padding-top:84px;"
" border-spacing:6px;\">",
Gbl.Prefs.PathTheme);
/***** Banners *****/
@ -928,7 +928,7 @@ static void Lay_ShowRightColumn (void)
" target=\"_blank\" title=\"%s\">"
"<img src=\"%s/SWADroid120x200.png\""
" alt=\"SWADroid\" title=\"SWADroid\""
" style=\"width:180px; height:300px;\" />" // Changed!
" style=\"width:180px; height:300px;\" />"
"</a>"
"</td>"
"</tr>",
@ -999,7 +999,7 @@ void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text)
void Lay_PutCalculateIconWithText (const char *Alt,const char *Text)
{
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
" style=\"margin:0 7px; display:inline;\">" // Changed!
" style=\"margin:0 7px; display:inline;\">"
"<img id=\"update_%d\" src=\"%s/recycle16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -1403,13 +1403,13 @@ void Lay_WritePageFooter (void)
Lay_WriteFootFromHTMLFile ();
fprintf (Gbl.F.Out,"<div class=\"FOOT CENTER_MIDDLE\""
" style=\"padding-bottom:15px;\">"); // Changed!
" style=\"padding-bottom:15px;\">");
/***** Institution and centre hosting the platform *****/
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">"
"<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\""
" style=\"width:%upx; height:%upx;\" />" // Changed!
" style=\"width:%upx; height:%upx;\" />"
"<div>%s</div>"
"</a>",
Cfg_ABOUT_URL,
@ -1489,12 +1489,12 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC
/***** Table start *****/
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"%u\" class=\"CENTER_MIDDLE\">"
"<table style=\"width:100%%; padding:15px;\">" // Changed!
"<table style=\"width:100%%; padding:15px;\">"
"<tr>",
NumColumns);
/***** First column: institution logo *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:96px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP\" style=\"width:96px;\">");
if (InsCod > 0)
{
if (!PrintView)
@ -1541,7 +1541,7 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC
fprintf (Gbl.F.Out,"</td>");
/***** Third column: degree logo *****/
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:96px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"RIGHT_TOP\" style=\"width:96px;\">");
if (DegCod > 0)
{
if (!PrintView)
@ -1648,7 +1648,7 @@ void Lay_AdvertisementMobile (void)
if (!(rand () % Lay_SHOW_ADVERTISEMENT_ONE_TIME_OF_X))
{
fprintf (Gbl.F.Out,"<div style=\"margin-top:30px;\">"); // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin-top:30px;\">");
/***** Table start *****/
Lay_StartRoundFrameTable (NULL,8,NULL);
@ -1661,7 +1661,7 @@ void Lay_AdvertisementMobile (void)
"%s<br /><br />"
"<img src=\"%s/SWADroid200x300.png\""
" alt=\"SWADroid\" title=\"%s\""
" style=\"width:300px; height:450px;\" />" // Changed!
" style=\"width:300px; height:450px;\" />"
"</a>"
"</td>"
"</tr>",

View File

@ -111,7 +111,7 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
{
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"INS_LNK CENTER_MIDDLE\""
" style=\"width:180px;\">" // Changed!
" style=\"width:180px;\">"
"<div id=\"institutional_links\">");
Lnk_WriteListOfLinks ();
fprintf (Gbl.F.Out,"</div>"

View File

@ -127,7 +127,7 @@ void Mnu_WriteVerticalMenuThisTabDesktop (void)
/***** Icon *****/
fprintf (Gbl.F.Out,"<div class=\"MENU_OPTION\""
" style=\"background-image:url('%s/%s/%s64x64.gif');"
" background-size:48px 48px;\"\">", // Changed!
" background-size:48px 48px;\"\">",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_Actions[NumAct].Icon);
@ -277,7 +277,7 @@ void Mnu_WriteMenuThisTabMobile (void)
The_ClassMenuOff[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" class=\"ICON64x64\""
" style=\"margin:6px;\" />" // Changed!
" style=\"margin:6px;\" />"
"<div>%s</div>"
"</a>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,

View File

@ -2600,7 +2600,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
Txt_MSG_Unopened) :
Txt_MSG_Sent;
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s CENTER_TOP\" style=\"width:24px;\">" // Changed!
"<td class=\"%s CENTER_TOP\" style=\"width:24px;\">"
"<img src=\"%s/msg-%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />",
@ -2625,7 +2625,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
/***** Write message author *****/
Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat);
Msg_WriteMsgAuthor (&UsrDat,120,11, // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,11,
Open ? "MSG_AUT_BG" :
"MSG_AUT_BG_NEW", // Style
true,NULL);
@ -2757,7 +2757,7 @@ void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigne
void Msg_WriteMsgNumber (unsigned long MsgNum,bool NewMsg)
{
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP\" style=\"width:54px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP\" style=\"width:54px;\">"
"%lu:"
"</td>",
NewMsg ? "MSG_TIT_BG_NEW" :
@ -2812,7 +2812,7 @@ static void Msg_WriteSentOrReceivedMsgSubject (Msg_TypeOfMessages_t TypeOfMessag
/*****************************************************************************/
// Input: UsrDat must hold user's data
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName, // Changed!
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName,
const char *Style,bool Enabled,const char *BgColor)
{
extern const char *Txt_Unknown_or_without_photo;
@ -2824,7 +2824,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
fprintf (Gbl.F.Out,"<td class=\"%s CENTER_TOP",Style);
if (BgColor)
fprintf (Gbl.F.Out," %s",BgColor);
fprintf (Gbl.F.Out,"\" style=\"width:36px;\">"); // Changed!
fprintf (Gbl.F.Out,"\" style=\"width:36px;\">");
/***** Write author name or don't write it? *****/
if (Enabled)
@ -2844,7 +2844,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP",Style);
if (BgColor)
fprintf (Gbl.F.Out," %s",BgColor);
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",WidthOfNameColumn); // Changed!
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",WidthOfNameColumn);
/* Restrict length of firstname and surnames */
Usr_RestrictLengthAndWriteName (UsrDat,MaxCharsInName);
@ -2861,7 +2861,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
Style);
if (BgColor)
fprintf (Gbl.F.Out," %s",BgColor);
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">", // Changed!
fprintf (Gbl.F.Out,"\" style=\"width:%upx;\">",
WidthOfNameColumn);
}
@ -2981,7 +2981,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
/***** Put an icon to show if user has read the message *****/
fprintf (Gbl.F.Out,"<table>"
"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">"
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -2995,7 +2995,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
Txt_MSG_Sent);
/***** Put user's photo *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:36px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:36px;\">");
ShowPhoto = (Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL));
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
@ -3127,7 +3127,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
(Deleted ? Txt_MSG_Deleted_without_opening :
Txt_MSG_Unopened);
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">" // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:24px;\">"
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -3140,7 +3140,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
Title,Title);
/* Put user's photo */
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:36px;\">"); // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:36px;\">");
ShowPhoto = (UsrValid ? Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL) :
false);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
@ -3212,7 +3212,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
void Msg_WriteMsgDate (const char *DateTime,const char *ClassBackground)
{
/***** Start cell *****/
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP\" style=\"width:127px;\">", // Changed!
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP\" style=\"width:127px;\">",
ClassBackground);
/***** Write date and time (DateTime holds date and time in YYYYMMDDHHMMSS format) *****/
@ -3308,7 +3308,7 @@ static void Msg_PutFormToBanSender (struct UsrData *UsrDat)
Msg_PutHiddenParamsMsgsFilters ();
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/open_on16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" style=\"margin-left:15px;\" />", // Changed!
" class=\"ICON16x16\" style=\"margin-left:15px;\" />",
Gbl.Prefs.IconsURL,
Txt_Sender_permitted_click_to_ban_him,
Txt_Sender_permitted_click_to_ban_him);
@ -3518,7 +3518,7 @@ void Msg_ListBannedUsrs (void)
/* Show photo */
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\""
" style=\"width:36px;\">"); // Changed!
" style=\"width:36px;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,

View File

@ -99,7 +99,7 @@ void Msg_GetMsgSubject (long MsgCod,char *Subject);
void Msg_GetNotifMessage (char *SummaryStr,char **ContentStr,long MsgCod,unsigned MaxChars,bool GetContent);
void Msg_WriteMsgNumber (unsigned long MsgNum,bool NewMsg);
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName, // Changed!
void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsigned MaxCharsInName,
const char *Style,bool Enabled,const char *BgColor);
bool Msg_WriteCrsOrgMsg (long CrsCod);
void Msg_WriteListUsrsDstMsg (long MsgCod);

View File

@ -164,7 +164,7 @@ void Net_ShowWebsAndSocialNets (const struct UsrData *UsrDat)
char URL[Cns_MAX_BYTES_URL+1];
/***** Start container *****/
fprintf (Gbl.F.Out,"<div style=\"width:216px; margin:0 auto;\">"); // Changed!
fprintf (Gbl.F.Out,"<div style=\"width:216px; margin:0 auto;\">");
/***** Show link to public profile *****/
Net_ShowAWebOrSocialNet (Prf_GetURLPublicProfile (URL,UsrDat->Nickname),
@ -227,7 +227,7 @@ static void Net_ShowAWebOrSocialNet (const char *URL,
/********************* Show form to edit my social networks ******************/
/*****************************************************************************/
#define Net_COL2_WIDTH 600 // Changed!
#define Net_COL2_WIDTH 600
void Net_ShowFormMyWebsAndSocialNets (void)
{
@ -274,9 +274,9 @@ void Net_ShowFormMyWebsAndSocialNets (void)
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\""
" style=\"margin-right:15px;\" />" // Changed!
" style=\"margin-right:15px;\" />"
"%s:</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
The_ClassForm[Gbl.Prefs.Theme],
Gbl.Prefs.IconsURL,Net_WebsAndSocialNetworksDB[NumURL],
Net_TitleWebsAndSocialNetworks[NumURL],
@ -286,7 +286,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
Act_FormStart (ActChgMyNet);
Par_PutHiddenParamUnsigned ("Web",(unsigned) NumURL);
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\""
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\"" // Changed!
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
Cns_MAX_LENGTH_URL,URL,
Gbl.FormId);
@ -492,7 +492,7 @@ void Net_ShowWebAndSocialNetworksStats (void)
"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\""
" style=\"margin-right:15px;\" />" // Changed!
" style=\"margin-right:15px;\" />"
"%s</td>"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"

View File

@ -51,8 +51,8 @@ extern struct Globals Gbl;
const unsigned Not_ContainerWidth[Not_NUM_TYPES_LISTING] =
{
150, // Not_LIST_BRIEF_NOTICES // Changed!
600, // Not_LIST_FULL_NOTICES // Changed!
150, // Not_LIST_BRIEF_NOTICES
600, // Not_LIST_FULL_NOTICES
};
const unsigned Not_MaxCharsURLOnScreen[Not_NUM_TYPES_LISTING] =
@ -379,8 +379,8 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
{
if (NumNotices)
{
sprintf (StrWidth,"%upx", // Changed!
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 60); // Changed!
sprintf (StrWidth,"%upx",
Not_ContainerWidth[Not_LIST_FULL_NOTICES] + 60);
Lay_StartRoundFrameTable (StrWidth,2,Txt_All_notices);
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_TOP\">");
@ -481,8 +481,8 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
struct UsrData UsrDat;
/***** Start yellow note *****/
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\" style=\"width:%upx;\">", // Changed!
Not_ContainerWidth[TypeNoticesListing]); // Changed!
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\" style=\"width:%upx;\">",
Not_ContainerWidth[TypeNoticesListing]);
/***** Write the date in the top part of the yellow note *****/
/* Write symbol to indicate if notice is obsolete or active */

View File

@ -429,7 +429,7 @@ void Ntf_ShowMyNotifications (void)
/***** Write row for this notification *****/
/* Write event icon */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s LEFT_TOP\" style=\"width:30px;\">", // Changed!
"<td class=\"%s LEFT_TOP\" style=\"width:30px;\">",
ClassBackground);
if (PutLink)
{
@ -470,7 +470,7 @@ void Ntf_ShowMyNotifications (void)
fprintf (Gbl.F.Out,"</td>");
/* Write user (from) */
Msg_WriteMsgAuthor (&UsrDat,120,11,ClassAuthorBg,true,NULL); // Changed!
Msg_WriteMsgAuthor (&UsrDat,120,11,ClassAuthorBg,true,NULL);
/* Write location */
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP\">",
@ -551,7 +551,7 @@ void Ntf_ShowMyNotifications (void)
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"2\"></td>"
"<td colspan=\"5\" class=\"DAT LEFT_TOP\""
" style=\"padding-bottom:15px;\">" // Changed!
" style=\"padding-bottom:15px;\">"
"%s"
"</td>"
"</tr>",

View File

@ -188,7 +188,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
if (Pagination->MoreThanOnePage)
{
/***** Links to several pages start here *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:7px;\">" // Changed!
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:7px;\">"
"<tr>"
"<td class=\"%s LEFT_MIDDLE\">"
"["

View File

@ -884,7 +884,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 class=\"CENTER_MIDDLE\" style=\"margin:15px;\">" // Changed!
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\" style=\"margin:15px;\">"
"<input type=\"checkbox\" name=\"Consent\" value=\"Y\" />"
"<span class=\"%s\">%s</span><br />"
"<span class=\"%s\">%s: </span>"

View File

@ -756,14 +756,14 @@ static void Pho_UpdatePhoto2 (void)
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;\" />" // Changed!
" style=\"width:%upx; height:%upx;\" />"
"<br />%s"
"</td>",
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP,
Gbl.Usrs.FileNamePhoto,NumPhoto + 1,
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto],
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto],
Pho_PHOTO_REAL_WIDTH,Pho_PHOTO_REAL_HEIGHT, // Changed!
Pho_PHOTO_REAL_WIDTH,Pho_PHOTO_REAL_HEIGHT,
Txt_PHOTO_PROCESSING_CAPTIONS[NumPhoto]);
fprintf (Gbl.F.Out,"</tr>"
"</table>");
@ -2214,8 +2214,8 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,
Pho_StrAvgPhotoDirs[Gbl.Stat.DegPhotos.TypeOfAverage],
Deg->DegCod,Usr_StringsSexDB[Sex]);
fprintf (Gbl.F.Out,"%s\" style=\"width:%upx; height:%upx;\"", // Changed!
PhotoURL,PhotoWidth,PhotoHeight); // Changed!
fprintf (Gbl.F.Out,"%s\" style=\"width:%upx; height:%upx;\"",
PhotoURL,PhotoWidth,PhotoHeight);
if (SeeOrPrint == Pho_DEGREES_SEE)
{
sprintf (PhotoCaption,"%s<br />"
@ -2234,12 +2234,12 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
}
else
fprintf (Gbl.F.Out,"%s/usr_bl.jpg\""
" style=\"width:%upx; height:%upx;\"", // Changed!
" style=\"width:%upx; height:%upx;\"",
Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight);
}
else
fprintf (Gbl.F.Out,"%s/usr_bl.jpg\""
" style=\"width:%upx; height:%upx;\"", // Changed!
" style=\"width:%upx; height:%upx;\"",
Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight);
fprintf (Gbl.F.Out," alt=\"%s\" title=\"%s\" />",
Deg->ShortName,
@ -2261,14 +2261,14 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP
/*****************************************************************************/
/******** Compute photo width and height for class photo of degrees **********/
/*****************************************************************************/
#define MIN_WIDTH_PHOTO 12 // Changed!
#define MIN_HEIGHT_PHOTO 18 // Changed!
#define MIN_WIDTH_PHOTO 12
#define MIN_HEIGHT_PHOTO 18
#define MIN_PIXELS_PHOTO (MIN_WIDTH_PHOTO * MIN_HEIGHT_PHOTO)
#define DEF_WIDTH_PHOTO 54 // Changed!
#define DEF_HEIGHT_PHOTO 72 // Changed!
#define DEF_WIDTH_PHOTO 54
#define DEF_HEIGHT_PHOTO 72
#define DEF_PIXELS_PHOTO (DEF_WIDTH_PHOTO * DEF_HEIGHT_PHOTO)
#define MAX_WIDTH_PHOTO 108 // Changed!
#define MAX_HEIGHT_PHOTO 144 // Changed!
#define MAX_WIDTH_PHOTO 108
#define MAX_HEIGHT_PHOTO 144
#define MAX_PIXELS_PHOTO (MAX_WIDTH_PHOTO * MAX_HEIGHT_PHOTO)
static void Pho_ComputePhotoSize (int NumStds,int NumStdsWithPhoto,unsigned *PhotoWidth,unsigned *PhotoHeight)

View File

@ -99,7 +99,7 @@ void Plg_ListPlugins (void)
/***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>"
"<th style=\"width:48px;\">" // Changed!
"<th style=\"width:48px;\">"
"</th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
@ -119,7 +119,7 @@ void Plg_ListPlugins (void)
/* Plugin logo */
// TODO: Change plugin icons to 32x32
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"DAT LEFT_MIDDLE\" style=\"width:54px;\">" // Changed!
"<td class=\"DAT LEFT_MIDDLE\" style=\"width:54px;\">"
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
"<img src=\"%s/%s/%s24x24.gif\""
" alt=\"%s\" title=\"%s\""
@ -383,7 +383,7 @@ static void Plg_ListPluginsForEdition (void)
/* Plugin logo */
// TODO: Change plugin icons to 32x32
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:54px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:54px;\">"
"<img src=\"%s/%s/%s24x24.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" />"
@ -929,7 +929,7 @@ static void Plg_PutHeadPlugins (void)
"<th class=\"RIGHT_MIDDLE\">"
"%s"
"</th>"
"<th style=\"width:42px;\"></th>" // Changed!
"<th style=\"width:42px;\"></th>"
"<th class=\"LEFT_MIDDLE\">"
"%s"
"</th>"

View File

@ -72,28 +72,32 @@ void Pre_EditPrefs (void)
Pre_PutSelectorToSelectLanguage ();
Lay_EndRoundFrame ();
/***** Layout, theme, icon set, menu & side columns *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:15px;\">" // Changed!
/***** Layout, side columns, theme, icon set & menu *****/
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:20px 0;\">"
"<tr>"
"<td>");
Lay_PutIconsToSelectLayout (); // 1. Layout
fprintf (Gbl.F.Out,"</td>"
"<td>");
The_PutIconsToSelectTheme (); // 2. Theme
fprintf (Gbl.F.Out,"</td>"
"<td>");
Ico_PutIconsToSelectIconSet (); // 3. Icon set
fprintf (Gbl.F.Out,"</td>");
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
{
fprintf (Gbl.F.Out,"<td>");
Mnu_PutIconsToSelectMenu (); // 4. Menu
Mnu_PutIconsToSelectMenu (); // 2. Menu
fprintf (Gbl.F.Out,"</td>"
"<td>");
Pre_PutIconsToSelectSideCols (); // 5. Side columns
Pre_PutIconsToSelectSideCols (); // 3. Side columns
fprintf (Gbl.F.Out,"</td>");
}
fprintf (Gbl.F.Out,"</tr>"
"</table>"
"<table style=\"margin:0 auto; border-spacing:20px 0;\">"
"<tr>"
"<td>");
The_PutIconsToSelectTheme (); // 4. Theme
fprintf (Gbl.F.Out,"</td>"
"<td>");
Ico_PutIconsToSelectIconSet (); // 5. Icon set
fprintf (Gbl.F.Out,"</td>"
"</tr>"
"</table>");
/***** Automatic e-mail to notify of new events *****/
@ -225,12 +229,12 @@ void Pre_PutSelectorToSelectLanguage (void)
Txt_Language_t Lan;
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
{
135, // Lay_LAYOUT_DESKTOP // Changed!
180, // Lay_LAYOUT_MOBILE // Changed!
135, // Lay_LAYOUT_DESKTOP
180, // Lay_LAYOUT_MOBILE
};
Act_FormStart (ActReqChgLan);
fprintf (Gbl.F.Out,"<select name=\"Lan\" style=\"width:%upx; margin:0;\"" // Changed!
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;
@ -352,7 +356,7 @@ static void Pre_PutIconsToSelectSideCols (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/layout%u%u_32x20.gif\""
" alt=\"%s\" title=\"%s\""
" style=\"display:block;"
" width:48px; height:30px;\" />", // Changed!
" width:48px; height:30px;\" />",
Gbl.Prefs.IconsURL,
SideCols >> 1,SideCols & 1,
Txt_LAYOUT_SIDE_COLUMNS[SideCols],

View File

@ -327,7 +327,7 @@ static void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
// char StrTimeGenerationInMicroseconds[64];
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 15px;\">"); // Changed!
fprintf (Gbl.F.Out,"<table class=\"CELLS_PAD_2\" style=\"margin:0 15px;\">");
/*
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SYS_ADM)
{
@ -1319,7 +1319,7 @@ void Prf_ShowRankingFigure (const char *Query)
fprintf (Gbl.F.Out,"<tr>");
Prf_ShowUsrInRanking (&UsrDat,Rank);
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE COLOR%u\""
" style=\"height:60px;\">" // Changed!
" style=\"height:60px;\">"
"%ld"
"</td>"
"</tr>",
@ -1464,7 +1464,7 @@ void Prf_GetAndShowRankingClicksPerDay (void)
fprintf (Gbl.F.Out,"<tr>");
Prf_ShowUsrInRanking (&UsrDat,Rank);
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE COLOR%u\""
" style=\"height:60px;\">", // Changed!
" style=\"height:60px;\">",
Gbl.RowEvenOdd);
Str_WriteFloatNum (NumClicksPerDay);
fprintf (Gbl.F.Out,"</td>"
@ -1493,11 +1493,11 @@ void Prf_ShowUsrInRanking (const struct UsrData *UsrDat,unsigned Rank)
bool Visible = Pri_ShowIsAllowed (UsrDat->ProfileVisibility,UsrDat->UsrCod);
fprintf (Gbl.F.Out,"<td class=\"RANK RIGHT_MIDDLE COLOR%u\""
" style=\"height:60px;\">" // Changed!
" style=\"height:60px;\">"
"#%u"
"</td>"
"<td class=\"COLOR%u\""
" style=\"width:42px; height:60px;\">", // Changed!
" style=\"width:42px; height:60px;\">",
Gbl.RowEvenOdd,
Rank,
Gbl.RowEvenOdd);
@ -1513,7 +1513,7 @@ void Prf_ShowUsrInRanking (const struct UsrData *UsrDat,unsigned Rank)
}
fprintf (Gbl.F.Out,"</td>"
"<td class=\"COLOR%u\" style=\"height:60px;\">", // Changed!
"<td class=\"COLOR%u\" style=\"height:60px;\">",
Gbl.RowEvenOdd);
/***** Put form to go to public profile *****/

View File

@ -57,8 +57,8 @@ extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS];
/***************************** Private constants *****************************/
/*****************************************************************************/
#define Rec_INSTITUTION_LOGO_SIZE 72 // Changed!
#define Rec_DEGREE_LOGO_SIZE 72 // Changed!
#define Rec_INSTITUTION_LOGO_SIZE 72
#define Rec_DEGREE_LOGO_SIZE 72
#define Rec_SHOW_OFFICE_HOURS_DEFAULT true
/*****************************************************************************/
@ -209,7 +209,7 @@ void Rec_ListFieldsRecordsForEdition (void)
Act_FormStart (ActRenFie);
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FieldName\""
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\"" // Changed!
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
Rec_MAX_LENGTH_NAME_FIELD,
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name,
@ -282,7 +282,7 @@ void Rec_ShowFormCreateRecordField (void)
/***** Field name *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<input type=\"text\" name=\"FieldName\""
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\" />" // Changed!
" style=\"width:600px;\" maxlength=\"%u\" value=\"%s\" />"
"</td>",
Rec_MAX_LENGTH_NAME_FIELD,Gbl.CurrentCrs.Records.Field.Name);
@ -915,7 +915,7 @@ void Rec_ListRecordsGsts (void)
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat)) // Get from the database the data of the student
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin-bottom:15px;"); // Changed!
" style=\"margin-bottom:15px;");
if (Gbl.CurrentAct == ActPrnRecSevGst &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -1082,7 +1082,7 @@ void Rec_ListRecordsStds (void)
true);
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin-bottom:15px;"); // Changed!
" style=\"margin-bottom:15px;");
if (Gbl.CurrentAct == ActPrnRecSevStd &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -1169,7 +1169,7 @@ static void Rec_ShowRecordOneTchCrs (void)
fprintf (Gbl.F.Out,"</div>");
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin-bottom:15px;\">"); // Changed!
" style=\"margin-bottom:15px;\">");
/* Common record */
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
@ -1258,7 +1258,7 @@ void Rec_ListRecordsTchs (void)
true);
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin-bottom:15px;"); // Changed!
" style=\"margin-bottom:15px;");
if (Gbl.CurrentAct == ActPrnRecSevTch &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -1348,7 +1348,7 @@ static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListU
Par_PutHiddenParamChar ("ParamOfficeHours",'Y');
/***** End form *****/
fprintf (Gbl.F.Out,"<div style=\"margin:0 7px; display:inline;\">" // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin:0 7px; display:inline;\">"
"<input type=\"checkbox\" name=\"ShowOfficeHours\" value=\"Y\"");
if (ShowOfficeHours)
fprintf (Gbl.F.Out," checked=\"checked\"");
@ -1453,10 +1453,10 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
extern const char *Txt_You_dont_have_permission_to_perform_this_action;
extern const char *Txt_RECORD_FIELD_VISIBILITY_RECORD[Rec_NUM_TYPES_VISIBILITY];
extern const char *Txt_Save;
unsigned RecordWidth = Rec_RECORD_WIDTH_WIDE; // Changed!
unsigned RecordWidth = Rec_RECORD_WIDTH_WIDE;
char StrRecordWidth[10+1];
unsigned FrameWidth = 15; // Changed!
unsigned Col1Width = 210; // Changed!
unsigned FrameWidth = 15;
unsigned Col1Width = 210;
unsigned Col2Width;
char *ClassHead;
char *ClassData;
@ -1539,7 +1539,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
Col2Width = RecordWidth - FrameWidth * 2 - Col1Width;
/***** Start frame *****/
sprintf (StrRecordWidth,"%upx",RecordWidth); // Changed!
sprintf (StrRecordWidth,"%upx",RecordWidth);
Lay_StartRoundFrameTable (StrRecordWidth,2,NULL);
/***** Header *****/
@ -1547,7 +1547,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
"<td colspan=\"2\" class=\"LEFT_TOP\">"
"<table style=\"width:100%%;\">"
"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<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);
@ -1581,11 +1581,11 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
/* Name of the field */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s LEFT_TOP COLOR%u\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:",
ICanEdit ? The_ClassForm[Gbl.Prefs.Theme] :
"DAT_REC_SMALL",
Gbl.RowEvenOdd,Col1Width, // Changed!
Gbl.RowEvenOdd,Col1Width,
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name);
if (TypeOfView == Rec_RECORD_LIST)
fprintf (Gbl.F.Out,"<span class=\"DAT_SMALL\"> (%s)</span>",
@ -1603,12 +1603,12 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
/***** Write form, text, or nothing depending on the user's role and the visibility of the field... */
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_TOP COLOR%u\""
" style=\"width:%upx;\">", // Changed!
ClassData,Gbl.RowEvenOdd,Col2Width); // Changed!
" style=\"width:%upx;\">",
ClassData,Gbl.RowEvenOdd,Col2Width);
if (ICanEdit) // Show with form
{
fprintf (Gbl.F.Out,"<textarea name=\"Field%ld\" rows=\"%u\""
" style=\"width:540px;\">", // Changed!
" style=\"width:540px;\">",
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod,
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].NumLines);
if (ThisFieldHasText)
@ -2118,13 +2118,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW; // Only in main window
/***** Start frame *****/
sprintf (StrRecordWidth,"%upx",RecordWidth); // Changed!
sprintf (StrRecordWidth,"%upx",RecordWidth);
Lay_StartRoundFrameTable (StrRecordWidth,2,NULL);
/***** Institution *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"CENTER_MIDDLE\""
" style=\"width:%upx; height:%upx;\">", // Changed!
" style=\"width:%upx; height:%upx;\">",
TopC1Width,TopC1Width);
if (UsrDat->InsCod > 0)
{
@ -2148,7 +2148,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
}
fprintf (Gbl.F.Out,"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx; height:%upx;\">", // Changed!
" style=\"width:%upx; height:%upx;\">",
ClassHead,TopC2Width,TopC1Width);
if (UsrDat->InsCod > 0)
{
@ -2171,7 +2171,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Photo *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
fprintf (Gbl.F.Out,"<td rowspan=\"3\" class=\"CENTER_TOP\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
TopC3Width);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
@ -2182,12 +2182,12 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Commands *****/
fprintf (Gbl.F.Out,"<tr>"
"<td rowspan=\"3\" class=\"LEFT_TOP\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
TopC1Width);
if (PutFormLinks && Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div style=\"width:30px; margin:9px auto;\">"); // Changed!
fprintf (Gbl.F.Out,"<div style=\"width:30px; margin:9px auto;\">");
/***** Button to edit my record card *****/
if (ItsMe)
@ -2395,7 +2395,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Full name *****/
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_TOP\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s<br />%s<br />%s"
"</td>"
"</tr>",
@ -2406,7 +2406,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** User's nickname *****/
fprintf (Gbl.F.Out,"<td class=\"REC_NAME LEFT_BOTTOM\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"<div class=\"REC_NICK\">",
TopC2Width);
if (UsrDat->Nickname[0])
@ -2434,7 +2434,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Country *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">", // Changed!
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">",
ClassData,TopC2Width);
if (ShowData && UsrDat->CtyCod > 0)
{
@ -2444,7 +2444,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
fprintf (Gbl.F.Out,"</td>");
/***** User's web and social networks *****/
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:%upx;\">", // Changed!
fprintf (Gbl.F.Out,"<td class=\"CENTER_TOP\" style=\"width:%upx;\">",
TopC3Width);
Net_ShowWebsAndSocialNets (UsrDat);
fprintf (Gbl.F.Out,"</td>"
@ -2485,11 +2485,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** User's e-mail *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Email,
ClassData,Rec_C2_BOTTOM_WIDE);
if (UsrDat->Email[0])
@ -2511,11 +2511,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** User's ID *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_TOP\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_TOP\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_ID,
ClassData,Rec_C2_BOTTOM_WIDE);
ID_WriteUsrIDs (UsrDat,ShowID);
@ -2527,10 +2527,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,
Txt_Role,
ClassData,Rec_C2_BOTTOM_WIDE);
@ -2663,10 +2663,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
{
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s*:</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,
Txt_Sex,
ClassData,Rec_C2_BOTTOM_WIDE);
@ -2693,11 +2693,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
else // RoleForm == false, SexForm == false
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s"
"</td>"
"</tr>",
@ -2712,22 +2712,22 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Surname 1 */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Surname_1);
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
fprintf (Gbl.F.Out,"*");
fprintf (Gbl.F.Out,":</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname1\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->Surname1,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->Surname1[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->Surname1);
fprintf (Gbl.F.Out,"</td>"
@ -2736,21 +2736,21 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Surname 2 */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,
Txt_Surname_2,
ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Surname2\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->Surname2,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->Surname2[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>",
UsrDat->Surname2);
@ -2760,22 +2760,22 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* First name */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_First_name);
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
fprintf (Gbl.F.Out,"*");
fprintf (Gbl.F.Out,":</td>"
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassData,Rec_C2_BOTTOM_WIDE);
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FirstName\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_USR_NAME_OR_SURNAME,
UsrDat->FirstName,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->FirstName[0])
fprintf (Gbl.F.Out,"<strong>%s</strong>",UsrDat->FirstName);
fprintf (Gbl.F.Out,"</td>"
@ -2793,19 +2793,19 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Country);
if (TypeOfView == Rec_FORM_MY_COMMON_RECORD)
fprintf (Gbl.F.Out,"*");
fprintf (Gbl.F.Out,":</td>"
"<td colspan=\"2\" class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassData,Rec_C2_BOTTOM_WIDE);
/* Selector of country */
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"<option value=\"-1\">%s</option>"
"<option value=\"0\"",
Rec_C2_BOTTOM_WIDE - 90,
@ -2836,11 +2836,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Origin place */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Place_of_origin,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2848,7 +2848,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OriginPlace\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING,
UsrDat->OriginPlace,
Rec_C2_BOTTOM_WIDE - 90);
@ -2861,11 +2861,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Date of birth */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Date_of_birth,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2885,11 +2885,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Local address */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Local_address,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2897,10 +2897,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalAddress\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING,
UsrDat->LocalAddress,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->LocalAddress[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalAddress);
}
@ -2910,11 +2910,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Local phone */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2922,10 +2922,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"LocalPhone\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE,
UsrDat->LocalPhone,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->LocalPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->LocalPhone);
}
@ -2935,11 +2935,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Family address */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Family_address,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2947,7 +2947,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyAddress\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Cns_MAX_LENGTH_STRING,
UsrDat->FamilyAddress,
Rec_C2_BOTTOM_WIDE - 90);
@ -2960,11 +2960,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Family phone */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -2972,10 +2972,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
if (DataForm)
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FamilyPhone\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:%upx;\" />", // Changed!
" style=\"width:%upx;\" />",
Usr_MAX_LENGTH_PHONE,
UsrDat->FamilyPhone,
Rec_C2_BOTTOM_WIDE - 90); // Changed!
Rec_C2_BOTTOM_WIDE - 90);
else if (UsrDat->FamilyPhone[0])
fprintf (Gbl.F.Out,"%s",UsrDat->FamilyPhone);
}
@ -2985,20 +2985,20 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Common comments for all the courses */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_TOP\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_TOP\" style=\"width:%upx;\">", // Changed!
"<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;\">" // Changed!
" style=\"width:%upx;\">"
"%s"
"</textarea>",
Rec_C2_BOTTOM_WIDE - 90, // Changed!
Rec_C2_BOTTOM_WIDE - 90,
UsrDat->Comments);
else if (UsrDat->Comments[0])
{
@ -3017,11 +3017,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Institution */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Institution,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -3042,11 +3042,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Centre */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Centre,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -3069,11 +3069,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Department */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Department,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
@ -3096,13 +3096,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Office */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Office, // Changed!
ClassData,Rec_C2_BOTTOM_WIDE); // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Office,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
fprintf (Gbl.F.Out,"%s",UsrDat->Tch.Office);
fprintf (Gbl.F.Out,"</td>"
@ -3111,13 +3111,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/* Phone */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"%s RIGHT_MIDDLE\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s:"
"</td>"
"<td class=\"%s LEFT_MIDDLE\""
" style=\"width:%upx;\">", // Changed!
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone, // Changed!
ClassData,Rec_C2_BOTTOM_WIDE); // Changed!
" style=\"width:%upx;\">",
ClassForm,Rec_C1_BOTTOM_WIDE,Txt_Phone,
ClassData,Rec_C2_BOTTOM_WIDE);
if (ShowData)
fprintf (Gbl.F.Out,"%s",UsrDat->Tch.OfficePhone);
fprintf (Gbl.F.Out,"</td>"
@ -3351,7 +3351,7 @@ static void Rec_PutLinkToChangeMySocialNetworks (void)
/********* Show form to edit my institution, centre and department ***********/
/*****************************************************************************/
#define COL2_WIDTH 600 // Changed!
#define COL2_WIDTH 600
void Rec_ShowFormMyInsCtrDpt (void)
{
@ -3385,7 +3385,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
Lay_ShowAlert (Lay_WARNING,Txt_Please_fill_in_your_centre_and_department);
/***** Start table *****/
Lay_StartRoundFrameTable ("840px",3, // Changed!
Lay_StartRoundFrameTable ("840px",3,
IAmTeacher ? Txt_Institution_centre_and_department :
Txt_Institution);
@ -3394,9 +3394,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Country_of_institution,
COL2_WIDTH); // Changed!
COL2_WIDTH);
/* If list of countries is empty, try to get it */
if (!Gbl.Ctys.Num)
@ -3407,7 +3407,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
/* Start form to select the country of my institution */
Act_FormGoToStart (ActChgCtyMyIns);
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:600px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthCtyCod\" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"-1\"",
Gbl.FormId);
@ -3435,9 +3435,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Institution,
COL2_WIDTH); // Changed!
COL2_WIDTH);
/* Get list of institutions in this country */
Ins_FreeListInstitutions ();
@ -3446,7 +3446,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
/* Start form to select institution */
Act_FormGoToStart (ActChgMyIns);
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:600px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthInsCod\" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"-1\"",
Gbl.FormId);
@ -3481,9 +3481,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Centre,
COL2_WIDTH); // Changed!
COL2_WIDTH);
/* Get list of centres in this institution */
Ctr_FreeListCentres ();
@ -3492,7 +3492,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
/* Start form to select centre */
Act_FormGoToStart (ActChgMyCtr);
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:600px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"OthCtrCod\" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"-1\"",
Gbl.FormId);
@ -3525,9 +3525,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Department,
COL2_WIDTH); // Changed!
COL2_WIDTH);
/* Get list of departments in this institution */
Dpt_FreeListDepartments ();
@ -3536,7 +3536,7 @@ void Rec_ShowFormMyInsCtrDpt (void)
/* Start form to select department */
Act_FormGoToStart (ActChgMyDpt);
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:600px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"DptCod\" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">"
"<option value=\"-1\"",
Gbl.FormId);
@ -3569,13 +3569,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Office,
COL2_WIDTH); // Changed!
COL2_WIDTH);
Act_FormGoToStart (ActChgMyOff);
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Office\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:600px;\"" // Changed!
" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
Cns_MAX_LENGTH_STRING,
Gbl.Usrs.Me.UsrDat.Tch.Office,
@ -3589,13 +3589,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
"<td class=\"%s RIGHT_MIDDLE\">"
"%s:"
"</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
ClassForm,Txt_Phone,
COL2_WIDTH); // Changed!
COL2_WIDTH);
Act_FormGoToStart (ActChgMyOffPho);
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\""
" maxlength=\"%u\" value=\"%s\""
" style=\"width:600px;\"" // Changed!
" style=\"width:600px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
Usr_MAX_LENGTH_PHONE,
Gbl.Usrs.Me.UsrDat.Tch.OfficePhone,

View File

@ -35,17 +35,17 @@
/***************************** Public constants ******************************/
/*****************************************************************************/
#define Rec_RECORD_WIDTH_WIDE 840 // Changed!
#define Rec_C1_TOP_WIDE 78 // Changed!
#define Rec_C2_TOP_WIDE 531 // Changed!
#define Rec_C3_TOP_WIDE 231 // Changed!
#define Rec_C1_BOTTOM_WIDE (240-3) // Changed!
#define Rec_C2_BOTTOM_WIDE (600-3) // Changed!
#define Rec_RECORD_WIDTH_WIDE 840
#define Rec_C1_TOP_WIDE 78
#define Rec_C2_TOP_WIDE 531
#define Rec_C3_TOP_WIDE 231
#define Rec_C1_BOTTOM_WIDE (240-3)
#define Rec_C2_BOTTOM_WIDE (600-3)
#define Rec_RECORD_WIDTH_NARROW 690 // Changed!
#define Rec_C1_TOP_NARROW 78 // Changed!
#define Rec_C2_TOP_NARROW 381 // Changed!
#define Rec_C3_TOP_NARROW 231 // Changed!
#define Rec_RECORD_WIDTH_NARROW 690
#define Rec_C1_TOP_NARROW 78
#define Rec_C2_TOP_NARROW 381
#define Rec_C3_TOP_NARROW 231
#define Rec_MAX_LENGTH_NAME_FIELD 255
#define Rec_MIN_LINES_IN_EDITION_FIELD 1

View File

@ -288,16 +288,16 @@ void Rol_PutFormToChangeMyRole (bool FormInHead)
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
static const unsigned SelectorWidth[Lay_NUM_LAYOUTS] =
{
135, // Lay_LAYOUT_DESKTOP // Changed!
135, // Lay_LAYOUT_MOBILE // Changed!
135, // Lay_LAYOUT_DESKTOP
135, // Lay_LAYOUT_MOBILE
};
Rol_Role_t Role;
Act_FormStart (ActChgMyRol);
fprintf (Gbl.F.Out,"<select name=\"UsrTyp\"");
if (FormInHead)
fprintf (Gbl.F.Out," style=\"width:%upx;\"", // Changed!
SelectorWidth[Gbl.Prefs.Layout]); // Changed!
fprintf (Gbl.F.Out," style=\"width:%upx;\"",
SelectorWidth[Gbl.Prefs.Layout]);
fprintf (Gbl.F.Out," onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (Role = Rol__GUEST_;

View File

@ -250,7 +250,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
fprintf (Gbl.F.Out,"</div>");
/***** What to search? *****/
fprintf (Gbl.F.Out,"<select name=\"WhatToSearch\" style=\"width:225px;\">"); // Changed!
fprintf (Gbl.F.Out,"<select name=\"WhatToSearch\" style=\"width:225px;\">");
for (WhatToSearch = (Sch_WhatToSearch_t) 0;
WhatToSearch < Sch_NUM_WHAT_TO_SEARCH;
WhatToSearch++)

View File

@ -434,7 +434,7 @@ void Sta_AskSeeCrsAccesses (void)
/***** Draw two class photographs with the users: one for teachers of the course and another one for students *****/
/* Start the table */
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">" // Changed!
fprintf (Gbl.F.Out,"<table style=\"margin:0 auto; border-spacing:6px;\">"
"<tr>"
"<td colspan=\"2\" class=\"LEFT_MIDDLE\">");
Lay_StartRoundFrameTable (NULL,0,NULL);
@ -556,7 +556,7 @@ void Sta_AskSeeGblAccesses (void)
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM))
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"padding-bottom:15px;\">"); // Changed!
" style=\"padding-bottom:15px;\">");
Sta_PutFormToRequestAccessesCrs ();
fprintf (Gbl.F.Out,"</div>");
}
@ -696,7 +696,7 @@ static void Sta_WriteSelectorAction (void)
"%s:"
"</td>"
"<td class=\"LEFT_TOP\">"
"<select name=\"StatAct\" id=\"StatAct\" style=\"width:450px;\">", // Changed!
"<select name=\"StatAct\" id=\"StatAct\" style=\"width:450px;\">",
The_ClassForm[Gbl.Prefs.Theme],Txt_Action);
for (NumAction = (Act_Action_t) 0;
NumAction < Act_NUM_ACTIONS;
@ -1801,7 +1801,7 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
MaxPagesGenerated = NumPagesGenerated;
if (MaxPagesGenerated > 0.0)
{
BarWidth = (unsigned) (((NumPagesGenerated * 450.0) / MaxPagesGenerated) + 0.5); // Changed!
BarWidth = (unsigned) (((NumPagesGenerated * 450.0) / MaxPagesGenerated) + 0.5);
if (BarWidth == 0)
BarWidth = 1;
}
@ -1813,7 +1813,7 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
fprintf (Gbl.F.Out,"<img src=\"%s/%c1x14.gif\""
" alt=\"\" title=\"\""
" class=\"LEFT_TOP\""
" style=\"width:%upx; height:21px;\" />" // Changed!
" style=\"width:%upx; height:21px;\" />"
"&nbsp;",
Gbl.Prefs.IconsURL,
UsrDat.RoleInCurrentCrsDB == Rol_STUDENT ? 'c' :
@ -1923,7 +1923,7 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
'c',
D == NumDaysFromLastDateToCurrDate ? NumPagesGenerated :
0.0,
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrease day */
Dat_GetDateBefore (&Date,&Date);
@ -1960,7 +1960,7 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
/* Draw bar proportional to number of pages generated */
Sta_DrawBarNumClicks (NumDayWeek == 6 ? 'r' :
'c',
0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
0.0,MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrease day */
Dat_GetDateBefore (&Date,&Date);
@ -1971,8 +1971,8 @@ static void Sta_ShowNumAccessesPerDays (unsigned long NumRows,MYSQL_RES *mysql_r
/************ Show graphic of number of pages generated per hour *************/
/*****************************************************************************/
#define GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH 30 // Changed!
#define GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH (GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH*24) // Changed!
#define GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH 30
#define GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH (GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH*24)
static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES *mysql_res)
{
@ -2062,18 +2062,18 @@ static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES
"%s&nbsp;"
"</th>"
"<th colspan=\"24\" class=\"LEFT_TOP\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"%s"
"</th>"
"</tr>",
Txt_Date,
Txt_Day,
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH, // Changed!
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH,
Txt_STAT_TYPE_COUNT_CAPS[Gbl.Stat.CountType]);
fprintf (Gbl.F.Out,"<tr>"
"<td colspan=\"24\" class=\"LEFT_TOP\""
" style=\"width:%upx;\">", // Changed!
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH); // Changed!
" style=\"width:%upx;\">",
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH);
Sta_DrawBarColors (SelectedColorType,MaxPagesGenerated);
fprintf (Gbl.F.Out,"</td>"
"</tr>"
@ -2081,10 +2081,10 @@ static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES
for (Hour = 0;
Hour < 24;
Hour++)
fprintf (Gbl.F.Out,"<td class=\"LOG CENTER_TOP\" style=\"width:%upx;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LOG CENTER_TOP\" style=\"width:%upx;\">"
"%02uh"
"</td>",
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,Hour); // Changed!
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,Hour);
fprintf (Gbl.F.Out,"</tr>");
/***** Write rows beginning by the most recent day and ending by the oldest one *****/
@ -2273,7 +2273,7 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
fprintf (Gbl.F.Out,"<table style=\"width:100%%;\">"
"<tr>"
"<td colspan=\"%u\" class=\"LOG LEFT_BOTTOM\""
" style=\"width:%upx;\">" // Changed!
" style=\"width:%upx;\">"
"0"
"</td>",
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2,
@ -2283,14 +2283,14 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
Interval++)
{
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LOG CENTER_BOTTOM\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5,
GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5);
Str_WriteFloatNum ((float) Interval * MaxPagesGenerated / 5.0);
fprintf (Gbl.F.Out,"</td>");
}
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LOG RIGHT_BOTTOM\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2,
(GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH/5)/2);
Str_WriteFloatNum (MaxPagesGenerated);
@ -2304,7 +2304,7 @@ static void Sta_DrawBarColors (Sta_ColorType_t ColorType,float MaxPagesGenerated
NumColor++)
{
Sta_SetColor (ColorType,(float) NumColor,(float) GRAPH_DISTRIBUTION_PER_HOUR_TOTAL_WIDTH,&R,&G,&B);
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:1px;" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:1px;"
" background-color:#%02X%02X%02X;\">"
"<img src=\"%s/tr1x14.gif\""
" alt=\"\" title=\"\" />"
@ -2330,7 +2330,7 @@ static void Sta_DrawAccessesPerHourForADay (Sta_ColorType_t ColorType,float NumP
Sta_SetColor (ColorType,NumPagesGenerated[Hour],MaxPagesGenerated,&R,&G,&B);
fprintf (Gbl.F.Out,"<td class=\"LOG LEFT_MIDDLE\" title=\"");
Str_WriteFloatNum (NumPagesGenerated[Hour]);
fprintf (Gbl.F.Out,"\" style=\"width:%upx;" // Changed!
fprintf (Gbl.F.Out,"\" style=\"width:%upx;"
" background-color:#%02X%02X%02X;\">"
"</td>",
GRAPH_DISTRIBUTION_PER_HOUR_HOUR_WIDTH,R,G,B);
@ -2488,7 +2488,7 @@ static void Sta_ShowNumAccessesPerWeeks (unsigned long NumRows,MYSQL_RES *mysql_
Sta_DrawBarNumClicks ('c',
W == NumWeeksBetweenLastDateAndCurrentDate ? NumPagesGenerated :
0.0,
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrement week */
Dat_GetWeekBefore (&Date,&Date);
@ -2511,7 +2511,7 @@ static void Sta_ShowNumAccessesPerWeeks (unsigned long NumRows,MYSQL_RES *mysql_
Date.Week,Date.Year % 100);
/* Draw bar proportional to number of pages generated */
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrement week */
Dat_GetWeekBefore (&Date,&Date);
@ -2593,7 +2593,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
Sta_DrawBarNumClicks ('c',
M == NumMesesEntreLastDateYAct ? NumPagesGenerated :
0.0,
MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrease month */
Dat_GetMonthBefore (&Date,&Date);
@ -2615,7 +2615,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
Date.Month,Date.Year % 100);
/* Draw bar proportional to number of pages generated */
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
Sta_DrawBarNumClicks ('c',0.0,MaxPagesGenerated,TotalPagesGenerated,600);
/* Decrease month */
Dat_GetMonthBefore (&Date,&Date);
@ -2626,7 +2626,7 @@ static void Sta_ShowNumAccessesPerMonths (unsigned long NumRows,MYSQL_RES *mysql
/**************** Show graphic of number of pages generated per hour ***************/
/*****************************************************************************/
#define DIGIT_WIDTH 7 // Changed!
#define DIGIT_WIDTH 7
static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_res)
{
@ -2657,7 +2657,7 @@ static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_r
/* Maximum number of dígits. If less than 4, set it to 4 to ensure a minimum width */
NumDigits = (MaxPagesGenerated >= 1000) ? (unsigned) floor (log10 ((double) MaxPagesGenerated)) + 1 :
4;
ColumnWidth = NumDigits * DIGIT_WIDTH + 3; // Changed!
ColumnWidth = NumDigits * DIGIT_WIDTH + 3;
/***** Draw the graphic *****/
mysql_data_seek (mysql_res, 0);
@ -2675,15 +2675,15 @@ static void Sta_ShowNumAccessesPerHour (unsigned long NumRows,MYSQL_RES *mysql_r
for (H = Hour;
H < ReadHour;
H++, Hour++)
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
Sta_WriteAccessHour (ReadHour,NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
Sta_WriteAccessHour (ReadHour,NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
Hour++;
}
else
for (H = ReadHour + 1;
H < 24;
H++, Hour++)
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth); // Changed!
Sta_WriteAccessHour (H,0.0,MaxPagesGenerated,TotalPagesGenerated,ColumnWidth);
}
fprintf (Gbl.F.Out,"</tr>");
}
@ -2698,7 +2698,7 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max
unsigned BarHeight;
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL CENTER_BOTTOM\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
ColumnWidth);
/* Draw bar with a height porportional to the number of clicks */
@ -2709,12 +2709,12 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max
TotalPagesGenerated) + 0.5));
Str_WriteFloatNum (NumPagesGenerated);
fprintf (Gbl.F.Out,"<br />");
BarHeight = (unsigned) (((NumPagesGenerated * 600.0) / MaxPagesGenerated) + 0.5); // Changed!
BarHeight = (unsigned) (((NumPagesGenerated * 600.0) / MaxPagesGenerated) + 0.5);
if (BarHeight == 0)
BarHeight = 1;
fprintf (Gbl.F.Out,"<img src=\"%s/c8x1.gif\""
" alt=\"\" title=\"\""
" style=\"width:12px; height:%upx;\" />", // Changed!
" style=\"width:12px; height:%upx;\" />",
Gbl.Prefs.IconsURL,BarHeight);
}
else
@ -2729,7 +2729,7 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max
/*****************************************************************************/
#define NUM_MINUTES_PER_DAY (60*24) // 1440 minutes in a day
#define WIDTH_SEMIDIVISION_GRAPHIC 36 // Changed!
#define WIDTH_SEMIDIVISION_GRAPHIC 36
#define NUM_DIVISIONS_X 10
static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *mysql_res)
@ -2805,10 +2805,10 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
/***** X axis *****/
/* First division (left) */
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
"<img src=\"%s/ejexizq24x1.gif\""
" alt=\"\" title=\"\""
" style=\"display:block; width:%upx; height:1px;\" />" // Changed!
" style=\"display:block; width:%upx; height:1px;\" />"
"</td>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
WIDTH_SEMIDIVISION_GRAPHIC);
@ -2816,19 +2816,19 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
for (i = 0;
i < NUM_DIVISIONS_X*2;
i++)
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
"<img src=\"%s/ejex24x1.gif\""
" alt=\"\" title=\"\""
" style=\"display:block;"
" width:%upx; height:1px;\" />" // Changed!
" width:%upx; height:1px;\" />"
"</td>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
WIDTH_SEMIDIVISION_GRAPHIC);
/* Last division (right) */
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">"
"<img src=\"%s/tr24x1.gif\""
" alt=\"\" title=\"\""
" style=\"display:block; width:%upx; height:1px;\" />" // Changed!
" style=\"display:block; width:%upx; height:1px;\" />"
"</td>"
"</tr>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
@ -2843,7 +2843,7 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
/****** Write labels of the X axis in the graphic of clicks per minute *******/
/*****************************************************************************/
#define WIDTH_DIVISION_GRAPHIC (WIDTH_SEMIDIVISION_GRAPHIC*2) // 72 // Changed!
#define WIDTH_DIVISION_GRAPHIC (WIDTH_SEMIDIVISION_GRAPHIC*2) // 72
static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
{
@ -2856,7 +2856,7 @@ static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
i++, NumX += IncX)
{
fprintf (Gbl.F.Out,"<td colspan=\"2\" class=\"LOG CENTER_BOTTOM\""
" style=\"width:%upx;\">", // Changed!
" style=\"width:%upx;\">",
WIDTH_DIVISION_GRAPHIC);
fprintf (Gbl.F.Out,Format,NumX);
fprintf (Gbl.F.Out,"</td>");
@ -2868,7 +2868,7 @@ static void Sta_WriteLabelsXAxisAccMin (float IncX,const char *Format)
/***** Write a row of the graphic with number of clicks in every minute ******/
/*****************************************************************************/
#define WIDTH_GRAPHIC (WIDTH_DIVISION_GRAPHIC*NUM_DIVISIONS_X) // 72*10=720 // Changed!
#define WIDTH_GRAPHIC (WIDTH_DIVISION_GRAPHIC*NUM_DIVISIONS_X) // 72*10=720
static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float MaxX)
{
@ -2881,7 +2881,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
if (!Minute)
// If minute 0
fprintf (Gbl.F.Out,"<td rowspan=\"30\" class=\"LOG LEFT_TOP\""
" style=\"width:%upx;" // Changed!
" style=\"width:%upx;"
" background-image:url('%s/ejey24x30.gif');"
" background-size:36px 45px;"
" background-repeat:repeat;\">"
@ -2891,7 +2891,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
else if (Minute == (NUM_MINUTES_PER_DAY - 30))
// If 23:30
fprintf (Gbl.F.Out,"<td rowspan=\"30\" class=\"LOG LEFT_BOTTOM\""
" style=\"width:%upx;" // Changed!
" style=\"width:%upx;"
" background-image:url('%s/ejey24x30.gif');"
" background-size:36px 45px;"
" background-repeat:repeat;\">"
@ -2901,7 +2901,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
else if (!(Minute % 30) && (Minute % 60))
// If minute is multiple of 30 but not of 60 (i.e.: 30, 90, 150...)
fprintf (Gbl.F.Out,"<td rowspan=\"60\" class=\"LOG LEFT_MIDDLE\""
" style=\"width:%upx;" // Changed!
" style=\"width:%upx;"
" background-image:url('%s/ejey24x60.gif');"
" background-size:36px 90px;"
" background-repeat:repeat;\">"
@ -2911,7 +2911,7 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
/***** Start of cell for the graphic *****/
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"LEFT_BOTTOM\""
" style=\"width:%upx; height:1px;" // Changed!
" style=\"width:%upx; height:1px;"
" background-image:url('%s/malla%c48x1.gif');"
" background-size:72px 1px;"
" background-repeat:repeat;\">",
@ -2921,11 +2921,11 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
/***** Draw bar with anchura proporcional al number of clicks *****/
if (NumPagesGenerated != 0.0)
if ((BarWidth = (unsigned) (((NumPagesGenerated * (float) WIDTH_GRAPHIC / MaxX)) + 0.5)) != 0) // Changed!
if ((BarWidth = (unsigned) (((NumPagesGenerated * (float) WIDTH_GRAPHIC / MaxX)) + 0.5)) != 0)
fprintf (Gbl.F.Out,"<img src=\"%s/b%c1x1.gif\""
" alt=\"\" title=\"\""
" style=\"display:block;"
" width:%upx; height:1px;\" />", // Changed!
" width:%upx; height:1px;\" />",
Gbl.Prefs.IconsURL,
(Minute % 60) == 0 ? 'g' :
'b',
@ -3003,7 +3003,7 @@ static void Sta_ShowNumAccessesPerAction (unsigned long NumRows,MYSQL_RES *mysql
/* Draw bar proportional to number of pages generated */
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600);
}
}
@ -3069,7 +3069,7 @@ static void Sta_ShowNumAccessesPerPlugin (unsigned long NumRows,MYSQL_RES *mysql
/* Draw bar proportional to number of pages generated */
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600);
}
}
@ -3133,7 +3133,7 @@ static void Sta_ShowNumAccessesPerWSFunction (unsigned long NumRows,MYSQL_RES *m
/* Draw bar proportional to number of pages generated */
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600); // Changed!
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,600);
}
}
@ -3196,7 +3196,7 @@ static void Sta_ShowNumAccessesPerBanner (unsigned long NumRows,MYSQL_RES *mysql
"<img src=\"%s/%s/%s\""
" alt=\"%s\" title=\"%s\""
" class=\"BANNER_SMALL\""
" style=\"margin:0 12px 6px 0;\" />" // Changed!
" style=\"margin:0 12px 6px 0;\" />"
"</a>",
Ban.WWW,
Ban.FullName,
@ -3207,7 +3207,7 @@ static void Sta_ShowNumAccessesPerBanner (unsigned long NumRows,MYSQL_RES *mysql
/* Draw bar proportional to number of clicks */
NumClicks = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumClicks,MaxClicks,TotalClicks,600); // Changed!
Sta_DrawBarNumClicks ('c',NumClicks,MaxClicks,TotalClicks,600);
}
}
@ -3283,7 +3283,7 @@ static void Sta_ShowNumAccessesPerDegree (unsigned long NumRows,MYSQL_RES *mysql
/* Draw bar proportional to number of pages generated */
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450); // Changed!
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450);
}
}
@ -3399,7 +3399,7 @@ static void Sta_ShowNumAccessesPerCourse (unsigned long NumRows,MYSQL_RES *mysql
/* Draw bar proportional to number of pages generated */
NumPagesGenerated = Str_GetFloatNumFromStr (row[1]);
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450); // Changed!
Sta_DrawBarNumClicks ('c',NumPagesGenerated,MaxPagesGenerated,TotalPagesGenerated,450);
}
}
@ -3451,7 +3451,7 @@ static void Sta_DrawBarNumClicks (char Color,float NumPagesGenerated,float MaxPa
fprintf (Gbl.F.Out,"<img src=\"%s/%c1x14.gif\""
" alt=\"\" title=\"\""
" class=\"LEFT_TOP\""
" style=\"width:%upx; height:21px;\" />" // Changed!
" style=\"width:%upx; height:21px;\" />"
"&nbsp;",
Gbl.Prefs.IconsURL,Color,BarWidth);
@ -3528,7 +3528,7 @@ void Sta_ReqUseOfPlatform (void)
/***** Start form *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"padding-bottom:15px;\">"); // Changed!
" style=\"padding-bottom:15px;\">");
Act_FormStart (ActSeeUseGbl);
/***** Compute stats for anywhere, degree or course? *****/
@ -6717,7 +6717,7 @@ static void Sta_GetAndShowForumStats (void)
/***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_TOP\" style=\"width:24px;\">" // Changed!
"<th class=\"LEFT_TOP\" style=\"width:24px;\">"
"<img src=\"%s/forum16x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON16x16\" />"
@ -6943,7 +6943,7 @@ static void Sta_WriteForumTitleAndStats (For_ForumType_t ForumType,
/***** Write forum name and stats *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LEFT_TOP\" style=\"width:24px;\">" // Changed!
"<td class=\"LEFT_TOP\" style=\"width:24px;\">"
"<img src=\"%s/%s\""
" alt=\"%s%s\" title=\"%s%s\""
" class=\"ICON16x16\" />"
@ -7002,7 +7002,7 @@ static void Sta_WriteForumTotalStats (struct Sta_StatsForum *StatsForum)
/***** Write forum name and stats *****/
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"DAT_N_LINE_TOP\" style=\"width:24px;\">" // Changed!
"<td class=\"DAT_N_LINE_TOP\" style=\"width:24px;\">"
"</td>"
"<td class=\"DAT_N_LINE_TOP LEFT_MIDDLE\">"
"%s"
@ -7667,7 +7667,7 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
"<td class=\"CENTER_MIDDLE\">"
"<img src=\"%s/%s/%s/theme_32x20.gif\""
" alt=\"%s\" title=\"%s\""
" style=\"width:48px; height:30px;\" />" // Changed!
" style=\"width:48px; height:30px;\" />"
"</td>"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"
@ -8075,7 +8075,7 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
"<td class=\"CENTER_MIDDLE\">"
"<img src=\"%s/layout%u%u_32x20.gif\""
" alt=\"%s\" title=\"%s\""
" style=\"width:48px; height:30px;\" />" // Changed!
" style=\"width:48px; height:30px;\" />"
"</td>"
"<td class=\"DAT RIGHT_MIDDLE\">"
"%u"

View File

@ -3164,7 +3164,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
}
/* Write the number of option */
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:60px;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:60px;\">"
"%u)"
"</td>",
NumAns + 1);
@ -3194,7 +3194,7 @@ static void Svy_WriteAnswersOfAQst (struct Survey *Svy,struct SurveyQuestion *Sv
/***************** Draw a bar with the percentage of answers *****************/
/*****************************************************************************/
#define Svy_MAX_BAR_WIDTH 150 // Changed!
#define Svy_MAX_BAR_WIDTH 150
static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
{
@ -3212,7 +3212,7 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
Txt_of_PART_OF_A_TOTAL,MaxUsrs);
/***** Draw bar with a with proportional to the number of clicks *****/
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:%upx;\">", // Changed!
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_TOP\" style=\"width:%upx;\">",
Svy_MAX_BAR_WIDTH + 150);
if (NumUsrs && MaxUsrs)
BarWidth = (unsigned) ((((float) NumUsrs * (float) Svy_MAX_BAR_WIDTH) /
@ -3222,7 +3222,7 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs)
fprintf (Gbl.F.Out,"<img src=\"%s/c1x16.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"LEFT_TOP\""
" style=\"width:%upx; height:24px;\" />" // Changed!
" style=\"width:%upx; height:24px;\" />"
"&nbsp;",
Gbl.Prefs.IconsURL,
Gbl.Title,

View File

@ -55,7 +55,7 @@ extern struct Globals Gbl;
#define Syl_MAX_LENGTH_TEXT_ITEM 1024
#define Syl_MAX_BYTES_TEXT_ITEM (Syl_MAX_LENGTH_TEXT_ITEM*Str_MAX_CHARACTER)
#define Syl_WIDTH_NUM_SYLLABUS 24 // Changed!
#define Syl_WIDTH_NUM_SYLLABUS 24
static const char *StyleSyllabus[1+Syl_MAX_LEVELS_SYLLABUS] =
{
@ -136,7 +136,7 @@ void Syl_PutFormWhichSyllabus (void)
/***** Form to select which forums I want to see
(all my forums or only the forums of current institution/degree/course) *****/
Act_FormStart (ActSeeSyl);
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">" // Changed!
fprintf (Gbl.F.Out,"<div style=\"margin:15px 0;\">"
"<ul class=\"LIST_CENTER\">");
for (WhichSyllabus = (Syl_WhichSyllabus_t) 0;
@ -696,7 +696,7 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
/***** Code of the item *****/
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_TOP COLOR%u\""
" style=\"width:%dpx;\">", // Changed!
" style=\"width:%dpx;\">",
StyleSyllabus[Level],Gbl.RowEvenOdd,
Level * Syl_WIDTH_NUM_SYLLABUS);
if (Level == 1)
@ -840,7 +840,7 @@ static void Syl_WriteSyllabusIntoHTMLTmpFile (Inf_InfoType_t InfoType,FILE *File
LstItemsSyllabus.Lst[NumItem].Level - 1);
/***** Code of the item *****/
fprintf (FileHTMLTmp,"<td class=\"%s RIGHT_TOP\" style=\"width:%dpx;\">", // Changed!
fprintf (FileHTMLTmp,"<td class=\"%s RIGHT_TOP\" style=\"width:%dpx;\">",
StyleSyllabus[LstItemsSyllabus.Lst[NumItem].Level],
LstItemsSyllabus.Lst[NumItem].Level * Syl_WIDTH_NUM_SYLLABUS);
if (LstItemsSyllabus.Lst[NumItem].Level == 1)
@ -886,13 +886,13 @@ static void Syl_PutFormItemSyllabus (Inf_InfoType_t InfoType,bool NewItem,unsign
/***** Write the code of the item *****/
if (NewItem) // If the item is new (not stored in the file) ==> it has not a number
fprintf (Gbl.F.Out,"<td class=\"COLOR%u\" style=\"width:%dpx;\">" // Changed!
fprintf (Gbl.F.Out,"<td class=\"COLOR%u\" style=\"width:%dpx;\">"
"</td>",
Gbl.RowEvenOdd,Level * Syl_WIDTH_NUM_SYLLABUS);
else
{
fprintf (Gbl.F.Out,"<td class=\"%s LEFT_MIDDLE COLOR%u\""
" style=\"width:%dpx;\">", // Changed!
" style=\"width:%dpx;\">",
StyleSyllabus[Level],Gbl.RowEvenOdd,
Level * Syl_WIDTH_NUM_SYLLABUS);
if (Level == 1)

View File

@ -91,7 +91,7 @@ void Tab_DrawTabs (void)
ColspanCentralPart = 2;
}
fprintf (Gbl.F.Out,"<td colspan=\"%u\" class=\"CENTER_TOP\""
" style=\"height:84px;" // Changed!
" style=\"height:84px;"
" background-image:url('%s/head_base_background_1x56.gif');"
" background-size:1px 84px;"
" background-repeat:repeat-x;\">"
@ -165,7 +165,7 @@ static void Tab_DrawTabsDeskTop (void)
The_ClassTabOff[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" style=\"margin:6px;\" />" // Changed!
" class=\"ICON32x32\" style=\"margin:6px;\" />"
"<div>%s</div>"
"</a>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
@ -179,7 +179,7 @@ static void Tab_DrawTabsDeskTop (void)
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON32x32\" style=\"margin:6px;\" />" // Changed!
" class=\"ICON32x32\" style=\"margin:6px;\" />"
"<div class=\"%s\">%s</div>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Tab_TabIcons[NumTab],
@ -234,7 +234,7 @@ void Tab_DrawTabsMobile (void)
Act_LinkFormSubmit (Txt_TABS_FULL_TXT[NumTab],The_ClassMenuOff[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON64x64\""
" style=\"margin:6px;\" />" // Changed!
" style=\"margin:6px;\" />"
"<div>%s</div>"
"</a>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
@ -249,7 +249,7 @@ void Tab_DrawTabsMobile (void)
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
"<img src=\"%s/%s/%s64x64.gif\""
" alt=\"%s\" title=\"%s\""
" class=\"ICON64x64\" style=\"margin:6px;\" />" // Changed!
" class=\"ICON64x64\" style=\"margin:6px;\" />"
"<div class=\"%s\">%s</div>"
"</div>",
Gbl.Prefs.PathIconSet,

View File

@ -1614,7 +1614,7 @@ static void Tst_ShowFormConfigTst (void)
"%s:"
"</td>"
"<td class=\"LEFT_TOP\">"
"<table style=\"border-spacing:3px;\">", // Changed!
"<table style=\"border-spacing:3px;\">",
The_ClassForm[Gbl.Prefs.Theme],
Txt_No_of_questions);
@ -4204,7 +4204,7 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
/***** Write the tags already existing in a selector *****/
fprintf (Gbl.F.Out,"<td class=\"LEFT_MIDDLE\">"
"<select id=\"SelDesc%u\" name=\"SelDesc%u\""
" style=\"width:345px;\" onchange=\"changeTxtTag('%u')\">", // Changed!
" style=\"width:345px;\" onchange=\"changeTxtTag('%u')\">",
NumTag,NumTag,NumTag);
fprintf (Gbl.F.Out,"<option value=\"\">&nbsp;</option>");
mysql_data_seek (mysql_res, 0);
@ -5914,7 +5914,7 @@ void Tst_SelUsrsToSeeUsrsTstExams (void)
Act_FormStart (ActSeeUsrTstExa);
Grp_PutParamsCodGrps ();
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"
"<table style=\"margin:0 auto; border-spacing:6px;\">" // Changed!
"<table style=\"margin:0 auto; border-spacing:6px;\">"
"<tr>"
"<td colspan=\"2\" class=\"LEFT_MIDDLE\">");

View File

@ -247,7 +247,7 @@ void The_PutIconsToSelectTheme (void)
fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/%s/%s/theme_32x20.gif\" alt=\"%s\""
" title=\"%s\" style=\"display:block;"
" width:48px; height:30px; margin:0 auto;\" />", // Changed!
" width:48px; height:30px; margin:0 auto;\" />",
Gbl.Prefs.IconsURL,
Cfg_ICON_FOLDER_THEMES,
The_ThemeId[Theme],

View File

@ -749,7 +749,7 @@ static void TT_DrawTimeTable (void)
}
/***** Table start *****/
fprintf (Gbl.F.Out,"<table style=\"min-width:840px; margin:0 auto;\">"); // Changed!
fprintf (Gbl.F.Out,"<table style=\"min-width:840px; margin:0 auto;\">");
/***** Top row used for column adjustement *****/
TT_TimeTableDrawAdjustRow ();
@ -1096,7 +1096,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
if (HourType == TT_FREE_HOUR) // If cell is empty...
fprintf (Gbl.F.Out,"<img src=\"%s/tr1x16.gif\""
" alt=\"\" title=\"\""
" style=\"width:1px; height:24px;\" />", // Changed!
" style=\"width:1px; height:24px;\" />",
Gbl.Prefs.IconsURL);
else
{
@ -1149,7 +1149,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
fprintf (Gbl.F.Out,"<span class=\"DAT_SMALL\">");
/***** Class type *****/
fprintf (Gbl.F.Out,"<select name=\"ModTTCellType\" style=\"width:81px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"ModTTCellType\" style=\"width:81px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (CT = (TT_ClassType_t) 0;
@ -1187,7 +1187,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
else
{
/***** Class duration *****/
fprintf (Gbl.F.Out,"<select name=\"ModTTDur\" style=\"width:69px;\"" // Changed!
fprintf (Gbl.F.Out,"<select name=\"ModTTDur\" style=\"width:69px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Gbl.FormId);
for (H = Hour + TimeTable[Day][Hour].Columns[Column].Duration;
@ -1217,7 +1217,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
/***** Group *****/
fprintf (Gbl.F.Out,"<br />%s"
"<select name=\"ModTTGrpCod\""
" style=\"width:132px;\"" // Changed!
" style=\"width:132px;\""
" onchange=\"javascript:document.getElementById('%s').submit();\">",
Txt_Group,Gbl.FormId);
fprintf (Gbl.F.Out,"<option value=\"-1\"");

View File

@ -1512,7 +1512,7 @@ void Usr_WelcomeUsr (void)
if (Gbl.Usrs.Me.UsrDat.Prefs.Language == Txt_Current_CGI_SWAD_Language)
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\""
" style=\"margin:15px;\">"); // Changed!
" style=\"margin:15px;\">");
/***** User's first name *****/
if (Gbl.Usrs.Me.UsrDat.FirstName[0])