Version 14.48

This commit is contained in:
Antonio Cañas Vargas 2014-12-30 15:14:43 +01:00
parent 1d96852297
commit 89a3fa45a6
18 changed files with 302 additions and 354 deletions

View File

@ -370,6 +370,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
/*********************************** Icons ***********************************/
.ICON16x16 {width:16px; height:16px; vertical-align:middle;}
.ICON16x16B {width:16px; height:16px; vertical-align:middle; display:block;}
.ICON32x32 {width:32px; height:32px; vertical-align:middle;}
.ICON64x64 {width:64px; height:64px; vertical-align:middle;}
@ -487,15 +488,14 @@ a:hover img.CENTRE_PHOTO_SHOW
}
/******************************* User's photo ********************************/
.F12x16 {width: 12px; height: 16px; vertical-align:middle; border-radius:2px;}
.F15x20 {width: 15px; height: 20px; vertical-align:middle; border-radius:2px;}
.F18x24 {width: 18px; height: 24px; vertical-align:middle; border-radius:2px;}
.F24x32 {width: 24px; height: 32px; vertical-align:middle; border-radius:3px;}
.F36x48 {width: 36px; height: 48px; vertical-align:middle; border-radius:4px;}
.F75x100 {width: 75px; height:100px; vertical-align:middle; border-radius:5px;}
.F90x120 {width: 90px; height:120px; vertical-align:middle; border-radius:6px;}
.F120x160 {width:120px; height:160px; vertical-align:middle; border-radius:7px;}
.F150x200 {width:150px; height:200px; vertical-align:middle; border-radius:8px;}
.PHOTO12x16 {width: 12px; height: 16px; vertical-align:middle; border-radius:2px;}
.PHOTO12x16B {width: 12px; height: 16px; vertical-align:middle; border-radius:2px; display:block;}
.PHOTO15x20 {width: 15px; height: 20px; vertical-align:middle; border-radius:2px;}
.PHOTO18x24 {width: 18px; height: 24px; vertical-align:middle; border-radius:2px;}
.PHOTO24x32 {width: 24px; height: 32px; vertical-align:middle; border-radius:3px;}
.PHOTO36x48 {width: 36px; height: 48px; vertical-align:middle; border-radius:4px;}
.PHOTO75x100 {width: 75px; height:100px; vertical-align:middle; border-radius:5px;}
.PHOTO150x200 {width:150px; height:200px; vertical-align:middle; border-radius:8px;}
.IMG_USR
{
width:150px;

View File

@ -223,6 +223,7 @@ p {margin:0;}
/*********************************** Icons ***********************************/
.ICON16x16 {width:16px; height:16px; vertical-align:middle;}
.ICON16x16B {width:16px; height:16px; vertical-align:middle; display:block;}
.ICON32x32 {width:32px; height:32px; vertical-align:middle;}
.ICON64x64 {width:64px; height:64px; vertical-align:middle;}
@ -339,15 +340,14 @@ a:hover img.CENTRE_PHOTO_SHOW
}
/******************************* User's photo ********************************/
.F12x16 {width: 12px; height: 16px; vertical-align:middle; border-radius:2px;}
.F15x20 {width: 15px; height: 20px; vertical-align:middle; border-radius:2px;}
.F18x24 {width: 18px; height: 24px; vertical-align:middle; border-radius:2px;}
.F24x32 {width: 24px; height: 32px; vertical-align:middle; border-radius:3px;}
.F36x48 {width: 36px; height: 48px; vertical-align:middle; border-radius:4px;}
.F75x100 {width: 75px; height:100px; vertical-align:middle; border-radius:5px;}
.F90x120 {width: 90px; height:120px; vertical-align:middle; border-radius:6px;}
.F120x160 {width:120px; height:160px; vertical-align:middle; border-radius:7px;}
.F150x200 {width:150px; height:200px; vertical-align:middle; border-radius:8px;}
.PHOTO12x16 {width: 12px; height: 16px; vertical-align:middle; border-radius:2px;}
.PHOTO12x16B {width: 12px; height: 16px; vertical-align:middle; border-radius:2px; display:block;}
.PHOTO15x20 {width: 15px; height: 20px; vertical-align:middle; border-radius:2px;}
.PHOTO18x24 {width: 18px; height: 24px; vertical-align:middle; border-radius:2px;}
.PHOTO24x32 {width: 24px; height: 32px; vertical-align:middle; border-radius:3px;}
.PHOTO36x48 {width: 36px; height: 48px; vertical-align:middle; border-radius:4px;}
.PHOTO75x100 {width: 75px; height:100px; vertical-align:middle; border-radius:5px;}
.PHOTO150x200 {width:150px; height:200px; vertical-align:middle; border-radius:8px;}
.IMG_USR
{
width:150px;

View File

@ -372,10 +372,9 @@ static void Asg_WriteAsgAuthor (struct Assignment *Asg)
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
/***** Show photo *****/
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16",true);
/***** Write name *****/
strcpy (FirstName,UsrDat.FirstName);

View File

@ -386,10 +386,9 @@ static void Att_WriteAttEventAuthor (struct AttendanceEvent *Att)
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
/***** Show photo *****/
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16",true);
/***** Write name *****/
strcpy (FirstName,UsrDat.FirstName);
@ -2097,10 +2096,9 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
" background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
36,48,true);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO36x48",true);
fprintf (Gbl.F.Out,"</td>");
}
@ -3215,10 +3213,9 @@ static void Att_WriteRowStdSeveralAttEvents (unsigned NumStd,struct UsrData *Usr
" vertical-align:middle; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -3354,10 +3351,9 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
" vertical-align:middle; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");

View File

