Version 16.59

This commit is contained in:
Antonio Cañas Vargas 2016-11-14 10:05:41 +01:00
parent 908281bfad
commit 0e6ee3ee73
50 changed files with 499 additions and 549 deletions

View File

@ -710,7 +710,7 @@ a:hover /* Default ==> underlined */
opacity:1; opacity:1;
transform:scale(1.25,1.25); transform:scale(1.25,1.25);
} }
#main_horizontal .MENU_ICON #main_horizontal .MENU_ICO
{ {
box-sizing:border-box; box-sizing:border-box;
padding:32px 0 0 0; padding:32px 0 0 0;
@ -769,7 +769,7 @@ a:hover /* Default ==> underlined */
opacity:1; opacity:1;
transform:scale(1.2,1.2); transform:scale(1.2,1.2);
} }
#main_vertical .MENU_ICON #main_vertical .MENU_ICO
{ {
box-sizing:border-box; box-sizing:border-box;
padding:32px 0 0 0; padding:32px 0 0 0;
@ -825,7 +825,7 @@ a:hover /* Default ==> underlined */
{ {
opacity:1; opacity:1;
} }
#main_vertical .MENU_ICON #main_vertical .MENU_ICO
{ {
display:table-cell; display:table-cell;
height:42px; height:42px;
@ -1269,7 +1269,7 @@ a:hover /* Default ==> underlined */
box-sizing:border-box; box-sizing:border-box;
max-width:90%; max-width:90%;
margin:8px auto 0 auto; margin:8px auto 0 auto;
background-color:#FFF9E0; background-color:#FFF9EA;
background-position:12px 12px; background-position:12px 12px;
background-size:20px 20px; background-size:20px 20px;
background-repeat:no-repeat; background-repeat:no-repeat;
@ -1284,14 +1284,14 @@ a:hover /* Default ==> underlined */
} }
/*********************************** Icons ***********************************/ /*********************************** Icons ***********************************/
.ICON20x15B {width:20px; height:15px; vertical-align:middle; display:block;} .ICO20x15B {width:20px; height:15px; vertical-align:middle; display:block;}
.ICON20x20 {width:20px; height:20px; vertical-align:middle;} .ICO20x20 {width:20px; height:20px; vertical-align:middle;}
.ICON20x20B {width:20px; height:20px; vertical-align:middle; display:block;} .ICO20x20B {width:20px; height:20px; vertical-align:middle; display:block;}
.ICON25x25 {width:25px; height:25px; vertical-align:middle;} .ICO25x25 {width:25px; height:25px; vertical-align:middle;}
.ICON40x40 {width:40px; height:40px; vertical-align:middle;} .ICO40x40 {width:40px; height:40px; vertical-align:middle;}
.ICON40x40B {width:40px; height:40px; vertical-align:middle; display:block;} .ICO40x40B {width:40px; height:40px; vertical-align:middle; display:block;}
.ICON64x64 {width:64px; height:64px; vertical-align:middle;} .ICO64x64 {width:64px; height:64px; vertical-align:middle;}
.ICON160x160 {width:160px; height:160px; vertical-align:middle;} .ICO160x160 {width:160px; height:160px; vertical-align:middle;}
.BANNER {width:150px; height:50px;} .BANNER {width:150px; height:50px;}
.BANNER_SMALL {width:75px; height:25px;} .BANNER_SMALL {width:75px; height:25px;}
@ -1337,33 +1337,33 @@ a:hover /* Default ==> underlined */
text-align:center; text-align:center;
overflow:hidden; overflow:hidden;
} }
.FRAME_ICONS .FRAME_ICO
{ {
box-sizing:border-box; box-sizing:border-box;
height:20px; height:20px;
text-align:left; text-align:left;
} }
.FRAME_ICONS_LEFT .FRAME_ICO_LEFT
{ {
display:inline-block; display:inline-block;
} }
.FRAME_ICONS_RIGHT .FRAME_ICO_RIGHT
{ {
display:inline-block; display:inline-block;
float:right; float:right;
} }
.FRAME_TABLE .FRAME_TBL
{ {
box-sizing:border-box; box-sizing:border-box;
width:100%; width:100%;
} }
.FRAME_TABLE_MARGIN .FRAME_TBL_MARGIN
{ {
box-sizing:border-box; box-sizing:border-box;
width:100%; width:100%;
margin-bottom:20px; margin-bottom:20px;
} }
.FRAME_TABLE_TITLE .FRAME_TBL_TITLE
{ {
display:table; display:table;
box-sizing:border-box; box-sizing:border-box;
@ -1561,15 +1561,24 @@ a:hover img.CENTRE_PHOTO_SHOW
.YELLOW_TITLE {color:#BD4815; font-size:18pt;} .YELLOW_TITLE {color:#BD4815; font-size:18pt;}
/**************************** Icon highlighting ******************************/ /**************************** Icon highlighting ******************************/
.ICON_HIDDEN .ICO_HIDDEN
{ {
opacity:0.2; opacity:0.2;
} }
.ICON_HIGHLIGHT .ICO_HIGHLIGHT
{ {
opacity:0.67; opacity:0.67;
} }
.ICON_HIGHLIGHT:hover .ICO_HIGHLIGHT:hover
{
opacity:1;
}
.HLP_HIGHLIGHT
{
opacity:0.33;
}
.HLP_HIGHLIGHT:hover
{ {
opacity:1; opacity:1;
} }
@ -2005,7 +2014,7 @@ a:hover img.CENTRE_PHOTO_SHOW
{ {
cursor:pointer; cursor:pointer;
} }
.IMG_UPLOAD_ICON .IMG_UPLOAD_ICO
{ {
width:20px; width:20px;
height:20px; height:20px;
@ -2123,7 +2132,7 @@ a:hover img.CENTRE_PHOTO_SHOW
width:480px; width:480px;
vertical-align:top; vertical-align:top;
} }
.SOCIAL_ICONS_FAV_SHA_REM /* Container for fav, share and remove */ .SOCIAL_ICOS_FAV_SHA_REM /* Container for fav, share and remove */
{ {
padding-bottom:10px; padding-bottom:10px;
} }
@ -2157,42 +2166,42 @@ a:hover img.CENTRE_PHOTO_SHOW
box-sizing:border-box; box-sizing:border-box;
width:440px; width:440px;
} }
.SOCIAL_ICON_COMMENT .SOCIAL_ICO_COMMENT
{ {
display:inline-block; display:inline-block;
padding-bottom:10px; padding-bottom:10px;
} }
.SOCIAL_ICON_COMMENT_DISABLED .SOCIAL_ICO_COMMENT_DISABLED
{ {
display:inline-block; display:inline-block;
padding-bottom:10px; padding-bottom:10px;
opacity:0.1; opacity:0.1;
} }
.SOCIAL_ICON_FAV .SOCIAL_ICO_FAV
{ {
display:inline-block; display:inline-block;
vertical-align:bottom; vertical-align:bottom;
} }
.SOCIAL_ICON_SHARE .SOCIAL_ICO_SHARE
{ {
display:inline-block; display:inline-block;
padding-left:20px; padding-left:20px;
vertical-align:bottom; vertical-align:bottom;
} }
.SOCIAL_ICON_FAV_DISABLED .SOCIAL_ICO_FAV_DISABLED
{ {
display:inline-block; display:inline-block;
vertical-align:bottom; vertical-align:bottom;
opacity:0.1; opacity:0.1;
} }
.SOCIAL_ICON_SHARE_DISABLED .SOCIAL_ICO_SHARE_DISABLED
{ {
display:inline-block; display:inline-block;
padding-left:20px; padding-left:20px;
vertical-align:bottom; vertical-align:bottom;
opacity:0.1; opacity:0.1;
} }
.SOCIAL_ICON_REMOVE .SOCIAL_ICO_REMOVE
{ {
display:inline-block; display:inline-block;
vertical-align:bottom; vertical-align:bottom;
@ -2534,7 +2543,7 @@ a:hover img.CENTRE_PHOTO_SHOW
text-align:left; text-align:left;
vertical-align:bottom; vertical-align:bottom;
} }
.FOLLOW_USR_ICON .FOLLOW_USR_ICO
{ {
padding:4px; padding:4px;
} }

View File

@ -515,7 +515,7 @@ void ID_ShowFormOthIDs (void)
Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat); Rec_ShowSharedUsrRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
/***** Form with the user's ID *****/ /***** Form with the user's ID *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
ID_ShowFormChangeUsrID (&Gbl.Usrs.Other.UsrDat, ID_ShowFormChangeUsrID (&Gbl.Usrs.Other.UsrDat,
(Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod)); // It's me? (Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod)); // It's me?
fprintf (Gbl.F.Out,"</table>"); fprintf (Gbl.F.Out,"</table>");
@ -602,7 +602,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
sprintf (Gbl.Title,Txt_ID_X_confirmed,UsrDat->IDs.List[NumID].ID); sprintf (Gbl.Title,Txt_ID_X_confirmed,UsrDat->IDs.List[NumID].ID);
fprintf (Gbl.F.Out,"<img src=\"%s/ok_green16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ok_green16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
} }

View File

@ -336,15 +336,15 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
/***** Form to enter some data of the new user *****/ /***** Form to enter some data of the new user *****/
Act_FormStart (ActCreUsrAcc); Act_FormStart (ActCreUsrAcc);
Lay_StartRoundFrame (NULL,Txt_Create_a_new_account,NULL,Hlp_PROFILE_Sign_up); Lay_StartRoundFrameTable (NULL,Txt_Create_a_new_account,
NULL,Hlp_PROFILE_Sign_up,2);
/***** Nickname *****/ /***** Nickname *****/
if (NewNicknameWithoutArroba[0]) if (NewNicknameWithoutArroba[0])
sprintf (NewNicknameWithArroba,"@%s",NewNicknameWithoutArroba); sprintf (NewNicknameWithArroba,"@%s",NewNicknameWithoutArroba);
else else
NewNicknameWithArroba[0] = '\0'; NewNicknameWithArroba[0] = '\0';
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<td class=\"%s RIGHT_MIDDLE\">" "<td class=\"%s RIGHT_MIDDLE\">"
"%s:" "%s:"
"</td>" "</td>"
@ -456,8 +456,7 @@ void Acc_ShowFormChangeMyAccount (void)
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
/***** Start table *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_User_account,NULL,Hlp_PROFILE_Account); Lay_StartRoundFrameTable (NULL,Txt_User_account,NULL,Hlp_PROFILE_Account,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Nickname *****/ /***** Nickname *****/
if (IMustFillNickname) if (IMustFillNickname)

View File

