Version 14.42

This commit is contained in:
Antonio Cañas Vargas 2014-12-26 17:55:42 +01:00
parent d0c4ec10b4
commit 079c478fd4
47 changed files with 289 additions and 216 deletions

View File

@ -403,7 +403,7 @@ void ID_ShowFormOthIDs (void)
/***** Form to change IDs *****/
/* Show user's record */
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>"
"<tr>"
"<td colspan=\"2\" style=\"text-align:center;\">");

View File

@ -123,7 +123,7 @@ void QR_PrintQRCode (void)
static void QR_ImageQRCode (const char *QRString)
{
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"width:%upx;\">"
fprintf (Gbl.F.Out,"<div style=\"width:%upx; text-align:center;\">"
"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s\""
" width=\"%u\" height=\"%u\" alt=\"%s\""
" style=\"border:1px dashed silver;\" /><br />"
@ -231,7 +231,7 @@ void QR_ExamAnnnouncement (void)
extern const char *Txt_Link_to_announcement_of_exam;
/***** Show QR code with direct link to the exam announcement *****/
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<img src=\"https://chart.googleapis.com/chart?cht=qr&amp;chs=%ux%u&amp;chl=%s/?CrsCod=%ld%%26ActCod=%ld\""
" width=\"%u\" height=\"%u\" alt=\"%s\" />"
"</div>",

View File

@ -110,15 +110,15 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
extern const char *Txt_Create_account;
/***** Link to log in *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:20px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:20px;\">");
Act_FormStart (ActFrmLogIn);
Act_LinkFormSubmit (Txt_Log_in,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("login",Txt_Log_in,Txt_Log_in);
fprintf (Gbl.F.Out,"</form>"
"</div>");
/***** Form to enter the ID of the new user *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
/***** Form to enter some data of the new user *****/
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActCreUsrAcc);
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
Lay_StartRoundFrameTable10 (NULL,2,Gbl.Title);
@ -193,7 +193,7 @@ void Acc_ShowFormChangeMyAccount (void)
Lay_ShowAlert (Lay_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_ID);
/***** Put links to change my password and to remove my account*****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Pwd_PutLinkToChangeUsrPassword (&Gbl.Usrs.Me.UsrDat);
if (Acc_CheckIfICanEliminateAccount (true)) // ItsMe = true
Acc_PutLinkToRemoveMyAccount ();
@ -616,7 +616,7 @@ void Acc_AskIfCompletelyEliminateAccount (bool ItsMe)
/* Ask for consent on dangerous actions */
Pwd_AskForConfirmationOnDangerousAction ();
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",

View File

@ -4135,7 +4135,10 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
/***** Start table *****/
Act_FormStart (ActMFUAct);
Act_LinkFormSubmit (Txt_Frequent_actions,"MFU_ACT");
fprintf (Gbl.F.Out," %s</a></form>",Txt_Frequent_actions);
fprintf (Gbl.F.Out," %s"
"</a>"
"</form>",
Txt_Frequent_actions);
fprintf (Gbl.F.Out,"<div id=\"MFU_actions\">"
"<table style=\"width:120px;\">");

View File

@ -74,7 +74,7 @@ void Ann_ShowAllAnnouncements (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_New_announcement;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Put link (form) to create a new announcement *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)
@ -169,7 +169,7 @@ void Ann_ShowMyAnnouncementsNotMarkedAsSeen (void)
/***** Show the announcements *****/
if (NumAnnouncements)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
for (NumAnn = 0;
NumAnn < NumAnnouncements;
@ -214,7 +214,8 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
bool RolesSelected;
/***** Start yellow note *****/
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\" style=\"width:400px;\">");
fprintf (Gbl.F.Out,"<div class=\"NOTICE_CONTAINER\""
" style=\"width:400px;\">");
/***** Write the content of the announcement *****/
fprintf (Gbl.F.Out,"<div class=\"NOTICE_SUBJECT\">%s</div>",
@ -225,7 +226,8 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
Content);
/***** Write form *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\" style=\"margin:10px;\">",
fprintf (Gbl.F.Out,"<div class=\"%s\""
" style=\"text-align:center; margin:10px;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
if (ShowAllAnnouncements)
@ -318,7 +320,7 @@ void Ann_ShowFormAnnouncement (void)
extern const char *Txt_Users;
extern const char *Txt_Create_announcement;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRcvAnn);

View File

@ -201,7 +201,7 @@ static void Asg_ShowAllAssignments (void)
static void Asg_PutFormToSelectWhichGroupsToShow (void)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeAsg);
Asg_PutHiddenParamAsgOrderType ();
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
@ -466,7 +466,7 @@ static void Asg_PutFormToCreateNewAsg (void)
extern const char *Txt_New_assignment;
/***** Put form to create a new assignment *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActFrmNewAsg);
Asg_PutHiddenParamAsgOrderType ();
Grp_PutParamWhichGrps ();
@ -925,7 +925,8 @@ void Asg_AskRemAssignment (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_assignment_X,
Asg.Title);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div>"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" /></div>"
"</form>",
Txt_Remove_assignment);

View File

@ -117,7 +117,7 @@ void Att_SeeAttEvents (void)
Pag_GetParamPagNum (Pag_ATT_EVENTS);
/***** Put other options *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Put link (form) to create a bew attendance event */
switch (Gbl.Usrs.Me.LoggedRole)
@ -229,7 +229,7 @@ static void Att_ShowAllAttEvents (void)
static void Att_PutFormToSelectWhichGroupsToShow (void)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeAtt);
Att_PutHiddenParamAttOrderType ();
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
@ -889,7 +889,10 @@ void Att_AskRemAttEvent (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_event_X,
Att.Title);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div></form>",
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
Txt_Remove_event);
/***** Show attendance events again *****/
@ -2627,7 +2630,7 @@ void Usr_ReqListAttendanceStdsCrs (void)
/***** Draw a class photo with students of the course *****/
/* Form start */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeLstAttStd);
Grp_PutParamsCodGrps ();
@ -2895,7 +2898,7 @@ static void Att_PutFormToPrintListStds (bool ShowDetails,char *StrAttCodsSelecte
extern const char *Txt_Print_view;
/***** Link to print view *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActPrnLstAttStd);
if (ShowDetails)
Par_PutHiddenParamChar ("ShowDetails",'Y');
@ -2918,7 +2921,7 @@ static void Att_PutButtonToShowDetails (char *StrAttCodsSelected)
extern const char *Txt_Show_more_details;
/***** Button to show more details *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeLstAttStd);
Par_PutHiddenParamChar ("ShowDetails",'Y');
Grp_PutParamsCodGrps ();

View File

@ -125,7 +125,7 @@ static void Ban_PutFormToEditBanners (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiBan);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -255,7 +255,7 @@ static void Ctr_Configuration (bool PrintView)
/***** Links to print view and upload photo *****/
if (!PrintView)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Link to print view */
Lay_PutLinkToPrintView1 (ActPrnCtrInf);
@ -1811,7 +1811,7 @@ void Ctr_ReqPhoto (void)
extern const char *Txt_File_with_the_photo;
extern const char *Txt_Upload_photo;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Write help message *****/
sprintf (Gbl.Message,Txt_You_can_send_a_file_with_an_image_in_jpg_format_and_size_X_Y,

View File

@ -35,11 +35,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.41 (2014/12/26)"
#define Log_PLATFORM_VERSION "SWAD 14.42 (2014/12/26)"
// 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.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)

View File

@ -76,7 +76,7 @@ void Con_ShowConnectedUsrs (void)
extern const char *Txt_MONTHS_SMALL_SHORT[12];
extern const char *Txt_Connected_users;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Put form to update connected users *****/
Act_FormStart (ActLstCon);
@ -131,9 +131,9 @@ void Con_ShowLastClicks (void)
fprintf (Gbl.F.Out,"<tr>"
"<td>");
fprintf (Gbl.F.Out,"<div align=\"center\" id=\"lastclicks\">"); // Used for AJAX based refresh
fprintf (Gbl.F.Out,"<div id=\"lastclicks\" style=\"text-align:center;\">"); // Used for AJAX based refresh
Con_GetAndShowLastClicks ();
fprintf (Gbl.F.Out,"</div>"); // Used for AJAX based refresh
fprintf (Gbl.F.Out,"</div>"); // Used for AJAX based refresh
fprintf (Gbl.F.Out,"</td>"
"</tr>");
@ -251,7 +251,8 @@ void Con_ShowGlobalConnectedUsrs (void)
/***** Start table *****/
fprintf (Gbl.F.Out,"<div class=\"CONNECTED\""
" style=\"width:110px; margin-left:auto; margin-right:auto; \">"
" style=\"width:110px;"
" margin-left:auto; margin-right:auto; \">"
"<table style=\"width:110px;\">");
/***** Write total number of sessions *****/
@ -963,7 +964,8 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
" vertical-align:middle; background-color:%s;\">",
Font,Color);
fprintf (Gbl.F.Out,"<div id=\"hm%u\">",Gbl.Usrs.Connected.NumUsr); // Used for automatic update, only when displayed on right column
fprintf (Gbl.F.Out,"<div id=\"hm%u\">",
Gbl.Usrs.Connected.NumUsr); // Used for automatic update, only when displayed on right column
Hours = Gbl.Usrs.Connected.Lst[Gbl.Usrs.Connected.NumUsr].Seconds / (60*60);
Minutes = (Gbl.Usrs.Connected.Lst[Gbl.Usrs.Connected.NumUsr].Seconds / 60) % 60;
Seconds = Gbl.Usrs.Connected.Lst[Gbl.Usrs.Connected.NumUsr].Seconds % 60;

View File

@ -232,7 +232,7 @@ static void Cty_Configuration (bool PrintView)
/***** Link to print view *****/
if (!PrintView)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnCtyInf);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");
@ -725,7 +725,9 @@ void Cty_ListCountries2 (void)
/***** Div for Google Geochart *****/
if (Gbl.CurrentAct == ActSeeCty)
fprintf (Gbl.F.Out,"<div align=\"center\" id='chart_div' style=\"margin-top:10px;\"></div>");
fprintf (Gbl.F.Out,"<div id='chart_div'"
" style=\"text-align:center; margin-top:10px;\">"
"</div>");
/***** Free list of countries *****/
Cty_FreeListCountries ();