@ -35,104 +35,105 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.47.7 (2014/12/30)"
#define Log_PLATFORM_VERSION "SWAD 14.48 (2014/12/30)"
// 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 | tail -1
/*
Version 14.47.7 :Dic 30, 2014 Changes in CSS font families. (174554 lines)
Version 14.47.6 :Dic 30, 2014 Changes in HTML and CSS. (174551 lines)
Version 14.47.5 :Dic 29, 2014 Restricted length of links in user's courses. (174549 lines)
Version 14.47.4 :Dic 29, 2014 Changes in HTML and CSS. (174535 lines)
Version 14.47.3 :Dic 29, 2014 Removed old code not used. (174499 lines)
Version 14.47.2 :Dic 29, 2014 Changes in listing of chat rooms, forums and user's courses. (174677 lines)
Version 14.47.1 :Dic 29, 2014 Changes in listing of chat rooms, forums and user's courses.
Version 14.48 :Dec 30, 2014 Changes in layout and CSS. (174502 lines)
Version 14.47.7 :Dec 30, 2014 Changes in CSS font families. (174554 lines)
Version 14.47.6 :Dec 30, 2014 Changes in HTML and CSS. (174551 lines)
Version 14.47.5 :Dec 29, 2014 Restricted length of links in user's courses. (174549 lines)
Version 14.47.4 :Dec 29, 2014 Changes in HTML and CSS. (174535 lines)
Version 14.47.3 :Dec 29, 2014 Removed old code not used. (174499 lines)
Version 14.47.2 :Dec 29, 2014 Changes in listing of chat rooms, forums and user's courses. (174677 lines)
Version 14.47.1 :Dec 29, 2014 Changes in listing of chat rooms, forums and user's courses.
Fixed bugs in CSS. (174619 lines)
Version 14.47 :Dic 29, 2014 Changes in listing of user's courses. (174659 lines)
Version 14.46.2 :Dic 28, 2014 Code refactoring in forums. (174400 lines)
Version 14.46.1 :Dic 28, 2014 Changes in listing of forums. (174342 lines)
Version 14.46 :Dic 28, 2014 Course syllabus are shown in one unique option. (174340 lines)
Version 14.47 :Dec 29, 2014 Changes in listing of user's courses. (174659 lines)
Version 14.46.2 :Dec 28, 2014 Code refactoring in forums. (174400 lines)
Version 14.46.1 :Dec 28, 2014 Changes in listing of forums. (174342 lines)
Version 14.46 :Dec 28, 2014 Course syllabus are shown in one unique option. (174340 lines)
1 change necessary in database:
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1242','es','N','Ver programa');
Version 14.45 :Dic 27, 2014 Course syllabus are shown in one unique option (unfinished). (174346 lines)
Version 14.44.3 :Dic 27, 2014 Fixed bugs in layout. (174246 lines)
Version 14.44.2 :Dic 27, 2014 Fixed bugs in layout columns. (174262 lines)
Version 14.44.1 :Dic 27, 2014 Changes in layout columns. (174251 lines)
Version 14.44 :Dic 27, 2014 Removed vendor-specific properties in CSS. (174230 lines)
Version 14.43.1 :Dic 27, 2014 Fixed bugs in HTML and CSS. (174319 lines)
Version 14.43 :Dic 27, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (174314 lines)
Version 14.42.1 :Dic 26, 2014 Fixed bug in HTML of tabs.
Version 14.45 :Dec 27, 2014 Course syllabus are shown in one unique option (unfinished). (174346 lines)
Version 14.44.3 :Dec 27, 2014 Fixed bugs in layout. (174246 lines)
Version 14.44.2 :Dec 27, 2014 Fixed bugs in layout columns. (174262 lines)
Version 14.44.1 :Dec 27, 2014 Changes in layout columns. (174251 lines)
Version 14.44 :Dec 27, 2014 Removed vendor-specific properties in CSS. (174230 lines)
Version 14.43.1 :Dec 27, 2014 Fixed bugs in HTML and CSS. (174319 lines)
Version 14.43 :Dec 27, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (174314 lines)
Version 14.42.1 :Dec 26, 2014 Fixed bug in HTML of tabs.
Changes in foot.html to validate HTML5 in W3C validator.
Changes in HTML and CSS to validate HTML5 in W3C validator. (173987 lines)
Version 14.42 :Dic 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173703 lines)
Version 14.41 :Dic 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173630 lines)
Version 14.40.12 :Dic 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173478 lines)
Version 14.40.11 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173288 lines)
Version 14.40.10 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173201 lines)
Version 14.40.9 :Dic 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172986 lines)
Version 14.40.8 :Dic 24, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172653 lines)
Version 14.40.7 :Dic 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172552 lines)
Version 14.40.6 :Dic 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172400 lines)
Version 14.40.5 :Dic 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172269 lines)
Version 14.40.4 :Dic 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172112 lines)
Version 14.40.3 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171698 lines)
Version 14.40.2 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171588 lines)
Version 14.40.1 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator.
Version 14.42 :Dec 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173703 lines)
Version 14.41 :Dec 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173630 lines)
Version 14.40.12 :Dec 26, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173478 lines)
Version 14.40.11 :Dec 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173288 lines)
Version 14.40.10 :Dec 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (173201 lines)
Version 14.40.9 :Dec 25, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172986 lines)
Version 14.40.8 :Dec 24, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172653 lines)
Version 14.40.7 :Dec 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172552 lines)
Version 14.40.6 :Dec 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172400 lines)
Version 14.40.5 :Dec 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172269 lines)
Version 14.40.4 :Dec 23, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (172112 lines)
Version 14.40.3 :Dec 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171698 lines)
Version 14.40.2 :Dec 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171588 lines)
Version 14.40.1 :Dec 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator.
Fixed problem in edition of departaments. (171417 lines)
Version 14.40 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171118 lines)
Version 14.39.6 :Dic 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (? lines)
Version 14.39.5 :Dic 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170725 lines)
Version 14.39.4 :Dic 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170688 lines)
Version 14.39.3 :Dic 21, 2014 Changes to validate HTML5 in W3C validator.
Version 14.40 :Dec 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (171118 lines)
Version 14.39.6 :Dec 22, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (? lines)
Version 14.39.5 :Dec 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170725 lines)
Version 14.39.4 :Dec 21, 2014 Changes in HTML and CSS to validate HTML5 in W3C validator. (170688 lines)
Version 14.39.3 :Dec 21, 2014 Changes to validate HTML5 in W3C validator.
Charset is changed from ISO-8859-1 to windows-1252. (170664 lines)
Version 14.39.2 :Dic 21, 2014 Changes in layout and graphics. (170739 lines)
Version 14.39.1 :Dic 20, 2014 Change from XHTML 1.0 Transitional to HTML5. (170747 lines)
Version 14.39 :Dic 20, 2014 iframes removed from course info. (170746 lines)
Version 14.38.9 :Dic 20, 2014 The words "Course" and "Group" are removed from selection of course and groups in Documents and Shared files. (? lines)
Version 14.38.8 :Dic 18, 2014 Fixed bug in banned users. (170793 lines)
Version 14.38.7 :Dic 17, 2014 Link to banned users is shown only if user has banned one or more users. (170792 lines)
Version 14.38.6 :Dic 17, 2014 Banned users option is integrated in received messages option. (170776 lines)
Version 14.38.5 :Dic 16, 2014 User's institution option is integrated in record card option. (170819 lines)
Version 14.38.4 :Dic 16, 2014 User's photo option is integrated in record card option. (170941 lines)
Version 14.38.3 :Dic 16, 2014 Lost password option is integrated in session option.
Version 14.39.2 :Dec 21, 2014 Changes in layout and graphics. (170739 lines)
Version 14.39.1 :Dec 20, 2014 Change from XHTML 1.0 Transitional to HTML5. (170747 lines)
Version 14.39 :Dec 20, 2014 iframes removed from course info. (170746 lines)
Version 14.38.9 :Dec 20, 2014 The words "Course" and "Group" are removed from selection of course and groups in Documents and Shared files. (? lines)
Version 14.38.8 :Dec 18, 2014 Fixed bug in banned users. (170793 lines)
Version 14.38.7 :Dec 17, 2014 Link to banned users is shown only if user has banned one or more users. (170792 lines)
Version 14.38.6 :Dec 17, 2014 Banned users option is integrated in received messages option. (170776 lines)
Version 14.38.5 :Dec 16, 2014 User's institution option is integrated in record card option. (170819 lines)
Version 14.38.4 :Dec 16, 2014 User's photo option is integrated in record card option. (170941 lines)
Version 14.38.3 :Dec 16, 2014 Lost password option is integrated in session option.
User's password option is integrated in account option. (171001 lines)
Version 14.38.2 :Dic 14, 2014 Changes in search. (171124 lines)
Version 14.38.1 :Dic 13, 2014 Changes in ID messages.
Version 14.38.2 :Dec 14, 2014 Changes in search. (171124 lines)
Version 14.38.1 :Dec 13, 2014 Changes in ID messages.
Changes in search. (171118 lines)
Version 14.38 :Dic 13, 2014 Link in "my courses" to courses, degrees, centres, institutions or countries. (171083 lines)
Version 14.37.3 :Dic 13, 2014 The title of list of courses in current degree now contains the short name of the degree. (170898 lines)
Version 14.37.2 :Dic 13, 2014 Changes in search of courses link in "my courses". (170874 lines)
Version 14.37.1 :Dic 13, 2014 Fixed bug in HTML entities in swad_text.c (translation).
Version 14.38 :Dec 13, 2014 Link in "my courses" to courses, degrees, centres, institutions or countries. (171083 lines)
Version 14.37.3 :Dec 13, 2014 The title of list of courses in current degree now contains the short name of the degree. (170898 lines)
Version 14.37.2 :Dec 13, 2014 Changes in search of courses link in "my courses". (170874 lines)
Version 14.37.1 :Dec 13, 2014 Fixed bug in HTML entities in swad_text.c (translation).
Guests can view option "my courses" on profile tab.
Reordering of options in profile tab. (170866 lines)
Version 14.37 :Dic 12, 2014 New module swad_account for user's account. (170863 lines)
Version 14.37 :Dec 12, 2014 New module swad_account for user's account. (170863 lines)
1 change necessary in Makefile:
Add swad_account.o to list of object files
Version 14.36 :Dic 12, 2014 New module swad_role for user's roles. (170764 lines)
Version 14.36 :Dec 12, 2014 New module swad_role for user's roles. (170764 lines)
1 change necessary in Makefile:
Add swad_role.o to list of object files
Version 14.35 :Dic 12, 2014 New MIME type, suggested by Benito Palacios.
Version 14.35 :Dec 12, 2014 New MIME type, suggested by Benito Palacios.
New module swad_enrollment for enrollment (registration) or removing of users. (170725 lines)
1 change necessary in Makefile:
Add swad_enrollment.o to list of object files
Version 14.34.4 :Dic 08, 2014 Some messages translated. (170623 lines)
Version 14.34.3 :Dic 08, 2014 Tables are printed with rounded corners. (170602 lines)
Version 14.34.2 :Dic 08, 2014 Button to show more details on list of attendances. (170728 lines)
Version 14.34.1 :Dic 08, 2014 Translation of a message when refreshing list of attendances. (170710 lines)
Version 14.34 :Dic 08, 2014 Teachers can refresh list of attendances after selecting events. (170688 lines)
Version 14.33 :Dic 07, 2014 A teacher can select attendance events in list of attendances. (170595 lines)
Version 14.32.1 :Dic 06, 2014 Added new social network. (170518 lines)
Version 14.34.4 :Dec 08, 2014 Some messages translated. (170623 lines)
Version 14.34.3 :Dec 08, 2014 Tables are printed with rounded corners. (170602 lines)
Version 14.34.2 :Dec 08, 2014 Button to show more details on list of attendances. (170728 lines)
Version 14.34.1 :Dec 08, 2014 Translation of a message when refreshing list of attendances. (170710 lines)
Version 14.34 :Dec 08, 2014 Teachers can refresh list of attendances after selecting events. (170688 lines)
Version 14.33 :Dec 07, 2014 A teacher can select attendance events in list of attendances. (170595 lines)
Version 14.32.1 :Dec 06, 2014 Added new social network. (170518 lines)
1 change necessary in database:
ALTER TABLE usr_webs CHANGE Web Web ENUM('www','delicious','edmodo','facebook','flickr','foursquare','github','googleplus','googlescholar','instagram','linkedin','paperli','pinterest','researchgate','scoopit','slideshare','storify','tumblr','twitter','wikipedia','youtube') NOT NULL;
Version 14.32 :Dic 06, 2014 Changes in listing of attendance. (170509 lines)
Version 14.31.1 :Dic 05, 2014 Comments are shown in list of attendances when several students are listed. (170450 lines)
Version 14.31 :Dic 04, 2014 Comments are shown in list of attendances when one unique student is listed. (170353 lines)
Version 14.30.2 :Dic 03, 2014 Changes in sign up.
Version 14.32 :Dec 06, 2014 Changes in listing of attendance. (170509 lines)
Version 14.31.1 :Dec 05, 2014 Comments are shown in list of attendances when several students are listed. (170450 lines)
Version 14.31 :Dec 04, 2014 Comments are shown in list of attendances when one unique student is listed. (170353 lines)
Version 14.30.2 :Dec 03, 2014 Changes in sign up.
Fixed bug when deleting user's IDs. (170252 lines)
Version 14.30.1 :Nov 30, 2014 Internal course code is shown in course configuration. (170275 lines)
Version 14.30 :Nov 29, 2014 Database password and email password are moved from executable files to configuration files. (170248 lines)
@ -1616,38 +1617,38 @@ ALTER TABLE tst_answers ADD COLUMN Feedback TEXT NOT NULL AFTER Answer;
Changes in order of options of enrollment tab. (143920 lines)
Version 12.32.4 :Jan 29, 2013 Fixed bug in calendar. (143918 lines)
Version 12.32.3 :Jan 15, 2013 New file extension allowed, requested by Javier Mateos: .dmg (Disk Image in Masc OS). (143896 lines)
Version 12.32.2 :Dic 30, 2012 Changed DNI to UsrID in tables log and log_recent. (143896 lines)
Version 12.32.2 :Dec 30, 2012 Changed DNI to UsrID in tables log and log_recent. (143896 lines)
2 changes necessary in database (it could take a long time, even several hours):
ALTER TABLE log_recent CHANGE DNI UsrID CHAR(16) NOT NULL;
ALTER TABLE log CHANGE DNI UsrID CHAR(16) NOT NULL;
Version 12.32.2 :Dic 29, 2012 Several messages translated to french. (143895 lines)
Version 12.32.1 :Dic 29, 2012 Changed DNI to UsrID in tables usr_data and imported_students. (144051 lines)
Version 12.32.2 :Dec 29, 2012 Several messages translated to french. (143895 lines)
Version 12.32.1 :Dec 29, 2012 Changed DNI to UsrID in tables usr_data and imported_students. (144051 lines)
2 changes necessary in database:
ALTER TABLE imported_students CHANGE DNI UsrID CHAR(16) NOT NULL;
ALTER TABLE usr_data CHANGE DNI UsrID CHAR(16) NOT NULL;
Version 12.32 :Dic 29, 2012 Changes in rules to accept users' IDs and nicknames. (144043 lines)
Version 12.31 :Dic 29, 2012 Nicknames must be entered with '@'. (144088 lines)
Version 12.30 :Dic 28, 2012 Code refactoring related to user's ID. (144171 lines)
Version 12.29.5 :Dic 28, 2012 Several messages translated (0 messages to be translated) and other minor changes. (144127 lines)
Version 12.29.4 :Dic 27, 2012 Removed old nickname check. (143975 lines)
Version 12.29.3 :Dic 26, 2012 Several messages translated (3 messages to be translated). (144033 lines)
Version 12.29.2 :Dic 23, 2012 Notices are drawn without tables, and with different widths. (143997 lines)
Version 12.29.1 :Dic 22, 2012 Notices are drawn using CSS3 instead of images. (143998 lines)
Version 12.32 :Dec 29, 2012 Changes in rules to accept users' IDs and nicknames. (144043 lines)
Version 12.31 :Dec 29, 2012 Nicknames must be entered with '@'. (144088 lines)
Version 12.30 :Dec 28, 2012 Code refactoring related to user's ID. (144171 lines)
Version 12.29.5 :Dec 28, 2012 Several messages translated (0 messages to be translated) and other minor changes. (144127 lines)
Version 12.29.4 :Dec 27, 2012 Removed old nickname check. (143975 lines)
Version 12.29.3 :Dec 26, 2012 Several messages translated (3 messages to be translated). (144033 lines)
Version 12.29.2 :Dec 23, 2012 Notices are drawn without tables, and with different widths. (143997 lines)
Version 12.29.1 :Dec 22, 2012 Notices are drawn using CSS3 instead of images. (143998 lines)
1 update necessary:
Remove directory with icons for notices.
Example:
rm -Rf /var/www/html/swad/icon/notice/
Version 12.29 :Dic 18, 2012 Changes in actions related to see or admin documents. (144043 lines)
Version 12.29 :Dec 18, 2012 Changes in actions related to see or admin documents. (144043 lines)
4 changes necessary in database:
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1078','es','N','Ver documentos');
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1079','es','N','Ver calificaciones');
UPDATE actions SET Txt='Ver o administrar documentos' WHERE ActCod='0';
UPDATE actions SET Txt='Ver o administrar calificaciones' WHERE ActCod='17';
Version 12.28.4 :Dic 18, 2012 Old action to admin docs is removed. (144004 lines)
Version 12.28.4 :Dec 18, 2012 Old action to admin docs is removed. (144004 lines)
1 change necessary in database:
UPDATE actions SET Obsolete='Y' WHERE ActCod='1062';
1 update necessary:
@ -1655,28 +1656,28 @@ Copy new icon visible16x16.gif from swad source directory to icons public direct
Example:
cp /home/<user>/swad/swad/icon/visible16x16.gif /var/www/html/swad/icon/
Version 12.28.3 :Dic 16, 2012 Changes in CSS related to user's photo. (143946 lines)
Version 12.28.2 :Dic 16, 2012 Fixed bugs in web service related to file browser. (143874 lines)
Version 12.28.1 :Dic 16, 2012 Abort if click is too fast.
Version 12.28.3 :Dec 16, 2012 Changes in CSS related to user's photo. (143946 lines)
Version 12.28.2 :Dec 16, 2012 Fixed bugs in web service related to file browser. (143874 lines)
Version 12.28.1 :Dec 16, 2012 Abort if click is too fast.
Changes in redirection to language. (143857 lines)
Version 12.28 :Dic 16, 2012 Change language after user authentication. (143831 lines)
Version 12.28 :Dec 16, 2012 Change language after user authentication. (143831 lines)
1 change necessary in database:
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1077','es','N','Cambiar de idioma tras autenticar');
Version 12.27.10:Dic 12, 2012 Small change in design of iframe for course info. (? lines)
Version 12.27.9 :Dic 11, 2012 Rounded rectangles for months now use CSS instead of tables. (143811 lines)
Version 12.27.8 :Dic 11, 2012 Fixed bugs in attendance events. (143800 lines)
Version 12.27.7 :Dic 11, 2012 Rectangles 2D without shadow now use CSS instead of tables. (143800 lines)
Version 12.27.6 :Dic 10, 2012 Rectangles 3D with shadow now use CSS instead of tables. (143793 lines)
Version 12.27.5 :Dic 10, 2012 Action title now use CSS instead of tables. (143770 lines)
Version 12.27.4 :Dic 10, 2012 Changes in CSS of alerts. (143739 lines)
Version 12.27.3 :Dic 10, 2012 Alerts now use CSS instead of tables. (143789 lines)
Version 12.27.2 :Dic 09, 2012 Several messages translated (5 messages to be translated).
Version 12.27.10:Dec 12, 2012 Small change in design of iframe for course info. (? lines)
Version 12.27.9 :Dec 11, 2012 Rounded rectangles for months now use CSS instead of tables. (143811 lines)
Version 12.27.8 :Dec 11, 2012 Fixed bugs in attendance events. (143800 lines)
Version 12.27.7 :Dec 11, 2012 Rectangles 2D without shadow now use CSS instead of tables. (143800 lines)
Version 12.27.6 :Dec 10, 2012 Rectangles 3D with shadow now use CSS instead of tables. (143793 lines)
Version 12.27.5 :Dec 10, 2012 Action title now use CSS instead of tables. (143770 lines)
Version 12.27.4 :Dec 10, 2012 Changes in CSS of alerts. (143739 lines)
Version 12.27.3 :Dec 10, 2012 Alerts now use CSS instead of tables. (143789 lines)
Version 12.27.2 :Dec 09, 2012 Several messages translated (5 messages to be translated).
Optimizations on attendance. (143714 lines)
Version 12.27.1 :Dic 09, 2012 Optimizations on file browser and web service. (143662 lines)
Version 12.27 :Dic 05, 2012 Changes in web service getFile function. (143748 lines)
Version 12.26 :Dic 04, 2012 Changes in web service getFile function. (143643 lines)
Version 12.25 :Dic 02, 2012 Changes in buffers related to TEXT and LONGTEXT database fields.
Version 12.27.1 :Dec 09, 2012 Optimizations on file browser and web service. (143662 lines)
Version 12.27 :Dec 05, 2012 Changes in web service getFile function. (143748 lines)
Version 12.26 :Dec 04, 2012 Changes in web service getFile function. (143643 lines)
Version 12.25 :Dec 02, 2012 Changes in buffers related to TEXT and LONGTEXT database fields.
Refactoring of code in every module. (143471 lines)
Version 12.24.5 :Nov 30, 2012 Changes in space used for buffer related to TEXT and LONGTEXT database fields. (142652 lines)
2 changes necessary in database:
@ -2164,30 +2165,30 @@ INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1051','es','N','Camb
Version 11.29.3 :Jan 10, 2012 Changes in notification of new file of marks. (124589 lines)
Version 11.29.2 :Jan 09, 2012 Several functions moved from swad_file_browser to swad_mark. (? lines)
Version 11.29.1 :Jan 03, 2012 Fixed bug in notifications of new messages. Reported by Guía Carmona Tienda. (124516 lines)
Version 11.29 :Dic 30, 2011 Optimizations when deleting all the messages of a user or several users. (124513 lines)
Version 11.28.1 :Dic 28, 2011 Changes in layout. (124471 lines)
Version 11.28 :Dic 23, 2011 New options to contract an expanded message. (124470 lines)
Version 11.27.2 :Dic 22, 2011 Optimizations on pagination of items. (124389 lines)
Version 11.27.1 :Dic 22, 2011 Number of new messages is removed. (124461 lines)
Version 11.27 :Dic 21, 2011 Changes in received and sent messages.
Version 11.29 :Dec 30, 2011 Optimizations when deleting all the messages of a user or several users. (124513 lines)
Version 11.28.1 :Dec 28, 2011 Changes in layout. (124471 lines)
Version 11.28 :Dec 23, 2011 New options to contract an expanded message. (124470 lines)
Version 11.27.2 :Dec 22, 2011 Optimizations on pagination of items. (124389 lines)
Version 11.27.1 :Dec 22, 2011 Number of new messages is removed. (124461 lines)
Version 11.27 :Dec 21, 2011 Changes in received and sent messages.
When a user clicks on a notification of message, that message is expanded. (124461 lines)
Version 11.26.2 :Dic 20, 2011 Notifications of removed events are marked with light colors. (124430 lines)
Version 11.26.1 :Dic 19, 2011 Notifications of removed events are marked with red background. (124279 lines)
Version 11.26 :Dic 19, 2011 Notifications are marked as removed when the source of the notification is removed.
Version 11.26.2 :Dec 20, 2011 Notifications of removed events are marked with light colors. (124430 lines)
Version 11.26.1 :Dec 19, 2011 Notifications of removed events are marked with red background. (124279 lines)
Version 11.26 :Dec 19, 2011 Notifications are marked as removed when the source of the notification is removed.
Notifications marked as removed are shown, but not as new notifications. (124231 lines)
Version 11.25.3 :Dic 17, 2011 Several messages translated. (124191 lines)
Version 11.25.2 :Dic 12, 2011 Fixed bug when writing a private message.
Version 11.25.3 :Dec 17, 2011 Several messages translated. (124191 lines)
Version 11.25.2 :Dec 12, 2011 Fixed bug when writing a private message.
Removing the use of the struct for another user in parst of the code. (124044 lines)
Version 11.25.1 :Dic 11, 2011 More changes in layout. (124011 lines)
Version 11.25 :Dic 10, 2011 More changes in layout. (124038 lines)
Version 11.24.3 :Dic 09, 2011 Optimization in header layout. (123954 lines)
Version 11.24.2 :Dic 09, 2011 Reordering of several options in groups. (123952 lines)
Version 11.24.1 :Dic 08, 2011 Fixed bug in test tags related to sending tests to plugins via web service, reported by Juan Miguel Boyero Corral. (123951 lines)
Version 11.24 :Dic 08, 2011 Lot of changes in layout.
Version 11.25.1 :Dec 11, 2011 More changes in layout. (124011 lines)
Version 11.25 :Dec 10, 2011 More changes in layout. (124038 lines)
Version 11.24.3 :Dec 09, 2011 Optimization in header layout. (123954 lines)
Version 11.24.2 :Dec 09, 2011 Reordering of several options in groups. (123952 lines)
Version 11.24.1 :Dec 08, 2011 Fixed bug in test tags related to sending tests to plugins via web service, reported by Juan Miguel Boyero Corral. (123951 lines)
Version 11.24 :Dec 08, 2011 Lot of changes in layout.
Options are grouped in menus. (123948 lines)
Version 11.23.2 :Dic 07, 2011 More changes in layout. (123982 lines)
Version 11.23.1 :Dic 06, 2011 More changes in layout. (123980 lines)
Version 11.23 :Dic 06, 2011 Lot of changes in layout. (123975 lines)
Version 11.23.2 :Dec 07, 2011 More changes in layout. (123982 lines)
Version 11.23.1 :Dec 06, 2011 More changes in layout. (123980 lines)
Version 11.23 :Dec 06, 2011 Lot of changes in layout. (123975 lines)
Version 11.22.9 :Nov 29, 2011 More optimizations for big lists of users. (124061 lines)
Version 11.22.8 :Nov 28, 2011 Fixed problem with big lists of users, reported by Francisco A. Ocaña Lara. (124056 lines)
Version 11.22.7 :Nov 28, 2011 Fixed bug when registering users in a course. (124051 lines)

View File

@ -961,10 +961,9 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
Act_LinkFormSubmitId (NULL,NULL,Gbl.FormId);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
fprintf (Gbl.F.Out,"</a>"
"</form>"
"</td>");
@ -1147,10 +1146,9 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
Act_LinkFormSubmit (NULL,NULL);
}
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
if (PutLinkToRecord)
fprintf (Gbl.F.Out,"</a>"
"</form>");

View File

@ -2274,10 +2274,9 @@ void Enr_ShowEnrollmentRequests (void)
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"width:18px;"
" text-align:center; vertical-align:top;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
fprintf (Gbl.F.Out,"</td>");
/***** User name *****/