@ -304,11 +304,11 @@ static void Ann_DrawAnAnnouncement (long AnnCod,Ann_Status_t Status,
/* Form to remove announcement */ /* Form to remove announcement */
Act_FormStart (ActRemAnn); Act_FormStart (ActRemAnn);
Ann_PutHiddenParamAnnCod (AnnCod); Ann_PutHiddenParamAnnCod (AnnCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/remove-on64x64.png\"" " src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
@ -321,11 +321,11 @@ static void Ann_DrawAnAnnouncement (long AnnCod,Ann_Status_t Status,
case Ann_ACTIVE_ANNOUNCEMENT: case Ann_ACTIVE_ANNOUNCEMENT:
Act_FormStart (ActHidAnn); Act_FormStart (ActHidAnn);
Ann_PutHiddenParamAnnCod (AnnCod); Ann_PutHiddenParamAnnCod (AnnCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/eye-on64x64.png\"" " src=\"%s/eye-on64x64.png\""
" alt=%s\" title=\"%s\"" " alt=%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_NOTICE_Active_Mark_as_obsolete, Txt_NOTICE_Active_Mark_as_obsolete,
@ -334,11 +334,11 @@ static void Ann_DrawAnAnnouncement (long AnnCod,Ann_Status_t Status,
case Ann_OBSOLETE_ANNOUNCEMENT: case Ann_OBSOLETE_ANNOUNCEMENT:
Act_FormStart (ActRevAnn); Act_FormStart (ActRevAnn);
Ann_PutHiddenParamAnnCod (AnnCod); Ann_PutHiddenParamAnnCod (AnnCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/eye-slash-on64x64.png\"" " src=\"%s/eye-slash-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_NOTICE_Obsolete_Mark_as_active, Txt_NOTICE_Obsolete_Mark_as_active,
@ -384,7 +384,7 @@ static void Ann_DrawAnAnnouncement (long AnnCod,Ann_Status_t Status,
Act_LinkFormSubmit (Txt_Do_not_show_again,The_ClassForm[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_Do_not_show_again,The_ClassForm[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/remove-on64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
" %s</a>", " %s</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Do_not_show_again, Txt_Do_not_show_again,

View File

@ -146,7 +146,7 @@ static void Asg_ShowAllAssignments (void)
if (Gbl.Asgs.Num) if (Gbl.Asgs.Num)
{ {
/***** Table head *****/ /***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
"<tr>"); "<tr>");
for (Order = Asg_ORDER_BY_START_DATE; for (Order = Asg_ORDER_BY_START_DATE;
Order <= Asg_ORDER_BY_END_DATE; Order <= Asg_ORDER_BY_END_DATE;
@ -348,7 +348,7 @@ static void Asg_ShowOneAssignment (long AsgCod)
/* Send work? */ /* Send work? */
fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"%s CENTER_TOP COLOR%u\">" fprintf (Gbl.F.Out,"<td rowspan=\"2\" class=\"%s CENTER_TOP COLOR%u\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"<br />%s" "<br />%s"
"</td>", "</td>",
(Asg.SendWork == Asg_SEND_WORK) ? "DAT_N" : (Asg.SendWork == Asg_SEND_WORK) ? "DAT_N" :
@ -484,7 +484,7 @@ static void Asg_WriteAssignmentFolder (struct Assignment *Asg)
Asg->Folder); Asg->Folder);
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/folder-open-plus16x16.gif\"" " src=\"%s/folder-open-plus16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />", " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -492,7 +492,7 @@ static void Asg_WriteAssignmentFolder (struct Assignment *Asg)
} }
else // I can't send files to this assignment folder else // I can't send files to this assignment folder
fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />", " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Folder,Txt_Folder); Txt_Folder,Txt_Folder);

View File

@ -219,7 +219,7 @@ static void Att_ShowAllAttEvents (void)
if (Gbl.AttEvents.Num) if (Gbl.AttEvents.Num)
{ {
/***** Table head *****/ /***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
"<tr>"); "<tr>");
for (Order = Att_ORDER_BY_START_DATE; for (Order = Att_ORDER_BY_START_DATE;
Order <= Att_ORDER_BY_END_DATE; Order <= Att_ORDER_BY_END_DATE;
@ -1113,10 +1113,9 @@ void Att_RequestCreatOrEditAttEvent (void)
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage); Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
/***** Table start *****/ /***** Table start *****/
Lay_StartRoundFrame (NULL,ItsANewAttEvent ? Txt_New_event : Lay_StartRoundFrameTable (NULL,ItsANewAttEvent ? Txt_New_event :
Txt_Edit_event, Txt_Edit_event,
NULL,Hlp_USERS_Attendance); NULL,Hlp_USERS_Attendance,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Attendance event title *****/ /***** Attendance event title *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1829,8 +1828,7 @@ void Att_SeeOneAttEvent (void)
Pag_GetParamPagNum (Pag_ATT_EVENTS); Pag_GetParamPagNum (Pag_ATT_EVENTS);
/***** Show attendance *****/ /***** Show attendance *****/
Lay_StartRoundFrame (NULL,Txt_Event,NULL,Hlp_USERS_Attendance); Lay_StartRoundFrameTable (NULL,Txt_Event,NULL,Hlp_USERS_Attendance,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Att.AttCod = Gbl.AttEvents.AttCod; Att.AttCod = Gbl.AttEvents.AttCod;
Att_ShowOneAttEvent (&Att,true); Att_ShowOneAttEvent (&Att,true);
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
@ -1875,9 +1873,8 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
/***** List students' data *****/ /***** List students' data *****/
/* Header */ /* Header */
Lay_StartRoundFrame (NULL,NULL,NULL,Hlp_USERS_Attendance); Lay_StartRoundFrameTable (NULL,NULL,NULL,Hlp_USERS_Attendance,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th></th>" "<th></th>"
"<th></th>" "<th></th>"
"<th></th>"); "<th></th>");
@ -1948,9 +1945,9 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
/***** List students' data *****/ /***** List students' data *****/
/* Header */ /* Header */
Lay_StartRoundFrame (NULL,Txt_Attendance,NULL,Hlp_USERS_Attendance); Lay_StartRoundFrameTable (NULL,Txt_Attendance,
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" NULL,Hlp_USERS_Attendance,2);
"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th></th>" "<th></th>"
"<th></th>" "<th></th>"
"<th></th>"); "<th></th>");
@ -2024,7 +2021,7 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<td class=\"BT%u\">" "<td class=\"BT%u\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.RowEvenOdd, Gbl.RowEvenOdd,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -3036,8 +3033,7 @@ static void Att_ListEventsToSelect (Att_TypeOfView_t TypeOfView)
} }
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Events,NULL,Hlp_USERS_Attendance); Lay_StartRoundFrameTable (NULL,Txt_Events,NULL,Hlp_USERS_Attendance,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3147,8 +3143,8 @@ static void Att_ListStdsAttendanceTable (Att_TypeOfView_t TypeOfView,
NULL), NULL),
Hlp_USERS_Attendance); Hlp_USERS_Attendance);
fprintf (Gbl.F.Out,"<table class=\"%s CELLS_PAD_2\">", fprintf (Gbl.F.Out,"<table class=\"%s CELLS_PAD_2\">",
PutButtonShowDetails ? "FRAME_TABLE_MARGIN" : PutButtonShowDetails ? "FRAME_TBL_MARGIN" :
"FRAME_TABLE"); "FRAME_TBL");
/***** Heading row *****/ /***** Heading row *****/
Att_WriteTableHeadSeveralAttEvents (); Att_WriteTableHeadSeveralAttEvents ();
@ -3319,7 +3315,7 @@ static void Att_WriteRowStdSeveralAttEvents (unsigned NumStd,struct UsrData *Usr
fprintf (Gbl.F.Out,"<td class=\"BM%u\">" fprintf (Gbl.F.Out,"<td class=\"BM%u\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.RowEvenOdd, Gbl.RowEvenOdd,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -3360,8 +3356,7 @@ static void Att_ListStdsWithAttEventsDetails (unsigned NumStdsInList,long *LstSe
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Details,NULL,Hlp_USERS_Attendance); Lay_StartRoundFrameTable (NULL,Txt_Details,NULL,Hlp_USERS_Attendance,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** List students with attendance details *****/ /***** List students with attendance details *****/
for (NumStd = 0, Gbl.RowEvenOdd = 0; for (NumStd = 0, Gbl.RowEvenOdd = 0;
@ -3476,7 +3471,7 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
"</td>" "</td>"
"<td class=\"DAT LEFT_MIDDLE COLOR%u\">" "<td class=\"DAT LEFT_MIDDLE COLOR%u\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"<span id=\"att_date_start_%u\"></span> %s" "<span id=\"att_date_start_%u\"></span> %s"
"<script type=\"text/javascript\">" "<script type=\"text/javascript\">"
"writeLocalDateHMSFromUTC('att_date_start_%u',%ld,'&nbsp;','%s');" "writeLocalDateHMSFromUTC('att_date_start_%u',%ld,'&nbsp;','%s');"

View File

@ -86,10 +86,9 @@ void Ban_SeeBanners (void)
" ORDER BY ShortName"); " ORDER BY ShortName");
/***** Frame head *****/ /***** Frame head *****/
Lay_StartRoundFrame (NULL,Txt_Banners,Ban_PutFormToEditBanners,NULL); Lay_StartRoundFrameTable (NULL,Txt_Banners,Ban_PutFormToEditBanners,NULL,2);
/***** Write all the banners *****/ /***** Write all the banners *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
for (NumBan = 0; for (NumBan = 0;
NumBan < Gbl.Banners.Num; NumBan < Gbl.Banners.Num;
NumBan++) NumBan++)
@ -109,10 +108,9 @@ void Ban_SeeBanners (void)
Gbl.Banners.Lst[NumBan].Img, Gbl.Banners.Lst[NumBan].Img,
Gbl.Banners.Lst[NumBan].ShrtName, Gbl.Banners.Lst[NumBan].ShrtName,
Gbl.Banners.Lst[NumBan].FullName); Gbl.Banners.Lst[NumBan].FullName);
fprintf (Gbl.F.Out,"</table>");
/***** Frame end *****/ /***** Frame end *****/
Lay_EndRoundFrame (); Lay_EndRoundFrameTable ();
/***** Free list of banners *****/ /***** Free list of banners *****/
Ban_FreeListBanners (); Ban_FreeListBanners ();
@ -328,7 +326,7 @@ static void Ban_ListBannersForEdition (void)
ActHidBan); ActHidBan);
Ban_PutParamBanCod (Ban->BanCod); Ban_PutParamBanCod (Ban->BanCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />", " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Ban->Hidden ? "eye-slash-on64x64.png" : Ban->Hidden ? "eye-slash-on64x64.png" :
"eye-on64x64.png", "eye-on64x64.png",

View File

@ -77,7 +77,7 @@ void Cal_PutIconsToSelectFirstDayOfWeek (void)
Lay_StartRoundFrame (NULL,Txt_Calendar, Lay_StartRoundFrame (NULL,Txt_Calendar,
Cal_PutIconsFirstDayOfWeek, Cal_PutIconsFirstDayOfWeek,
Hlp_PROFILE_Preferences_calendar); Hlp_PROFILE_Preferences_calendar);
Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,"ICON40x40B"); Cal_ShowFormToSelFirstDayOfWeek (ActChg1stDay,"ICO40x40B");
Lay_EndRoundFrame (); Lay_EndRoundFrame ();
} }
@ -255,7 +255,7 @@ void Cal_DrawCalendar (void)
/***** Draw several months *****/ /***** Draw several months *****/
/* Show form to change first day of week */ /* Show form to change first day of week */
if (!PrintView) if (!PrintView)
Cal_ShowFormToSelFirstDayOfWeek (ActChgCal1stDay,"ICON25x25"); Cal_ShowFormToSelFirstDayOfWeek (ActChgCal1stDay,"ICO25x25");
/* JavaScript will write HTML here */ /* JavaScript will write HTML here */
fprintf (Gbl.F.Out,"<div id=\"calendar\">" fprintf (Gbl.F.Out,"<div id=\"calendar\">"

View File

@ -154,10 +154,9 @@ void Ctr_SeeCtrWithPendingDegs (void)
if ((NumCtrs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get centres with pending degrees"))) if ((NumCtrs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get centres with pending degrees")))
{ {
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Centres_with_pending_degrees, Lay_StartRoundFrameTable (NULL,Txt_Centres_with_pending_degrees,
NULL,Hlp_SYSTEM_Pending); NULL,Hlp_SYSTEM_Pending,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
"</th>" "</th>"
@ -305,7 +304,7 @@ static void Ctr_Configuration (bool PrintView)
Hlp_CENTRE_Information); Hlp_CENTRE_Information);
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">");
if (PutLink) if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\"" fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
" class=\"TITLE_LOCATION\" title=\"%s\">", " class=\"TITLE_LOCATION\" title=\"%s\">",
@ -373,7 +372,7 @@ static void Ctr_Configuration (bool PrintView)
} }
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Institution *****/ /***** Institution *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -753,7 +752,7 @@ static void Ctr_ListCentres (void)
if (Gbl.Ctrs.Num) // There are centres in the current institution if (Gbl.Ctrs.Num) // There are centres in the current institution
{ {
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
Ctr_PutHeadCentresForSeeing (true); // Order selectable Ctr_PutHeadCentresForSeeing (true); // Order selectable
/***** Write all the centres and their nuber of teachers *****/ /***** Write all the centres and their nuber of teachers *****/

View File

@ -156,13 +156,16 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.57.3 (2016-11-13)" #define Log_PLATFORM_VERSION "SWAD 16.59 (2016-11-14)"
#define CSS_FILE "swad16.51.css" #define CSS_FILE "swad16.59.css"
#define JS_FILE "swad16.46.1.js" #define JS_FILE "swad16.46.1.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/* /*
Version 16.59: Nov 14, 2016 Changes in layout of contextual help icon.
Changes in CSS. (207075 lines)
Version 16.58: Nov 14, 2016 Code refactoring related to layout of frames and tables. (207062 lines)
Version 16.57.3: Nov 13, 2016 Code refactoring related to layout of frames and tables. (207119 lines) Version 16.57.3: Nov 13, 2016 Code refactoring related to layout of frames and tables. (207119 lines)
Version 16.57.2: Nov 13, 2016 Contextual help on usage report. (207102 lines) Version 16.57.2: Nov 13, 2016 Contextual help on usage report. (207102 lines)
Version 16.57.1: Nov 13, 2016 Contextual help on frequent actions. (207099 lines) Version 16.57.1: Nov 13, 2016 Contextual help on frequent actions. (207099 lines)

View File

@ -124,7 +124,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:25px;\">" fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:25px;\">"
"<img src=\"%s/chat64x64.gif\"" "<img src=\"%s/chat64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
" %s" " %s"
"</li>", "</li>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -140,7 +140,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
Cht_WriteLinkToChat1 ("GBL_USR",Txt_SEX_PLURAL_Abc[Usr_SEX_ALL],ThisRoomFullName,1,IsLastItemInLevel); Cht_WriteLinkToChat1 ("GBL_USR",Txt_SEX_PLURAL_Abc[Usr_SEX_ALL],ThisRoomFullName,1,IsLastItemInLevel);
fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ThisRoomFullName, ThisRoomFullName,
ThisRoomFullName); ThisRoomFullName);
@ -154,7 +154,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
Cht_WriteLinkToChat1 ("GBL_STD",Txt_Students_ABBREVIATION,ThisRoomFullName,1,IsLastItemInLevel); Cht_WriteLinkToChat1 ("GBL_STD",Txt_Students_ABBREVIATION,ThisRoomFullName,1,IsLastItemInLevel);
fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ThisRoomFullName,ThisRoomFullName); ThisRoomFullName,ThisRoomFullName);
Cht_WriteLinkToChat2 ("GBL_STD",ThisRoomFullName); Cht_WriteLinkToChat2 ("GBL_STD",ThisRoomFullName);
@ -164,7 +164,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
Cht_WriteLinkToChat1 ("GBL_TCH",Txt_Teachers_ABBREVIATION,ThisRoomFullName,1,IsLastItemInLevel); Cht_WriteLinkToChat1 ("GBL_TCH",Txt_Teachers_ABBREVIATION,ThisRoomFullName,1,IsLastItemInLevel);
fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/chat64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ThisRoomFullName,ThisRoomFullName); ThisRoomFullName,ThisRoomFullName);
Cht_WriteLinkToChat2 ("GBL_TCH",ThisRoomFullName); Cht_WriteLinkToChat2 ("GBL_TCH",ThisRoomFullName);
@ -215,7 +215,7 @@ void Cht_ShowListOfAvailableChatRooms (void)
Cht_WriteLinkToChat1 (ThisRoomCode,ThisRoomShrtName,ThisRoomFullName,2,IsLastItemInLevel); Cht_WriteLinkToChat1 (ThisRoomCode,ThisRoomShrtName,ThisRoomFullName,2,IsLastItemInLevel);
fprintf (Gbl.F.Out,"<img src=\"%s/dot64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/dot64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ThisRoomFullName,ThisRoomFullName); ThisRoomFullName,ThisRoomFullName);
Cht_WriteLinkToChat2 (ThisRoomCode,ThisRoomFullName); Cht_WriteLinkToChat2 (ThisRoomCode,ThisRoomFullName);

View File

@ -674,7 +674,7 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentCrsOnRightColumn (Ro
Sco_PutParamScope ("ScopeCon",Sco_SCOPE_CRS); Sco_PutParamScope ("ScopeCon",Sco_SCOPE_CRS);
Act_LinkFormSubmitUnique (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme]); Act_LinkFormSubmitUnique (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON40x40\" />" " alt=\"%s\" title=\"%s\" class=\"ICO40x40\" />"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Connected_users,Txt_Connected_users); Txt_Connected_users,Txt_Connected_users);

View File

@ -127,10 +127,9 @@ void Cty_SeeCtyWithPendingInss (void)
if ((NumCtys = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get countries with pending institutions"))) if ((NumCtys = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get countries with pending institutions")))
{ {
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Countries_with_pending_institutions, Lay_StartRoundFrameTable (NULL,Txt_Countries_with_pending_institutions,
NULL,Hlp_SYSTEM_Pending); NULL,Hlp_SYSTEM_Pending,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
"</th>" "</th>"
@ -237,7 +236,7 @@ static void Cty_Configuration (bool PrintView)
Hlp_COUNTRY_Information); Hlp_COUNTRY_Information);
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">");
if (PutLink) if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\"" fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
" class=\"TITLE_LOCATION\" title=\"%s\">", " class=\"TITLE_LOCATION\" title=\"%s\">",
@ -290,7 +289,7 @@ static void Cty_Configuration (bool PrintView)
} }
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Country name (an link to WWW if exists) *****/ /***** Country name (an link to WWW if exists) *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -523,10 +522,9 @@ void Cty_ListCountries2 (void)
const char *BgColor; const char *BgColor;
/***** Table head *****/ /***** Table head *****/
Lay_StartRoundFrame (NULL,Txt_Countries, Lay_StartRoundFrameTable (NULL,Txt_Countries,
Cty_PutIconsListCountries,Hlp_SYSTEM_Countries); Cty_PutIconsListCountries,Hlp_SYSTEM_Countries,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>");
"<tr>");
for (Order = Cty_ORDER_BY_COUNTRY; for (Order = Cty_ORDER_BY_COUNTRY;
Order <= Cty_ORDER_BY_NUM_USRS; Order <= Cty_ORDER_BY_NUM_USRS;
Order++) Order++)

View File

@ -196,7 +196,7 @@ static void Crs_Configuration (bool PrintView)
Hlp_COURSE_Information); Hlp_COURSE_Information);
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">");
if (PutLink) if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\"" fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
" class=\"TITLE_LOCATION\" title=\"%s\">", " class=\"TITLE_LOCATION\" title=\"%s\">",
@ -211,7 +211,7 @@ static void Crs_Configuration (bool PrintView)
Gbl.CurrentCrs.Crs.FullName); Gbl.CurrentCrs.Crs.FullName);
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Degree *****/ /***** Degree *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -460,7 +460,7 @@ static void Crs_Configuration (bool PrintView)
Act_LinkFormSubmit (Gbl.Title,"DAT",NULL); Act_LinkFormSubmit (Gbl.Title,"DAT",NULL);
fprintf (Gbl.F.Out,"%s " fprintf (Gbl.F.Out,"%s "
"<img src=\"%s/%s16x16.gif\" alt=\"%s\"" "<img src=\"%s/%s16x16.gif\" alt=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Title, Gbl.Title,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
(Indicators.NumIndicators == Ind_NUM_INDICATORS) ? "ok_green" : (Indicators.NumIndicators == Ind_NUM_INDICATORS) ? "ok_green" :
@ -559,7 +559,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
ClassNormal,NULL); ClassNormal,NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/sys64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/sys64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />&nbsp;%s</a>", " class=\"ICO20x20\" />&nbsp;%s</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_System, Txt_System,
Txt_System, Txt_System,
@ -597,7 +597,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
/* Country map */ /* Country map */
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s/%s.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s/%s.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />&nbsp;%s</a>", " class=\"ICO20x20\" />&nbsp;%s</a>",
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_COUNTRIES, Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_COUNTRIES,
Cty.Alpha2, Cty.Alpha2,
Cty.Alpha2, Cty.Alpha2,
@ -742,7 +742,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
ClassNormal,NULL); ClassNormal,NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/dot64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/dot64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Crs.ShrtName, Crs.ShrtName,
Crs.FullName); Crs.FullName);
@ -761,7 +761,7 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
fprintf (Gbl.F.Out,"\" target=\"_blank\">" fprintf (Gbl.F.Out,"\" target=\"_blank\">"
"<img src=\"%s/rss16x16.gif\"" "<img src=\"%s/rss16x16.gif\""
" alt=\"RSS\" title=\"RSS\"" " alt=\"RSS\" title=\"RSS\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</a>", "</a>",
Gbl.Prefs.IconsURL); Gbl.Prefs.IconsURL);
@ -1191,7 +1191,7 @@ static void Crs_ListCourses (void)
if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree if (Gbl.CurrentDeg.NumCrss) // There are courses in the current degree
{ {
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
Crs_PutHeadCoursesForSeeing (); Crs_PutHeadCoursesForSeeing ();
/***** List the courses *****/ /***** List the courses *****/
@ -1306,7 +1306,7 @@ static bool Crs_ListCoursesOfAYearForSeeing (unsigned Year)
"<td class=\"CENTER_MIDDLE %s\">" "<td class=\"CENTER_MIDDLE %s\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
BgColor, BgColor,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -3241,7 +3241,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
fprintf (Gbl.F.Out,"<td class=\"BT %s\">" fprintf (Gbl.F.Out,"<td class=\"BT %s\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
BgColor, BgColor,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,

View File

@ -183,10 +183,9 @@ void Deg_SeeDegWithPendingCrss (void)
if ((NumDegs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get degrees with pending courses"))) if ((NumDegs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get degrees with pending courses")))
{ {
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Degrees_with_pending_courses, Lay_StartRoundFrameTable (NULL,Txt_Degrees_with_pending_courses,
NULL,Hlp_SYSTEM_Pending); NULL,Hlp_SYSTEM_Pending,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
"</th>" "</th>"
@ -319,7 +318,7 @@ static void Deg_Configuration (bool PrintView)
Hlp_DEGREE_Information); Hlp_DEGREE_Information);
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">");
if (PutLink) if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\"" fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
" class=\"TITLE_LOCATION\" title=\"%s\">", " class=\"TITLE_LOCATION\" title=\"%s\">",
@ -334,7 +333,7 @@ static void Deg_Configuration (bool PrintView)
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Centre *****/ /***** Centre *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -1634,7 +1633,7 @@ static void Deg_ListDegrees (void)
if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre if (Gbl.CurrentCtr.Ctr.Degs.Num) // There are degrees in the current centre
{ {
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
Deg_PutHeadDegreesForSeeing (); Deg_PutHeadDegreesForSeeing ();
/***** List the degrees *****/ /***** List the degrees *****/
@ -1742,7 +1741,7 @@ static void Deg_ListOneDegreeForSeeing (struct Degree *Deg,unsigned NumDeg)
"<td class=\"CENTER_MIDDLE %s\">" "<td class=\"CENTER_MIDDLE %s\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
BgColor, BgColor,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -2912,7 +2911,7 @@ void Deg_GetAndWriteInsCtrDegAdminBy (long UsrCod,unsigned ColSpan)
"<td class=\"RIGHT_TOP COLOR%u\">" "<td class=\"RIGHT_TOP COLOR%u\">"
"<img src=\"%s/%s20x20.gif\"" "<img src=\"%s/%s20x20.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON25x25\" />" " class=\"ICO25x25\" />"
"</td>", "</td>",
Gbl.RowEvenOdd,Gbl.Prefs.IconsURL, Gbl.RowEvenOdd,Gbl.Prefs.IconsURL,
NumRow == NumRows ? "subend" : NumRow == NumRows ? "subend" :
@ -2932,7 +2931,7 @@ void Deg_GetAndWriteInsCtrDegAdminBy (long UsrCod,unsigned ColSpan)
case Sco_SCOPE_SYS: // System case Sco_SCOPE_SYS: // System
fprintf (Gbl.F.Out,"<img src=\"%s/swad64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/swad64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s", "&nbsp;%s",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_all_degrees, Txt_all_degrees,

View File

@ -197,11 +197,10 @@ static void DT_ListDegreeTypesForSeeing (void)
const char *BgColor; const char *BgColor;
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Types_of_degree, Lay_StartRoundFrameTable (NULL,Txt_Types_of_degree,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? DT_PutIconToEditDegTypes : Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? DT_PutIconToEditDegTypes :
NULL, NULL,
NULL); NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
DT_PutHeadDegreeTypesForSeeing (); DT_PutHeadDegreeTypesForSeeing ();
/***** List degree types with forms for edition *****/ /***** List degree types with forms for edition *****/
@ -218,7 +217,7 @@ static void DT_ListDegreeTypesForSeeing (void)
"<td class=\"%s\">" "<td class=\"%s\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
BgColor, BgColor,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,

View File

@ -96,12 +96,11 @@ void Dpt_SeeDepts (void)
Dpt_GetListDepartments (Gbl.CurrentIns.Ins.InsCod); Dpt_GetListDepartments (Gbl.CurrentIns.Ins.InsCod);
/***** Table head *****/ /***** Table head *****/
Lay_StartRoundFrame (NULL,Txt_Departments, Lay_StartRoundFrameTable (NULL,Txt_Departments,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Dpt_PutIconToEditDpts : Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Dpt_PutIconToEditDpts :
NULL, NULL,
NULL); NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>");
"<tr>");
for (Order = Dpt_ORDER_BY_DEPARTMENT; for (Order = Dpt_ORDER_BY_DEPARTMENT;
Order <= Dpt_ORDER_BY_NUM_TCHS; Order <= Dpt_ORDER_BY_NUM_TCHS;
Order++) Order++)
@ -180,8 +179,7 @@ void Dpt_SeeDepts (void)
Rol_TEACHER) - NumTchsInsWithDpt); Rol_TEACHER) - NumTchsInsWithDpt);
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>"); Lay_EndRoundFrameTable ();
Lay_EndRoundFrame ();
/***** Free list of departments *****/ /***** Free list of departments *****/
Dpt_FreeListDepartments (); Dpt_FreeListDepartments ();