View File

@ -109,7 +109,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
void Crs_ShowIntroduction (void)
{
/***** Course configuration *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:20px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:20px;\">");
Crs_Configuration (false);
fprintf (Gbl.F.Out,"</div>");
@ -181,7 +181,7 @@ static void Crs_Configuration (bool PrintView)
}
/* Link to print view */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnCrsInf);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");
@ -2709,7 +2709,7 @@ static void Crs_PutLinkToGoToCrs (struct Course *Crs)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Go_to_X;
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormGoToStart (ActSeeCrsInf);
Crs_PutParamCrsCod (Crs->CrsCod);
@ -2730,7 +2730,7 @@ void Crs_ReqSelectOneOfMyCourses (void)
extern const char *Txt_You_are_not_enrolled_in_any_course[Usr_NUM_SEXS];
/***** Search / select more courses *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutLinkToSearchCourses ();
if (Gbl.CurrentDeg.Deg.DegCod > 0)
Crs_PutLinkToViewCoursesOfCurrentDeg ();
@ -3137,7 +3137,7 @@ void Crs_AskRemoveOldCrss (void)
unsigned i;
/***** Form to request number of months without clicks *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRemOldCrs);
fprintf (Gbl.F.Out,"<span class=\"%s\">%s </span>",
The_ClassFormul[Gbl.Prefs.Theme],

View File

@ -249,7 +249,7 @@ void Dat_DrawCalendar (void)
if (!PrintView)
{
/* Link to print view */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnCal);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");
@ -354,7 +354,9 @@ void Dat_DrawMonth (unsigned RealYear,unsigned RealMonth,
/***** Start of month *****/
fprintf (Gbl.F.Out,"<div class=\"MONTH_CONTAINER\">"
"<div class=\"MONTH\">%s %u</div>"
"<div class=\"MONTH\">"
"%s %u"
"</div>"
"<table class=\"MONTH_TABLE_DAYS\">",
Txt_MONTHS_CAPS[RealMonth-1],RealYear);

View File

@ -294,7 +294,7 @@ static void Deg_Configuration (bool PrintView)
if (!PrintView)
{
/* Link to print view */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnDegInf);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");
@ -483,7 +483,7 @@ void Deg_WriteMenuAllCourses (Act_Action_t NextActionCty,
extern const char *Txt_Degree;
/***** Start of table *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:10px;\">"
"<table class=\"CELLS_PAD_2\">");
/***** Write a 1st selector
@ -738,7 +738,9 @@ void Deg_WriteBigNameCtyInsCtrDegCrs (void)
Deg_MAX_LENGTH_FULL_NAME);
FullName[Deg_MAX_LENGTH_FULL_NAME] = '\0';
Str_LimitLengthHTMLStr (FullName,Deg_MAX_LENGTH_FULL_NAME_ON_PAGE_HEAD);
fprintf (Gbl.F.Out,"<div class=\"%s\">%s</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\">"
"%s"
"</div>",
The_ClassCourse[Gbl.Prefs.Theme],FullName);
}
}

View File

@ -214,7 +214,7 @@ static void Dpt_PutFormToEditDpts (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiDpt);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -238,7 +238,7 @@ void Enr_WriteFormToReqAnotherUsrID (Act_Action_t NextAction)
/***** Form to request user's ID, @nickname or e-mail address *****/
Act_FormStart (NextAction);
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">"
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"%s: "
"<input type=\"text\" name=\"OtherUsrIDNickOrEMail\""
" size=\"20\" maxlength=\"%u\" />"
@ -269,7 +269,7 @@ void Enr_ReqAcceptRegisterInCrs (void)
Lay_ShowAlert (Lay_INFO,Gbl.Message);
/***** Send button to accept register in the current course *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActAccEnrCrs);
Act_LinkFormSubmit (Txt_Confirm_my_enrollment,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("ok_green",Txt_Confirm_my_enrollment,Txt_Confirm_my_enrollment);
@ -443,7 +443,7 @@ void Enr_ShowFormRegRemSeveralUsrs (void)
extern const char *Txt_Step_5_Confirm_the_enrollment_removing;
extern const char *Txt_Confirm;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Put link to remove all the students in the current course *****/
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected
@ -457,14 +457,16 @@ void Enr_ShowFormRegRemSeveralUsrs (void)
Act_FormStart (ActRcvFrmMdfUsrCrs);
/***** Step 1: List of students to be enrolled / removed *****/
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_1_Provide_a_list_of_users);
/* Option a: get students from official lists */
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Option_a_Import_students_from_the_official_lists);
if (Cfg_EXTERNAL_LOGIN_CLIENT_COMMAND[0] == '\0')
@ -476,31 +478,35 @@ void Enr_ShowFormRegRemSeveralUsrs (void)
}
/* Option b: get students' IDs from pasted text */
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Option_b_Type_or_paste_a_list_of_users);
Lay_ShowAlert (Lay_INFO,Txt_Type_or_paste_a_list_of_IDs_nicks_or_emails_);
Enr_PutAreaToEnterUsrsIDs ();
/***** Step 2: Select type of user to register/remove to/from current course *****/
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_2_Select_the_type_of_user_to_register_remove);
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected
Rol_PutAllRolesRegRemUsrsCrs ();
/***** Step 3: Put different actions to register/remove students to/from current course *****/
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_3_Select_the_desired_action);
Enr_PutActionsRegRemSeveralUsrs ();
/***** Step 4: Select groups in which register / remove students *****/
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_4_Optionally_select_groups);
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected
@ -520,8 +526,9 @@ void Enr_ShowFormRegRemSeveralUsrs (void)
}
/***** Step 5: Button to register / remove students *****/
fprintf (Gbl.F.Out,"<div align=\"left\" class=\"%s\">"
"<br />%s<br />&nbsp;</div>",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:left;\">"
"<br />%s<br />&nbsp;"
"</div>",
The_ClassTitle[Gbl.Prefs.Theme],
Txt_Step_5_Confirm_the_enrollment_removing);
Pwd_AskForConfirmationOnDangerousAction ();
@ -562,7 +569,7 @@ void Enr_AskRemoveOldUsrs (void)
unsigned Months;
/***** Form to request number of months without clicks *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRemOldUsr);
fprintf (Gbl.F.Out,"<span class=\"%s\">%s </span>",
The_ClassFormul[Gbl.Prefs.Theme],
@ -1919,7 +1926,7 @@ void Enr_ShowEnrollmentRequests (void)
/***** Selection of scope and roles *****/
/* Start form */
Act_FormStart (ActSeeSignUpReq);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table style=\"border-spacing:4px;\">");
/* Scope (whole platform, current centre, current degree or current course) */
@ -2568,7 +2575,7 @@ static void Enr_ShowFormToEditOtherUsr (void)
extern const char *Txt_Confirm;
bool ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:20px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:20px;\">");
/***** Buttons for edition *****/
if (Pwd_CheckIfICanChangeOtherUsrPassword (Gbl.Usrs.Other.UsrDat.UsrCod))
@ -2826,7 +2833,7 @@ static void Enr_ReqAddAdmOfDeg (void)
Act_FormStart (ActNewAdm);
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
@ -3062,7 +3069,7 @@ static void Enr_AskIfRemoveUsrFromCrs (struct UsrData *UsrDat,bool ItsMe)
Rec_ShowCommonRecordUnmodifiable (UsrDat);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRemUsrCrs);
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
Pwd_AskForConfirmationOnDangerousAction ();
@ -3159,7 +3166,7 @@ static void Enr_AskIfRemAdmFromDeg (bool ItsMe)
Act_FormStart (ActRemAdm);
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",