View File

@ -2372,10 +2372,9 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<td style=\"width:80px;"
" text-align:left; vertical-align:top;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
75,100,true);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO75x100",true);
fprintf (Gbl.F.Out,"</td>");
/***** Start form to send a message to this user *****/
@ -3752,15 +3751,15 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
Brw_ParamListFiles (FileType,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
Gbl.Title,
Gbl.Title);
}
else
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL);
fprintf (Gbl.F.Out,"</td>");
}
@ -3797,15 +3796,15 @@ static void Brw_PutIconRemoveDir (const char *PathInTree,const char *FileName,co
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
Gbl.Title,
Gbl.Title);
}
else
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL);
fprintf (Gbl.F.Out,"</td>");
}
@ -3843,15 +3842,15 @@ static void Brw_PutIconCopy (Brw_FileType_t FileType,
Brw_ParamListFiles (FileType,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Copy_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/copy_on16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
Gbl.Title,
Gbl.Title);
}
else
fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL);
fprintf (Gbl.F.Out,"</td>");
}
@ -3886,7 +3885,7 @@ static void Brw_PutIconPasteOn (const char *PathInTree,const char *FileName,cons
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Paste_in_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>"
"</td>",
Gbl.Prefs.IconsURL,
@ -3902,7 +3901,7 @@ static void Brw_PutIconPasteOff (void)
{
fprintf (Gbl.F.Out,"<td class=\"BM%d\">"
"<img src=\"%s/paste_off16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />"
" alt=\"\" class=\"ICON16x16B\" />"
"</td>",
Gbl.RowEvenOdd,Gbl.Prefs.IconsURL);
}
@ -3926,8 +3925,8 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
switch (ExpandTree)
{
case Brw_EXPAND_TREE_NOTHING:
fprintf (Gbl.F.Out,"<img src=\"%s/tr16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/tr16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL);
break;
case Brw_EXPAND_TREE_PLUS:
@ -3953,7 +3952,7 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Expand_FOLDER_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/expand16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
Gbl.Title,
@ -3982,7 +3981,7 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Contract_FOLDER_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/contract16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
Gbl.Title,
@ -4008,8 +4007,8 @@ static void Brw_IndentDependingOnLevel (unsigned Level)
i < Level;
i++)
fprintf (Gbl.F.Out,"<td style=\"width:16px;\">"
"<img src=\"%s/tr16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />"
"<img src=\"%s/tr16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />"
"</td>",
Gbl.Prefs.IconsURL);
}
@ -4046,7 +4045,7 @@ static void Brw_PutIconShow (unsigned Level,Brw_FileType_t FileType,
Brw_ParamListFiles (FileType,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Show_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/hidden_%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>"
"</td>",
Gbl.Prefs.IconsURL,
@ -4088,7 +4087,7 @@ static void Brw_PutIconHide (unsigned Level,Brw_FileType_t FileType,
Brw_ParamListFiles (FileType,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Hide_FOLDER_FILE_OR_LINK_X,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/visible_%s16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>"
"</td>",
Gbl.Prefs.IconsURL,
@ -4152,7 +4151,7 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
sprintf (Gbl.Title,Txt_Upload_file_or_create_folder_in_FOLDER,FileNameToShow);
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/folder-%s-plus16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>",
Gbl.Prefs.IconsURL,
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
@ -4161,8 +4160,8 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
Gbl.Title);
}
else // I can't create a new file or folder
fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\" alt=\"\""
" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL,
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
"open");
@ -4182,7 +4181,7 @@ static void Brw_PutIconNewFileOrFolder (void)
/***** Icon that indicates new file *****/
fprintf (Gbl.F.Out,"<td class=\"BM%d\">"
"<img src=\"%s/star16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</td>",
Gbl.RowEvenOdd,Gbl.Prefs.IconsURL,
Txt_New_FILE_OR_FOLDER,Txt_New_FILE_OR_FOLDER);
@ -4313,9 +4312,8 @@ static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *F
fprintf (Gbl.F.Out,"xxx%ux%u.gif\" alt=\"\"",
Size,Size);
}
fprintf (Gbl.F.Out," style=\"width:%upx; height:%upx;"
" vertical-align:middle;\" />",
Size,Size);
fprintf (Gbl.F.Out,(Size == 16) ? " class=\"ICON16x16B\"/>" :
" class=\"ICON32x32\"/>");
}
/*****************************************************************************/
@ -4333,8 +4331,8 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
if (FileType == Brw_IS_FOLDER)
{
/***** Start of cell *****/
fprintf (Gbl.F.Out,"<td class=\"%s\""
" style=\"width:99%%; text-align:left;",
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:99%%;"
" text-align:left; vertical-align:middle;",
Gbl.FileBrowser.TxtStyle);
if (Gbl.FileBrowser.Clipboard.IsThisFile)
fprintf (Gbl.F.Out," background-color:%s;",LIGHT_GREEN);
@ -4393,8 +4391,8 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
}
else // File or link
{
fprintf (Gbl.F.Out,"<td class=\"%s\""
" style=\"width:99%%; text-align:left;",
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:99%%;"
" text-align:left; vertical-align:middle;",
Gbl.FileBrowser.TxtStyle);
if (Gbl.FileBrowser.Clipboard.IsThisFile)
fprintf (Gbl.F.Out," background-color:%s;",LIGHT_GREEN);
@ -4467,7 +4465,9 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
Txt_Download_FILE_OR_LINK_X,
FileNameToShow);
fprintf (Gbl.F.Out,"<a href=\"javascript:document.getElementById('%s').submit();\""
" title=\"%s\" class=\"%s\">%s</a>"
" title=\"%s\" class=\"%s\">"
"%s"
"</a>"
"</form>",
Gbl.FormId,
Gbl.Title,Gbl.FileBrowser.TxtStyle,
@ -4556,7 +4556,8 @@ static void Brw_WriteDatesAssignment (void)
extern const char *Txt_unknown_assignment;
fprintf (Gbl.F.Out,"<td colspan=\"4\" class=\"ASG_LST_DATE_GREEN\""
" style=\"text-align:right; background-color:%s;\">",
" style=\"text-align:right; vertical-align:middle;"
" background-color:%s;\">",
Gbl.ColorRows[Gbl.RowEvenOdd]);
if (Gbl.FileBrowser.Asg.AsgCod > 0)
@ -4565,7 +4566,8 @@ static void Brw_WriteDatesAssignment (void)
"<tr>");
/***** Write start date *****/
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;\">"
fprintf (Gbl.F.Out,"<td class=\"%s\""
" style=\"text-align:right; vertical-align:middle;\">"
"&nbsp;%02u/%02u/%02u&nbsp;%02u:%02u"
"</td>",
Gbl.FileBrowser.Asg.Open ? "ASG_LST_DATE_GREEN" :
@ -4577,9 +4579,10 @@ static void Brw_WriteDatesAssignment (void)
Gbl.FileBrowser.Asg.DateTimes[Asg_START_TIME].Time.Minute);
/***** Arrow *****/
fprintf (Gbl.F.Out,"<td style=\"width:16px; text-align:right;\">"
fprintf (Gbl.F.Out,"<td style=\"width:16px;"
" text-align:right; vertical-align:middle;\">"
"<img src=\"%s/arrow%s16x12.gif\" alt=\"\""
" class=\"ICON16x16\" style=\"vertical-align:bottom;\" />"
" class=\"ICON16x16B\" />"
"</td>",
Gbl.Prefs.IconsURL,
Gbl.FileBrowser.Asg.Open ? "green" :
@ -4597,7 +4600,8 @@ static void Brw_WriteDatesAssignment (void)
Gbl.FileBrowser.Asg.DateTimes[Asg_END_TIME ].Time.Hour,
Gbl.FileBrowser.Asg.DateTimes[Asg_END_TIME ].Time.Minute);
fprintf (Gbl.F.Out,"</tr></table>");
fprintf (Gbl.F.Out,"</tr>"
"</table>");
}
else
fprintf (Gbl.F.Out,"&nbsp;(%s)",
@ -4660,13 +4664,13 @@ static void Brw_WriteFileOrFolderPublisher (unsigned Level,unsigned long UsrCod)
{
/***** Show photo *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16B",true);
}
else
fprintf (Gbl.F.Out,"<img src=\"%s/usr_bl.jpg\" class=\"F12x16\" alt=\"\" />",
fprintf (Gbl.F.Out,"<img src=\"%s/usr_bl.jpg\" alt=\"\""
" class=\"PHOTO12x16B\" />",
Gbl.Prefs.IconsURL);
fprintf (Gbl.F.Out,"</td>");
@ -7571,10 +7575,9 @@ void Brw_ShowFileMetadata (void)
{
/* Show photo */
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&PublisherUsrDat,PhotoURL);
Pho_ShowUsrPhoto (&PublisherUsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&PublisherUsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16",true);
/* Write name */
fprintf (Gbl.F.Out,"%s",
@ -9675,7 +9678,7 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
if (FileMetadata.FileType == Brw_IS_FOLDER)
/* Icon with folder */
fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\""
" alt=\"\" class=\"ICON16x16\" />",
" alt=\"\" class=\"ICON16x16B\" />",
Gbl.Prefs.IconsURL);
else
/* Icon with file type or link */

View File

@ -3147,7 +3147,7 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
fprintf (Gbl.F.Out,"%s",Gbl.Usrs.Me.PhotoURL);
else
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",Gbl.Prefs.IconsURL);
fprintf (Gbl.F.Out,"\" class=\"F12x16\" alt=\"%s\" /></span>",
fprintf (Gbl.F.Out,"\" class=\"PHOTO12x16\" alt=\"%s\" /></span>",
Txt_Thread_with_posts_from_you);
}
fprintf (Gbl.F.Out,"</td>");

View File

@ -2512,8 +2512,7 @@ static void Msg_ShowASentOrReceivedMessage (Msg_TypeOfMessages_t TypeOfMessages,
"<td style=\"width:16px; padding:0;"
" text-align:center; vertical-align:top;\">"
"<img src=\"%s/msg-%s16x16.gif\""
" alt=\"\" title=\"%s\" class=\"ICON16x16\""
" style=\"display:block;\" />"
" alt=\"\" title=\"%s\" class=\"ICON16x16B\" />"
"</td>"
"</tr>",
TypeOfMessages == Msg_MESSAGES_RECEIVED ? (Open ? "BG_MSG_BLUE" :
@ -2760,10 +2759,9 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
{
/***** First column with author's photo (if author has a web page, put a link to it) *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
24,32,true);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO24x32",true);
fprintf (Gbl.F.Out,"</td>");
/***** Second column with user name (if author has a web page, put a link to it) *****/
@ -2919,10 +2917,9 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
fprintf (Gbl.F.Out,"<td style=\"width:24px; text-align:center;"
" vertical-align:middle;\">");
ShowPhoto = (Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL));
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
/***** Write user's name *****/
fprintf (Gbl.F.Out,"</td>"
@ -3065,10 +3062,9 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
" vertical-align:top;\">");
ShowPhoto = (UsrValid ? Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL) :
false);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
/* Write user's name */
fprintf (Gbl.F.Out,"</td>"
@ -3164,8 +3160,7 @@ static void Msg_PutFormToDeleteMessage (long MsgCod,Msg_TypeOfMessages_t TypeOfM
Msg_PutHiddenParamMsgCod (MsgCod);
Msg_PutHiddenParamsMsgsFilters ();
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
" style=\"display:block;\" />"
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
"</form>"
"</td>",
Gbl.Prefs.IconsURL,
@ -3455,10 +3450,9 @@ void Msg_ListBannedUsrs (void)
fprintf (Gbl.F.Out,"<td style=\"width:24px;"
" text-align:left; vertical-align:middle;\">");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",true);
fprintf (Gbl.F.Out,"</td>");
/* Write user's full name */

View File

@ -239,7 +239,7 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
Pho_PutLinkToRemoveUsrPhoto (UsrDat); // Link (form) to remove photo
/* Show photo */
Pho_ShowUsrPhoto (UsrDat,PhotoURL,Pho_PHOTO_REAL_WIDTH,Pho_PHOTO_REAL_HEIGHT,true);
Pho_ShowUsrPhoto (UsrDat,PhotoURL,"PHOTO150x200",true);
}
Lay_ShowAlert (Lay_INFO,Txt_You_can_send_a_file_with_an_image_in_jpg_format_);
@ -964,48 +964,26 @@ void Pho_UpdatePhotoName (struct UsrData *UsrDat)
/*****************************************************************************/
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
int Width,int Height,bool Zoom)
const char *ClassPhoto,bool Zoom)
{
char SpecialFullName [3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
char SpecialShortName[3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+6];
char SpecialSurnames [2*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
/* Replace tildes, ñ, etc. in full name by codes, because some browsers (i.e., IE5) don't show correctly tildes with AJAX */
/* Replace tildes, ñ, etc. in full name by codes,
because some browsers (i.e., IE5) don't show correctly tildes with AJAX */
strcpy (SpecialFullName,UsrDat->FullName);
Str_ReplaceSpecialCharByCodes (SpecialFullName,sizeof (SpecialFullName)-1);
if (SpecialFullName[0])
fprintf (Gbl.F.Out,"<span title=\"%s\">",SpecialFullName);
fprintf (Gbl.F.Out,"<img src=\"");
if (PhotoURL)
fprintf (Gbl.F.Out,"%s",PhotoURL);
else
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",Gbl.Prefs.IconsURL);
if (Width == 12 && Height == 16)
fprintf (Gbl.F.Out,"\" class=\"F12x16\"");
else if (Width == 15 && Height == 20)
fprintf (Gbl.F.Out,"\" class=\"F15x20\"");
else if (Width == 18 && Height == 24)
fprintf (Gbl.F.Out,"\" class=\"F18x24\" style=\"width:18px; height:24px;\""); // Here width and height are written explicitely in order to allow copy-paste to Excel
else if (Width == 24 && Height == 32)
fprintf (Gbl.F.Out,"\" class=\"F24x32\"");
else if (Width == 36 && Height == 48)
fprintf (Gbl.F.Out,"\" class=\"F36x48\"");
else if (Width == 75 && Height == 100)
fprintf (Gbl.F.Out,"\" class=\"F75x100\"");
else if (Width == 90 && Height == 120)
fprintf (Gbl.F.Out,"\" class=\"F90x120\"");
else if (Width == 120 && Height == 160)
fprintf (Gbl.F.Out,"\" class=\"F120x160\"");
else if (Width == 150 && Height == 200)
fprintf (Gbl.F.Out,"\" class=\"F150x200\"");
else
fprintf (Gbl.F.Out,"\" style=\"width:%dpx; height:%dpx;"
" vertical-align:middle;\"",
Width,Height);
if (Zoom && PhotoURL &&
(Width != Pho_PHOTO_REAL_WIDTH ||
Height != Pho_PHOTO_REAL_HEIGHT))
fprintf (Gbl.F.Out,"\" class=\"%s\"",ClassPhoto);
if (SpecialFullName[0])
fprintf (Gbl.F.Out," title=\"%s\"",SpecialFullName);
if (Zoom && PhotoURL)
{
strcpy (SpecialShortName,UsrDat->FirstName);
Str_LimitLengthHTMLStr (SpecialShortName,23);
@ -1026,8 +1004,6 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
PhotoURL,SpecialShortName);
}
fprintf (Gbl.F.Out," />");
if (SpecialFullName[0])
fprintf (Gbl.F.Out,"</span>");
}
/*****************************************************************************/

View File

@ -99,7 +99,7 @@ bool Pho_CheckIfPrivPhotoExists (long UsrCod,char *PathPrivRelPhoto);
bool Pho_RemovePhoto (struct UsrData *UsrDat);
void Pho_UpdatePhotoName (struct UsrData *UsrDat);
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
int Width,int Height,bool Zoom);
const char *ClassPhoto,bool Zoom);
void Pho_CalcPhotoDegree (void);
void Pho_RemoveObsoleteStatDegrees (void);

View File

@ -2020,8 +2020,6 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
unsigned Col3Width = 160;
unsigned Cols1and2Width;
unsigned Cols2and3Width;
unsigned PhotoWidth = Pho_PHOTO_REAL_WIDTH;
unsigned PhotoHeight = Pho_PHOTO_REAL_HEIGHT;
const char *ClassHead,*ClassForm,*ClassData;
char PhotoURL[PATH_MAX+1];
bool ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod);
@ -2079,8 +2077,6 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
RecordWidth = Rec_WIDTH_COMMON_RECORD_BIG;
FrameWidth = 10;
Col3Width = 160;
PhotoWidth = Pho_PHOTO_REAL_WIDTH;
PhotoHeight = Pho_PHOTO_REAL_HEIGHT;
ClassHead = "HEAD_REC";
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
ClassData = "DAT_REC";
@ -2100,8 +2096,6 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
RecordWidth = Rec_WIDTH_COMMON_RECORD_BIG;
FrameWidth = 10;
Col3Width = 160;
PhotoWidth = Pho_PHOTO_REAL_WIDTH;
PhotoHeight = Pho_PHOTO_REAL_HEIGHT;
ClassHead = "HEAD_REC";
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
ClassData = "DAT_REC";
@ -2112,8 +2106,6 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
RecordWidth = Rec_WIDTH_COMMON_RECORD_SMALL;
FrameWidth = 10;
Col3Width = 160;
PhotoWidth = Pho_PHOTO_REAL_WIDTH;
PhotoHeight = Pho_PHOTO_REAL_HEIGHT;
ClassHead = "HEAD_REC_SMALL";
ClassForm = "DAT_REC_SMALL";
ClassData = "DAT_REC_SMALL_BOLD";
@ -2122,8 +2114,6 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
RecordWidth = Rec_WIDTH_COMMON_RECORD_PRINT;
FrameWidth = 1;
Col3Width = 160;
PhotoWidth = Pho_PHOTO_REAL_WIDTH;
PhotoHeight = Pho_PHOTO_REAL_HEIGHT;
ClassHead = "HEAD_REC_SMALL";
ClassForm = "DAT_REC_SMALL";
ClassData = "DAT_REC_SMALL_BOLD";
@ -2230,10 +2220,9 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
TypeOfView == Rec_FORM_MY_COMMON_RECORD ? ClassForm :
ClassData,
Col3Width);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
PhotoWidth,PhotoHeight,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO150x200",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
/* Public / private photo */
if (ShowData)