View File

@ -3176,9 +3176,8 @@ static void Brw_ShowFileBrowsersAsgWrkCrs (void)
Brw_WriteTopBeforeShowingFileBrowser (); Brw_WriteTopBeforeShowingFileBrowser ();
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Lay_StartRoundFrame ("100%",Txt_Assignments_and_other_works, Lay_StartRoundFrameTable ("100%",Txt_Assignments_and_other_works,
Brw_PutIconShowFigure,Hlp_ASSESSMENT_Works); Brw_PutIconShowFigure,Hlp_ASSESSMENT_Works,0);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE\">");
/***** List the assignments and works of the selected users *****/ /***** List the assignments and works of the selected users *****/
Ptr = Gbl.Usrs.Select.All; Ptr = Gbl.Usrs.Select.All;
@ -3309,7 +3308,7 @@ static void Brw_FormToChangeCrsGrpZone (void)
fprintf (Gbl.F.Out,"<li class=\"%s\">" fprintf (Gbl.F.Out,"<li class=\"%s\">"
"<img src=\"%s/%s20x20.gif\"" "<img src=\"%s/%s20x20.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON25x25\"" " class=\"ICO25x25\""
" style=\"margin-left:6px;\" />" " style=\"margin-left:6px;\" />"
"<input type=\"radio\" name=\"GrpCod\" value=\"%ld\"", "<input type=\"radio\" name=\"GrpCod\" value=\"%ld\"",
(IsGroupZone && (IsGroupZone &&
@ -5410,7 +5409,7 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow); sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5455,7 +5454,7 @@ static void Brw_PutIconRemoveDir (const char *PathInTree,const char *FileName,co
sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow); sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5502,7 +5501,7 @@ static void Brw_PutIconCopy (Brw_FileType_t FileType,
sprintf (Gbl.Title,Txt_Copy_FOLDER_FILE_OR_LINK_X,FileNameToShow); sprintf (Gbl.Title,Txt_Copy_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/copy_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/copy_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5511,7 +5510,7 @@ static void Brw_PutIconCopy (Brw_FileType_t FileType,
else else
fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Copy_not_allowed, Txt_Copy_not_allowed,
Txt_Copy_not_allowed); Txt_Copy_not_allowed);
@ -5550,7 +5549,7 @@ static void Brw_PutIconPasteOn (const char *PathInTree,const char *FileName,cons
sprintf (Gbl.Title,Txt_Paste_in_X,FileNameToShow); sprintf (Gbl.Title,Txt_Paste_in_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5569,7 +5568,7 @@ static void Brw_PutIconPasteOff (void)
fprintf (Gbl.F.Out,"<td class=\"BM%u\">" fprintf (Gbl.F.Out,"<td class=\"BM%u\">"
"<img src=\"%s/paste_off16x16.gif\"" "<img src=\"%s/paste_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />" " class=\"ICO20x20B\" />"
"</td>", "</td>",
Gbl.RowEvenOdd,Gbl.Prefs.IconsURL, Gbl.RowEvenOdd,Gbl.Prefs.IconsURL,
Txt_Copy_not_allowed, Txt_Copy_not_allowed,
@ -5598,7 +5597,7 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
case Brw_EXPAND_TREE_NOTHING: case Brw_EXPAND_TREE_NOTHING:
fprintf (Gbl.F.Out,"<img src=\"%s/tr16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/tr16x16.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL); Gbl.Prefs.IconsURL);
break; break;
case Brw_EXPAND_TREE_PLUS: case Brw_EXPAND_TREE_PLUS:
@ -5627,7 +5626,7 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
sprintf (Gbl.Title,"%s %s",Txt_Expand,FileNameToShow); sprintf (Gbl.Title,"%s %s",Txt_Expand,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/expand64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/expand64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5660,7 +5659,7 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
sprintf (Gbl.Title,"%s %s",Txt_Contract,FileNameToShow); sprintf (Gbl.Title,"%s %s",Txt_Contract,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/contract64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/contract64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -5689,7 +5688,7 @@ static void Brw_IndentDependingOnLevel (unsigned Level)
fprintf (Gbl.F.Out,"<td style=\"width:20px;\">" fprintf (Gbl.F.Out,"<td style=\"width:20px;\">"
"<img src=\"%s/tr16x16.gif\"" "<img src=\"%s/tr16x16.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON20x20B\" />" " class=\"ICO20x20B\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL); Gbl.Prefs.IconsURL);
} }
@ -5718,7 +5717,7 @@ static void Brw_PutIconShow (unsigned Level,Brw_FileType_t FileType,
sprintf (Gbl.Title,Txt_Show_FOLDER_FILE_OR_LINK_X,FileNameToShow); sprintf (Gbl.Title,Txt_Show_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-slash-%s64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-slash-%s64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" : Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
"on", "on",
@ -5752,7 +5751,7 @@ static void Brw_PutIconHide (unsigned Level,Brw_FileType_t FileType,
sprintf (Gbl.Title,Txt_Hide_FOLDER_FILE_OR_LINK_X,FileNameToShow); sprintf (Gbl.Title,Txt_Hide_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-%s64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-%s64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" : Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
"on", "on",
@ -5820,7 +5819,7 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/folder-%s-plus16x16.gif\"" " src=\"%s/folder-%s-plus16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" : (ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
"open", "open",
@ -5831,7 +5830,7 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
else // I can't create a new file or folder else // I can't create a new file or folder
fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" : (ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
"open", "open",
@ -5854,7 +5853,7 @@ static void Brw_PutIconNewFileOrFolder (void)
fprintf (Gbl.F.Out,"<td class=\"BM%u\">" fprintf (Gbl.F.Out,"<td class=\"BM%u\">"
"<img src=\"%s/star16x16.gif\"" "<img src=\"%s/star16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />" " class=\"ICO20x20B\" />"
"</td>", "</td>",
Gbl.RowEvenOdd,Gbl.Prefs.IconsURL, Gbl.RowEvenOdd,Gbl.Prefs.IconsURL,
Txt_New_FILE_OR_FOLDER, Txt_New_FILE_OR_FOLDER,
@ -5945,8 +5944,8 @@ static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *F
fprintf (Gbl.F.Out,"xxx%ux%u.gif\" alt=\"\"", fprintf (Gbl.F.Out,"xxx%ux%u.gif\" alt=\"\"",
Size,Size); Size,Size);
} }
fprintf (Gbl.F.Out,(Size == 16) ? " class=\"ICON20x20\"/>" : fprintf (Gbl.F.Out,(Size == 16) ? " class=\"ICO20x20\"/>" :
" class=\"ICON40x40\"/>"); " class=\"ICO40x40\"/>");
} }
/*****************************************************************************/ /*****************************************************************************/
@ -6067,7 +6066,7 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
if (IsPublic) if (IsPublic)
fprintf (Gbl.F.Out,"&nbsp;<img src=\"%s/open_on16x16.gif\"" fprintf (Gbl.F.Out,"&nbsp;<img src=\"%s/open_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Public_open_educational_resource_OER_for_everyone, Txt_Public_open_educational_resource_OER_for_everyone,
Txt_Public_open_educational_resource_OER_for_everyone); Txt_Public_open_educational_resource_OER_for_everyone);
@ -6175,7 +6174,7 @@ static void Brw_WriteDatesAssignment (void)
fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:20px;\">" fprintf (Gbl.F.Out,"<td class=\"RIGHT_MIDDLE\" style=\"width:20px;\">"
"<img src=\"%s/arrow%s16x12.gif\"" "<img src=\"%s/arrow%s16x12.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON20x15B\" />" " class=\"ICO20x15B\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.FileBrowser.Asg.Open ? "green" : Gbl.FileBrowser.Asg.Open ? "green" :
@ -9850,7 +9849,7 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,
fprintf (Gbl.F.Out,"&nbsp;%s&nbsp;" fprintf (Gbl.F.Out,"&nbsp;%s&nbsp;"
"<img src=\"%s/grades32x32.gif\"" "<img src=\"%s/grades32x32.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</a>", "</a>",
FileNameToShow,Gbl.Prefs.IconsURL, FileNameToShow,Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
@ -9868,7 +9867,7 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,
fprintf (Gbl.F.Out,"&nbsp;%s&nbsp;" fprintf (Gbl.F.Out,"&nbsp;%s&nbsp;"
"<img src=\"%s/download64x64.png\"" "<img src=\"%s/download64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</a>", "</a>",
FileNameToShow, FileNameToShow,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -11765,7 +11764,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
/* Icon with folder */ /* Icon with folder */
fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Folder,Txt_Folder); Txt_Folder,Txt_Folder);
else else

View File

@ -225,16 +225,14 @@ void Fol_SuggestWhoToFollow (void)
if (NumUsrs) if (NumUsrs)
{ {
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame ("560px",Txt_Who_to_follow, Lay_StartRoundFrameTable ("560px",Txt_Who_to_follow,
Fol_PutIconsWhoToFollow, Fol_PutIconsWhoToFollow,
Hlp_SOCIAL_Profiles_who_to_follow); Hlp_SOCIAL_Profiles_who_to_follow,2);
/***** Initialize structure with user's data *****/ /***** Initialize structure with user's data *****/
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
/***** Start listing *****/ /***** List users *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
for (NumUsr = 0; for (NumUsr = 0;
NumUsr < NumUsrs; NumUsr < NumUsrs;
NumUsr++) NumUsr++)
@ -255,14 +253,11 @@ void Fol_SuggestWhoToFollow (void)
fprintf (Gbl.F.Out,"</tr>"); fprintf (Gbl.F.Out,"</tr>");
} }
/***** End listing *****/
fprintf (Gbl.F.Out,"</table>");
/***** Free memory used for user's data *****/ /***** Free memory used for user's data *****/
Usr_UsrDataDestructor (&UsrDat); Usr_UsrDataDestructor (&UsrDat);
/***** End frame *****/ /***** End frame *****/
Lay_EndRoundFrame (); Lay_EndRoundFrameTable ();
} }
else else
Lay_ShowAlert (Lay_INFO,Txt_No_user_to_whom_you_can_follow_Try_again_later); Lay_ShowAlert (Lay_INFO,Txt_No_user_to_whom_you_can_follow_Try_again_later);
@ -403,11 +398,11 @@ void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat,
Act_FormStart (ActUnfUsr); Act_FormStart (ActUnfUsr);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
Act_LinkFormSubmit (Txt_Following_unfollow,"REC_DAT_BOLD",NULL); Act_LinkFormSubmit (Txt_Following_unfollow,"REC_DAT_BOLD",NULL);
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\"" fprintf (Gbl.F.Out,"<div class=\"ICO_HIGHLIGHT\""
" style=\"display:inline;\" >" " style=\"display:inline;\" >"
"<img src=\"%s/following64x64.png\"" "<img src=\"%s/following64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</div>" "</div>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -419,11 +414,11 @@ void Fol_ShowFollowingAndFollowers (const struct UsrData *UsrDat,
Act_FormStart (ActFolUsr); Act_FormStart (ActFolUsr);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
Act_LinkFormSubmit (Txt_Follow,"REC_DAT_BOLD",NULL); Act_LinkFormSubmit (Txt_Follow,"REC_DAT_BOLD",NULL);
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\"" fprintf (Gbl.F.Out,"<div class=\"ICO_HIGHLIGHT\""
" style=\"display:inline;\" >" " style=\"display:inline;\" >"
"<img src=\"%s/follow64x64.png\"" "<img src=\"%s/follow64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</div>" "</div>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -717,10 +712,10 @@ static void Fol_ShowFollowedOrFollower (const struct UsrData *UsrDat)
if (!Gbl.Usrs.Me.Logged || // Not logged if (!Gbl.Usrs.Me.Logged || // Not logged
Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod) // It's me Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod) // It's me
/* Inactive icon to follow/unfollow */ /* Inactive icon to follow/unfollow */
fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICON ICON_HIDDEN\">" fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICO ICO_HIDDEN\">"
"<img src=\"%s/usr64x64.gif\"" "<img src=\"%s/usr64x64.gif\""
" alt=\"\"" " alt=\"\""
" class=\"ICON25x25\" />" " class=\"ICO25x25\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL); Gbl.Prefs.IconsURL);
else else
@ -732,10 +727,10 @@ static void Fol_ShowFollowedOrFollower (const struct UsrData *UsrDat)
Act_FormStart (ActUnfUsr); Act_FormStart (ActUnfUsr);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
Act_LinkFormSubmit (Txt_Following_unfollow,NULL,NULL); Act_LinkFormSubmit (Txt_Following_unfollow,NULL,NULL);
fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICON ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICO ICO_HIGHLIGHT\">"
"<img src=\"%s/following64x64.png\"" "<img src=\"%s/following64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON25x25\" />" " class=\"ICO25x25\" />"
"</div>" "</div>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -748,10 +743,10 @@ static void Fol_ShowFollowedOrFollower (const struct UsrData *UsrDat)
Act_FormStart (ActFolUsr); Act_FormStart (ActFolUsr);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
Act_LinkFormSubmit (Txt_Follow,NULL,NULL); Act_LinkFormSubmit (Txt_Follow,NULL,NULL);
fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICON ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"FOLLOW_USR_ICO ICO_HIGHLIGHT\">"
"<img src=\"%s/follow64x64.png\"" "<img src=\"%s/follow64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON25x25\" />" " class=\"ICO25x25\" />"
"</div>" "</div>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,

View File

@ -995,7 +995,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" /> ", " class=\"ICO20x20\" /> ",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Thr.NumUnreadPosts ? "msg-unread" : Thr.NumUnreadPosts ? "msg-unread" :
"msg-open", "msg-open",
@ -1060,8 +1060,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
Pag_WriteLinksToPagesCentered (Pag_POSTS_FORUM,ThrCod,&Pagination); Pag_WriteLinksToPagesCentered (Pag_POSTS_FORUM,ThrCod,&Pagination);
/***** Show posts from this page, the author and the date of last reply *****/ /***** Show posts from this page, the author and the date of last reply *****/
Lay_StartRoundFrame (NULL,Txt_Posts,NULL,Hlp_SOCIAL_Forums); Lay_StartRoundFrameTable (NULL,Txt_Posts,NULL,Hlp_SOCIAL_Forums,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
mysql_data_seek (mysql_res,(my_ulonglong) (Pagination.FirstItemVisible - 1)); mysql_data_seek (mysql_res,(my_ulonglong) (Pagination.FirstItemVisible - 1));
for (NumRow = Pagination.FirstItemVisible; for (NumRow = Pagination.FirstItemVisible;
@ -1199,7 +1198,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
"<td class=\"%s CENTER_TOP\" style=\"width:30px;\">" "<td class=\"%s CENTER_TOP\" style=\"width:30px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
NewPst ? "MSG_TIT_BG_NEW" : NewPst ? "MSG_TIT_BG_NEW" :
"MSG_TIT_BG", "MSG_TIT_BG",
@ -1266,7 +1265,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
PstNum); PstNum);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Enabled ? "eye" : Enabled ? "eye" :
"eye-slash", "eye-slash",
@ -1282,7 +1281,7 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
fprintf (Gbl.F.Out,"<span title=\"%s\">" fprintf (Gbl.F.Out,"<span title=\"%s\">"
"<img src=\"%s/%s-off64x64.png\"" "<img src=\"%s/%s-off64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</span>", "</span>",
Gbl.Title, Gbl.Title,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -1925,7 +1924,7 @@ static void For_WriteLinkToTopLevelOfForums (void)
Act_LinkFormSubmit (Txt_Forums,The_ClassForm[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_Forums,The_ClassForm[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/forum64x64.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/forum64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s" "&nbsp;%s"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -2129,7 +2128,7 @@ static void For_WriteLinkToAForum (For_ForumType_t ForumType,bool ShowNumOfPosts
case For_FORUM_GLOBAL_TCHS: case For_FORUM_GLOBAL_TCHS:
sprintf (Icon,"<img src=\"%s/forum64x64.gif\"" sprintf (Icon,"<img src=\"%s/forum64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ForumName,ForumName); ForumName,ForumName);
break; break;
@ -2137,7 +2136,7 @@ static void For_WriteLinkToAForum (For_ForumType_t ForumType,bool ShowNumOfPosts
case For_FORUM_SWAD_TCHS: case For_FORUM_SWAD_TCHS:
sprintf (Icon,"<img src=\"%s/swad64x64.gif\"" sprintf (Icon,"<img src=\"%s/swad64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ForumName,ForumName); ForumName,ForumName);
break; break;
@ -2152,7 +2151,7 @@ static void For_WriteLinkToAForum (For_ForumType_t ForumType,bool ShowNumOfPosts
case For_FORUM_COURSE_TCHS: case For_FORUM_COURSE_TCHS:
sprintf (Icon,"<img src=\"%s/dot64x64.png\"" sprintf (Icon,"<img src=\"%s/dot64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
ForumName,ForumName); ForumName,ForumName);
break; break;
@ -2271,7 +2270,7 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
if (For_CheckIfThrBelongsToForum (Gbl.Forum.ThreadToMove,ForumType)) if (For_CheckIfThrBelongsToForum (Gbl.Forum.ThreadToMove,ForumType))
fprintf (Gbl.F.Out,"<img src=\"%s/paste_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/paste_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Copy_not_allowed,Txt_Copy_not_allowed); Txt_Copy_not_allowed,Txt_Copy_not_allowed);
else else
@ -2282,7 +2281,7 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
For_PutHiddenParamThrCod (Gbl.Forum.ThreadToMove); For_PutHiddenParamThrCod (Gbl.Forum.ThreadToMove);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Paste_thread, Txt_Paste_thread,
Txt_Paste_thread); Txt_Paste_thread);
@ -2623,8 +2622,7 @@ void For_ShowForumThrs (void)
Pag_WriteLinksToPagesCentered (Pag_THREADS_FORUM,0,&PaginationThrs); Pag_WriteLinksToPagesCentered (Pag_THREADS_FORUM,0,&PaginationThrs);
/***** Start table *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_Threads,NULL,Hlp_SOCIAL_Forums); Lay_StartRoundFrameTable (NULL,Txt_Threads,NULL,Hlp_SOCIAL_Forums,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3412,7 +3410,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:30px;\">" fprintf (Gbl.F.Out,"<td class=\"LEFT_TOP %s\" style=\"width:30px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
BgColor, BgColor,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Thr.NumUnreadPosts ? "msg-unread" : Thr.NumUnreadPosts ? "msg-unread" :
@ -3443,7 +3441,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
For_PutHiddenParamThrCod (Thr.ThrCod); For_PutHiddenParamThrCod (Thr.ThrCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/cut16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/cut16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Move_thread, Txt_Move_thread,
Txt_Move_thread); Txt_Move_thread);

View File

@ -272,7 +272,7 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS); Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS);
/***** List the groups for each group type *****/ /***** List the groups for each group type *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
for (NumGrpTyp = 0; for (NumGrpTyp = 0;
NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num; NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num;
NumGrpTyp++) NumGrpTyp++)
@ -1137,8 +1137,7 @@ static void Grp_ListGroupTypesForEdition (void)
char Id[32]; char Id[32];
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Types_of_group,NULL,Hlp_USERS_Groups); Lay_StartRoundFrameTable (NULL,Txt_Types_of_group,NULL,Hlp_USERS_Groups,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Grp_WriteHeadingGroupTypes (); Grp_WriteHeadingGroupTypes ();
/***** List group types with forms for edition *****/ /***** List group types with forms for edition *****/
@ -1221,7 +1220,7 @@ static void Grp_ListGroupTypesForEdition (void)
"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">" "<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"LEFT_MIDDLE\">", "<td class=\"LEFT_MIDDLE\">",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -1313,8 +1312,7 @@ static void Grp_ListGroupsForEdition (void)
struct Group *Grp; struct Group *Grp;
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Groups,NULL,Hlp_USERS_Groups); Lay_StartRoundFrameTable (NULL,Txt_Groups,NULL,Hlp_USERS_Groups,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Grp_WriteHeadingGroups (); Grp_WriteHeadingGroups ();
/***** List the groups *****/ /***** List the groups *****/
@ -1349,7 +1347,7 @@ static void Grp_ListGroupsForEdition (void)
Grp->GrpName); Grp->GrpName);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Grp->Open ? "open" : Grp->Open ? "open" :
"closed", "closed",
@ -1369,7 +1367,7 @@ static void Grp_ListGroupsForEdition (void)
Grp->GrpName); Grp->GrpName);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Grp->FileZones ? "folder-yes" : Grp->FileZones ? "folder-yes" :
"folder-no", "folder-no",
@ -1431,6 +1429,7 @@ static void Grp_ListGroupsForEdition (void)
} }
} }
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -1587,7 +1586,7 @@ void Grp_ShowLstGrpsToChgMyGrps (bool ShowWarningsToStudents)
Act_FormStart (ActChgGrp); Act_FormStart (ActChgGrp);
/***** List the groups the user belongs to for change *****/ /***** List the groups the user belongs to for change *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
for (NumGrpTyp = 0; for (NumGrpTyp = 0;
NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num; NumGrpTyp < Gbl.CurrentCrs.Grps.GrpTypes.Num;
NumGrpTyp++) NumGrpTyp++)
@ -1761,8 +1760,7 @@ void Grp_ShowLstGrpsToChgOtherUsrsGrps (long UsrCod)
Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS); Grp_GetListGrpTypesAndGrpsInThisCrs (Grp_ONLY_GROUP_TYPES_WITH_GROUPS);
/***** Start table *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_Groups,NULL,Hlp_USERS_Groups); Lay_StartRoundFrameTable (NULL,Txt_Groups,NULL,Hlp_USERS_Groups,0);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE\">");
/***** List to select the groups the user belongs to *****/ /***** List to select the groups the user belongs to *****/
for (NumGrpTyp = 0; for (NumGrpTyp = 0;
@ -2015,7 +2013,7 @@ static void Grp_WriteRowGrp (struct Group *Grp,bool Highlight)
fprintf (Gbl.F.Out,"\" style=\"width:15px;\">" fprintf (Gbl.F.Out,"\" style=\"width:15px;\">"
"<img src=\"%s/%s_off16x16.gif\"" "<img src=\"%s/%s_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Grp->Open ? "open" : Grp->Open ? "open" :
@ -2086,8 +2084,8 @@ static void Grp_PutFormToCreateGroupType (void)
Act_FormStart (ActNewGrpTyp); Act_FormStart (ActNewGrpTyp);
/***** Start of frame *****/ /***** Start of frame *****/
Lay_StartRoundFrame (NULL,Txt_New_type_of_group,NULL,Hlp_USERS_Groups); Lay_StartRoundFrameTable (NULL,Txt_New_type_of_group,
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_USERS_Groups,2);
/***** Write heading *****/ /***** Write heading *****/
Grp_WriteHeadingGroupTypes (); Grp_WriteHeadingGroupTypes ();
@ -2146,7 +2144,7 @@ static void Grp_PutFormToCreateGroupType (void)
"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">" "<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"LEFT_MIDDLE\">", "<td class=\"LEFT_MIDDLE\">",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -2195,8 +2193,7 @@ static void Grp_PutFormToCreateGroup (void)
Act_FormStart (ActNewGrp); Act_FormStart (ActNewGrp);
/***** Start of frame *****/ /***** Start of frame *****/
Lay_StartRoundFrame (NULL,Txt_New_group,NULL,Hlp_USERS_Groups); Lay_StartRoundFrameTable (NULL,Txt_New_group,NULL,Hlp_USERS_Groups,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write heading *****/ /***** Write heading *****/
Grp_WriteHeadingGroups (); Grp_WriteHeadingGroups ();
@ -2209,12 +2206,12 @@ static void Grp_PutFormToCreateGroup (void)
"<td class=\"BM\">" "<td class=\"BM\">"
"<img src=\"%s/closed_off16x16.gif\"" "<img src=\"%s/closed_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"BM\">" "<td class=\"BM\">"
"<img src=\"%s/folder-no_off16x16.gif\"" "<img src=\"%s/folder-no_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Group_closed, Txt_Group_closed,

View File

@ -92,12 +92,11 @@ void Hld_SeeHolidays (void)
Hld_GetListHolidays (); Hld_GetListHolidays ();
/***** Table head *****/ /***** Table head *****/
Lay_StartRoundFrame (NULL,Txt_Holidays, Lay_StartRoundFrameTable (NULL,Txt_Holidays,
Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM ? Hld_PutIconToEditHlds : Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM ? Hld_PutIconToEditHlds :
NULL, NULL,
NULL); NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>");
"<tr>");
for (Order = Hld_ORDER_BY_PLACE; for (Order = Hld_ORDER_BY_PLACE;
Order <= Hld_ORDER_BY_START_DATE; Order <= Hld_ORDER_BY_START_DATE;
Order++) Order++)
@ -166,7 +165,6 @@ void Hld_SeeHolidays (void)
} }
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>");
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
/***** Free list of holidays *****/ /***** Free list of holidays *****/

View File

@ -90,7 +90,7 @@ void Ico_PutIconsToSelectIconSet (void)
Act_FormStart (ActChgIco); Act_FormStart (ActChgIco);
Par_PutHiddenParamString ("IconSet",Ico_IconSetId[IconSet]); Par_PutHiddenParamString ("IconSet",Ico_IconSetId[IconSet]);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s/%s/heart64x64.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s/%s/heart64x64.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON40x40B\"" " alt=\"%s\" title=\"%s\" class=\"ICO40x40B\""
" style=\"margin:0 auto; padding:0;\" />", " style=\"margin:0 auto; padding:0;\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Cfg_ICON_FOLDER_ICON_SETS, Cfg_ICON_FOLDER_ICON_SETS,

View File

@ -215,7 +215,7 @@ void Img_PutImageUploader (int NumImgInForm,const char *ClassImgTitURL)
fprintf (Gbl.F.Out,"<label class=\"IMG_UPLOAD_BUTTON\">" fprintf (Gbl.F.Out,"<label class=\"IMG_UPLOAD_BUTTON\">"
"<img src=\"%s/photo64x64.gif\"" "<img src=\"%s/photo64x64.gif\""
" alt=\"%s\" title=\"%s (%s)\"" " alt=\"%s\" title=\"%s (%s)\""
" class=\"IMG_UPLOAD_ICON\" />" " class=\"IMG_UPLOAD_ICO\" />"
"<input type=\"file\" name=\"%s\" accept=\"image/*\"" "<input type=\"file\" name=\"%s\" accept=\"image/*\""
" class=\"IMG_UPLOAD_FILE\"" " class=\"IMG_UPLOAD_FILE\""
" onchange=\"imageUploadOnSelectFile (this,'%s');\" />" " onchange=\"imageUploadOnSelectFile (this,'%s');\" />"

View File

@ -108,7 +108,7 @@ void Ind_ReqIndicatorsCourses (void)
/***** Form to update indicators *****/ /***** Form to update indicators *****/
/* Start form */ /* Start form */
Act_FormStart (ActReqStaCrs); Act_FormStart (ActReqStaCrs);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/* Scope */ /* Scope */
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"

View File

@ -140,10 +140,9 @@ void Ins_SeeInsWithPendingCtrs (void)
if ((NumInss = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get institutions with pending centres"))) if ((NumInss = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get institutions with pending centres")))
{ {
/***** Write heading *****/ /***** Write heading *****/
Lay_StartRoundFrame (NULL,Txt_Institutions_with_pending_centres, Lay_StartRoundFrameTable (NULL,Txt_Institutions_with_pending_centres,
NULL,Hlp_SYSTEM_Pending); NULL,Hlp_SYSTEM_Pending,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
"%s" "%s"
"</th>" "</th>"
@ -188,6 +187,7 @@ void Ins_SeeInsWithPendingCtrs (void)
Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd; Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd;
} }
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
else else
@ -303,7 +303,7 @@ static void Ins_Configuration (bool PrintView)
Hlp_INSTITUTION_Information); Hlp_INSTITUTION_Information);
/***** Title *****/ /***** Title *****/
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">");
if (PutLink) if (PutLink)
fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\"" fprintf (Gbl.F.Out,"<a href=\"%s\" target=\"_blank\""
" class=\"TITLE_LOCATION\" title=\"%s\">", " class=\"TITLE_LOCATION\" title=\"%s\">",
@ -317,7 +317,7 @@ static void Ins_Configuration (bool PrintView)
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Country *****/ /***** Country *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -676,7 +676,7 @@ static void Ins_ListInstitutions (void)
if (Gbl.Inss.Num) // There are institutions in the current country if (Gbl.Inss.Num) // There are institutions in the current country
{ {
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">");
Ins_PutHeadInstitutionsForSeeing (true); // Order selectable Ins_PutHeadInstitutionsForSeeing (true); // Order selectable
/***** Write all the institutions and their nuber of users *****/ /***** Write all the institutions and their nuber of users *****/

View File

@ -1048,11 +1048,10 @@ void Lay_PutIconLink (const char *Icon,const char *Title,const char *Text,
void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text) void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text)
{ {
// margin is used because this form link may be placed after another one fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">"
"<img src=\"%s/%s\"" "<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL,Icon, Gbl.Prefs.IconsURL,Icon,
Alt,Text ? Text : Alt); Alt,Text ? Text : Alt);
if (Text) if (Text)
@ -1069,13 +1068,13 @@ void Lay_PutIconWithText (const char *Icon,const char *Alt,const char *Text)
void Lay_PutCalculateIcon (const char *Alt) void Lay_PutCalculateIcon (const char *Alt)
{ {
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<img id=\"update_%d\" src=\"%s/recycle16x16.gif\"" // TODO: change name and resolution to refresh64x64.png "<img id=\"update_%d\" src=\"%s/recycle16x16.gif\"" // TODO: change name and resolution to refresh64x64.png
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<img id=\"updating_%d\" src=\"%s/working16x16.gif\"" // TODO: change name and resolution to refreshing64x64.gif "<img id=\"updating_%d\" src=\"%s/working16x16.gif\"" // TODO: change name and resolution to refreshing64x64.gif
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" style=\"display:none;\" />" // Animated icon hidden " class=\"ICO20x20\" style=\"display:none;\" />" // Animated icon hidden
"</div>" "</div>"
"</a>", "</a>",
Gbl.Form.Num,Gbl.Prefs.IconsURL,Alt,Alt, Gbl.Form.Num,Gbl.Prefs.IconsURL,Alt,Alt,
@ -1089,14 +1088,14 @@ void Lay_PutCalculateIcon (const char *Alt)
void Lay_PutCalculateIconWithText (const char *Alt,const char *Text) void Lay_PutCalculateIconWithText (const char *Alt,const char *Text)
{ {
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\"" fprintf (Gbl.F.Out,"<div class=\"ICO_HIGHLIGHT\""
" style=\"margin:0 6px 0 0; display:inline;\">" " style=\"margin:0 6px 0 0; display:inline;\">"
"<img id=\"update_%d\" src=\"%s/recycle16x16.gif\"" "<img id=\"update_%d\" src=\"%s/recycle16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<img id=\"updating_%d\" src=\"%s/working16x16.gif\"" "<img id=\"updating_%d\" src=\"%s/working16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" style=\"display:none;\" />" // Animated icon hidden " class=\"ICO20x20\" style=\"display:none;\" />" // Animated icon hidden
"&nbsp;%s" "&nbsp;%s"
"</div>" "</div>"
"</a>", "</a>",
@ -1115,7 +1114,7 @@ void Lay_PutIconRemovalNotAllowed (void)
fprintf (Gbl.F.Out,"<img src=\"%s/remove-off64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/remove-off64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Removal_not_allowed, Txt_Removal_not_allowed,
Txt_Removal_not_allowed); Txt_Removal_not_allowed);
@ -1127,7 +1126,7 @@ void Lay_PutIconBRemovalNotAllowed (void)
fprintf (Gbl.F.Out,"<img src=\"%s/remove-off64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/remove-off64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Removal_not_allowed, Txt_Removal_not_allowed,
Txt_Removal_not_allowed); Txt_Removal_not_allowed);
@ -1143,7 +1142,7 @@ void Lay_PutIconRemove (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
Txt_Remove); Txt_Remove);
@ -1155,7 +1154,7 @@ void Lay_PutIconBRemove (void)
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
Txt_Remove); Txt_Remove);
@ -1231,7 +1230,7 @@ void Lay_StartRoundFrameTable (const char *Width,const char *Title,
{ {
Lay_StartRoundFrame (Width,Title,FunctionToDrawContextualIcons,HelpLink); Lay_StartRoundFrame (Width,Title,FunctionToDrawContextualIcons,HelpLink);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL");
if (CellPadding) if (CellPadding)
fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8 fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8
fprintf (Gbl.F.Out,"\">"); fprintf (Gbl.F.Out,"\">");
@ -1250,26 +1249,30 @@ void Lay_StartRoundFrame (const char *Width,const char *Title,
fprintf (Gbl.F.Out," style=\"box-sizing:border-box; width:%s;\"",Width); fprintf (Gbl.F.Out," style=\"box-sizing:border-box; width:%s;\"",Width);
fprintf (Gbl.F.Out,">"); fprintf (Gbl.F.Out,">");
fprintf (Gbl.F.Out,"<div class=\"FRAME_ICONS\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_ICO\">");
if (FunctionToDrawContextualIcons) if (FunctionToDrawContextualIcons)
{ {
fprintf (Gbl.F.Out,"<div class=\"FRAME_ICONS_LEFT\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_ICO_LEFT\">");
FunctionToDrawContextualIcons (); FunctionToDrawContextualIcons ();
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
} }
if (HelpLink) if (HelpLink)
{ fprintf (Gbl.F.Out,"<div class=\"FRAME_ICO_RIGHT\">"
fprintf (Gbl.F.Out,"<div class=\"FRAME_ICONS_RIGHT\">" "<a href=\"%s\" target=\"_blank\">"
"<a href=\"%s\" target=\"_blank\">", "<div class=\"CONTEXT_OPT HLP_HIGHLIGHT\">"
HelpLink); "<img src=\"%s/help64x64.png\""
Lay_PutIconWithText ("help64x64.png",Txt_Help,NULL); " alt=\"%s\" title=\"%s\""
fprintf (Gbl.F.Out,"</a>" " class=\"ICO20x20\" />"
"</div>"); "</div>"
} "</a>"
"</div>",
HelpLink,
Gbl.Prefs.IconsURL,
Txt_Help,Txt_Help);
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
if (Title) if (Title)
fprintf (Gbl.F.Out,"<div class=\"FRAME_TABLE_TITLE CENTER_MIDDLE\">" fprintf (Gbl.F.Out,"<div class=\"FRAME_TBL_TITLE CENTER_MIDDLE\">"
"%s" "%s"
"</div>", "</div>",
Title); Title);
@ -1285,7 +1288,7 @@ void Lay_StartRoundFrameTableShadow (const char *Width,unsigned CellPadding)
if (Width) if (Width)
fprintf (Gbl.F.Out," style=\"width:%s;\"",Width); fprintf (Gbl.F.Out," style=\"width:%s;\"",Width);
fprintf (Gbl.F.Out,">" fprintf (Gbl.F.Out,">"
"<table class=\"FRAME_TABLE"); "<table class=\"FRAME_TBL");
if (CellPadding) if (CellPadding)
fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8 fprintf (Gbl.F.Out," CELLS_PAD_%u",CellPadding); // CellPadding must be 0, 1, 2, 4 or 8
fprintf (Gbl.F.Out,"\">"); fprintf (Gbl.F.Out,"\">");
@ -1722,7 +1725,7 @@ void Lay_IndentDependingOnLevel (unsigned Level,bool IsLastItemInLevel[])
i++) i++)
fprintf (Gbl.F.Out,"<img src=\"%s/%s20x20.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s20x20.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON25x25\" />", " class=\"ICO25x25\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
IsLastItemInLevel[i] ? "tr" : IsLastItemInLevel[i] ? "tr" :
"subleft"); "subleft");
@ -1730,7 +1733,7 @@ void Lay_IndentDependingOnLevel (unsigned Level,bool IsLastItemInLevel[])
/***** Level *****/ /***** Level *****/
fprintf (Gbl.F.Out,"<img src=\"%s/%s20x20.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s20x20.gif\""
" alt=\"\" title=\"\"" " alt=\"\" title=\"\""
" class=\"ICON25x25\" />", " class=\"ICO25x25\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
IsLastItemInLevel[Level] ? "subend" : IsLastItemInLevel[Level] ? "subend" :
"submid"); "submid");

View File

@ -155,7 +155,7 @@ void Log_DrawLogo (Sco_Scope_t Scope,long Cod,const char *AltText,
Gbl.Prefs.IconsURL,Icon[Scope]); Gbl.Prefs.IconsURL,Icon[Scope]);
fprintf (Gbl.F.Out,"\"" fprintf (Gbl.F.Out,"\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON%ux%u", " class=\"ICO%ux%u",
AltText,AltText, AltText,AltText,
Size,Size); Size,Size);
if (Class) if (Class)

View File

@ -101,12 +101,11 @@ void Mai_SeeMailDomains (void)
Mai_GetListMailDomainsAllowedForNotif (); Mai_GetListMailDomainsAllowedForNotif ();
/***** Table head *****/ /***** Table head *****/
Lay_StartRoundFrame (NULL,Txt_Mail_domains_allowed_for_notifications, Lay_StartRoundFrameTable (NULL,Txt_Mail_domains_allowed_for_notifications,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains : Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains :
NULL, NULL,
NULL); NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>");
"<tr>");
for (Order = Mai_ORDER_BY_DOMAIN; for (Order = Mai_ORDER_BY_DOMAIN;
Order <= Mai_ORDER_BY_USERS; Order <= Mai_ORDER_BY_USERS;
Order++) Order++)
@ -147,8 +146,7 @@ void Mai_SeeMailDomains (void)
Gbl.Mails.Lst[NumMai].NumUsrs); Gbl.Mails.Lst[NumMai].NumUsrs);
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>"); Lay_EndRoundFrameTable ();
Lay_EndRoundFrame ();
/***** Free list of mail domains *****/ /***** Free list of mail domains *****/
Mai_FreeListMailDomains (); Mai_FreeListMailDomains ();
@ -1236,7 +1234,7 @@ void Mai_ShowFormChangeUsrEmail (const struct UsrData *UsrDat,bool ItsMe)
sprintf (Gbl.Title,Txt_Email_X_confirmed,row[0]); sprintf (Gbl.Title,Txt_Email_X_confirmed,row[0]);
fprintf (Gbl.F.Out,"<img src=\"%s/ok_green16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ok_green16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
} }

View File

@ -270,7 +270,7 @@ void Mnu_WriteMenuThisTab (void)
The_ClassTxtMenuOff[Gbl.Prefs.Theme],NULL); The_ClassTxtMenuOff[Gbl.Prefs.Theme],NULL);
/***** Icon *****/ /***** Icon *****/
fprintf (Gbl.F.Out,"<div class=\"MENU_ICON\"" fprintf (Gbl.F.Out,"<div class=\"MENU_ICO\""
" style=\"background-image:url('%s/%s/%s');\">", " style=\"background-image:url('%s/%s/%s');\">",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION, Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Act_Actions[NumAct].Icon); Act_Actions[NumAct].Icon);
@ -326,7 +326,7 @@ void Mnu_PutIconsToSelectMenu (void)
Act_FormStart (ActChgMnu); Act_FormStart (ActChgMnu);
Par_PutHiddenParamUnsigned ("Menu",(unsigned) Menu); Par_PutHiddenParamUnsigned ("Menu",(unsigned) Menu);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON40x40B\"" " alt=\"%s\" title=\"%s\" class=\"ICO40x40B\""
" style=\"margin:0 auto;\" />", " style=\"margin:0 auto;\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Mnu_MenuIcons[Menu], Mnu_MenuIcons[Menu],

View File

@ -2842,7 +2842,7 @@ static void Msg_ShowASentOrReceivedMessage (long MsgNum,long MsgCod)
"<td class=\"%s CENTER_TOP\" style=\"width:20px;\">" "<td class=\"%s CENTER_TOP\" style=\"width:20px;\">"
"<img src=\"%s/msg-%s16x16.gif\"" "<img src=\"%s/msg-%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Msg.TypeOfMessages == Msg_MESSAGES_RECEIVED ? (Open ? "BG_MSG_BLUE" : Gbl.Msg.TypeOfMessages == Msg_MESSAGES_RECEIVED ? (Open ? "BG_MSG_BLUE" :
"BG_MSG_GREEN") : "BG_MSG_GREEN") :
"BG_MSG_BLUE", "BG_MSG_BLUE",
@ -3236,7 +3236,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">" "<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Deleted ? "msg-fwd-del" : Deleted ? "msg-fwd-del" :
@ -3387,7 +3387,7 @@ static void Msg_WriteMsgTo (long MsgCod)
"<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">" "<td class=\"LEFT_MIDDLE\" style=\"width:20px;\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
OpenByDst ? (Deleted ? "msg-open-del" : OpenByDst ? (Deleted ? "msg-open-del" :
@ -3561,7 +3561,7 @@ static void Msg_PutFormToBanSender (struct UsrData *UsrDat)
Msg_PutHiddenParamsMsgsFilters (); Msg_PutHiddenParamsMsgsFilters ();
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/open_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/open_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" style=\"margin-left:12px;\" />", " class=\"ICO20x20\" style=\"margin-left:12px;\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Sender_permitted_click_to_ban_him, Txt_Sender_permitted_click_to_ban_him,
Txt_Sender_permitted_click_to_ban_him); Txt_Sender_permitted_click_to_ban_him);
@ -3583,7 +3583,7 @@ static void Msg_PutFormToUnbanSender (struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\">&nbsp;</span>" fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\">&nbsp;</span>"
"<input type=\"image\" src=\"%s/closed_on16x16.gif\"" "<input type=\"image\" src=\"%s/closed_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Sender_banned_click_to_unban_him, Txt_Sender_banned_click_to_unban_him,
Txt_Sender_banned_click_to_unban_him); Txt_Sender_banned_click_to_unban_him);
@ -3762,7 +3762,7 @@ void Msg_ListBannedUsrs (void)
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/closed_on16x16.gif\"" " src=\"%s/closed_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Sender_banned_click_to_unban_him, Txt_Sender_banned_click_to_unban_him,
Txt_Sender_banned_click_to_unban_him); Txt_Sender_banned_click_to_unban_him);

View File

@ -250,12 +250,12 @@ static void Net_ShowAWebOrSocialNet (const char *URL,
const char *Icon,const char *Title) const char *Icon,const char *Title)
{ {
/***** Write link and icon *****/ /***** Write link and icon *****/
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\"" fprintf (Gbl.F.Out,"<div class=\"ICO_HIGHLIGHT\""
" style=\"display:inline;\">" " style=\"display:inline;\">"
"<a href=\"%s\" target=\"_blank\" title=\"%s\">" "<a href=\"%s\" target=\"_blank\" title=\"%s\">"
"<img src=\"%s/%s\"" "<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</a>" "</a>"
"</div>", "</div>",
URL,Title, URL,Title,
@ -331,7 +331,7 @@ void Net_ShowFormMyWebsAndSocialNets (void)
"<td class=\"%s LEFT_MIDDLE\">" "<td class=\"%s LEFT_MIDDLE\">"
"<img src=\"%s/%s\"" "<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\"" " class=\"ICO20x20\""
" style=\"margin-right:12px;\" />" " style=\"margin-right:12px;\" />"
"%s:</td>" "%s:</td>"
"<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">", "<td class=\"LEFT_MIDDLE\" style=\"width:%upx;\">",
@ -524,9 +524,8 @@ void Net_ShowWebAndSocialNetworksStats (void)
"can not get number of users with webs / social networks"); "can not get number of users with webs / social networks");
/***** Number of users *****/ /***** Number of users *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_NETWORKS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_NETWORKS],
NULL,Hlp_STATS_Figures_webs_social_networks); NULL,Hlp_STATS_Figures_webs_social_networks,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
@ -569,7 +568,7 @@ void Net_ShowWebAndSocialNetworksStats (void)
"<td class=\"DAT LEFT_MIDDLE\">" "<td class=\"DAT LEFT_MIDDLE\">"
"<img src=\"%s/%s\"" "<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\"" " class=\"ICO20x20\""
" style=\"margin-right:12px;\" />" " style=\"margin-right:12px;\" />"
"%s</td>" "%s</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"

View File

@ -103,8 +103,7 @@ void Not_ShowFormNotice (void)
Act_FormStart (ActRcvNot); Act_FormStart (ActRcvNot);
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_New_notice,NULL,Hlp_MESSAGES_Notices); Lay_StartRoundFrameTable (NULL,Txt_New_notice,NULL,Hlp_MESSAGES_Notices,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Message body *****/ /***** Message body *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -454,7 +453,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
fprintf (Gbl.F.Out,"\" target=\"_blank\">" fprintf (Gbl.F.Out,"\" target=\"_blank\">"
"<img src=\"%s/rss16x16.gif\"" "<img src=\"%s/rss16x16.gif\""
" alt=\"RSS\" title=\"RSS\"" " alt=\"RSS\" title=\"RSS\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</a>" "</a>"
"</div>", "</div>",
Gbl.Prefs.IconsURL); Gbl.Prefs.IconsURL);
@ -639,11 +638,11 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
/* Form to remove notice */ /* Form to remove notice */
Act_FormStart (ActReqRemNot); Act_FormStart (ActReqRemNot);
Not_PutHiddenParamNotCod (NotCod); Not_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/remove-on64x64.png\"" " src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
@ -656,11 +655,11 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
case Not_ACTIVE_NOTICE: case Not_ACTIVE_NOTICE:
Act_FormStart (ActHidNot); Act_FormStart (ActHidNot);
Not_PutHiddenParamNotCod (NotCod); Not_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/eye-on64x64.png\"" " src=\"%s/eye-on64x64.png\""
" alt=%s\" title=\"%s\"" " alt=%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_NOTICE_Active_Mark_as_obsolete, Txt_NOTICE_Active_Mark_as_obsolete,
@ -669,11 +668,11 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
case Not_OBSOLETE_NOTICE: case Not_OBSOLETE_NOTICE:
Act_FormStart (ActRevNot); Act_FormStart (ActRevNot);
Not_PutHiddenParamNotCod (NotCod); Not_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_OPT ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/eye-slash-on64x64.png\"" " src=\"%s/eye-slash-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_NOTICE_Obsolete_Mark_as_active, Txt_NOTICE_Obsolete_Mark_as_active,
@ -690,7 +689,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
fprintf (Gbl.F.Out,"<span title=\"%s\">" fprintf (Gbl.F.Out,"<span title=\"%s\">"
"<img src=\"%s/eye-off64x64.png\"" "<img src=\"%s/eye-off64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</span>", "</span>",
Txt_NOTICE_Active_SINGULAR, Txt_NOTICE_Active_SINGULAR,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -701,7 +700,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
fprintf (Gbl.F.Out,"<span title=\"%s\">" fprintf (Gbl.F.Out,"<span title=\"%s\">"
"<img src=\"%s/eye-slash-off64x64.png\"" "<img src=\"%s/eye-slash-off64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</span>", "</span>",
Txt_NOTICE_Obsolete_SINGULAR, Txt_NOTICE_Obsolete_SINGULAR,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -748,7 +747,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
Act_LinkFormSubmit (Txt_See_full_notice,The_ClassForm[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_See_full_notice,The_ClassForm[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_See_full_notice, Txt_See_full_notice,

View File

@ -371,9 +371,8 @@ void Ntf_ShowMyNotifications (void)
Usr_UsrDataConstructor (&UsrDat); Usr_UsrDataConstructor (&UsrDat);
/***** Table start *****/ /***** Table start *****/
Lay_StartRoundFrame (NULL,Txt_Notifications,Ntf_PutIconsNotif,NULL); Lay_StartRoundFrameTable (NULL,Txt_Notifications,Ntf_PutIconsNotif,NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\" style=\"margin:0 auto;\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th colspan=\"2\" class=\"LEFT_MIDDLE\">" "<th colspan=\"2\" class=\"LEFT_MIDDLE\">"
"%s" "%s"
"</th>" "</th>"
@ -489,7 +488,7 @@ void Ntf_ShowMyNotifications (void)
{ {
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Ntf_Icons[NotifyEvent], Ntf_Icons[NotifyEvent],
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent], Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
@ -499,7 +498,7 @@ void Ntf_ShowMyNotifications (void)
else else
fprintf (Gbl.F.Out,"<img src=\"%s/%s\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Ntf_Icons[NotifyEvent], Ntf_Icons[NotifyEvent],
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent], Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
@ -614,8 +613,7 @@ void Ntf_ShowMyNotifications (void)
} }
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>"); Lay_EndRoundFrameTable ();
Lay_EndRoundFrame ();
/***** Free memory used for user's data *****/ /***** Free memory used for user's data *****/
Usr_UsrDataDestructor (&UsrDat); Usr_UsrDataDestructor (&UsrDat);
@ -2035,7 +2033,7 @@ void Ntf_WriteNumberOfNewNtfs (void)
if (NumNewNtfs) if (NumNewNtfs)
fprintf (Gbl.F.Out,"<img src=\"%s/bell16x16.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/bell16x16.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%u<span id=\"notif_new\">&nbsp;%s</span>", "&nbsp;%u<span id=\"notif_new\">&nbsp;%s</span>",
Gbl.Prefs.PathTheme, Gbl.Prefs.PathTheme,
Txt_Notifications, Txt_Notifications,

View File

@ -686,8 +686,7 @@ void Pwd_ShowFormChgPwd (void)
Act_FormStart (ActChgPwd); Act_FormStart (ActChgPwd);
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame (NULL,Txt_Password,NULL,Hlp_PROFILE_Password); Lay_StartRoundFrameTable (NULL,Txt_Password,NULL,Hlp_PROFILE_Password,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/* Current password */ /* Current password */
if (IHaveAPasswordInDB) // If I have a password in database... if (IHaveAPasswordInDB) // If I have a password in database...

View File

@ -93,12 +93,11 @@ void Plc_SeePlaces (void)
Plc_GetListPlaces (); Plc_GetListPlaces ();
/***** Table head *****/ /***** Table head *****/
Lay_StartRoundFrame (NULL,Txt_Places, Lay_StartRoundFrameTable (NULL,Txt_Places,
Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM ? Plc_PutIconToEditPlaces : Gbl.Usrs.Me.LoggedRole >= Rol_INS_ADM ? Plc_PutIconToEditPlaces :
NULL, NULL,
NULL); NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>");
"<tr>");
for (Order = Plc_ORDER_BY_PLACE; for (Order = Plc_ORDER_BY_PLACE;
Order <= Plc_ORDER_BY_NUM_CTRS; Order <= Plc_ORDER_BY_NUM_CTRS;
Order++) Order++)
@ -171,7 +170,6 @@ void Plc_SeePlaces (void)
NumCtrsWithPlc); NumCtrsWithPlc);
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>");
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
/***** Free list of places *****/ /***** Free list of places *****/

View File

@ -91,14 +91,13 @@ void Plg_ListPlugins (void)
Plg_GetListPlugins (); Plg_GetListPlugins ();
/***** Table start *****/ /***** Table start *****/
Lay_StartRoundFrame (NULL,Txt_Plugins, Lay_StartRoundFrameTable (NULL,Txt_Plugins,
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Plg_PutIconToEditPlugins : Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Plg_PutIconToEditPlugins :
NULL, NULL,
NULL); NULL,2);
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<th style=\"width:40px;\">" "<th style=\"width:40px;\">"
"</th>" "</th>"
"<th class=\"LEFT_MIDDLE\">" "<th class=\"LEFT_MIDDLE\">"
@ -123,7 +122,7 @@ void Plg_ListPlugins (void)
"<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">" "<a href=\"%s\" title=\"%s\" class=\"DAT\" target=\"_blank\">"
"<img src=\"%s/%s/%s24x24.gif\"" "<img src=\"%s/%s/%s24x24.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</a>" "</a>"
"</td>" "</td>"
"<td class=\"DAT LEFT_MIDDLE\">" "<td class=\"DAT LEFT_MIDDLE\">"
@ -140,8 +139,7 @@ void Plg_ListPlugins (void)
} }
/***** End table *****/ /***** End table *****/
fprintf (Gbl.F.Out,"</table>"); Lay_EndRoundFrameTable ();
Lay_EndRoundFrame ();
/***** Free list of plugins *****/ /***** Free list of plugins *****/
Plg_FreeListPlugins (); Plg_FreeListPlugins ();
@ -385,7 +383,7 @@ static void Plg_ListPluginsForEdition (void)
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:45px;\">" fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\" style=\"width:45px;\">"
"<img src=\"%s/%s/%s24x24.gif\"" "<img src=\"%s/%s/%s24x24.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS, Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,
Gbl.Plugins.Lst[NumPlg].Logo, Gbl.Plugins.Lst[NumPlg].Logo,

View File

@ -1448,7 +1448,7 @@ static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListU
" onclick=\"document.getElementById('%s').submit();\" />" " onclick=\"document.getElementById('%s').submit();\" />"
"<img src=\"%s/clock64x64.gif\"" "<img src=\"%s/clock64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<span class=\"%s\">&nbsp;%s</span>" "<span class=\"%s\">&nbsp;%s</span>"
"</div>", "</div>",
Gbl.Form.Id, Gbl.Form.Id,
@ -2075,13 +2075,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH); sprintf (StrRecordWidth,"%upx",Rec_RECORD_WIDTH);
Gbl.Record.UsrDat = UsrDat; Gbl.Record.UsrDat = UsrDat;
Gbl.Record.TypeOfView = TypeOfView; Gbl.Record.TypeOfView = TypeOfView;
Lay_StartRoundFrame (StrRecordWidth,NULL, Lay_StartRoundFrameTable (StrRecordWidth,NULL,
Rec_PutIconsCommands, Rec_PutIconsCommands,
TypeOfView == Rec_FORM_MY_COMMON_RECORD ? Hlp_PROFILE_Record : TypeOfView == Rec_FORM_MY_COMMON_RECORD ? Hlp_PROFILE_Record :
NULL); NULL,
2);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Institution and user's photo *****/ /***** Institution and user's photo *****/
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
@ -2113,7 +2111,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
/***** Show e-mail and user's ID *****/ /***** Show e-mail and user's ID *****/
if (ShowIDRows) if (ShowIDRows)
{ {
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
Rec_ShowEmail (UsrDat,ClassForm); Rec_ShowEmail (UsrDat,ClassForm);
Rec_ShowUsrIDs (UsrDat,ClassForm); Rec_ShowUsrIDs (UsrDat,ClassForm);
fprintf (Gbl.F.Out,"</table>"); fprintf (Gbl.F.Out,"</table>");
@ -2141,7 +2139,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
break; break;
} }
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
if (ShowIDRows) if (ShowIDRows)
{ {
@ -2243,11 +2241,8 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
"</tr>"); "</tr>");
} }
/***** End table *****/
fprintf (Gbl.F.Out,"</table>");
/***** End frame *****/ /***** End frame *****/
Lay_EndRoundFrame (); Lay_EndRoundFrameTable ();
} }
/*****************************************************************************/ /*****************************************************************************/
@ -2277,7 +2272,7 @@ static void Rec_PutIconsCommands (void)
Act_Actions[Gbl.Action.Act].BrowserWindow == Act_THIS_WINDOW && // Only in main window Act_Actions[Gbl.Action.Act].BrowserWindow == Act_THIS_WINDOW && // Only in main window
Gbl.Usrs.Me.Logged) // Only if I am logged Gbl.Usrs.Me.Logged) // Only if I am logged
{ {
fprintf (Gbl.F.Out,"<div class=\"FRAME_ICONS\">"); fprintf (Gbl.F.Out,"<div class=\"FRAME_ICO\">");
/***** Button to edit my record card *****/ /***** Button to edit my record card *****/
if (ItsMe) if (ItsMe)
@ -2797,7 +2792,7 @@ static void Rec_ShowRole (struct UsrData *UsrDat,
fprintf (Gbl.F.Out," />" fprintf (Gbl.F.Out," />"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"%s", "%s",
Gbl.Prefs.IconsURL,Usr_StringsSexDB[Sex], Gbl.Prefs.IconsURL,Usr_StringsSexDB[Sex],
Txt_SEX_SINGULAR_Abc[Sex], Txt_SEX_SINGULAR_Abc[Sex],
@ -3541,14 +3536,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
Lay_ShowAlert (Lay_WARNING,Txt_Please_fill_in_your_centre_and_department); Lay_ShowAlert (Lay_WARNING,Txt_Please_fill_in_your_centre_and_department);
/***** Start table *****/ /***** Start table *****/
Lay_StartRoundFrame ("800px", Lay_StartRoundFrameTable ("800px",
IAmTeacher ? Txt_Institution_centre_and_department : IAmTeacher ? Txt_Institution_centre_and_department :
Txt_Institution, Txt_Institution,
NULL,Hlp_PROFILE_Institution); NULL,Hlp_PROFILE_Institution,2);
/***** Country *****/ /***** Country *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<td class=\"%s RIGHT_MIDDLE\">" "<td class=\"%s RIGHT_MIDDLE\">"
"%s:" "%s:"
"</td>" "</td>"

View File

@ -269,7 +269,7 @@ static void Rep_PutLinkToMyUsageReport (struct Rep_Report *Report)
"<a href=\"%s\" class=\"FILENAME\"" "<a href=\"%s\" class=\"FILENAME\""
" title=\"%s\" target=\"_blank\">" " title=\"%s\" target=\"_blank\">"
"<img src=\"%s/report64x64.png\" alt=\"%s\"" "<img src=\"%s/report64x64.png\" alt=\"%s\""
" class=\"ICON64x64\" /><br />" " class=\"ICO64x64\" /><br />"
"%s" "%s"
"</a>" "</a>"
"</div>", "</div>",

View File

@ -393,7 +393,7 @@ void Sch_PutMagnifyingGlassButton (const char *Icon)
/***** Send button *****/ /***** Send button *****/
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Icon, Icon,
Txt_Search, Txt_Search,

View File

@ -1052,10 +1052,10 @@ static void Soc_PutLinkToViewOldPublishings (void)
"return false;\">" "return false;\">"
"<img id=\"get_old_timeline\"" "<img id=\"get_old_timeline\""
" src=\"%s/recycle16x16.gif\" alt=\"%s\" title=\"%s\"" " src=\"%s/recycle16x16.gif\" alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<img id=\"getting_old_timeline\"" "<img id=\"getting_old_timeline\""
" src=\"%s/working16x16.gif\" alt=\"%s\" title=\"%s\"" " src=\"%s/working16x16.gif\" alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" style=\"display:none;\" />" // Animated icon hidden " class=\"ICO20x20\" style=\"display:none;\" />" // Animated icon hidden
"&nbsp;%s" "&nbsp;%s"
"</a>" "</a>"
"</div>", "</div>",
@ -1287,7 +1287,7 @@ static void Soc_WriteSocialNote (const struct SocialNote *SocNot,
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_BOTTOM_RIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_BOTTOM_RIGHT\">"
"<div class=\"SOCIAL_ICONS_FAV_SHA_REM\">"); "<div class=\"SOCIAL_ICOS_FAV_SHA_REM\">");
/* Put icon to mark this social note as favourite */ /* Put icon to mark this social note as favourite */
if (IAmTheAuthor) // I am the author if (IAmTheAuthor) // I am the author
@ -1666,11 +1666,11 @@ static void Soc_PutFormGoToAction (const struct SocialNote *SocNot)
} }
/***** Link and end form *****/ /***** Link and end form *****/
sprintf (Class,"%s ICON_HIGHLIGHT",The_ClassFormBold[Gbl.Prefs.Theme]); sprintf (Class,"%s ICO_HIGHLIGHT",The_ClassFormBold[Gbl.Prefs.Theme]);
Act_LinkFormSubmitUnique (Txt_SOCIAL_NOTE[SocNot->NoteType],Class); Act_LinkFormSubmitUnique (Txt_SOCIAL_NOTE[SocNot->NoteType],Class);
fprintf (Gbl.F.Out,"<img src=\"%s/%s\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s" "&nbsp;%s"
"</a>", "</a>",
Gbl.Prefs.IconsURL,Soc_Icons[SocNot->NoteType], Gbl.Prefs.IconsURL,Soc_Icons[SocNot->NoteType],
@ -2166,12 +2166,12 @@ static void Soc_PutIconToToggleCommentSocialNote (const char UniqueId[Act_MAX_LE
extern const char *Txt_Comment; extern const char *Txt_Comment;
/***** Link to toggle on/off the form to comment a social note *****/ /***** Link to toggle on/off the form to comment a social note *****/
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_COMMENT ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_COMMENT ICO_HIGHLIGHT\">"
"<a href=\"\"" "<a href=\"\""
" onclick=\"toggleDisplay('%s');return false;\" />" " onclick=\"toggleDisplay('%s');return false;\" />"
"<img src=\"%s/write64x64.gif\"" "<img src=\"%s/write64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</a>" "</a>"
"</div>", "</div>",
UniqueId, UniqueId,
@ -2188,10 +2188,10 @@ static void Soc_PutIconCommentDisabled (void)
extern const char *Txt_Comment; extern const char *Txt_Comment;
/***** Disabled icon to comment a social note *****/ /***** Disabled icon to comment a social note *****/
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_COMMENT_DISABLED\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_COMMENT_DISABLED\">"
"<img src=\"%s/write64x64.gif\"" "<img src=\"%s/write64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Comment,Txt_Comment); Txt_Comment,Txt_Comment);
@ -2488,11 +2488,11 @@ static void Soc_PutFormToRemoveComment (long PubCod)
else else
Act_FormStartUnique (ActReqRemSocComGbl); Act_FormStartUnique (ActReqRemSocComGbl);
Soc_PutHiddenParamPubCod (PubCod); Soc_PutHiddenParamPubCod (PubCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_REMOVE ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_REMOVE ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/remove-on64x64.png\"" " src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
@ -2518,11 +2518,11 @@ static void Soc_PutFormToFavSocialComment (long PubCod)
else else
Act_FormStartUnique (ActFavSocComGbl); Act_FormStartUnique (ActFavSocComGbl);
Soc_PutHiddenParamPubCod (PubCod); Soc_PutHiddenParamPubCod (PubCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_FAV ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_FAV ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/fav64x64.png\"" " src=\"%s/fav64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Mark_as_favourite,Txt_Mark_as_favourite); Txt_Mark_as_favourite,Txt_Mark_as_favourite);
@ -2544,10 +2544,10 @@ static void Soc_PutDisabledIconShare (unsigned NumShared)
strcpy (Gbl.Title,Txt_SOCIAL_NOTE_Not_shared_by_anyone); strcpy (Gbl.Title,Txt_SOCIAL_NOTE_Not_shared_by_anyone);
/***** Disabled icon to share *****/ /***** Disabled icon to share *****/
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_SHARE_DISABLED\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_SHARE_DISABLED\">"
"<img src=\"%s/share64x64.png\"" "<img src=\"%s/share64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
@ -2568,10 +2568,10 @@ static void Soc_PutDisabledIconFav (unsigned NumFavs)
strcpy (Gbl.Title,Txt_SOCIAL_NOTE_Not_favourited_by_anyone); strcpy (Gbl.Title,Txt_SOCIAL_NOTE_Not_favourited_by_anyone);
/***** Disabled icon to mark as favourite *****/ /***** Disabled icon to mark as favourite *****/
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_FAV_DISABLED\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_FAV_DISABLED\">"
"<img src=\"%s/fav64x64.png\"" "<img src=\"%s/fav64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
@ -2595,11 +2595,11 @@ static void Soc_PutFormToShareSocialNote (long NotCod)
else else
Act_FormStartUnique (ActShaSocNotGbl); Act_FormStartUnique (ActShaSocNotGbl);
Soc_PutHiddenParamNotCod (NotCod); Soc_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_SHARE ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_SHARE ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/share64x64.png\"" " src=\"%s/share64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Share,Txt_Share); Txt_Share,Txt_Share);
@ -2624,11 +2624,11 @@ static void Soc_PutFormToFavSocialNote (long NotCod)
else else
Act_FormStartUnique (ActFavSocNotGbl); Act_FormStartUnique (ActFavSocNotGbl);
Soc_PutHiddenParamNotCod (NotCod); Soc_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_FAV ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_FAV ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/fav64x64.png\"" " src=\"%s/fav64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Mark_as_favourite,Txt_Mark_as_favourite); Txt_Mark_as_favourite,Txt_Mark_as_favourite);
@ -2653,11 +2653,11 @@ static void Soc_PutFormToUnshareSocialNote (long NotCod)
else else
Act_FormStartUnique (ActUnsSocNotGbl); Act_FormStartUnique (ActUnsSocNotGbl);
Soc_PutHiddenParamNotCod (NotCod); Soc_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_SHARE ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_SHARE ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/shared64x64.png\"" " src=\"%s/shared64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_SOCIAL_NOTE_Shared,Txt_SOCIAL_NOTE_Shared); Txt_SOCIAL_NOTE_Shared,Txt_SOCIAL_NOTE_Shared);
@ -2682,11 +2682,11 @@ static void Soc_PutFormToUnfavSocialNote (long NotCod)
else else
Act_FormStartUnique (ActUnfSocNotGbl); Act_FormStartUnique (ActUnfSocNotGbl);
Soc_PutHiddenParamNotCod (NotCod); Soc_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_FAV ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_FAV ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/faved64x64.png\"" " src=\"%s/faved64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_SOCIAL_NOTE_Favourite,Txt_SOCIAL_NOTE_Favourite); Txt_SOCIAL_NOTE_Favourite,Txt_SOCIAL_NOTE_Favourite);
@ -2711,11 +2711,11 @@ static void Soc_PutFormToUnfavSocialComment (long PubCod)
else else
Act_FormStartUnique (ActUnfSocComGbl); Act_FormStartUnique (ActUnfSocComGbl);
Soc_PutHiddenParamPubCod (PubCod); Soc_PutHiddenParamPubCod (PubCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_FAV ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_FAV ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/faved64x64.png\"" " src=\"%s/faved64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_SOCIAL_NOTE_Favourite,Txt_SOCIAL_NOTE_Favourite); Txt_SOCIAL_NOTE_Favourite,Txt_SOCIAL_NOTE_Favourite);
@ -2740,11 +2740,11 @@ static void Soc_PutFormToRemoveSocialPublishing (long NotCod)
else else
Act_FormStartUnique (ActReqRemSocPubGbl); Act_FormStartUnique (ActReqRemSocPubGbl);
Soc_PutHiddenParamNotCod (NotCod); Soc_PutHiddenParamNotCod (NotCod);
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICON_REMOVE ICON_HIGHLIGHT\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_ICO_REMOVE ICO_HIGHLIGHT\">"
"<input type=\"image\"" "<input type=\"image\""
" src=\"%s/remove-on64x64.png\"" " src=\"%s/remove-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Remove, Txt_Remove,
@ -4339,7 +4339,7 @@ static void Soc_ShowSharersOrFavers (unsigned NumUsrs,const char *Query)
fprintf (Gbl.F.Out,"<div class=\"SOCIAL_SHARER\">" fprintf (Gbl.F.Out,"<div class=\"SOCIAL_SHARER\">"
"<img src=\"%s/ellipsis32x32.gif\"" "<img src=\"%s/ellipsis32x32.gif\""
" alt=\"%u\" title=\"%u\"" " alt=\"%u\" title=\"%u\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</div>", "</div>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
NumUsrs - NumUsrsShown, NumUsrs - NumUsrsShown,

View File

@ -609,8 +609,7 @@ void Sta_AskShowGblHits (void)
/***** Start frame *****/ /***** Start frame *****/
fprintf (Gbl.F.Out,"<section id=\"stat_form\">"); fprintf (Gbl.F.Out,"<section id=\"stat_form\">");
Lay_StartRoundFrame (NULL,Txt_Statistics_of_all_visits,NULL,NULL); Lay_StartRoundFrameTable (NULL,Txt_Statistics_of_all_visits,NULL,NULL,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Start and end dates for the search *****/ /***** Start and end dates for the search *****/
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (); Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday ();
@ -694,11 +693,8 @@ void Sta_AskShowGblHits (void)
/***** Hidden param used to get client time zone *****/ /***** Hidden param used to get client time zone *****/
Dat_PutHiddenParBrowserTZDiff (); Dat_PutHiddenParBrowserTZDiff ();
/***** Send button *****/ /***** End frame with button *****/
Lay_PutConfirmButton (Txt_Show_hits); Lay_EndRoundFrameWithButton (Lay_CONFIRM_BUTTON,Txt_Show_hits);
/***** End frame *****/
Lay_EndRoundFrame ();
fprintf (Gbl.F.Out,"</section>"); fprintf (Gbl.F.Out,"</section>");
/***** End form *****/ /***** End form *****/
@ -3977,9 +3973,8 @@ static void Sta_GetAndShowUsersStats (void)
extern const char *Txt_Average_number_of_users_belonging_to_a_course; extern const char *Txt_Average_number_of_users_belonging_to_a_course;
/***** Number of users *****/ /***** Number of users *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS],
NULL,Hlp_STATS_Figures_users); NULL,Hlp_STATS_Figures_users,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"RIGHT_MIDDLE\">" "<th class=\"RIGHT_MIDDLE\">"
@ -4025,9 +4020,9 @@ static void Sta_GetAndShowUsersRanking (void)
extern const char *Txt_Messages; extern const char *Txt_Messages;
extern const char *Txt_Followers; extern const char *Txt_Followers;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS_RANKING], /***** Start table *****/
NULL,Hlp_STATS_Figures_ranking); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_USERS_RANKING],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_ranking,2);
/***** Header *****/ /***** Header *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -4079,6 +4074,7 @@ static void Sta_GetAndShowUsersRanking (void)
fprintf (Gbl.F.Out,"</td>" fprintf (Gbl.F.Out,"</td>"
"</tr>"); "</tr>");
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -4092,9 +4088,8 @@ static void Sta_GetAndShowHierarchyStats (void)
extern const char *Hlp_STATS_Figures_hierarchy; extern const char *Hlp_STATS_Figures_hierarchy;
extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES]; extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES];
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_HIERARCHY], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_HIERARCHY],
NULL,Hlp_STATS_Figures_hierarchy); NULL,Hlp_STATS_Figures_hierarchy,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Sta_WriteHeadDegsCrssInSWAD (); Sta_WriteHeadDegsCrssInSWAD ();
Sta_GetAndShowNumCtysInSWAD (); Sta_GetAndShowNumCtysInSWAD ();
Sta_GetAndShowNumInssInSWAD (); Sta_GetAndShowNumInssInSWAD ();
@ -4245,7 +4240,7 @@ static void Sta_GetAndShowNumCtysInSWAD (void)
"<td class=\"TIT_TBL LEFT_MIDDLE\">" "<td class=\"TIT_TBL LEFT_MIDDLE\">"
"<img src=\"%s/cty64x64.gif\"" "<img src=\"%s/cty64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s:" "&nbsp;%s:"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
@ -4370,7 +4365,7 @@ static void Sta_GetAndShowNumInssInSWAD (void)
"<td class=\"TIT_TBL LEFT_MIDDLE\">" "<td class=\"TIT_TBL LEFT_MIDDLE\">"
"<img src=\"%s/ins64x64.gif\"" "<img src=\"%s/ins64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s:" "&nbsp;%s:"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
@ -4485,7 +4480,7 @@ static void Sta_GetAndShowNumCtrsInSWAD (void)
"<td class=\"TIT_TBL LEFT_MIDDLE\">" "<td class=\"TIT_TBL LEFT_MIDDLE\">"
"<img src=\"%s/ctr64x64.gif\"" "<img src=\"%s/ctr64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s:" "&nbsp;%s:"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
@ -4590,7 +4585,7 @@ static void Sta_GetAndShowNumDegsInSWAD (void)
"<td class=\"TIT_TBL LEFT_MIDDLE\">" "<td class=\"TIT_TBL LEFT_MIDDLE\">"
"<img src=\"%s/deg64x64.gif\"" "<img src=\"%s/deg64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s:" "&nbsp;%s:"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
@ -4685,7 +4680,7 @@ static void Sta_GetAndShowNumCrssInSWAD (void)
"<td class=\"TIT_TBL LEFT_MIDDLE\">" "<td class=\"TIT_TBL LEFT_MIDDLE\">"
"<img src=\"%s/crs64x64.gif\"" "<img src=\"%s/crs64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"&nbsp;%s:" "&nbsp;%s:"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
@ -5324,10 +5319,9 @@ static void Sta_GetAndShowFileBrowsersStats (void)
}; };
unsigned NumStat; unsigned NumStat;
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLDERS_AND_FILES],
NULL,Hlp_STATS_Figures_folders_and_files); NULL,Hlp_STATS_Figures_folders_and_files,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
Sta_WriteStatsExpTreesTableHead (); Sta_WriteStatsExpTreesTableHead ();
@ -6392,10 +6386,9 @@ static void Sta_GetAndShowOERsStats (void)
Brw_License_t License; Brw_License_t License;
unsigned long NumFiles[2]; unsigned long NumFiles[2];
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_OER], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_OER],
NULL,Hlp_STATS_Figures_open_educational_resources_oer); NULL,Hlp_STATS_Figures_open_educational_resources_oer,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6583,10 +6576,9 @@ static void Sta_GetAndShowAssignmentsStats (void)
if ((NumCoursesWithAssignments = Asg_GetNumCoursesWithAssignments (Gbl.Scope.Current)) != 0) if ((NumCoursesWithAssignments = Asg_GetNumCoursesWithAssignments (Gbl.Scope.Current)) != 0)
NumAssignmentsPerCourse = (float) NumAssignments / (float) NumCoursesWithAssignments; NumAssignmentsPerCourse = (float) NumAssignments / (float) NumCoursesWithAssignments;
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ASSIGNMENTS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ASSIGNMENTS],
NULL,Hlp_STATS_Figures_assignments); NULL,Hlp_STATS_Figures_assignments,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6654,10 +6646,9 @@ static void Sta_GetAndShowTestsStats (void)
Tst_AnswerType_t AnsType; Tst_AnswerType_t AnsType;
struct Tst_Stats Stats; struct Tst_Stats Stats;
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_TESTS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_TESTS],
NULL,Hlp_STATS_Figures_tests); NULL,Hlp_STATS_Figures_tests,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -6825,9 +6816,9 @@ static void Sta_GetAndShowSocialActivityStats (void)
unsigned NumUsrs; unsigned NumUsrs;
unsigned NumUsrsTotal; unsigned NumUsrsTotal;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY], /***** Start table *****/
NULL,Hlp_STATS_Figures_public_activity); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SOCIAL_ACTIVITY],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_public_activity,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -7079,6 +7070,7 @@ static void Sta_GetAndShowSocialActivityStats (void)
NumUsrs ? (float) NumSocialNotes / (float) NumUsrs : NumUsrs ? (float) NumSocialNotes / (float) NumUsrs :
0.0); 0.0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -7109,9 +7101,9 @@ static void Sta_GetAndShowFollowStats (void)
unsigned NumUsrs; unsigned NumUsrs;
float Average; float Average;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLLOW], /***** Start table *****/
NULL,Hlp_STATS_Figures_followed_followers); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FOLLOW],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_followed_followers,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -7338,6 +7330,7 @@ static void Sta_GetAndShowFollowStats (void)
Average); Average);
} }
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -7366,17 +7359,16 @@ static void Sta_GetAndShowForumStats (void)
StatsForum.NumPosts = 0; StatsForum.NumPosts = 0;
StatsForum.NumUsrsToBeNotifiedByEMail = 0; StatsForum.NumUsrsToBeNotifiedByEMail = 0;
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FORUMS],
NULL,Hlp_STATS_Figures_forums); NULL,Hlp_STATS_Figures_forums,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
"<th class=\"LEFT_TOP\" style=\"width:20px;\">" "<th class=\"LEFT_TOP\" style=\"width:20px;\">"
"<img src=\"%s/forum64x64.gif\"" "<img src=\"%s/forum64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</th>" "</th>"
"<th class=\"LEFT_TOP\">" "<th class=\"LEFT_TOP\">"
"%s" "%s"
@ -7602,7 +7594,7 @@ static void Sta_WriteForumTitleAndStats (For_ForumType_t ForumType,
"<td class=\"LEFT_TOP\" style=\"width:20px;\">" "<td class=\"LEFT_TOP\" style=\"width:20px;\">"
"<img src=\"%s/%s\"" "<img src=\"%s/%s\""
" alt=\"%s%s\" title=\"%s%s\"" " alt=\"%s%s\" title=\"%s%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"DAT LEFT_TOP\">" "<td class=\"DAT LEFT_TOP\">"
"%s%s" "%s%s"
@ -7722,9 +7714,9 @@ static void Sta_GetAndShowNumUsrsPerNotifyEvent (void)
unsigned NumMailsTotal = 0; unsigned NumMailsTotal = 0;
unsigned NumMails[Ntf_NUM_NOTIFY_EVENTS]; unsigned NumMails[Ntf_NUM_NOTIFY_EVENTS];
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS], /***** Start table *****/
NULL,Hlp_STATS_Figures_notifications); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTIFY_EVENTS],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_notifications,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8025,6 +8017,7 @@ static void Sta_GetAndShowNumUsrsPerNotifyEvent (void)
NumEventsTotal, NumEventsTotal,
NumMailsTotal); NumMailsTotal);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -8062,10 +8055,9 @@ static void Sta_GetAndShowNoticesStats (void)
NumTotalNotices += NumNoticesDeleted; NumTotalNotices += NumNoticesDeleted;
NumTotalNotifications += NumNotif; NumTotalNotifications += NumNotif;
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_NOTICES],
NULL,Hlp_STATS_Figures_notices); NULL,Hlp_STATS_Figures_notices,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8146,10 +8138,9 @@ static void Sta_GetAndShowMsgsStats (void)
NumMsgsReceivedAndDeleted = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_DELETED ); NumMsgsReceivedAndDeleted = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_DELETED );
NumMsgsReceivedAndNotified = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_NOTIFIED); NumMsgsReceivedAndNotified = Msg_GetNumMsgsReceived (Gbl.Scope.Current,Msg_STATUS_NOTIFIED);
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MESSAGES],
NULL,Hlp_STATS_Figures_messages); NULL,Hlp_STATS_Figures_messages,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8252,10 +8243,9 @@ static void Sta_GetAndShowSurveysStats (void)
NumQstsPerSurvey = Svy_GetNumQstsPerCrsSurvey (Gbl.Scope.Current); NumQstsPerSurvey = Svy_GetNumQstsPerCrsSurvey (Gbl.Scope.Current);
} }
/***** Table start *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SURVEYS], Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SURVEYS],
NULL,Hlp_STATS_Figures_surveys); NULL,Hlp_STATS_Figures_surveys,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Write table heading *****/ /***** Write table heading *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8320,9 +8310,9 @@ static void Sta_GetAndShowNumUsrsPerPrivacy (void)
extern const char *Txt_Public_profile; extern const char *Txt_Public_profile;
extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES]; extern const char *Txt_STAT_USE_STAT_TYPES[Sta_NUM_FIGURES];
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_PRIVACY], /***** Start table *****/
NULL,Hlp_STATS_Figures_privacy); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_PRIVACY],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_privacy,2);
/***** Privacy for photo *****/ /***** Privacy for photo *****/
Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Photo,"PhotoVisibility"); Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Photo,"PhotoVisibility");
@ -8330,6 +8320,7 @@ static void Sta_GetAndShowNumUsrsPerPrivacy (void)
/***** Privacy for public profile *****/ /***** Privacy for public profile *****/
Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Public_profile,"ProfileVisibility"); Sta_GetAndShowNumUsrsPerPrivacyForAnObject (Txt_Public_profile,"ProfileVisibility");
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -8487,9 +8478,9 @@ static void Sta_GetAndShowNumUsrsPerLanguage (void)
unsigned NumUsrs[1+Txt_NUM_LANGUAGES]; unsigned NumUsrs[1+Txt_NUM_LANGUAGES];
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_LANGUAGES], /***** Start table *****/
NULL,Hlp_STATS_Figures_language); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_LANGUAGES],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_language,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8605,6 +8596,7 @@ static void Sta_GetAndShowNumUsrsPerLanguage (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -8627,9 +8619,9 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
unsigned NumUsrs[7]; // 7: seven days in a week unsigned NumUsrs[7]; // 7: seven days in a week
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK], /***** Start table *****/
NULL,Hlp_STATS_Figures_calendar); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_FIRST_DAY_OF_WEEK],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_calendar,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8730,7 +8722,7 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
"<td class=\"CENTER_MIDDLE\">" "<td class=\"CENTER_MIDDLE\">"
"<img src=\"%s/first-day-of-week-%u-64x64.png\"" "<img src=\"%s/first-day-of-week-%u-64x64.png\""
" alt=\"%s\" title=\"%s: %s\"" " alt=\"%s\" title=\"%s: %s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
"%u" "%u"
@ -8747,6 +8739,7 @@ static void Sta_GetAndShowNumUsrsPerFirstDayOfWeek (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -8768,9 +8761,9 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
unsigned NumUsrs[The_NUM_THEMES]; unsigned NumUsrs[The_NUM_THEMES];
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_THEMES], /***** Start table *****/
NULL,Hlp_STATS_Figures_theme); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_THEMES],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_theme,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -8886,6 +8879,7 @@ static void Sta_GetAndShowNumUsrsPerTheme (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -8907,9 +8901,9 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
unsigned NumUsrs[Ico_NUM_ICON_SETS]; unsigned NumUsrs[Ico_NUM_ICON_SETS];
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ICON_SETS], /***** Start table *****/
NULL,Hlp_STATS_Figures_icons); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_ICON_SETS],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_icons,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9008,7 +9002,7 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
"<td class=\"LEFT_MIDDLE\">" "<td class=\"LEFT_MIDDLE\">"
"<img src=\"%s/%s/%s/%s/heart64x64.gif\"" "<img src=\"%s/%s/%s/%s/heart64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
"%u" "%u"
@ -9028,6 +9022,7 @@ static void Sta_GetAndShowNumUsrsPerIconSet (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -9049,9 +9044,9 @@ static void Sta_GetAndShowNumUsrsPerMenu (void)
unsigned NumUsrs[Mnu_NUM_MENUS]; unsigned NumUsrs[Mnu_NUM_MENUS];
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MENUS], /***** Start table *****/
NULL,Hlp_STATS_Figures_menu); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_MENUS],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_menu,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9150,7 +9145,7 @@ static void Sta_GetAndShowNumUsrsPerMenu (void)
"<td class=\"CENTER_MIDDLE\">" "<td class=\"CENTER_MIDDLE\">"
"<img src=\"%s/%s32x32.gif\"" "<img src=\"%s/%s32x32.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</td>" "</td>"
"<td class=\"DAT RIGHT_MIDDLE\">" "<td class=\"DAT RIGHT_MIDDLE\">"
"%u" "%u"
@ -9167,6 +9162,7 @@ static void Sta_GetAndShowNumUsrsPerMenu (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }
@ -9187,9 +9183,9 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
unsigned NumUsrsTotal = 0; unsigned NumUsrsTotal = 0;
extern const char *Txt_LAYOUT_SIDE_COLUMNS[4]; extern const char *Txt_LAYOUT_SIDE_COLUMNS[4];
Lay_StartRoundFrame (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SIDE_COLUMNS], /***** Start table *****/
NULL,Hlp_STATS_Figures_columns); Lay_StartRoundFrameTable (NULL,Txt_STAT_USE_STAT_TYPES[Sta_SIDE_COLUMNS],
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); NULL,Hlp_STATS_Figures_columns,2);
/***** Heading row *****/ /***** Heading row *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -9305,6 +9301,7 @@ static void Sta_GetAndShowNumUsrsPerSideColumns (void)
(float) NumUsrsTotal : (float) NumUsrsTotal :
0); 0);
/***** End table *****/
Lay_EndRoundFrameTable (); Lay_EndRoundFrameTable ();
} }