View File

@ -443,7 +443,7 @@ static void Exa_ListExamAnnouncements (Exa_tTypeViewExamAnnouncement_t TypeViewE
case Rol_ROLE_TEACHER:
case Rol_ROLE_DEG_ADMIN:
case Rol_ROLE_SUPERUSER:
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiExaAnn);
Act_LinkFormSubmit (Txt_New_announcement_of_exam,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("new",Txt_New_announcement_of_exam,Txt_New_announcement_of_exam);
@ -756,7 +756,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
{
case Exa_NORMAL_VIEW:
/***** Link to print view *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnExaAnn);
Par_PutHiddenParamLong ("ExaCod",ExaCod);
Lay_PutLinkToPrintView2 ();

View File

@ -2061,7 +2061,7 @@ void Brw_AskEditWorksCrs (void)
{
/***** Draw class photos to select users *****/
/* Form start */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActAdmAsgWrkCrs);
Grp_PutParamsCodGrps ();
Par_PutHiddenParamChar ("FullTree",'Y'); // By default, show all files
@ -2987,7 +2987,7 @@ static void Brw_PutFormToShowOrAdmin (Brw_ShowOrAdmin_t ShowOrAdmin,
extern const char *Txt_View_as_a_student;
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:10px;\">");
Act_FormStart (Action);
if (Gbl.FileBrowser.FullTree)
Par_PutHiddenParamChar ("FullTree",'Y');
@ -3022,7 +3022,8 @@ static void Brw_WriteFormFullTree (void)
extern const char *Txt_Show_all_files;
/***** Start form depending on type of tree *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\" style=\"vertical-align:middle;\">",
fprintf (Gbl.F.Out,"<div class=\"%s\""
" style=\"text-align:center; vertical-align:middle;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
switch (Gbl.FileBrowser.Type)
{
@ -4715,7 +4716,7 @@ void Brw_AskRemFileFromTree (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_FILE_OR_LINK_X,
FileNameToShow);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
@ -4869,7 +4870,7 @@ static void Brw_AskConfirmRemoveFolderNotEmpty (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_folder_X,
Gbl.FileBrowser.FilFolLnkName);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
@ -5073,7 +5074,8 @@ static void Brw_WriteCurrentClipboard (void)
Crs_GetDataOfCourseByCod (&Crs);
}
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"DAT\">%s: ",
fprintf (Gbl.F.Out,"<div class=\"DAT\" style=\"text-align:center;\">"
"%s: ",
Txt_Copy_source);
switch (Gbl.FileBrowser.Clipboard.FileBrowser)
{

View File

@ -3500,7 +3500,7 @@ void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
Act_FormStart (For_ActionsRecThrFor[Gbl.Forum.ForumType]);
For_PutAllHiddenParamsForum ();
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>"
"<tr>"
"<td></td>"
@ -3759,7 +3759,7 @@ void For_ReqDelThr (void)
Act_FormStart (For_ActionsDelThrFor[Gbl.Forum.ForumType]);
For_PutAllHiddenParamsForum ();
For_PutHiddenParamThrCod (ThrCod);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>",
Txt_Remove_thread);

View File

@ -232,7 +232,7 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
extern const char *Txt_Update_students_according_to_selected_groups;
unsigned NumGrpTyp;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Start form to update the students listed
depending on the groups selected *****/
@ -3268,7 +3268,7 @@ static void Grp_AskConfirmRemGrpTypWithGrps (unsigned NumGrps)
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
/***** Put button to confirm the removing *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRemGrpTyp);
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod);
Lay_PutSendButton (Txt_Remove_type_of_group);
@ -3307,7 +3307,7 @@ static void Grp_AskConfirmRemGrp (void)
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
/***** Put button to confirm the removing *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRemGrp);
Grp_PutParamGrpCod (GrpDat.GrpCod);
Lay_PutSendButton (Txt_Remove_group);

View File

@ -198,7 +198,7 @@ static void Hld_PutFormToEditHlds (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiHld);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -91,7 +91,7 @@ void Ind_ReqIndicatorsCourses (void)
/***** Form to update indicators *****/
/* Start form */
Act_FormStart (ActReqStaCrs);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table class=\"CELLS_PAD_2\">");
/* Compute stats for anywhere, centre, degree or course? */
@ -442,7 +442,7 @@ static void Ind_PutButtonToConfirmIWantToSeeBigList (unsigned NumCrss)
extern const char *Txt_The_list_of_X_courses_is_too_large_to_be_displayed;
extern const char *Txt_Show_anyway;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Show warning *****/
sprintf (Gbl.Message,Txt_The_list_of_X_courses_is_too_large_to_be_displayed,

View File

@ -402,7 +402,7 @@ static void Inf_PutFormToEditInfo (Inf_InfoType_t InfoType)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (Inf_ActionsEditInfo[InfoType]);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
@ -419,7 +419,8 @@ static void Inf_PutFormToForceStdsToReadInfo (Inf_InfoType_t InfoType,bool MustB
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Force_students_to_read_this_information;
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\" style=\"vertical-align:middle;\">",
fprintf (Gbl.F.Out,"<div class=\"%s\""
" style=\"text-align:center; vertical-align:middle;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (Inf_ActionsChangeForceReadInfo[InfoType]);
fprintf (Gbl.F.Out,"<input type=\"checkbox\"");
@ -444,7 +445,7 @@ static void Inf_PutFormToConfirmIHaveReadInfo (Inf_InfoType_t InfoType)
extern const char *Txt_I_have_read_this_information;
bool IHaveRead = Inf_CheckIfIHaveReadInfo (InfoType);
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (Inf_ActionsIHaveReadInfo[InfoType]);
fprintf (Gbl.F.Out,"<input type=\"checkbox\"");
@ -536,7 +537,7 @@ void Inf_WriteMsgYouMustReadInfo (void)
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
/***** Write every information I must read *****/
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>"
"<tr>"
"<td style=\"text-align:left;\">"

View File

@ -237,7 +237,7 @@ static void Ins_Configuration (bool PrintView)
/***** Link to print view *****/
if (!PrintView)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnInsInf);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");

View File

@ -266,7 +266,8 @@ void Lay_WriteStartOfPage (void)
if (Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW)
fprintf (Gbl.F.Out,"<div id=\"zoomLyr\" class=\"ZOOM\">"
"<img id=\"zoomImg\" src=\"%s/_.gif\" alt=\"\" class=\"IMG_USR\" />"
"<div id=\"zoomTxt\" style=\"text-align:center;\"></div>"
"<div id=\"zoomTxt\" style=\"text-align:center;\">"
"</div>"
"</div>",
Gbl.Prefs.IconsURL);
@ -284,7 +285,8 @@ void Lay_WriteStartOfPage (void)
}
fprintf (Gbl.F.Out,"<td colspan=\"%u\" style=\"text-align:center;"
" vertical-align:top;\">"
"<div id=\"CENTRAL_ZONE\" style=\"background-color:%s;vertical-align:top;\">"
"<div id=\"CENTRAL_ZONE\""
" style=\"vertical-align:top; background-color:%s;\">"
"<table style=\"width:100%%; vertical-align:top;\">"
"<tr>",
ColspanCentralPart,
@ -348,7 +350,8 @@ void Lay_WriteStartOfPage (void)
if (Gbl.Now.Date.Month == 1 &&
Gbl.Now.Date.Day == 1)
{
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"ASG_TITLE\" style=\"margin:50px;\">");
fprintf (Gbl.F.Out,"<div class=\"ASG_TITLE\""
" style=\"text-align:center; margin:50px;\">");
fprintf (Gbl.F.Out,Txt_NEW_YEAR_GREETING,Gbl.Now.Date.Year);
fprintf (Gbl.F.Out,"</div>");
}
@ -675,7 +678,7 @@ static void Lay_WritePageTopHeading (void)
/***** 2nd. row, 2nd. column: degree and course *****/
fprintf (Gbl.F.Out,"<td style=\"height:64px;"
" text-align:center; vertical-align:top;\">"
"<div align=\"center\" style=\"padding-top:4px;\">");
"<div style=\"text-align:center; padding-top:4px;\">");
Deg_WriteCtyInsCtrDeg ();
Crs_WriteSelectorMyCourses ();
Deg_WriteBigNameCtyInsCtrDegCrs ();
@ -1492,7 +1495,7 @@ void Lay_PutFormToEdit (Act_Action_t Action)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:10px;\">");
Act_FormStart (Action);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
@ -1519,7 +1522,7 @@ void Lay_PutSendIcon (const char *Icon,const char *Alt,const char *Text)
void Lay_PutSendButton (const char *TextSendButton)
{
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>",
TextSendButton);
@ -1531,7 +1534,10 @@ void Lay_PutSendButton (const char *TextSendButton)
void Lay_WriteTitle (const char *Title)
{
fprintf (Gbl.F.Out,"<div class=\"TIT\">%s</div>",Title);
fprintf (Gbl.F.Out,"<div class=\"TIT\">"
"%s"
"</div>",
Title);
}
/*****************************************************************************/
@ -1541,14 +1547,17 @@ void Lay_WriteTitle (const char *Title)
void Lay_StartRoundFrameTable10 (const char *Width,unsigned CellPadding,const char *Title)
{
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<div class=\"FRAME10\"");
if (Width)
fprintf (Gbl.F.Out," style=\"width:%s;\"",Width);
fprintf (Gbl.F.Out,">");
if (Title)
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"TIT_TBL_10\">%s</div>",
fprintf (Gbl.F.Out,"<div class=\"TIT_TBL_10\""
" style=\"text-align:center;\">"
"%s"
"</div>",
Title);
fprintf (Gbl.F.Out,"<table class=\"TABLE10");
@ -1561,7 +1570,7 @@ void Lay_StartRoundFrameTable10 (const char *Width,unsigned CellPadding,const ch
void Lay_StartRoundFrameTable10Shadow (const char *Width,unsigned CellPadding)
{
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<div class=\"FRAME10_SHADOW\"");
if (Width)
fprintf (Gbl.F.Out," style=\"width:%s\"",
@ -1673,8 +1682,9 @@ void Lay_ShowAlert (Lay_AlertType_t MsgType,const char *Message)
Lay_WriteStartOfPage ();
if (Message)
fprintf (Gbl.F.Out,"<div align=\"center\">"
"<div class=\"ALERT\" style=\"background-image:url('%s/%s16x16.gif');\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<div class=\"ALERT\""
" style=\"background-image:url('%s/%s16x16.gif');\">"
"%s"
"</div>"
"</div>",
@ -1759,7 +1769,8 @@ void Lay_WritePageFooter (void)
case Lay_LAYOUT_DESKTOP:
Lay_WriteFootFromHTMLFile ();
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"FOOT\" style=\"padding-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div class=\"FOOT\" style=\"text-align:center;"
" padding-bottom:10px;\">");
/***** Institution and centre hosting the platform *****/
fprintf (Gbl.F.Out,"<a href=\"%s\" class=\"FOOT\" target=\"_blank\">"

View File

@ -121,7 +121,7 @@ static void Lnk_PutFormToEditLinks (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiLnk);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -177,7 +177,7 @@ static void Mai_PutFormToEditMailDomains (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiMai);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -215,7 +215,7 @@ void Msg_ListEMails (void)
Lay_EndRoundFrameTable10 ();
/***** Icon to open the client e-mail program *****/
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<a href=\"mailto:%s?subject=%s&cc=%s&bcc=%s\" title=\"%s\" class=\"%s\">",
Gbl.Usrs.Me.UsrDat.Email,
Gbl.CurrentCrs.Crs.FullName,Gbl.Usrs.Me.UsrDat.Email,StrAddresses,
@ -310,7 +310,7 @@ static void Msg_PutFormMsgUsrs (const char *Content)
}
/* Start table */
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>"
"<tr>"
"<td class=\"%s\" style=\"text-align:right;"
@ -762,7 +762,8 @@ void Msg_ReqDelAllRecMsgs (void)
Act_FormStart (ActDelAllRcvMsg);
Msg_PutHiddenParamsMsgsFilters ();
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" />"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
Txt_Delete_messages_received);
@ -798,7 +799,10 @@ void Msg_ReqDelAllSntMsgs (void)
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
Act_FormStart (ActDelAllSntMsg);
Msg_PutHiddenParamsMsgsFilters ();
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div></form>",
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
Txt_Delete_messages_sent);
}
@ -1476,7 +1480,8 @@ void Msg_ShowRecMsgs (void)
/***** Link to view banned users *****/
if (Msg_GetNumUsrsBannedByMe ())
{
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;\">");
Msg_PutLinkToViewBannedUsers ();
fprintf (Gbl.F.Out,"</div>");
}
@ -1538,7 +1543,7 @@ static void Msg_ShowSentOrReceivedMessages (Msg_TypeOfMessages_t TypeOfMessages)
NumMsgs = (unsigned) NumRows;
/* Write number of messages and number of new messages */
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"TIT\">");
fprintf (Gbl.F.Out,"<div class=\"TIT\" style=\"text-align:center;\">");
Msg_WriteNumMsgs (NumMsgs,NumUnreadMsgs);
fprintf (Gbl.F.Out,"</div>");
@ -2062,7 +2067,7 @@ void Msg_ShowFormDelSentOrRecMsgs (Msg_TypeOfMessages_t TypeOfMessages,unsigned
char StrFilterContent[256+Msg_MAX_LENGTH_FILTER_CONTENT+1];
/***** Put link to request deletion of all sent or received messages *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart ((TypeOfMessages == Msg_MESSAGES_RECEIVED) ? ActReqDelAllRcvMsg : ActReqDelAllSntMsg);
Msg_PutHiddenParamsMsgsFilters ();
@ -2188,7 +2193,7 @@ void Msg_ShowFormSelectCourseSentOrRecMsgs (Msg_TypeOfMessages_t TypeOfMessages)
unsigned NumOriginCrs;
/***** Course selection *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
fprintf (Gbl.F.Out,"<span class=\"%s\">%s </span>"
"<select name=\"FilterCrsCod\">"
"<option value=\"\"",
@ -2224,7 +2229,7 @@ void Msg_ShowFormToFilterMsgs (Msg_TypeOfMessages_t TypeOfMessages)
extern const char *Txt_MSG_Message;
/***** Table start *****/
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>");
/***** Authors/recipients of the message *****/
@ -2269,7 +2274,7 @@ static void Msg_ShowFormToShowOnlyUnreadMessages (void)
extern const char *Txt_Show_only_unread_messages;
/***** Put checkbox to select whether to show only unread (received) messages *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">"
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"<input type=\"checkbox\" name=\"OnlyUnreadMsgs\" value=\"Y\"",
The_ClassFormul[Gbl.Prefs.Theme]);
if (Gbl.Msg.ShowOnlyUnreadMsgs)
@ -2820,24 +2825,30 @@ bool Msg_WriteCrsOrgMsg (long CrsCod)
{
ThereIsOrgCrs = true;
if ((FromThisCrs = (CrsCod == Gbl.CurrentCrs.Crs.CrsCod))) // Message sent from current course
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">(%s)</div>",
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">"
"(%s)"
"</div>",
Txt_from_this_course);
else // Message sent from another course
{
/* Write course, including link */
Act_FormGoToStart (ActSeeCrsInf);
Crs_PutParamCrsCod (Crs.CrsCod);
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">(");
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">"
"(");
sprintf (Gbl.Title,Txt_Go_to_X,Crs.FullName);
Act_LinkFormSubmit (Gbl.Title,"MSG_AUT");
fprintf (Gbl.F.Out,"%s</a>)</div>"
fprintf (Gbl.F.Out,"%s</a>)"
"</div>"
"</form>",
Crs.ShortName);
}
}
}
if (!ThereIsOrgCrs) // It's an old message without origin source specified, or is a message sent from none course
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">(%s)</div>",
fprintf (Gbl.F.Out,"<div class=\"MSG_AUT\">"
"(%s)"
"</div>",
Txt_no_course_of_origin);
return FromThisCrs;