View File

@ -1766,10 +1766,9 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
" vertical-align:top; background-color:%s;\">",
Gbl.ColorRows[Gbl.RowEvenOdd]);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16",true);
fprintf (Gbl.F.Out,"</td>");
/* Write the user's ID if user is a student in current course */
@ -2828,25 +2827,29 @@ static void Sta_ShowAverageAccessesPerMinute (unsigned long NumRows,MYSQL_RES *m
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"width:%upx;text-align:left;\">"
"<img src=\"%s/ejexizq24x1.gif\" alt=\"\""
" style=\"width:%upx; height:1px; display:block;\" />"
" style=\"display:block; width:%upx; height:1px;\" />"
"</td>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,WIDTH_SEMIDIVISION_GRAPHIC);
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
WIDTH_SEMIDIVISION_GRAPHIC);
/* All the intermediate divisions */
for (i = 0;
i < NUM_DIVISIONS_X*2;
i++)
fprintf (Gbl.F.Out,"<td style=\"width:%upx; text-align:left;\">"
"<img src=\"%s/ejex24x1.gif\" alt=\"\""
" style=\"width:%upx; height:1px; display:block;\" />"
" style=\"display:block;"
" width:%upx; height:1px;\" />"
"</td>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,WIDTH_SEMIDIVISION_GRAPHIC);
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
WIDTH_SEMIDIVISION_GRAPHIC);
/* Last division (right) */
fprintf (Gbl.F.Out,"<td style=\"width:%upx; text-align:left;\">"
"<img src=\"%s/tr24x1.gif\" alt=\"\""
" style=\"width:%upx; height:1px; display:block;\" />"
" style=\"display:block; width:%upx; height:1px;\" />"
"</td>"
"</tr>",
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,WIDTH_SEMIDIVISION_GRAPHIC);
WIDTH_SEMIDIVISION_GRAPHIC,Gbl.Prefs.IconsURL,
WIDTH_SEMIDIVISION_GRAPHIC);
/***** Write again the labels of the X axis *****/
Sta_WriteLabelsXAxisAccMin (IncX,Format);
@ -2933,8 +2936,8 @@ static void Sta_WriteAccessMinute (unsigned Minute,float NumPagesGenerated,float
if (NumPagesGenerated != 0.0)
if ((BarWidth = (unsigned) (((NumPagesGenerated * (float) WIDTH_GRAPHIC / MaxX)) + 0.5)) != 0)
fprintf (Gbl.F.Out,"<img src=\"%s/b%c1x1.gif\" alt=\"\""
" style=\"width:%upx; height:1px;"
" display:block;\" />",
" style=\"display:block;"
" width:%upx; height:1px;\" />",
Gbl.Prefs.IconsURL,
(Minute % 60) == 0 ? 'g' :
'b',

View File

@ -559,10 +559,9 @@ static void Svy_WriteAuthor (struct Survey *Svy)
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
/***** Show photo *****/
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
12,16,true);
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO12x16",true);
/***** Write name *****/
strcpy (FirstName,UsrDat.FirstName);

View File

@ -6400,10 +6400,9 @@ static void Tst_ShowDataUsr (struct UsrData *UsrDat,unsigned NumExams)
" background-color:%s;\">",
Gbl.ColorRows[Gbl.RowEvenOdd]);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
36,48,true);
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO36x48",true);
fprintf (Gbl.F.Out,"</td>");
/***** Start form to go to user's record card *****/
@ -6539,10 +6538,9 @@ void Tst_ShowOneTestExam (void)
Gbl.Usrs.Other.UsrDat.FirstName);
fprintf (Gbl.F.Out,"<br />");
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Other.UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&Gbl.Usrs.Other.UsrDat,
ShowPhoto ? PhotoURL :
NULL,
36,48,true);
Pho_ShowUsrPhoto (&Gbl.Usrs.Other.UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO36x48",true);
fprintf (Gbl.F.Out,"</td>"
"</tr>");

View File

@ -1492,10 +1492,9 @@ void Usr_WriteLoggedUsrHead (void)
/***** Show photo *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Me.UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,
ShowPhoto ? PhotoURL :
NULL,
15,20,true);
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO15x20",true);
/***** User's name *****/
fprintf (Gbl.F.Out,"<span class=\"%s\">&nbsp;",
@ -2498,10 +2497,9 @@ static void Usr_WriteRowGstMainData (unsigned NumUsr,struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -2602,10 +2600,9 @@ void Usr_WriteRowStdMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutChe
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -2661,10 +2658,9 @@ static void Usr_WriteRowGstAllData (struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -2767,10 +2763,9 @@ void Usr_WriteRowStdAllData (struct UsrData *UsrDat,char *GroupNames)
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -2925,10 +2920,9 @@ static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -2986,10 +2980,9 @@ void Usr_WriteRowTchAllData (struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -3070,10 +3063,9 @@ void Usr_WriteRowAdmData (unsigned NumUsr,struct UsrData *UsrDat)
fprintf (Gbl.F.Out,"<td style=\"text-align:left; background-color:%s;\">",
BgColor);
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
Pho_ShowUsrPhoto (UsrDat,
ShowPhoto ? PhotoURL :
NULL,
18,24,
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
NULL,
"PHOTO18x24",
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
fprintf (Gbl.F.Out,"</td>");
}
@ -6780,8 +6772,7 @@ static void Usr_DrawClassPhoto (Usr_ClassPhotoType_t ClassPhotoType,
bool ShowPhoto;
bool ShowData;
bool UsrIsTheMsgSender;
int PhotoWidth = 36; // Default photo width
int PhotoHeight = 48; // Default photo height
const char *ClassPhoto = "PHOTO18x24"; // Default photo size
int LengthUsrData = 10; // Maximum number of characters of user data
char PhotoURL[PATH_MAX+1];
char BreadcrumbStr[512];
@ -6805,14 +6796,17 @@ static void Usr_DrawClassPhoto (Usr_ClassPhotoType_t ClassPhotoType,
switch (ClassPhotoType)
{
case Usr_CLASS_PHOTO_SEL:
PhotoWidth = 18; PhotoHeight = 24; LengthUsrData = 10;
ClassPhoto = "PHOTO18x24";
LengthUsrData = 10;
break;
case Usr_CLASS_PHOTO_SEL_SEE:
case Usr_CLASS_PHOTO_SEE:
PhotoWidth = 36; PhotoHeight = 48; LengthUsrData = 10;
ClassPhoto = "PHOTO36x48";
LengthUsrData = 10;
break;
case Usr_CLASS_PHOTO_PRN:
PhotoWidth = 36; PhotoHeight = 48; LengthUsrData = 15;
ClassPhoto = "PHOTO36x48";
LengthUsrData = 15;
break;
}
@ -6859,10 +6853,9 @@ static void Usr_DrawClassPhoto (Usr_ClassPhotoType_t ClassPhotoType,
/***** Show photo *****/
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
Pho_ShowUsrPhoto (&UsrDat,
ShowPhoto ? PhotoURL :
NULL,
PhotoWidth,PhotoHeight,
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
NULL,
ClassPhoto,
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
/***** Photo foot *****/

View File

@ -297,8 +297,8 @@ void ZIP_PutButtonToDownloadZIPOfAFolder (const char *PathInTree,const char *Fil
}
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassFormul[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"<img src=\"%s/download16x16.gif\""
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
fprintf (Gbl.F.Out,"<img src=\"%s/download16x16.gif\" alt=\"%s\""
" title=\"%s\" class=\"ICON16x16B\" />"
"</a>"
"</form>",
Gbl.Prefs.IconsURL,Txt_Create_ZIP_file,Txt_Create_ZIP_file);