View File

@ -222,7 +222,7 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
if (Gbl.Svys.Num) if (Gbl.Svys.Num)
{ {
/***** Table head *****/ /***** Table head *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
"<tr>"); "<tr>");
for (Order = Svy_ORDER_BY_START_DATE; for (Order = Svy_ORDER_BY_START_DATE;
Order <= Svy_ORDER_BY_END_DATE; Order <= Svy_ORDER_BY_END_DATE;
@ -432,7 +432,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,
/***** Start table *****/ /***** Start table *****/
if (ShowOnlyThisSvyComplete) if (ShowOnlyThisSvyComplete)
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Start date/time *****/ /***** Start date/time *****/
UniqueId++; UniqueId++;
@ -1844,13 +1844,11 @@ void Svy_RequestCreatOrEditSvy (void)
Svy_PutParams (); Svy_PutParams ();
/***** Start frame *****/ /***** Start frame *****/
Lay_StartRoundFrame (NULL,ItsANewSurvey ? Txt_New_survey : Lay_StartRoundFrameTable (NULL,ItsANewSurvey ? Txt_New_survey :
Txt_Edit_survey, Txt_Edit_survey,
NULL,ItsANewSurvey ? Hlp_STATS_Surveys_new_survey : NULL,ItsANewSurvey ? Hlp_STATS_Surveys_new_survey :
Hlp_STATS_Surveys_edit_survey); Hlp_STATS_Surveys_edit_survey,
2);
/***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Scope of the survey *****/ /***** Scope of the survey *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -2681,7 +2679,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
Svy_PutParamQstCod (SvyQst->QstCod); Svy_PutParamQstCod (SvyQst->QstCod);
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">");
/***** Stem *****/ /***** Stem *****/
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<tr>"
@ -3210,7 +3208,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
} }
/***** Write the heading *****/ /***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
"<tr>"); "<tr>");
if (Svy->Status.ICanEdit) if (Svy->Status.ICanEdit)
fprintf (Gbl.F.Out,"<th colspan=\"2\"></th>"); fprintf (Gbl.F.Out,"<th colspan=\"2\"></th>");
@ -3261,7 +3259,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
Svy_PutParamQstCod (SvyQst->QstCod); Svy_PutParamQstCod (SvyQst->QstCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Edit_question, Txt_Edit_question,
Txt_Edit_question); Txt_Edit_question);

View File

@ -235,12 +235,10 @@ bool Syl_CheckAndEditSyllabus (void)
ICanEdit = Gbl.Usrs.Me.LoggedRole == Rol_TEACHER || ICanEdit = Gbl.Usrs.Me.LoggedRole == Rol_TEACHER ||
Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM; Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM;
PutIconToEdit = ICanEdit && !Gbl.Syllabus.EditionIsActive; PutIconToEdit = ICanEdit && !Gbl.Syllabus.EditionIsActive;
Lay_StartRoundFrame (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type], Lay_StartRoundFrameTable (NULL,Txt_INFO_TITLE[Gbl.CurrentCrs.Info.Type],
PutIconToEdit ? Inf_PutIconToEditInfo : PutIconToEdit ? Inf_PutIconToEditInfo :
NULL, NULL,
NULL); NULL,1);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_1\">");
/***** Write the current syllabus *****/ /***** Write the current syllabus *****/
Syl_ShowSyllabus (); Syl_ShowSyllabus ();
@ -618,7 +616,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
StrItemCod); StrItemCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/up_on16x16.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/up_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -627,7 +625,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
else else
fprintf (Gbl.F.Out,"<img src=\"%s/up_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/up_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Movement_not_allowed, Txt_Movement_not_allowed,
Txt_Movement_not_allowed); Txt_Movement_not_allowed);
@ -648,7 +646,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/down_on16x16.gif\"" " src=\"%s/down_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -657,7 +655,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
else else
fprintf (Gbl.F.Out,"<img src=\"%s/down_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/down_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Movement_not_allowed, Txt_Movement_not_allowed,
Txt_Movement_not_allowed); Txt_Movement_not_allowed);
@ -675,7 +673,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/left_on16x16.gif\"" " src=\"%s/left_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -684,7 +682,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
else else
fprintf (Gbl.F.Out,"<img src=\"%s/left_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/left_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Movement_not_allowed, Txt_Movement_not_allowed,
Txt_Movement_not_allowed); Txt_Movement_not_allowed);
@ -703,7 +701,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
fprintf (Gbl.F.Out,"<input type=\"image\"" fprintf (Gbl.F.Out,"<input type=\"image\""
" src=\"%s/right_on16x16.gif\"" " src=\"%s/right_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -712,7 +710,7 @@ static void Syl_ShowRowSyllabus (unsigned NumItem,
else else
fprintf (Gbl.F.Out,"<img src=\"%s/right_off16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/right_off16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Movement_not_allowed, Txt_Movement_not_allowed,
Txt_Movement_not_allowed); Txt_Movement_not_allowed);

View File

@ -119,7 +119,7 @@ void Tab_DrawTabs (void)
{ {
fprintf (Gbl.F.Out,"<div"); // This div must be present even in current tab in order to render properly the tab fprintf (Gbl.F.Out,"<div"); // This div must be present even in current tab in order to render properly the tab
if (NumTab != Gbl.Action.Tab) if (NumTab != Gbl.Action.Tab)
fprintf (Gbl.F.Out," class=\"ICON_HIGHLIGHT\""); fprintf (Gbl.F.Out," class=\"ICO_HIGHLIGHT\"");
fprintf (Gbl.F.Out,">"); fprintf (Gbl.F.Out,">");
Act_FormStart (ActMnu); Act_FormStart (ActMnu);
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) NumTab); Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) NumTab);
@ -128,7 +128,7 @@ void Tab_DrawTabs (void)
The_ClassTxtTabOff[Gbl.Prefs.Theme],NULL); The_ClassTxtTabOff[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" style=\"margin:3px;\" />" " class=\"ICO40x40\" style=\"margin:3px;\" />"
"<div class=\"TAB_TXT %s\">%s</div>" "<div class=\"TAB_TXT %s\">%s</div>"
"</a>", "</a>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION, Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
@ -141,10 +141,10 @@ void Tab_DrawTabs (void)
Act_FormEnd (); Act_FormEnd ();
} }
else else
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">" fprintf (Gbl.F.Out,"<div class=\"ICO_HIDDEN\">"
"<img src=\"%s/%s/%s\"" "<img src=\"%s/%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" style=\"margin:3px;\" />" " class=\"ICO40x40\" style=\"margin:3px;\" />"
"<div class=\"TAB_TXT %s\">%s</div>", "<div class=\"TAB_TXT %s\">%s</div>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION, Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Tab_TabIcons[NumTab], Tab_TabIcons[NumTab],

View File

@ -427,7 +427,7 @@ void Tst_ShowNewTestExam (void)
Par_PutHiddenParamUnsigned ("NumQst",Gbl.Test.NumQsts); Par_PutHiddenParamUnsigned ("NumQst",Gbl.Test.NumQsts);
/***** List the questions *****/ /***** List the questions *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_10\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
Tst_ShowTestQuestionsWhenSeeing (mysql_res); Tst_ShowTestQuestionsWhenSeeing (mysql_res);
fprintf (Gbl.F.Out,"</table>"); fprintf (Gbl.F.Out,"</table>");
@ -525,7 +525,7 @@ void Tst_AssessTestExam (void)
} }
/***** Write answers and solutions *****/ /***** Write answers and solutions *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_10\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
Tst_ShowTstResultAfterAssess (TstCod,&NumQstsNotBlank,&TotalScore); Tst_ShowTstResultAfterAssess (TstCod,&NumQstsNotBlank,&TotalScore);
fprintf (Gbl.F.Out,"</table>"); fprintf (Gbl.F.Out,"</table>");
@ -1662,7 +1662,7 @@ static void Tst_ShowFormSelTags (unsigned long NumRows,MYSQL_RES *mysql_res,
fprintf (Gbl.F.Out,"eye-off64x64.png\" alt=\"%s\" title=\"%s", fprintf (Gbl.F.Out,"eye-off64x64.png\" alt=\"%s\" title=\"%s",
Txt_Tag_allowed, Txt_Tag_allowed,
Txt_Tag_allowed); Txt_Tag_allowed);
fprintf (Gbl.F.Out,"\" class=\"ICON20x20\" />" fprintf (Gbl.F.Out,"\" class=\"ICO20x20\" />"
"</td>"); "</td>");
} }
fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">" fprintf (Gbl.F.Out,"<td class=\"DAT LEFT_MIDDLE\">"
@ -1708,8 +1708,7 @@ static void Tst_ShowFormEditTags (void)
if ((NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res))) if ((NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res)))
{ {
/***** Start table *****/ /***** Start table *****/
Lay_StartRoundFrame (NULL,Txt_Tags,NULL,Hlp_ASSESSMENT_Tests); Lay_StartRoundFrameTable (NULL,Txt_Tags,NULL,Hlp_ASSESSMENT_Tests,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
/***** Show tags *****/ /***** Show tags *****/
for (NumRow = 0; for (NumRow = 0;
@ -1765,7 +1764,7 @@ static void Tst_PutIconEnable (long TagCod,const char *TagTxt)
sprintf (Gbl.Title,Txt_Tag_X_not_allowed_Click_to_allow_it,TagTxt); sprintf (Gbl.Title,Txt_Tag_X_not_allowed_Click_to_allow_it,TagTxt);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-slash-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-slash-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -1787,7 +1786,7 @@ static void Tst_PutIconDisable (long TagCod,const char *TagTxt)
sprintf (Gbl.Title,Txt_Tag_X_allowed_Click_to_disable_it,TagTxt); sprintf (Gbl.Title,Txt_Tag_X_allowed_Click_to_disable_it,TagTxt);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-on64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/eye-on64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Gbl.Title, Gbl.Title,
Gbl.Title); Gbl.Title);
@ -2678,7 +2677,7 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
Tst_PutIconsTests,Hlp_ASSESSMENT_Tests); Tst_PutIconsTests,Hlp_ASSESSMENT_Tests);
/***** Write the heading *****/ /***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE_MARGIN CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL_MARGIN CELLS_PAD_2\">"
"<tr>" "<tr>"
"<th colspan=\"2\"></th>" "<th colspan=\"2\"></th>"
"<th class=\"CENTER_TOP\">" "<th class=\"CENTER_TOP\">"
@ -2785,7 +2784,7 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
Par_PutHiddenParamLong ("QstCod",Gbl.Test.QstCod); Par_PutHiddenParamLong ("QstCod",Gbl.Test.QstCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit64x64.png\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Edit_question, Txt_Edit_question,
Txt_Edit_question); Txt_Edit_question);
@ -3071,7 +3070,7 @@ static void Tst_WriteAnswersOfAQstEdit (long QstCod)
if (row[6][0] == 'Y') if (row[6][0] == 'Y')
fprintf (Gbl.F.Out,"<img src=\"%s/ok_on16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ok_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_TEST_Correct_answer, Txt_TEST_Correct_answer,
Txt_TEST_Correct_answer); Txt_TEST_Correct_answer);
@ -3534,7 +3533,7 @@ static void Tst_WriteChoiceAnsAssessExam (unsigned NumQst,MYSQL_RES *mysql_res,
if (AnswersUsr[Indexes[NumOpt]] == true) // This answer has been selected by the user if (AnswersUsr[Indexes[NumOpt]] == true) // This answer has been selected by the user
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
(Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_EACH_GOOD_BAD || (Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_EACH_GOOD_BAD ||
Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_FULL_FEEDBACK) ? Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_FULL_FEEDBACK) ?
@ -3553,7 +3552,7 @@ static void Tst_WriteChoiceAnsAssessExam (unsigned NumQst,MYSQL_RES *mysql_res,
if (Gbl.Test.Answer.Options[Indexes[NumOpt]].Correct) if (Gbl.Test.Answer.Options[Indexes[NumOpt]].Correct)
fprintf (Gbl.F.Out,"<img src=\"%s/ok_on16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/ok_on16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_TEST_Correct_answer, Txt_TEST_Correct_answer,
Txt_TEST_Correct_answer); Txt_TEST_Correct_answer);
@ -4742,7 +4741,7 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
fprintf (Gbl.F.Out," style=\"display:none;\""); // Hide icon fprintf (Gbl.F.Out," style=\"display:none;\""); // Hide icon
fprintf (Gbl.F.Out," onclick=\"toggleAnswer('%u'); return false;\" />" fprintf (Gbl.F.Out," onclick=\"toggleAnswer('%u'); return false;\" />"
"<img src=\"%s/expand64x64.png\"" "<img src=\"%s/expand64x64.png\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"</a>", "</a>",
NumOpt,Gbl.Prefs.IconsURL, NumOpt,Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
@ -4754,7 +4753,7 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
fprintf (Gbl.F.Out," style=\"display:none;\""); // Hide icon fprintf (Gbl.F.Out," style=\"display:none;\""); // Hide icon
fprintf (Gbl.F.Out," onclick=\"toggleAnswer(%u); return false;\" />" fprintf (Gbl.F.Out," onclick=\"toggleAnswer(%u); return false;\" />"
"<img src=\"%s/contract64x64.png\"" "<img src=\"%s/contract64x64.png\""
" alt=\"%s\" title=\"%s\" class=\"ICON20x20\" />" " alt=\"%s\" title=\"%s\" class=\"ICO20x20\" />"
"</a>", "</a>",
NumOpt,Gbl.Prefs.IconsURL, NumOpt,Gbl.Prefs.IconsURL,
Gbl.Title,Gbl.Title); Gbl.Title,Gbl.Title);
@ -6940,8 +6939,7 @@ void Tst_SelDatesToSeeMyExams (void)
Act_FormStart (ActSeeMyTstExa); Act_FormStart (ActSeeMyTstExa);
/***** Starting and ending dates in the search *****/ /***** Starting and ending dates in the search *****/
Lay_StartRoundFrame (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests); Lay_StartRoundFrameTable (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday (); Dat_PutFormStartEndClientLocalDateTimesWithYesterdayToday ();
/***** Send button and end frame *****/ /***** Send button and end frame *****/
@ -7008,11 +7006,10 @@ void Tst_ShowUsrsExams (void)
Dat_GetIniEndDatesFromForm (); Dat_GetIniEndDatesFromForm ();
/***** Check the number of users whose tests results will be shown *****/ /***** Check the number of users whose tests results will be shown *****/
if (Usr_CountNumUsrsInListOfSelectedUsrs ()) // If some users are selected... if (Usr_CountNumUsrsInListOfSelectedUsrs ()) // If some users are selected...
{ {
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Lay_StartRoundFrame (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests); Lay_StartRoundFrameTable (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Tst_ShowHeaderTestResults (); Tst_ShowHeaderTestResults ();
/***** List the assignments and works of the selected users *****/ /***** List the assignments and works of the selected users *****/
@ -7105,8 +7102,7 @@ void Tst_ShowMyExams (void)
Dat_GetIniEndDatesFromForm (); Dat_GetIniEndDatesFromForm ();
/***** Header of the table with the list of users *****/ /***** Header of the table with the list of users *****/
Lay_StartRoundFrame (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests); Lay_StartRoundFrameTable (NULL,Txt_Exams,NULL,Hlp_ASSESSMENT_Tests,2);
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">");
Tst_ShowHeaderTestResults (); Tst_ShowHeaderTestResults ();
/***** List my results in test exams *****/ /***** List my results in test exams *****/
@ -7279,7 +7275,7 @@ static void Tst_ShowResultsOfTestExams (struct UsrData *UsrDat)
Tst_PutParamTstCod (TstCod); Tst_PutParamTstCod (TstCod);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/file64x64.gif\"" fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/file64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />", " class=\"ICO20x20B\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_See_exam, Txt_See_exam,
Txt_See_exam); Txt_See_exam);
@ -7503,7 +7499,7 @@ void Tst_ShowOneExam (void)
Gbl.CurrentCrs.Crs.CrsCod); Gbl.CurrentCrs.Crs.CrsCod);
/***** Start table *****/ /***** Start table *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_10\">"); fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_10\">");
/***** Header row *****/ /***** Header row *****/
/* Get data of the user who made the exam */ /* Get data of the user who made the exam */