View File

@ -136,7 +136,7 @@ void Net_ShowWebsAndSocialNets (long UsrCod)
Net_WebsAndSocialNetworks_t NumURL;
char URL[Cns_MAX_BYTES_URL+1];
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"width:144px;\">");
fprintf (Gbl.F.Out,"<div style=\"width:144px; text-align:center;\">");
for (NumURL = (Net_WebsAndSocialNetworks_t) 0;
NumURL < Net_NUM_WEBS_AND_SOCIAL_NETWORKS;
@ -157,7 +157,8 @@ void Net_ShowWebsAndSocialNets (long UsrCod)
URL[Cns_MAX_BYTES_URL] = '\0';
/***** Write link and icon *****/
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\""
" style=\"display:inline;\" >"
"<a href=\"%s\" target=\"_blank\" title=\"%s\">"
"<img src=\"%s/%s16x16.gif\""
" style=\"width:16px;height:16px;margin:0 1px;\" alt=\"%s\" />"

View File

@ -95,7 +95,7 @@ void Not_ShowFormNotice (void)
Msg_WriteLinkToNetiquette ();
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActRcvNot);
fprintf (Gbl.F.Out,"<table>"
@ -315,7 +315,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)
);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
if (ICanEditNotices)
{
@ -407,7 +407,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
RSS_UpdateRSSFileForACrs (&Gbl.CurrentCrs.Crs);
/* Put a link to the RSS file */
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<a href=\"");
RSS_WriteRSSLink (Gbl.F.Out,Gbl.CurrentCrs.Crs.CrsCod);
fprintf (Gbl.F.Out,"\" target=\"_blank\">"
@ -568,7 +568,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
Content);
if (TypeNoticesListing == Not_LIST_BRIEF_NOTICES)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Form to view full notice */
Act_FormStart (ActShoNot);
Not_PutHiddenParamNotCod (NotCod);
@ -594,7 +594,7 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
/***** Write form to delete this notice *****/
if (ICanEditNotices)
{
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
/* Form to delete notice */

View File

@ -279,7 +279,7 @@ void Ntf_ShowMyNotifications (void)
NumNotifications = DB_QuerySELECT (Query,&mysql_res,"can not get your notifications");
/***** Buttons to change preferences and to mark all notifications as seen *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:10px;\">");
Ntf_PutLinkToChangePrefs (); // Put form to change notification preferences
if (NumNotifications)
Ntf_PutLinkToMarkAllNotifAsSeen (); // Put form to change notification preferences
@ -556,7 +556,8 @@ static void Ntf_WriteFormAllNotifications (bool AllNotifications)
extern const char *Txt_Show_all_notifications;
/***** Start form *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\" style=\"vertical-align:middle;\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;"
" vertical-align:middle;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (ActSeeNtf);

View File

@ -100,7 +100,7 @@ void Pag_CalculatePagination (struct Pagination *Pagination)
void Pag_WriteLinksToPagesCentered (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct Pagination *Pagination)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Pag_WriteLinksToPages (WhatPaginate,ThrCod,Pagination,true,NULL,"TIT",false);
fprintf (Gbl.F.Out,"</div>");
}

View File

@ -225,7 +225,8 @@ void Pwd_ShowFormSendNewPwd (void)
Act_FormStart (ActSndNewPwd);
/***** User's ID/nickname *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">%s:&nbsp;"
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"%s:&nbsp;"
"<input type=\"text\" name=\"UsrId\" size=\"8\" maxlength=\"%u\" value=\"%s\" />"
"</div>",
The_ClassFormul[Gbl.Prefs.Theme],Txt_nick_email_or_ID,Usr_MAX_LENGTH_USR_LOGIN,Gbl.Usrs.Me.UsrIdLogin);
@ -739,7 +740,7 @@ void Pwd_ShowFormOthPwd (void)
/***** Form to change password *****/
/* Start form */
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActChgPwdOthUsr);
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
@ -830,7 +831,7 @@ void Pwd_AskForConfirmationOnDangerousAction (void)
extern const char *Txt_I_understand_that_this_action_may_have_serious_consequences_and_can_not_be_undone;
extern const char *Txt_For_security_enter_your_password;
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin:10px;\" >"
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin:10px;\">"
"<input type=\"checkbox\" name=\"Consent\" value=\"Y\" />"
"<span class=\"%s\">%s</span><br />"
"<span class=\"%s\">%s: </span>"