View File

@ -965,7 +965,7 @@ static void TsI_WriteHeadingListImportedQst (void)
extern const char *Txt_Question; extern const char *Txt_Question;
/***** Write the heading *****/ /***** Write the heading *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<table class=\"FRAME_TBL CELLS_PAD_2\">"
"<tr>" "<tr>"
"<th></th>" "<th></th>"
"<th class=\"CENTER_TOP\">" "<th class=\"CENTER_TOP\">"
@ -1029,7 +1029,7 @@ static void TsI_WriteRowImportedQst (struct XMLElement *StemElem,
"<td class=\"BT%u CENTER_TOP\">" "<td class=\"BT%u CENTER_TOP\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.RowEvenOdd, Gbl.RowEvenOdd,
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -1091,7 +1091,7 @@ static void TsI_WriteRowImportedQst (struct XMLElement *StemElem,
if (Gbl.Test.Shuffle) if (Gbl.Test.Shuffle)
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
QuestionExists ? "ok_off" : QuestionExists ? "ok_off" :
"ok_on", "ok_on",
@ -1159,7 +1159,7 @@ static void TsI_WriteRowImportedQst (struct XMLElement *StemElem,
if (Gbl.Test.Answer.Options[NumOpt].Correct) if (Gbl.Test.Answer.Options[NumOpt].Correct)
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />", " class=\"ICO20x20\" />",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
QuestionExists ? "ok_off" : QuestionExists ? "ok_off" :
"ok_on", "ok_on",

View File

@ -278,7 +278,7 @@ void TT_ShowClassTimeTable (void)
/***** Show form to change first day of week *****/ /***** Show form to change first day of week *****/
Cal_ShowFormToSelFirstDayOfWeek (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE ? ActChgCrsTT1stDay : Cal_ShowFormToSelFirstDayOfWeek (Gbl.TimeTable.Type == TT_COURSE_TIMETABLE ? ActChgCrsTT1stDay :
ActChgMyTT1stDay, ActChgMyTT1stDay,
"ICON25x25"); "ICO25x25");
} }
/***** Show the time table *****/ /***** Show the time table *****/

View File

@ -1755,15 +1755,14 @@ void Usr_WriteFormLogin (void)
/***** Start form *****/ /***** Start form *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">"); fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\">");
Act_FormStart (ActAutUsrInt); Act_FormStart (ActAutUsrInt);
Lay_StartRoundFrame (NULL,Txt_Log_in,NULL,Hlp_PROFILE_Log_in); Lay_StartRoundFrameTable (NULL,Txt_Log_in,NULL,Hlp_PROFILE_Log_in,2);
/***** User's ID/nickname and password *****/ /***** User's ID/nickname and password *****/
fprintf (Gbl.F.Out,"<table class=\"FRAME_TABLE CELLS_PAD_2\">" fprintf (Gbl.F.Out,"<tr>"
"<tr>"
"<td class=\"BM\">" "<td class=\"BM\">"
"<img src=\"%s/user64x64.gif\"" "<img src=\"%s/user64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"LEFT_MIDDLE\">" "<td class=\"LEFT_MIDDLE\">"
"<input type=\"text\" id=\"UsrId\" name=\"UsrId\"" "<input type=\"text\" id=\"UsrId\" name=\"UsrId\""
@ -1775,7 +1774,7 @@ void Usr_WriteFormLogin (void)
"<td class=\"BM\">" "<td class=\"BM\">"
"<img src=\"%s/key64x64.gif\"" "<img src=\"%s/key64x64.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>" "</td>"
"<td class=\"LEFT_MIDDLE\">" "<td class=\"LEFT_MIDDLE\">"
"<input type=\"password\" name=\"UsrPwd\"" "<input type=\"password\" name=\"UsrPwd\""
@ -1795,15 +1794,7 @@ void Usr_WriteFormLogin (void)
Txt_password); Txt_password);
/***** Send button and form end *****/ /***** Send button and form end *****/
fprintf (Gbl.F.Out,"<tr>" Lay_EndRoundFrameTableWithButton (Lay_CONFIRM_BUTTON,Txt_Log_in);
"<td colspan=\"2\" class=\"CENTER_MIDDLE\">"
"<button type=\"submit\" class=\"BT_SUBMIT BT_CONFIRM\">"
"%s"
"</button>"
"</td>"
"</tr>",
Txt_Log_in);
Lay_EndRoundFrameTable ();
Act_FormEnd (); Act_FormEnd ();
fprintf (Gbl.F.Out,"</div>"); fprintf (Gbl.F.Out,"</div>");
@ -1841,7 +1832,7 @@ void Usr_WelcomeUsr (void)
Usr_InsertMyBirthday (); Usr_InsertMyBirthday ();
fprintf (Gbl.F.Out,"<img src=\"%s/%s/cake128x128.gif\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s/cake128x128.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON160x160\" />", " class=\"ICO160x160\" />",
Gbl.Prefs.PathIconSet,Cfg_ICON_128x128, Gbl.Prefs.PathIconSet,Cfg_ICON_128x128,
Txt_Happy_birthday, Txt_Happy_birthday,
Txt_Happy_birthday); Txt_Happy_birthday);
@ -1938,7 +1929,7 @@ void Usr_PutFormLogIn (void)
Act_LinkFormSubmit (Txt_Log_in,The_ClassHead[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_Log_in,The_ClassHead[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/login-green64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/login-green64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<span id=\"login_txt\">&nbsp;%s</span>" "<span id=\"login_txt\">&nbsp;%s</span>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -2014,7 +2005,7 @@ void Usr_PutFormLogOut (void)
Act_LinkFormSubmit (Txt_Log_out,The_ClassHead[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_Log_out,The_ClassHead[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/logout-red64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/logout-red64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"<span id=\"login_txt\">&nbsp;%s</span>" "<span id=\"login_txt\">&nbsp;%s</span>"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
@ -2864,7 +2855,7 @@ void Usr_WriteRowUsrMainData (unsigned NumUsr,struct UsrData *UsrDat,
fprintf (Gbl.F.Out,"\">" fprintf (Gbl.F.Out,"\">"
"<img src=\"%s/%s16x16.gif\"" "<img src=\"%s/%s16x16.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
"</td>", "</td>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
UsrDat->Accepted ? "ok_on" : UsrDat->Accepted ? "ok_on" :
@ -5218,7 +5209,7 @@ static void Usr_FormToSelectUsrListType (Act_Action_t NextAction,Usr_ShowUsrsTyp
NULL); NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/%s\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20\" />" " class=\"ICO20x20\" />"
" %s</a>", " %s</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Usr_IconsClassPhotoOrList[ListType], Usr_IconsClassPhotoOrList[ListType],

View File

@ -344,7 +344,7 @@ void ZIP_PutButtonToDownloadZIPOfAFolder (const char *PathInTree,const char *Fil
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassForm[Gbl.Prefs.Theme],NULL); Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassForm[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/download64x64.png\"" fprintf (Gbl.F.Out,"<img src=\"%s/download64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON20x20B\" />" " class=\"ICO20x20B\" />"
"</a>", "</a>",
Gbl.Prefs.IconsURL, Gbl.Prefs.IconsURL,
Txt_Create_ZIP_file, Txt_Create_ZIP_file,
@ -592,11 +592,11 @@ static void ZIP_ShowLinkToDownloadZIP (const char *FileName,const char *URL,
"<a href=\"%s\" class=\"FILENAME\" title=\"%s\" target=\"_blank\">" "<a href=\"%s\" class=\"FILENAME\" title=\"%s\" target=\"_blank\">"
"<img src=\"%s/%s32x32/zip32x32.gif\"" "<img src=\"%s/%s32x32/zip32x32.gif\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"&nbsp;%s&nbsp;" "&nbsp;%s&nbsp;"
"<img src=\"%s/download64x64.png\"" "<img src=\"%s/download64x64.png\""
" alt=\"%s\" title=\"%s\"" " alt=\"%s\" title=\"%s\""
" class=\"ICON40x40\" />" " class=\"ICO40x40\" />"
"</a>" "</a>"
"</td>" "</td>"
"</tr>", "</tr>",