View File

@ -178,7 +178,7 @@ static void Pho_PutLinkToRemoveUsrPhoto (const struct UsrData *UsrDat)
extern const char *Txt_Remove_photo;
/***** Link for changing / uploading the photo *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
if (UsrDat->UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // It's me
Act_FormStart (ActRemMyPho);
else // Not me
@ -231,7 +231,7 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
extern const char *Txt_Upload_photo;
bool ItsMe = (UsrDat->UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Write message about photo presence or ausence *****/
if (PhotoExists) // User has photo
@ -591,7 +591,7 @@ void Pho_ReceivePhotoAndDetectFaces (bool ItsMe,const struct UsrData *UsrDat)
/***** Show map photo *****/
sprintf (FileNamePhotoMap,"%s/%s/%s/%s_map.jpg",
Cfg_PATH_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP,Gbl.UniqueNameEncrypted);
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"TIT\">"
fprintf (Gbl.F.Out,"<div class=\"TIT\" style=\"text-align:center;\">"
"<img src=\"%s/%s/%s/%s_map.jpg\" usemap=\"#faces_map\" />"
"</div>",
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP,Gbl.UniqueNameEncrypted);
@ -1400,7 +1400,7 @@ void Pho_ShowOrPrintPhotoDegree (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint)
if (SeeOrPrint == Pho_DEGREES_SEE)
{
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table class=\"CELLS_PAD_2\">");
/***** Put a selector for the type of average *****/
@ -1656,7 +1656,7 @@ static Pho_HowOrderDegrees_t Pho_GetHowOrderDegreesFromForm (void)
static void Pho_PutLinkToPrintViewOfDegreeStats (void)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnPhoDeg);
Pho_PutHiddenParamTypeOfAvg ();
Pho_PutHiddenParamPhotoSize ();
@ -1693,7 +1693,7 @@ static void Pho_PutLinkToCalculateDegreeStats (void)
Deg_GetDataOfDegreeByCod (&Deg);
/***** Start div and table *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Start form *****/
Act_FormStart (ActCalPhoDeg);

View File

@ -203,7 +203,7 @@ static void Plc_PutFormToEditPlcs (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiPlc);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -152,7 +152,7 @@ static void Plg_PutFormToEditPlugins (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Edit;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActEdiPlg);
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);

View File

@ -571,7 +571,9 @@ void Rec_AskConfirmRemFieldWithRecords (unsigned NumRecords)
/***** Button to confirm removing *****/
Act_FormStart (ActRemFie);
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.Field.FieldCod);
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div>",
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>",
Txt_Remove_record_field);
fprintf (Gbl.F.Out,"</form>");
}
@ -904,7 +906,7 @@ void Rec_ListRecordsInvs (void)
if (Gbl.CurrentAct == ActSeeRecSevInv)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Link to print view */
Act_FormStart (ActPrnRecSevInv);
@ -928,7 +930,8 @@ void Rec_ListRecordsInvs (void)
Usr_GetUsrCodFromEncryptedUsrCod (&UsrDat);
if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat)) // Get from the database the data of the student
{
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;");
if (Gbl.CurrentAct == ActPrnRecSevInv &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -969,7 +972,7 @@ void Rec_ListRecordOneStdCrs (void)
/***** Get list of fields of records in current course *****/
Rec_GetListRecordFieldsInCurrentCrs ();
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Link to edit record fields *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER)
@ -988,7 +991,8 @@ void Rec_ListRecordOneStdCrs (void)
{
Gbl.Usrs.Other.UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (Gbl.Usrs.Other.UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;\">");
/* Common record */
Rec_ShowCommonRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
@ -1038,7 +1042,7 @@ void Rec_ListRecordsStdsCrs (void)
if (Gbl.CurrentAct == ActSeeRecSevStd)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Link to edit record fields */
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER)
@ -1066,7 +1070,8 @@ void Rec_ListRecordsStdsCrs (void)
{
UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;");
if (Gbl.CurrentAct == ActPrnRecSevStd &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -1111,7 +1116,7 @@ void Rec_ListRecordOneTchCrs (void)
/***** Get the selected teacher *****/
Usr_GetParamOtherUsrCodEncrypted ();
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Show office hours? *****/
Rec_WriteFormShowOfficeHours (true,Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
@ -1131,7 +1136,8 @@ void Rec_ListRecordOneTchCrs (void)
{
Gbl.Usrs.Other.UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (Gbl.Usrs.Other.UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;\">");
/* Common record */
Rec_ShowCommonRecord (Rec_RECORD_LIST,&Gbl.Usrs.Other.UsrDat);
@ -1187,7 +1193,7 @@ void Rec_ListRecordsTchsCrs (void)
if (Gbl.CurrentAct == ActSeeRecSevTch)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Show office hours? */
Rec_WriteFormShowOfficeHours (ShowOfficeHours,Gbl.Usrs.Select.All);
@ -1218,7 +1224,8 @@ void Rec_ListRecordsTchsCrs (void)
{
UsrDat.Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat.UsrCod);
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;");
if (Gbl.CurrentAct == ActPrnRecSevTch &&
NumUsrs != 0 &&
(NumUsrs % Gbl.Usrs.Listing.RecsPerPag) == 0)
@ -1351,7 +1358,7 @@ static bool Rec_GetParamShowOfficeHours (void)
void Rec_ShowFormMyCrsRecord (void)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Show record common to all courses *****/
/* Button for edition */
@ -1770,7 +1777,7 @@ void Rec_ShowOtherCrsRecordUpdated (void)
static void Rec_ShowCrsRecordAfterUpdate (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
{
/***** Show user's record *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Rec_ShowCrsRecord (TypeOfView,UsrDat);
fprintf (Gbl.F.Out,"</div>");
}
@ -1823,7 +1830,7 @@ void Rec_ShowFormSignUpWithMyCommonRecord (void)
extern const char *Txt_Sign_up;
/***** Show the form *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSignUp);
Rec_ShowCommonRecord (Rec_FORM_SIGN_UP,&Gbl.Usrs.Me.UsrDat);
Lay_PutSendButton (Txt_Sign_up);
@ -1851,7 +1858,7 @@ void Rec_ShowFormMyCommRecord (void)
Lay_ShowAlert (Lay_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_record_card_including_your_country_nationality);
/***** Buttons for edition *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Rec_PutLinkToMyCrsRecord (); // Put link (form) to my record in this course
Pho_PutLinkToChangeUsrPhoto (&Gbl.Usrs.Me.UsrDat); // Put link (form) to change my photo
Rec_PutLinkToChangeMyInsCtrDpt (); // Put link (form) to change my institution, centre, department...
@ -1911,7 +1918,7 @@ void Rec_ShowFormOtherNewCommonRecord (struct UsrData *UsrDat)
extern const char *Txt_Register;
/***** Show the form *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Rec_ShowCommonRecord (Rec_FORM_NEW_RECORD_OTHER_NEW_USR,UsrDat);
if (Gbl.CurrentCrs.Grps.NumGrps) // This course has groups?
@ -1934,7 +1941,7 @@ void Rec_ShowMyCommonRecordUpd (void)
Lay_ShowAlert (Lay_SUCCESS,Txt_Your_personal_data_have_been_updated);
/***** Show my record for checking *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Rec_ShowCommonRecord (Rec_MY_COMMON_RECORD_CHECK,&Gbl.Usrs.Me.UsrDat);
fprintf (Gbl.F.Out,"</div>");
}
@ -1950,7 +1957,7 @@ void Rec_ShowCommonRecordUnmodifiable (struct UsrData *UsrDat)
UsrDat->Accepted = Usr_GetIfUserHasAcceptedEnrollmentInCurrentCrs (UsrDat->UsrCod);
/***** Show user's record *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Rec_ShowCommonRecord (Rec_OTHER_USR_COMMON_RECORD_CHECK,UsrDat);
fprintf (Gbl.F.Out,"</div>");
}

View File

@ -90,7 +90,7 @@ void Sch_ReqSysSearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -109,7 +109,7 @@ void Sch_ReqCtySearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -128,7 +128,7 @@ void Sch_ReqInsSearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -147,7 +147,7 @@ void Sch_ReqCtrSearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -166,7 +166,7 @@ void Sch_ReqDegSearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -185,7 +185,7 @@ void Sch_ReqCrsSearch (void)
/***** Select one of my courses *****/
if (Gbl.Usrs.Me.Logged)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Crs_PutFormToSelectMyCourses ();
fprintf (Gbl.F.Out,"</div>");
}
@ -230,14 +230,15 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
Sch_WhatToSearch_t WhatToSearch;
/***** Form start *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (Action);
Lay_StartRoundFrameTable10 (NULL,2,Txt_Search);
fprintf (Gbl.F.Out,"<tr>"
"<td style=\"text-align:center;\">");
/***** Scope (whole platform, current centre, current degree or current course) *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">%s: ",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"%s: ",
The_ClassFormul[Gbl.Prefs.Theme],Txt_Scope);
Gbl.Scope.Allowed = 1 << Sco_SCOPE_PLATFORM |
1 << Sco_SCOPE_COUNTRY |

View File

@ -393,7 +393,7 @@ void Sta_AskSeeCrsAccesses (void)
/***** Draw two class photographs with the users: one for teachers of the course and another one for students *****/
/* Start the table */
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table style=\"border-spacing:4px;\">"
"<tr>"
"<td colspan=\"2\" style=\"text-align:left;\">");
@ -513,7 +513,7 @@ void Sta_AskSeeGblAccesses (void)
/***** Start form *****/
Act_FormStart (ActSeeAccGbl);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table class=\"CELLS_PAD_2\">");
/***** Start and end dates for the search *****/
@ -3562,11 +3562,12 @@ void Sta_ReqUseOfPlatform (void)
Sta_UseStatType_t UseStatType;
/***** Start form *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeUseGbl);
/***** Compute stats for anywhere, degree or course? *****/
fprintf (Gbl.F.Out,"<div class=\"%s\">%s: ",
fprintf (Gbl.F.Out,"<div class=\"%s\">"
"%s: ",
The_ClassFormul[Gbl.Prefs.Theme],Txt_Scope);
Gbl.Scope.Allowed = 1 << Sco_SCOPE_PLATFORM |
1 << Sco_SCOPE_COUNTRY |

View File

@ -274,7 +274,7 @@ static bool Svy_CheckIfICanCreateSvy (void)
static void Svy_PutFormToSelectWhichGroupsToShow (void)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeAllSvy);
Svy_PutHiddenParamSvyOrderType ();
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
@ -693,7 +693,7 @@ static void Svy_PutFormToCreateNewSvy (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_New_survey;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActFrmNewSvy);
Svy_PutHiddenParamSvyOrderType ();
Grp_PutParamWhichGrps ();
@ -1266,7 +1266,9 @@ void Svy_AskRemSurvey (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_remove_the_survey_X,
Svy.Title);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div>"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
Txt_Remove_survey);
@ -1367,7 +1369,10 @@ void Svy_AskResetSurvey (void)
sprintf (Gbl.Message,Txt_Do_you_really_want_to_reset_the_survey_X,
Svy.Title);
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
fprintf (Gbl.F.Out,"<div align=\"center\"><input type=\"submit\" value=\"%s\" /></div></form>",
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<input type=\"submit\" value=\"%s\" />"
"</div>"
"</form>",
Txt_Reset_survey);
/***** Show surveys again *****/
@ -2443,7 +2448,7 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
if (SvyQst->QstCod > 0) // If the question already has assigned a code
Svy_PutParamQstCod (SvyQst->QstCod);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Show message *****/
if (SvyQst->QstCod > 0) // If the question already has assigned a code

View File

@ -163,8 +163,9 @@ void Syl_EditSyllabus (void)
Lay_EndRoundFrameTable10 ();
if (!Gbl.CurrentCrs.Syllabus.EditionIsActive)
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"DAT_SMALL\"><br />"
"%s</div>",
fprintf (Gbl.F.Out,"<div class=\"DAT_SMALL\""
" style=\"text-align:center;\">"
"<br />%s</div>",
Txt_This_syllabus_has_been_edited_by_teachers_of_the_course_);
}
else

View File

@ -254,7 +254,7 @@ void Tst_ShowFormAskTst (void)
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER ||
Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Tst_PutFormToEdit ();
Tst_PutFormToConfigure ();
fprintf (Gbl.F.Out,"</div>");
@ -267,7 +267,7 @@ void Tst_ShowFormAskTst (void)
if (Tst_CheckIfNextTstAllowed ())
{
Act_FormStart (ActSeeTst);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Selection of tags *****/
Tst_ShowFormSelTags (NumRows,mysql_res,true);
@ -276,7 +276,8 @@ void Tst_ShowFormAskTst (void)
Tst_ShowFormAnswerTypes ();
/***** Number of questions to generate ****/
fprintf (Gbl.F.Out,"<div class=\"%s\">%s: "
fprintf (Gbl.F.Out,"<div class=\"%s\">"
"%s: "
"<input type=\"text\" name=\"NumQst\" size=\"3\" maxlength=\"3\" value=\"%u\"",
The_ClassFormul[Gbl.Prefs.Theme],Txt_No_of_questions,
Gbl.Test.Config.Def);
@ -386,7 +387,8 @@ void Tst_ShowNewTestExam (void)
Tst_WriteTestFoot ();
/* Exam will be saved? */
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">"
fprintf (Gbl.F.Out,"<div class=\"%s\""
" style=\"text-align:center;\">"
"<input type=\"checkbox\" name=\"Save\" value=\"Y\"",
The_ClassFormul[Gbl.Prefs.Theme]);
if (Gbl.Test.AllowTeachers)
@ -1090,7 +1092,7 @@ void Tst_ShowFormAskEditTsts (void)
unsigned long NumRows;
/***** Buttons for edition *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Tst_PutFormToCreateNewTstQst (); // Put link (form) to create a new test question
TsI_PutFormToImportQuestions (); // Put link (form) to import questions from XML file
Tst_PutFormToConfigure (); // Put form to go to test configuration
@ -1108,7 +1110,7 @@ void Tst_ShowFormAskEditTsts (void)
Act_FormStart (ActLstTstQst);
Par_PutHiddenParamUnsigned ("Order",(unsigned) Tst_ORDER_STEM);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Selection of tags *****/
Tst_ShowFormSelTags (NumRows,mysql_res,false);
@ -1469,7 +1471,7 @@ static void Tst_ShowFormEditTags (void)
else
{
/***** Start table *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_StartRoundFrameTable10 (NULL,0,NULL);
/***** Header of table with title *****/
@ -2054,7 +2056,7 @@ void Tst_ListQuestionsToEdit (void)
if ((NumRows = Tst_GetQuestionsForEdit (&mysql_res)) != 0) // Query database
{
/***** Buttons for edition *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Tst_PutFormToCreateNewTstQst (); // Put link (form) to create a new test question
if (Gbl.Test.XML.CreateXML)
TsI_CreateXML (NumRows,mysql_res); // Create XML file for exporting questions and put a link to download it
@ -2332,7 +2334,7 @@ static void Tst_ListOneQstToEdit (void)
if (Tst_GetOneQuestionByCod (Gbl.Test.QstCod,&mysql_res))
{
/***** Button to create a new question *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Tst_PutFormToCreateNewTstQst (); // Put link (form) to create a new test question
fprintf (Gbl.F.Out,"</div>");
@ -4193,7 +4195,8 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
if (Gbl.Test.QstCod != -1) // If the question already has assigned a code
Par_PutHiddenParamLong ("QstCod",Gbl.Test.QstCod);
fprintf (Gbl.F.Out,"<div align=\"center\"><table>");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table>");
/***** Get tags already existing for questions in current course *****/
NumRows = Tst_GetAllTagsFromCurrentCrs (&mysql_res);
@ -5862,7 +5865,7 @@ void Tst_SelUsrsToSeeUsrsTstExams (void)
/***** Form start *****/
Act_FormStart (ActSeeUsrTstExa);
Grp_PutParamsCodGrps ();
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table style=\"border-spacing:4px;\">"
"<tr>"
"<td colspan=\"2\" style=\"text-align:left;\">");
@ -5911,7 +5914,7 @@ void Tst_SelDatesToSeeMyTstExams (void)
Act_FormStart (ActSeeMyTstExa);
/***** Starting and ending dates in the search *****/
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<table class=\"CELLS_PAD_2\">");
Dat_WriteFormIniEndDates ();
fprintf (Gbl.F.Out,"</table>"

View File

@ -131,7 +131,7 @@ void TsI_ShowFormImportQstsFromXML (void)
extern const char *Txt_Upload_file;
extern const char *Txt_XML_file;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Write help message *****/
Lay_ShowAlert (Lay_INFO,Txt_You_need_an_XML_file_containing_a_list_of_questions_to_import);
@ -492,7 +492,7 @@ static void TsI_ImportQuestionsFromXMLBuffer (const char *XMLBuffer)
/***** Print XML tree *****/
Lay_WriteTitle (Txt_XML_file_content);
fprintf (Gbl.F.Out,"<div align=\"center\">"
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
"<textarea cols=\"60\" rows=\"4\">");
XML_PrintTree (RootElem);
fprintf (Gbl.F.Out,"</textarea>"

View File

@ -248,7 +248,7 @@ void TT_ShowClassTimeTable (void)
/***** Put buttons *****/
if (PutEditButton || PutEditOfficeHours || PrintView)
{
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
if (PutEditButton)
{
@ -321,7 +321,7 @@ void TT_EditCrsTimeTable (void)
extern const char *Txt_Show_timetable;
/***** Link (form) to see my timetable *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeCrsTimTbl);
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);
@ -353,7 +353,7 @@ void TT_ShowMyTutTimeTable (void)
extern const char *Txt_Office_hours;
/***** Link (form) to see my timetable *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActSeeMyTimTbl);
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);

View File

@ -194,7 +194,7 @@ void Usr_InformAboutNumClicksBeforePhoto (void)
Pho_MAX_CLICKS_WITHOUT_PHOTO-Gbl.Usrs.Me.NumAccWithoutPhoto);
Lay_ShowAlert (Lay_WARNING,Message);
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Pho_PutLinkToChangeUsrPhoto (&Gbl.Usrs.Me.UsrDat);
fprintf (Gbl.F.Out,"</div>");
}
@ -1236,7 +1236,7 @@ void Usr_WriteFormLogin (void)
extern const char *Txt_I_forgot_my_password;
/***** Link to create a new account *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:20px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:20px;\">");
Act_FormStart (ActFrmUsrAcc);
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
@ -1257,7 +1257,7 @@ void Usr_WriteFormLogin (void)
fprintf (Gbl.F.Out,"</div>");
/***** Form start *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActAutUsrInt);
Lay_StartRoundFrameTable10 (NULL,2,Txt_Log_in);
@ -1327,7 +1327,7 @@ void Usr_WelcomeUsr (void)
{
if (Gbl.Usrs.Me.UsrDat.Prefs.Language == Txt_Current_CGI_SWAD_Language)
{
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin:10px;\">");
/***** User's first name *****/
if (Gbl.Usrs.Me.UsrDat.FirstName[0])
@ -2295,7 +2295,7 @@ void Usr_ShowFormsRoleAndLogout (void)
extern const char *Txt_Role;
/***** Link to log out *****/
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:20px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center; margin-bottom:20px;\">");
Act_FormStart (ActLogOut);
Act_LinkFormSubmit (Txt_Log_out,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("logout",Txt_Log_out,Txt_Log_out);
@ -2311,7 +2311,8 @@ void Usr_ShowFormsRoleAndLogout (void)
/***** Put a form to change my role *****/
if (Rol_GetNumAvailableRoles () > 1)
{
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">%s: ",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"%s: ",
The_ClassFormul[Gbl.Prefs.Theme],Txt_Role);
Rol_PutFormToChangeMyRole (false);
fprintf (Gbl.F.Out,"</div>");
@ -4155,7 +4156,7 @@ static void Usr_PutButtonToConfirmIWantToSeeBigList (unsigned NumUsrs)
extern const char *Txt_The_list_of_X_users_is_too_large_to_be_displayed;
extern const char *Txt_Show_anyway;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/***** Show warning *****/
sprintf (Gbl.Message,Txt_The_list_of_X_users_is_too_large_to_be_displayed,
@ -5721,7 +5722,7 @@ void Usr_ListDataAdms (void)
Sco_GetScope ();
/***** Form to select range of administrators *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">"
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">"
"%s: ",
The_ClassFormul[Gbl.Prefs.Theme],Txt_Scope);
Act_FormStart (ActLstAdm);
@ -5736,7 +5737,7 @@ void Usr_ListDataAdms (void)
if (Gbl.Usrs.LstAdms.NumUsrs)
{
/****** See the photos? *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActLstAdm);
Sco_PutParamScope (Gbl.Scope.Current);
Usr_PutCheckboxListWithPhotos ();
@ -6149,7 +6150,7 @@ void Usr_SeeGuests (void)
case Rol_ROLE_INS_ADMIN:
case Rol_ROLE_SUPERUSER:
/***** Form to select range of guests *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (ActLstInv);
Usr_PutParamUsrListType (Gbl.Usrs.Me.ListType);
@ -6181,14 +6182,14 @@ void Usr_SeeGuests (void)
{
case Usr_CLASS_PHOTO:
/***** Link to print view *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnInvPho);
Lay_PutLinkToPrintView2 ();
fprintf (Gbl.F.Out,"</div>");
break;
case Usr_LIST:
/****** Link to show all the data ******/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActLstInvAll);
Usr_PutParamListWithPhotos ();
Usr_PutExtraParamsUsrList (ActLstInvAll);
@ -6200,7 +6201,7 @@ void Usr_SeeGuests (void)
}
/***** Draw a class photo with students of the course *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Form start */
Act_FormStart (ActSeeRecSevInv);
@ -6263,7 +6264,8 @@ void Usr_SeeStudents (void)
(Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER || // My role in current course is teacher...
Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)) // ...or superuser
{
fprintf (Gbl.F.Out,"<div align=\"center\" style=\"margin-bottom:10px;\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
" margin-bottom:10px;\">");
/***** Link to list official students *****/
Usr_PutLinkToListOfficialStudents ();
@ -6293,7 +6295,7 @@ void Usr_SeeStudents (void)
case Rol_ROLE_DEG_ADMIN:
case Rol_ROLE_SUPERUSER:
/***** Form to select range of students *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (ActLstStd);
Usr_PutParamUsrListType (Gbl.Usrs.Me.ListType);
@ -6329,7 +6331,7 @@ void Usr_SeeStudents (void)
{
case Usr_CLASS_PHOTO:
/***** Link to print view *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnStdPho);
Grp_PutParamsCodGrps ();
Lay_PutLinkToPrintView2 ();
@ -6339,7 +6341,7 @@ void Usr_SeeStudents (void)
if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_TEACHER)
{
/****** Link to show all the data ******/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActLstStdAll);
Grp_PutParamsCodGrps ();
Usr_PutParamListWithPhotos ();
@ -6353,7 +6355,7 @@ void Usr_SeeStudents (void)
}
/***** Draw a class photo with students of the course *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Form start */
if (ICanViewRecords)
@ -6447,7 +6449,7 @@ void Usr_SeeTeachers (void)
ICanViewRecords = (Gbl.Scope.Current == Sco_SCOPE_COURSE);
/***** Form to select scope *****/
fprintf (Gbl.F.Out,"<div align=\"center\" class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
The_ClassFormul[Gbl.Prefs.Theme]);
Act_FormStart (ActLstTch);
Usr_PutParamUsrListType (Gbl.Usrs.Me.ListType);
@ -6472,7 +6474,7 @@ void Usr_SeeTeachers (void)
switch (Gbl.Usrs.Me.ListType)
{
case Usr_CLASS_PHOTO:
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Lay_PutLinkToPrintView1 (ActPrnTchPho);
Sco_PutParamScope (Gbl.Scope.Current);
Lay_PutLinkToPrintView2 ();
@ -6482,7 +6484,7 @@ void Usr_SeeTeachers (void)
if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_TEACHER)
{
/****** Link to show all the data ******/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActLstTchAll);
Sco_PutParamScope (Gbl.Scope.Current);
Usr_PutParamListWithPhotos ();
@ -6495,7 +6497,7 @@ void Usr_SeeTeachers (void)
}
/***** Draw a class photo with teachers of the course *****/
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
/* Form start */
if (ICanViewRecords)

View File

@ -105,7 +105,7 @@ void ZIP_PutButtonToCreateZIPAsgWrk (void)
extern const char *The_ClassFormul[The_NUM_THEMES];
extern const char *Txt_Create_ZIP_file;
fprintf (Gbl.F.Out,"<div align=\"center\">");
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
Act_FormStart (ActAdmAsgWrkCrs);
Usr_PutHiddenParUsrCodAll (ActAdmAsgWrkCrs,Gbl.Usrs.Select.All);
if (Gbl.FileBrowser.FullTree)