mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-15 21:24:07 +02:00
Version 14.89
This commit is contained in:
parent
565fd7f1f8
commit
746850c48b
16
swad_ID.c
16
swad_ID.c
|
@ -376,7 +376,7 @@ void ID_PutLinkToChangeUsrIDs (const struct UsrData *UsrDat)
|
||||||
}
|
}
|
||||||
Act_LinkFormSubmit (Txt_Change_IDs,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Change_IDs,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("arroba",Txt_Change_IDs,Txt_Change_IDs);
|
Lay_PutSendIcon ("arroba",Txt_Change_IDs,Txt_Change_IDs);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
||||||
|
@ -477,12 +477,12 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
||||||
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"UsrID\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"UsrID\" value=\"%s\" />"
|
||||||
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
||||||
" style=\"margin-right:2px;\" />"
|
" style=\"margin-right:2px;\" />",
|
||||||
"</form>",
|
|
||||||
UsrDat->IDs.List[NumID].ID,
|
UsrDat->IDs.List[NumID].ID,
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -531,16 +531,16 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewID\" size=\"%u\" maxlength=\"%u\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewID\" size=\"%u\" maxlength=\"%u\" value=\"%s\" />"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>"
|
|
||||||
"<tr>",
|
|
||||||
16,
|
16,
|
||||||
ID_MAX_LENGTH_USR_ID,
|
ID_MAX_LENGTH_USR_ID,
|
||||||
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
|
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
|
||||||
"", // Show the most recent ID
|
"", // Show the most recent ID
|
||||||
Txt_Add_this_ID);
|
Txt_Add_this_ID);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>"
|
||||||
|
"<tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Write help text *****/
|
/***** Write help text *****/
|
||||||
|
|
|
@ -98,8 +98,8 @@ void QR_PutLinkToPrintQRCode (QR_QRType_t QRType,struct UsrData *UsrDat,bool Pri
|
||||||
Txt_QR_code);
|
Txt_QR_code);
|
||||||
if (PrintText)
|
if (PrintText)
|
||||||
fprintf (Gbl.F.Out," %s",Txt_QR_code);
|
fprintf (Gbl.F.Out," %s",Txt_QR_code);
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -114,8 +114,8 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
|
||||||
Act_FormStart (ActFrmLogIn);
|
Act_FormStart (ActFrmLogIn);
|
||||||
Act_LinkFormSubmit (Txt_Log_in,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Log_in,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("login",Txt_Log_in,Txt_Log_in);
|
Lay_PutSendIcon ("login",Txt_Log_in,Txt_Log_in);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Form to enter some data of the new user *****/
|
/***** Form to enter some data of the new user *****/
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">");
|
||||||
|
@ -164,8 +164,8 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Txt_Create_account);
|
Txt_Create_account);
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -236,7 +236,7 @@ static void Acc_PutLinkToRemoveMyAccount (void)
|
||||||
Par_PutHiddenParamUnsigned ("RegRemAction",(unsigned) Enr_ELIMINATE_ONE_USR_FROM_PLATFORM);
|
Par_PutHiddenParamUnsigned ("RegRemAction",(unsigned) Enr_ELIMINATE_ONE_USR_FROM_PLATFORM);
|
||||||
Act_LinkFormSubmit (Txt_Remove_account,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_account,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_account,Txt_Remove_account);
|
Lay_PutSendIcon ("delon",Txt_Remove_account,Txt_Remove_account);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -621,10 +621,10 @@ void Acc_AskIfCompletelyEliminateAccount (bool ItsMe)
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
ItsMe ? Txt_Completely_eliminate_me :
|
ItsMe ? Txt_Completely_eliminate_me :
|
||||||
Txt_Completely_eliminate_user);
|
Txt_Completely_eliminate_user);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
||||||
|
|
101
swad_action.c
101
swad_action.c
|
@ -4198,43 +4198,57 @@ static void Act_FormStartInternal (Act_Action_t NextAction,bool PutParameterLoca
|
||||||
{
|
{
|
||||||
extern const char *Txt_STR_LANG_ID[Txt_NUM_LANGUAGES];
|
extern const char *Txt_STR_LANG_ID[Txt_NUM_LANGUAGES];
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<form method=\"post\" action=\"%s/%s\" id=\"%s\"",
|
if (!Gbl.InsideForm)
|
||||||
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],Id);
|
|
||||||
|
|
||||||
switch (Act_Actions[NextAction].BrowserWindow)
|
|
||||||
{
|
{
|
||||||
case Act_NEW_WINDOW:
|
fprintf (Gbl.F.Out,"<form method=\"post\" action=\"%s/%s\" id=\"%s\"",
|
||||||
case Act_DOWNLD_FILE:
|
Cfg_HTTPS_URL_SWAD_CGI,Txt_STR_LANG_ID[Gbl.Prefs.Language],Id);
|
||||||
fprintf (Gbl.F.Out," target=\"_blank\"");
|
|
||||||
break;
|
switch (Act_Actions[NextAction].BrowserWindow)
|
||||||
default:
|
{
|
||||||
break;
|
case Act_NEW_WINDOW:
|
||||||
|
case Act_DOWNLD_FILE:
|
||||||
|
fprintf (Gbl.F.Out," target=\"_blank\"");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Act_Actions[NextAction].ContentType == Act_CONTENT_DATA)
|
||||||
|
fprintf (Gbl.F.Out," enctype=\"multipart/form-data\"");
|
||||||
|
|
||||||
|
fprintf (Gbl.F.Out,">");
|
||||||
|
|
||||||
|
Gbl.InsideForm = true;
|
||||||
|
|
||||||
|
if (NextAction != ActUnk)
|
||||||
|
Par_PutHiddenParamLong ("act",Act_Actions[NextAction].ActCod);
|
||||||
|
|
||||||
|
if (Gbl.Session.Id[0])
|
||||||
|
Par_PutHiddenParamString ("ses",Gbl.Session.Id);
|
||||||
|
else if (PutParameterLocationIfNoSesion) // Extra parameters necessary when there's no open session
|
||||||
|
{
|
||||||
|
/* If session is open, course code will be get from session data,
|
||||||
|
but if there is not an open session, and next action is known, it is necessary to send a parameter with course code */
|
||||||
|
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // If course selected...
|
||||||
|
Crs_PutParamCrsCod (Gbl.CurrentCrs.Crs.CrsCod);
|
||||||
|
else if (Gbl.CurrentDeg.Deg.DegCod > 0) // If no course selected, but degree selected...
|
||||||
|
Deg_PutParamDegCod (Gbl.CurrentDeg.Deg.DegCod);
|
||||||
|
else if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If no degree selected, but centre selected...
|
||||||
|
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
||||||
|
else if (Gbl.CurrentIns.Ins.InsCod > 0) // If no centre selected, but institution selected...
|
||||||
|
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
||||||
|
else if (Gbl.CurrentCty.Cty.CtyCod > 0) // If no institution selected, but country selected...
|
||||||
|
Cty_PutParamCtyCod (Gbl.CurrentCty.Cty.CtyCod);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Act_Actions[NextAction].ContentType == Act_CONTENT_DATA)
|
void Act_FormEnd (void)
|
||||||
fprintf (Gbl.F.Out," enctype=\"multipart/form-data\"");
|
{
|
||||||
|
if (Gbl.InsideForm)
|
||||||
fprintf (Gbl.F.Out,">");
|
|
||||||
|
|
||||||
if (NextAction != ActUnk)
|
|
||||||
Par_PutHiddenParamLong ("act",Act_Actions[NextAction].ActCod);
|
|
||||||
|
|
||||||
if (Gbl.Session.Id[0])
|
|
||||||
Par_PutHiddenParamString ("ses",Gbl.Session.Id);
|
|
||||||
else if (PutParameterLocationIfNoSesion) // Extra parameters necessary when there's no open session
|
|
||||||
{
|
{
|
||||||
/* If session is open, course code will be get from session data,
|
fprintf (Gbl.F.Out,"</form>");
|
||||||
but if there is not an open session, and next action is known, it is necessary to send a parameter with course code */
|
Gbl.InsideForm = false;
|
||||||
if (Gbl.CurrentCrs.Crs.CrsCod > 0) // If course selected...
|
|
||||||
Crs_PutParamCrsCod (Gbl.CurrentCrs.Crs.CrsCod);
|
|
||||||
else if (Gbl.CurrentDeg.Deg.DegCod > 0) // If no course selected, but degree selected...
|
|
||||||
Deg_PutParamDegCod (Gbl.CurrentDeg.Deg.DegCod);
|
|
||||||
else if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If no degree selected, but centre selected...
|
|
||||||
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
|
||||||
else if (Gbl.CurrentIns.Ins.InsCod > 0) // If no centre selected, but institution selected...
|
|
||||||
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
|
||||||
else if (Gbl.CurrentCty.Cty.CtyCod > 0) // If no institution selected, but country selected...
|
|
||||||
Cty_PutParamCtyCod (Gbl.CurrentCty.Cty.CtyCod);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4650,11 +4664,10 @@ void Act_WriteBigMFUActions (struct Act_ListMFUActions *ListMFUActions)
|
||||||
Txt_TABS_FULL_TXT[Act_Actions[Action].Tab],
|
Txt_TABS_FULL_TXT[Act_Actions[Action].Tab],
|
||||||
Txt_MENU_TITLE[Act_Actions[Action].Tab][Act_Actions[Action].IndexInMenu]);
|
Txt_MENU_TITLE[Act_Actions[Action].Tab][Act_Actions[Action].IndexInMenu]);
|
||||||
Str_LimitLengthHTMLStr (ActionStr,40);
|
Str_LimitLengthHTMLStr (ActionStr,40);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",ActionStr);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>",
|
"</tr>");
|
||||||
ActionStr);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4679,9 +4692,9 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
|
||||||
Act_FormStart (ActMFUAct);
|
Act_FormStart (ActMFUAct);
|
||||||
Act_LinkFormSubmit (Txt_Frequent_actions,"MFU_ACT");
|
Act_LinkFormSubmit (Txt_Frequent_actions,"MFU_ACT");
|
||||||
fprintf (Gbl.F.Out," %s"
|
fprintf (Gbl.F.Out," %s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Txt_Frequent_actions);
|
Txt_Frequent_actions);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div id=\"MFU_actions\">"
|
fprintf (Gbl.F.Out,"<div id=\"MFU_actions\">"
|
||||||
"<table style=\"width:120px;\">");
|
"<table style=\"width:120px;\">");
|
||||||
|
@ -4715,11 +4728,11 @@ void Act_WriteSmallMFUActions (struct Act_ListMFUActions *ListMFUActions)
|
||||||
|
|
||||||
strcpy (ActionStr,Txt_MENU_TITLE[Act_Actions[Action].Tab][Act_Actions[Action].IndexInMenu]);
|
strcpy (ActionStr,Txt_MENU_TITLE[Act_Actions[Action].Tab][Act_Actions[Action].IndexInMenu]);
|
||||||
Str_LimitLengthHTMLStr (ActionStr,12);
|
Str_LimitLengthHTMLStr (ActionStr,12);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
ActionStr);
|
ActionStr);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1333,6 +1333,7 @@ char *Act_GetActionTextFromDB (long ActCod,char *Txt);
|
||||||
void Act_FormStart (Act_Action_t NextAction);
|
void Act_FormStart (Act_Action_t NextAction);
|
||||||
void Act_FormGoToStart (Act_Action_t NextAction);
|
void Act_FormGoToStart (Act_Action_t NextAction);
|
||||||
void Act_FormStartId (Act_Action_t NextAction,const char *Id);
|
void Act_FormStartId (Act_Action_t NextAction,const char *Id);
|
||||||
|
void Act_FormEnd (void);
|
||||||
void Act_LinkFormSubmit (const char *Title,const char *LinkStyle);
|
void Act_LinkFormSubmit (const char *Title,const char *LinkStyle);
|
||||||
void Act_LinkFormSubmitId (const char *Title,const char *LinkStyle,const char *Id);
|
void Act_LinkFormSubmitId (const char *Title,const char *LinkStyle,const char *Id);
|
||||||
void Act_AdjustActionWhenNoUsrLogged (void);
|
void Act_AdjustActionWhenNoUsrLogged (void);
|
||||||
|
|
|
@ -82,7 +82,7 @@ void Ann_ShowAllAnnouncements (void)
|
||||||
Act_FormStart (ActWriAnn);
|
Act_FormStart (ActWriAnn);
|
||||||
Act_LinkFormSubmit (Txt_New_announcement,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_announcement,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_announcement,Txt_New_announcement);
|
Lay_PutSendIcon ("new",Txt_New_announcement,Txt_New_announcement);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** List announcements *****/
|
/***** List announcements *****/
|
||||||
|
@ -254,11 +254,11 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
|
||||||
Act_LinkFormSubmit (Txt_Remove,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove,
|
Txt_Remove,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -268,11 +268,11 @@ static void Ann_ShowAnnouncement (long AnnCod,const char *Subject,const char *Co
|
||||||
Act_LinkFormSubmit (Txt_Do_not_show_again,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Do_not_show_again,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Do_not_show_again,
|
Txt_Do_not_show_again,
|
||||||
Txt_Do_not_show_again);
|
Txt_Do_not_show_again);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
@ -369,7 +369,7 @@ void Ann_ShowFormAnnouncement (void)
|
||||||
"</table>");
|
"</table>");
|
||||||
|
|
||||||
Lay_PutSendButton (Txt_Create_announcement);
|
Lay_PutSendButton (Txt_Create_announcement);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -170,9 +170,9 @@ static void Asg_ShowAllAssignments (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
||||||
if (Order == Gbl.Asgs.SelectedOrderType)
|
if (Order == Gbl.Asgs.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||||
"%s"
|
"%s"
|
||||||
|
@ -215,7 +215,7 @@ static void Asg_PutFormToSelectWhichGroupsToShow (void)
|
||||||
Asg_PutHiddenParamAsgOrderType ();
|
Asg_PutHiddenParamAsgOrderType ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Grp_ShowSelectorWhichGrps ();
|
Grp_ShowSelectorWhichGrps ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -375,7 +375,7 @@ static void Asg_WriteAsgAuthor (struct Assignment *Asg)
|
||||||
/***** Show photo *****/
|
/***** Show photo *****/
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16",true);
|
"PHOTO12x16",Pho_ZOOM);
|
||||||
|
|
||||||
/***** Write name *****/
|
/***** Write name *****/
|
||||||
strcpy (FirstName,UsrDat.FirstName);
|
strcpy (FirstName,UsrDat.FirstName);
|
||||||
|
@ -420,11 +420,11 @@ static void Asg_WriteAssignmentFolder (struct Assignment *Asg)
|
||||||
Asg->Folder);
|
Asg->Folder);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/folder-open-plus16x16.gif\" alt=\"%s\""
|
" src=\"%s/folder-open-plus16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else // I can't send files to this assignment folder
|
else // I can't send files to this assignment folder
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/folder-closed16x16.gif\""
|
||||||
|
@ -482,8 +482,8 @@ static void Asg_PutFormToCreateNewAsg (void)
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Act_LinkFormSubmit (Txt_New_assignment,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_assignment,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_assignment,Txt_New_assignment);
|
Lay_PutSendIcon ("new",Txt_New_assignment,Txt_New_assignment);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -508,12 +508,12 @@ static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove,
|
Txt_Remove,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to hide/show assignment *****/
|
/***** Put form to hide/show assignment *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -535,8 +535,8 @@ static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden)
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Hide,
|
Txt_Hide,
|
||||||
Txt_Hide);
|
Txt_Hide);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to edit assignment *****/
|
/***** Put form to edit assignment *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -546,12 +546,12 @@ static void Asg_PutFormsToRemEditOneAsg (long AsgCod,bool Hidden)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Edit,
|
Txt_Edit,
|
||||||
Txt_Edit);
|
Txt_Edit);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>");
|
"</table>");
|
||||||
|
@ -935,9 +935,10 @@ void Asg_AskRemAssignment (void)
|
||||||
Asg.Title);
|
Asg.Title);
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" /></div>"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</form>",
|
"</div>",
|
||||||
Txt_Remove_assignment);
|
Txt_Remove_assignment);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Show assignments again *****/
|
/***** Show assignments again *****/
|
||||||
Asg_SeeAssignments ();
|
Asg_SeeAssignments ();
|
||||||
|
@ -1243,7 +1244,8 @@ void Asg_RequestCreatOrEditAsg (void)
|
||||||
Txt_Modify_assignment);
|
Txt_Modify_assignment);
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</form><br />");
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"<br />");
|
||||||
|
|
||||||
/***** Show current assignments *****/
|
/***** Show current assignments *****/
|
||||||
Asg_ShowAllAssignments ();
|
Asg_ShowAllAssignments ();
|
||||||
|
|
|
@ -200,9 +200,9 @@ static void Att_ShowAllAttEvents (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
||||||
if (Order == Gbl.AttEvents.SelectedOrderType)
|
if (Order == Gbl.AttEvents.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:left;\">"
|
||||||
"%s"
|
"%s"
|
||||||
|
@ -241,7 +241,7 @@ static void Att_PutFormToSelectWhichGroupsToShow (void)
|
||||||
Att_PutHiddenParamAttOrderType ();
|
Att_PutHiddenParamAttOrderType ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Grp_ShowSelectorWhichGrps ();
|
Grp_ShowSelectorWhichGrps ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -307,8 +307,9 @@ static void Att_ShowOneAttEvent (struct AttendanceEvent *Att,bool ShowOnlyThisAt
|
||||||
Att_PutParamsCodGrps (Att->AttCod);
|
Att_PutParamsCodGrps (Att->AttCod);
|
||||||
Act_LinkFormSubmit (Txt_View_event,Att->Hidden ? "ASG_TITLE_LIGHT" :
|
Act_LinkFormSubmit (Txt_View_event,Att->Hidden ? "ASG_TITLE_LIGHT" :
|
||||||
"ASG_TITLE");
|
"ASG_TITLE");
|
||||||
fprintf (Gbl.F.Out,"%s</a></form></td>",
|
fprintf (Gbl.F.Out,"%s</a>",Att->Title);
|
||||||
Att->Title);
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Number of students in this event *****/
|
/***** Number of students in this event *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT_N\""
|
fprintf (Gbl.F.Out,"<td class=\"DAT_N\""
|
||||||
|
@ -389,7 +390,7 @@ static void Att_WriteAttEventAuthor (struct AttendanceEvent *Att)
|
||||||
/***** Show photo *****/
|
/***** Show photo *****/
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16",true);
|
"PHOTO12x16",Pho_ZOOM);
|
||||||
|
|
||||||
/***** Write name *****/
|
/***** Write name *****/
|
||||||
strcpy (FirstName,UsrDat.FirstName);
|
strcpy (FirstName,UsrDat.FirstName);
|
||||||
|
@ -451,7 +452,7 @@ static void Att_PutFormToListStds (void)
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Act_LinkFormSubmit (Txt_Attendance_list,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Attendance_list,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("list",Txt_Attendance_list,Txt_Attendance_list);
|
Lay_PutSendIcon ("list",Txt_Attendance_list,Txt_Attendance_list);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -470,7 +471,7 @@ static void Att_PutFormToCreateNewAttEvent (void)
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Act_LinkFormSubmit (Txt_New_event,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_event,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_event,Txt_New_event);
|
Lay_PutSendIcon ("new",Txt_New_event,Txt_New_event);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -494,12 +495,12 @@ static void Att_PutFormsToRemEditOneAttEvent (long AttCod,bool Hidden)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove,
|
Txt_Remove,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to hide/show attendance event *****/
|
/***** Put form to hide/show attendance event *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -521,8 +522,8 @@ static void Att_PutFormsToRemEditOneAttEvent (long AttCod,bool Hidden)
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Hide,
|
Txt_Hide,
|
||||||
Txt_Hide);
|
Txt_Hide);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to edit attendance event *****/
|
/***** Put form to edit attendance event *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -532,14 +533,14 @@ static void Att_PutFormsToRemEditOneAttEvent (long AttCod,bool Hidden)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>"
|
|
||||||
"</table>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Edit,
|
Txt_Edit,
|
||||||
Txt_Edit);
|
Txt_Edit);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>"
|
||||||
|
"</table>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -896,9 +897,9 @@ void Att_AskRemAttEvent (void)
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Remove_event);
|
Txt_Remove_event);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Show attendance events again *****/
|
/***** Show attendance events again *****/
|
||||||
Att_SeeAttEvents ();
|
Att_SeeAttEvents ();
|
||||||
|
@ -1209,7 +1210,8 @@ void Att_RequestCreatOrEditAttEvent (void)
|
||||||
Txt_Modify_event);
|
Txt_Modify_event);
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</form><br />");
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"<br />");
|
||||||
|
|
||||||
/***** Show current attendance events *****/
|
/***** Show current attendance events *****/
|
||||||
Att_ShowAllAttEvents ();
|
Att_ShowAllAttEvents ();
|
||||||
|
@ -1941,7 +1943,7 @@ static void Att_ListAttOnlyMeAsStudent (struct AttendanceEvent *Att)
|
||||||
{
|
{
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2020,8 +2022,8 @@ static void Att_ListAttStudents (struct AttendanceEvent *Att)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Free memory used for user's data *****/
|
/***** Free memory used for user's data *****/
|
||||||
Usr_UsrDataDestructor (&UsrDat);
|
Usr_UsrDataDestructor (&UsrDat);
|
||||||
|
@ -2099,7 +2101,7 @@ static void Att_WriteRowStdToCallTheRoll (unsigned NumStd,struct UsrData *UsrDat
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO36x48",true);
|
"PHOTO36x48",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2662,8 +2664,8 @@ void Usr_ReqListAttendanceStdsCrs (void)
|
||||||
|
|
||||||
/* Send button */
|
/* Send button */
|
||||||
Lay_PutSendButton (Txt_Show_list);
|
Lay_PutSendButton (Txt_Show_list);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Free memory used for by the list of users *****/
|
/***** Free memory used for by the list of users *****/
|
||||||
Usr_FreeListsEncryptedUsrCods ();
|
Usr_FreeListsEncryptedUsrCods ();
|
||||||
|
@ -2926,8 +2928,8 @@ static void Att_PutFormToPrintListStds (bool ShowDetails,char *StrAttCodsSelecte
|
||||||
Par_PutHiddenParamString ("AttCods",StrAttCodsSelected);
|
Par_PutHiddenParamString ("AttCods",StrAttCodsSelected);
|
||||||
Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("print",Txt_Print,Txt_Print);
|
Lay_PutSendIcon ("print",Txt_Print,Txt_Print);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2947,8 +2949,8 @@ static void Att_PutButtonToShowDetails (char *StrAttCodsSelected)
|
||||||
if (StrAttCodsSelected[0])
|
if (StrAttCodsSelected[0])
|
||||||
Par_PutHiddenParamString ("AttCods",StrAttCodsSelected);
|
Par_PutHiddenParamString ("AttCods",StrAttCodsSelected);
|
||||||
Lay_PutSendButton (Txt_Show_more_details);
|
Lay_PutSendButton (Txt_Show_more_details);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3058,7 +3060,7 @@ static void Att_ListEventsToSelect (void)
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
if (Gbl.CurrentAct == ActSeeLstAttStd)
|
if (Gbl.CurrentAct == ActSeeLstAttStd)
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3216,8 +3218,7 @@ static void Att_WriteRowStdSeveralAttEvents (unsigned NumStd,struct UsrData *Usr
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3354,8 +3355,7 @@ static void Att_ListAttEventsForAStd (unsigned NumStd,struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write user's ID ******/
|
/***** Write user's ID ******/
|
||||||
|
|
|
@ -131,8 +131,8 @@ static void Ban_PutFormToEditBanners (void)
|
||||||
Act_FormStart (ActEdiBan);
|
Act_FormStart (ActEdiBan);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -324,12 +324,12 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActRemBan);
|
Act_FormStart (ActRemBan);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_banner,
|
Txt_Remove_banner,
|
||||||
Txt_Remove_banner);
|
Txt_Remove_banner);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Put icon to hide/show banner */
|
/* Put icon to hide/show banner */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
||||||
|
@ -337,9 +337,7 @@ static void Ban_ListBannersForEdition (void)
|
||||||
ActHidBan);
|
ActHidBan);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Ban->IsHidden ? "hidden" :
|
Ban->IsHidden ? "hidden" :
|
||||||
"visible",
|
"visible",
|
||||||
|
@ -347,6 +345,8 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Txt_Hide,
|
Txt_Hide,
|
||||||
Ban->IsHidden ? Txt_Show :
|
Ban->IsHidden ? Txt_Show :
|
||||||
Txt_Hide);
|
Txt_Hide);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Banner code */
|
/* Banner code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;\">"
|
||||||
|
@ -362,10 +362,10 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActRenBanSho);
|
Act_FormStart (ActRenBanSho);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"12\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"12\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName,Gbl.FormId);
|
Ban_MAX_LENGTH_SHORT_NAME,Ban->ShortName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Banner full name */
|
/* Banner full name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -373,10 +373,10 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActRenBanFul);
|
Act_FormStart (ActRenBanFul);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName,Gbl.FormId);
|
Ban_MAX_LENGTH_FULL_NAME,Ban->FullName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Banner image */
|
/* Banner image */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -384,10 +384,10 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActChgBanImg);
|
Act_FormStart (ActChgBanImg);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Img\" size=\"12\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Img\" size=\"12\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ban_MAX_LENGTH_IMAGE,Ban->Img,Gbl.FormId);
|
Ban_MAX_LENGTH_IMAGE,Ban->Img,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Banner WWW */
|
/* Banner WWW */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -395,12 +395,11 @@ static void Ban_ListBannersForEdition (void)
|
||||||
Act_FormStart (ActChgBanWWW);
|
Act_FormStart (ActChgBanWWW);
|
||||||
Ban_PutParamBanCod (Ban->BanCod);
|
Ban_PutParamBanCod (Ban->BanCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"24\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Ban->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Ban->WWW,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -790,7 +789,7 @@ static void Ban_PutFormToCreateBanner (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -931,15 +930,15 @@ void Ban_WriteMenuWithBanners (void)
|
||||||
" title=\"%s\">"
|
" title=\"%s\">"
|
||||||
"<img src=\"%s/%s/%s\" alt=\"%s\""
|
"<img src=\"%s/%s/%s\" alt=\"%s\""
|
||||||
" style=\"width:120px; height:40px;\" />"
|
" style=\"width:120px; height:40px;\" />"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Gbl.Banners.Lst[NumBan].FullName,
|
Gbl.Banners.Lst[NumBan].FullName,
|
||||||
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_BANNER,
|
Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_BANNER,
|
||||||
Gbl.Banners.Lst[NumBan].Img,
|
Gbl.Banners.Lst[NumBan].Img,
|
||||||
Gbl.Banners.Lst[NumBan].ShortName);
|
Gbl.Banners.Lst[NumBan].ShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Free list of banners *****/
|
/***** Free list of banners *****/
|
||||||
|
|
|
@ -244,8 +244,10 @@ static void Cal_DrawMonth (unsigned RealYear,unsigned RealMonth,
|
||||||
fprintf (Gbl.F.Out,"%s %u",
|
fprintf (Gbl.F.Out,"%s %u",
|
||||||
Txt_MONTHS_CAPS[RealMonth-1],RealYear);
|
Txt_MONTHS_CAPS[RealMonth-1],RealYear);
|
||||||
if (PutLinkToCalendar)
|
if (PutLinkToCalendar)
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
{
|
||||||
"</form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Month head: first letter for each day of week *****/
|
/***** Month head: first letter for each day of week *****/
|
||||||
|
@ -378,11 +380,13 @@ static void Cal_DrawMonth (unsigned RealYear,unsigned RealMonth,
|
||||||
|
|
||||||
/* If day has an exam announcement */
|
/* If day has an exam announcement */
|
||||||
if (PutLinkToEvents && ThisDayHasEvent)
|
if (PutLinkToEvents && ThisDayHasEvent)
|
||||||
|
{
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
|
|
|
@ -187,10 +187,10 @@ void Ctr_SeeCtrWithPendingDegs (void)
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Ctr.FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Ctr.FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s"
|
fprintf (Gbl.F.Out,"%s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ctr.FullName);
|
Ctr.FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of pending degrees (row[1]) */
|
/* Number of pending degrees (row[1]) */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -271,7 +271,7 @@ static void Ctr_Configuration (bool PrintView)
|
||||||
Act_FormStart (ActSeeDeg);
|
Act_FormStart (ActSeeDeg);
|
||||||
Act_LinkFormSubmit (Txt_Degrees,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Degrees,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("deg",Txt_Degrees,Txt_Degrees);
|
Lay_PutSendIcon ("deg",Txt_Degrees,Txt_Degrees);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Link to print view */
|
/* Link to print view */
|
||||||
Lay_PutLinkToPrintView1 (ActPrnCtrInf);
|
Lay_PutLinkToPrintView1 (ActPrnCtrInf);
|
||||||
|
@ -345,9 +345,9 @@ static void Ctr_Configuration (bool PrintView)
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
if (PhotoAttribution)
|
if (PhotoAttribution)
|
||||||
fprintf (Gbl.F.Out,"%s",PhotoAttribution);
|
fprintf (Gbl.F.Out,"%s",PhotoAttribution);
|
||||||
fprintf (Gbl.F.Out,"</textarea>"
|
fprintf (Gbl.F.Out,"</textarea>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
else if (PhotoAttribution)
|
else if (PhotoAttribution)
|
||||||
|
@ -649,10 +649,10 @@ static void Ctr_ListOneCentreForSeeing (struct Centre *Ctr,unsigned NumCtr)
|
||||||
Ctr_PutParamCtrCod (Ctr->CtrCod);
|
Ctr_PutParamCtrCod (Ctr->CtrCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Ctr->FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Ctr->FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ctr->FullName);
|
Ctr->FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Number of teachers *****/
|
/***** Number of teachers *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
||||||
|
@ -1125,8 +1125,8 @@ void Ctr_WriteSelectorOfCentre (Act_Action_t NextAction)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1186,11 +1186,11 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActRemCtr);
|
Act_FormStart (ActRemCtr);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_centre,
|
Txt_Remove_centre,
|
||||||
Txt_Remove_centre);
|
Txt_Remove_centre);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -1225,8 +1225,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
(Gbl.Inss.Lst[NumIns].InsCod == Ctr->InsCod) ? " selected=\"selected\"" :
|
(Gbl.Inss.Lst[NumIns].InsCod == Ctr->InsCod) ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Inss.Lst[NumIns].ShortName);
|
Gbl.Inss.Lst[NumIns].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Gbl.CurrentIns.Ins.ShortName);
|
fprintf (Gbl.F.Out,"%s",Gbl.CurrentIns.Ins.ShortName);
|
||||||
|
@ -1254,8 +1254,8 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
(Gbl.Plcs.Lst[NumPlc].PlcCod == Ctr->PlcCod) ? " selected=\"selected\"" :
|
(Gbl.Plcs.Lst[NumPlc].PlcCod == Ctr->PlcCod) ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Plcs.Lst[NumPlc].ShortName);
|
Gbl.Plcs.Lst[NumPlc].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (NumPlc = 0;
|
for (NumPlc = 0;
|
||||||
|
@ -1273,10 +1273,10 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActRenCtrSho);
|
Act_FormStart (ActRenCtrSho);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName,Gbl.FormId);
|
Ctr_MAX_LENGTH_CENTRE_SHORT_NAME,Ctr->ShortName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Ctr->ShortName);
|
fprintf (Gbl.F.Out,"%s",Ctr->ShortName);
|
||||||
|
@ -1290,10 +1290,10 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActRenCtrFul);
|
Act_FormStart (ActRenCtrFul);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName,Gbl.FormId);
|
Ctr_MAX_LENGTH_CENTRE_FULL_NAME,Ctr->FullName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Ctr->FullName);
|
fprintf (Gbl.F.Out,"%s",Ctr->FullName);
|
||||||
|
@ -1307,9 +1307,9 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
Act_FormStart (ActChgCtrWWW);
|
Act_FormStart (ActChgCtrWWW);
|
||||||
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
Ctr_PutParamOtherCtrCod (Ctr->CtrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Ctr->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Ctr->WWW,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1347,13 +1347,13 @@ static void Ctr_ListCentresForEdition (void)
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
(unsigned) Ctr_GetStatusBitsFromStatusTxt (Ctr_STATUS_PENDING),
|
(unsigned) Ctr_GetStatusBitsFromStatusTxt (Ctr_STATUS_PENDING),
|
||||||
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING],
|
Txt_CENTRE_STATUS[Ctr_STATUS_PENDING],
|
||||||
(unsigned) Ctr_GetStatusBitsFromStatusTxt (Ctr_STATUS_ACTIVE),
|
(unsigned) Ctr_GetStatusBitsFromStatusTxt (Ctr_STATUS_ACTIVE),
|
||||||
Txt_CENTRE_STATUS[Ctr_STATUS_ACTIVE]);
|
Txt_CENTRE_STATUS[Ctr_STATUS_ACTIVE]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_CENTRE_STATUS[StatusTxt]);
|
fprintf (Gbl.F.Out,"%s",Txt_CENTRE_STATUS[StatusTxt]);
|
||||||
|
@ -1838,7 +1838,7 @@ static void Ctr_PutFormToChangeCtrPhoto (bool PhotoExists)
|
||||||
Txt_Upload_photo;
|
Txt_Upload_photo;
|
||||||
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("photo",Msg,Msg);
|
Lay_PutSendIcon ("photo",Msg,Msg);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1874,12 +1874,12 @@ void Ctr_RequestPhoto (void)
|
||||||
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>",
|
||||||
"</form>",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_File_with_the_photo,
|
Txt_File_with_the_photo,
|
||||||
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
||||||
Txt_Upload_photo);
|
Txt_Upload_photo);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2100,7 +2100,7 @@ static void Ctr_PutFormToCreateCentre (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2141,8 +2141,8 @@ static void Ctr_PutHeadCentresForSeeing (bool OrderSelectable)
|
||||||
{
|
{
|
||||||
if (Order == Gbl.Ctrs.SelectedOrderType)
|
if (Order == Gbl.Ctrs.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.88 (2015/03/12)"
|
#define Log_PLATFORM_VERSION "SWAD 14.89 (2015/03/13)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.89: Mar 13, 2015 Lots of changes related with forms and photos. (181769 lines)
|
||||||
Version 14.88: Mar 12, 2015 Changes in layout of public user profile. (181718 lines)
|
Version 14.88: Mar 12, 2015 Changes in layout of public user profile. (181718 lines)
|
||||||
Version 14.87.4: Mar 11, 2015 Added indexes to usr_figures. (181629 lines)
|
Version 14.87.4: Mar 11, 2015 Added indexes to usr_figures. (181629 lines)
|
||||||
2 changes necessary in database:
|
2 changes necessary in database:
|
||||||
|
|
|
@ -327,9 +327,9 @@ static void Cht_WriteLinkToChat2 (const char *RoomCode,const char *RoomFullName)
|
||||||
Txt_connected_SINGULAR);
|
Txt_connected_SINGULAR);
|
||||||
if (NumUsrsInRoom)
|
if (NumUsrsInRoom)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -93,8 +93,8 @@ void Con_ShowConnectedUsrs (void)
|
||||||
}
|
}
|
||||||
Act_LinkFormSubmit (Txt_Update_connected_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Update_connected_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("recycle",Txt_Update_connected_users,Txt_Update_connected_users);
|
Lay_PutSendIcon ("recycle",Txt_Update_connected_users,Txt_Update_connected_users);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Show connected users *****/
|
/***** Show connected users *****/
|
||||||
Gbl.Usrs.Connected.WhereToShow = Con_SHOW_ON_MAIN_ZONE;
|
Gbl.Usrs.Connected.WhereToShow = Con_SHOW_ON_MAIN_ZONE;
|
||||||
|
@ -638,12 +638,13 @@ static void Con_ShowConnectedUsrsWithARoleBelongingToCurrentLocationOnRightColum
|
||||||
Sco_PutParamScope (Sco_SCOPE_CRS);
|
Sco_PutParamScope (Sco_SCOPE_CRS);
|
||||||
Act_LinkFormSubmitId (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme],Gbl.FormId);
|
Act_LinkFormSubmitId (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme],Gbl.FormId);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
|
||||||
" alt=\"%s\" class=\"ICON32x32\" /></a>"
|
" alt=\"%s\" class=\"ICON32x32\" />"
|
||||||
"</form>"
|
"</a>",
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Connected_users);
|
Txt_Connected_users);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -953,6 +954,7 @@ static void Con_ShowConnectedUsrsCurrentCrsOneByOneOnRightColumn (Rol_Role_t Rol
|
||||||
|
|
||||||
static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
||||||
{
|
{
|
||||||
|
extern const char *Txt_View_record_card;
|
||||||
const char *Color = Gbl.ColorRows[Gbl.RowEvenOdd];
|
const char *Color = Gbl.ColorRows[Gbl.RowEvenOdd];
|
||||||
bool ShowPhoto;
|
bool ShowPhoto;
|
||||||
char PhotoURL[PATH_MAX+1];
|
char PhotoURL[PATH_MAX+1];
|
||||||
|
@ -976,18 +978,16 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
||||||
" vertical-align:middle; background-color:%s;\">",
|
" vertical-align:middle; background-color:%s;\">",
|
||||||
Color);
|
Color);
|
||||||
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
|
sprintf (Gbl.FormId,"form_con_%d",++Gbl.NumFormConnectedUsrs);
|
||||||
Act_FormStartId ((Role == Rol_ROLE_STUDENT) ? ActSeeRecOneStd :
|
Act_FormStartId (ActSeePubPrf,Gbl.FormId);
|
||||||
ActSeeRecOneTch,
|
|
||||||
Gbl.FormId);
|
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
||||||
Act_LinkFormSubmitId (NULL,NULL,Gbl.FormId);
|
Act_LinkFormSubmitId (UsrDat.FullName,NULL,Gbl.FormId);
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write full name and link *****/
|
/***** Write full name and link *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:54px; text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:54px; text-align:left;"
|
||||||
|
@ -998,11 +998,11 @@ static void Con_WriteRowConnectedUsrOnRightColumn (Rol_Role_t Role)
|
||||||
ActSeeRecOneTch,
|
ActSeeRecOneTch,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
||||||
Act_LinkFormSubmitId (UsrDat.FullName,Font,Gbl.FormId);
|
Act_LinkFormSubmitId (Txt_View_record_card,Font,Gbl.FormId);
|
||||||
Usr_RestrictLengthAndWriteName (&UsrDat,8);
|
Usr_RestrictLengthAndWriteName (&UsrDat,8);
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write time from last access *****/
|
/***** Write time from last access *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:38px; text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"width:38px; text-align:right;"
|
||||||
|
@ -1159,20 +1159,10 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
||||||
"<td style=\"width:18px; text-align:left;"
|
"<td style=\"width:18px; text-align:left;"
|
||||||
" vertical-align:middle; background-color:%s;\">",
|
" vertical-align:middle; background-color:%s;\">",
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
Gbl.ColorRows[Gbl.RowEvenOdd]);
|
||||||
if (PutLinkToRecord)
|
|
||||||
{
|
|
||||||
Act_FormStart ((Role == Rol_ROLE_STUDENT) ? ActSeeRecOneStd :
|
|
||||||
ActSeeRecOneTch);
|
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
|
||||||
Act_LinkFormSubmit (NULL,NULL);
|
|
||||||
}
|
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
if (PutLinkToRecord)
|
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
|
||||||
"</form>");
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write full name and link *****/
|
/***** Write full name and link *****/
|
||||||
|
@ -1189,8 +1179,10 @@ static void Con_ShowConnectedUsrsCurrentLocationOneByOneOnMainZone (Rol_Role_t R
|
||||||
}
|
}
|
||||||
Usr_RestrictLengthAndWriteName (&UsrDat,40);
|
Usr_RestrictLengthAndWriteName (&UsrDat,40);
|
||||||
if (PutLinkToRecord)
|
if (PutLinkToRecord)
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
{
|
||||||
"</form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write time from last access *****/
|
/***** Write time from last access *****/
|
||||||
|
|
|
@ -167,10 +167,10 @@ void Cty_SeeCtyWithPendingInss (void)
|
||||||
Cty_PutParamCtyCod (Cty.CtyCod);
|
Cty_PutParamCtyCod (Cty.CtyCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Cty.Name[Gbl.Prefs.Language]);
|
sprintf (Gbl.Title,Txt_Go_to_X,Cty.Name[Gbl.Prefs.Language]);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Cty.Name[Gbl.Prefs.Language]);
|
Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of pending institutions (row[1]) */
|
/* Number of pending institutions (row[1]) */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -238,7 +238,7 @@ static void Cty_Configuration (bool PrintView)
|
||||||
Act_FormStart (ActSeeIns);
|
Act_FormStart (ActSeeIns);
|
||||||
Act_LinkFormSubmit (Txt_Institutions,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Institutions,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("ins",Txt_Institutions,Txt_Institutions);
|
Lay_PutSendIcon ("ins",Txt_Institutions,Txt_Institutions);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Link to print view */
|
/* Link to print view */
|
||||||
if (!PrintView)
|
if (!PrintView)
|
||||||
|
@ -299,9 +299,9 @@ static void Cty_Configuration (bool PrintView)
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
if (MapAttribution)
|
if (MapAttribution)
|
||||||
fprintf (Gbl.F.Out,"%s",MapAttribution);
|
fprintf (Gbl.F.Out,"%s",MapAttribution);
|
||||||
fprintf (Gbl.F.Out,"</textarea>"
|
fprintf (Gbl.F.Out,"</textarea>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
else if (MapAttribution)
|
else if (MapAttribution)
|
||||||
|
@ -535,9 +535,9 @@ void Cty_ListCountries2 (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_COUNTRIES_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_COUNTRIES_ORDER[Order]);
|
||||||
if (Order == Gbl.Ctys.SelectedOrderType)
|
if (Order == Gbl.Ctys.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||||
"%s"
|
"%s"
|
||||||
|
@ -576,8 +576,8 @@ void Cty_ListCountries2 (void)
|
||||||
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
||||||
Act_LinkFormSubmit (Gbl.Title,NULL);
|
Act_LinkFormSubmit (Gbl.Title,NULL);
|
||||||
Cty_DrawCountryMap (&Gbl.Ctys.Lst[NumCty],"COUNTRY_MAP_SMALL");
|
Cty_DrawCountryMap (&Gbl.Ctys.Lst[NumCty],"COUNTRY_MAP_SMALL");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -590,11 +590,11 @@ void Cty_ListCountries2 (void)
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,
|
sprintf (Gbl.Title,Txt_Go_to_X,
|
||||||
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s (%s)</a>"
|
fprintf (Gbl.F.Out,"%s (%s)</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language],
|
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language],
|
||||||
Gbl.Ctys.Lst[NumCty].Alpha2);
|
Gbl.Ctys.Lst[NumCty].Alpha2);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write stats of this country */
|
/* Write stats of this country */
|
||||||
NumStds = Usr_GetNumUsrsInCountry (Rol_ROLE_STUDENT,Gbl.Ctys.Lst[NumCty].CtyCod);
|
NumStds = Usr_GetNumUsrsInCountry (Rol_ROLE_STUDENT,Gbl.Ctys.Lst[NumCty].CtyCod);
|
||||||
|
@ -1049,8 +1049,8 @@ void Cty_WriteSelectorOfCountry (Act_Action_t NextAction)
|
||||||
DB_FreeMySQLResult (&mysql_res);
|
DB_FreeMySQLResult (&mysql_res);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1310,11 +1310,11 @@ static void Cty_ListCountriesForEdition (void)
|
||||||
Act_FormStart (ActRemCty);
|
Act_FormStart (ActRemCty);
|
||||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_country,
|
Txt_Remove_country,
|
||||||
Txt_Remove_country);
|
Txt_Remove_country);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -1371,11 +1371,11 @@ static void Cty_ListCountriesForEdition (void)
|
||||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||||
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Cty_MAX_LENGTH_COUNTRY_NAME,
|
Cty_MAX_LENGTH_COUNTRY_NAME,
|
||||||
Cty->Name[Lan],Gbl.FormId);
|
Cty->Name[Lan],Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* WWW */
|
/* WWW */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
||||||
|
@ -1384,12 +1384,12 @@ static void Cty_ListCountriesForEdition (void)
|
||||||
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
Cty_PutParamOtherCtyCod (Cty->CtyCod);
|
||||||
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Lan);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cty_MAX_LENGTH_COUNTRY_WWW,
|
Cty_MAX_LENGTH_COUNTRY_WWW,
|
||||||
Cty->WWW[Lan],Gbl.FormId);
|
Cty->WWW[Lan],Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1758,7 +1758,7 @@ static void Cty_PutFormToCreateCountry (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
106
swad_course.c
106
swad_course.c
|
@ -442,7 +442,7 @@ static void Crs_Configuration (bool PrintView)
|
||||||
if (IsForm)
|
if (IsForm)
|
||||||
{
|
{
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -603,9 +603,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",Txt_System);
|
fprintf (Gbl.F.Out," %s",Txt_System);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
|
||||||
/***** Get my countries *****/
|
/***** Get my countries *****/
|
||||||
NumCtys = Usr_GetCtysFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,&mysql_resCty);
|
NumCtys = Usr_GetCtysFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,&mysql_resCty);
|
||||||
|
@ -645,9 +645,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",Cty.Name[Gbl.Prefs.Language]);
|
fprintf (Gbl.F.Out," %s",Cty.Name[Gbl.Prefs.Language]);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
|
||||||
/***** Get my institutions in this country *****/
|
/***** Get my institutions in this country *****/
|
||||||
NumInss = (unsigned) Usr_GetInssFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
NumInss = (unsigned) Usr_GetInssFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||||
|
@ -683,9 +683,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",InsFullName);
|
fprintf (Gbl.F.Out," %s",InsFullName);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
|
||||||
/***** Get my centres in this institution *****/
|
/***** Get my centres in this institution *****/
|
||||||
NumCtrs = (unsigned) Usr_GetCtrsFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
NumCtrs = (unsigned) Usr_GetCtrsFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||||
|
@ -721,9 +721,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",CtrFullName);
|
fprintf (Gbl.F.Out," %s",CtrFullName);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
|
||||||
/***** Get my degrees in this centre *****/
|
/***** Get my degrees in this centre *****/
|
||||||
NumDegs = (unsigned) Usr_GetDegsFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
NumDegs = (unsigned) Usr_GetDegsFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||||
|
@ -759,9 +759,9 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",DegFullName);
|
fprintf (Gbl.F.Out," %s",DegFullName);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
|
|
||||||
/***** Get my courses in this degree *****/
|
/***** Get my courses in this degree *****/
|
||||||
NumCrss = (unsigned) Usr_GetCrssFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
NumCrss = (unsigned) Usr_GetCrssFromUsr (Gbl.Usrs.Me.UsrDat.UsrCod,
|
||||||
|
@ -799,8 +799,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||||
fprintf (Gbl.F.Out," %s",CrsFullName);
|
fprintf (Gbl.F.Out," %s",CrsFullName);
|
||||||
if (Highlight)
|
if (Highlight)
|
||||||
fprintf (Gbl.F.Out,"</strong>");
|
fprintf (Gbl.F.Out,"</strong>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Write link to RSS file *****/
|
/***** Write link to RSS file *****/
|
||||||
sprintf (PathRelRSSFile,"%s/%s/%ld/%s/%s",
|
sprintf (PathRelRSSFile,"%s/%s/%ld/%s/%s",
|
||||||
|
@ -1156,8 +1156,8 @@ void Crs_WriteSelectorMyCourses (void)
|
||||||
Txt_No_COURSE_SELECTED);
|
Txt_No_COURSE_SELECTED);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1287,10 +1287,10 @@ static void Crs_ListCoursesForSeeing (void)
|
||||||
Crs_PutParamCrsCod (Crs->CrsCod);
|
Crs_PutParamCrsCod (Crs->CrsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Crs->FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Crs->FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Crs->FullName);
|
Crs->FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Current number of students in this course */
|
/* Current number of students in this course */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
||||||
|
@ -1380,11 +1380,11 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/delon16x16.gif\" alt=\"%s\""
|
" src=\"%s/delon16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_course,
|
Txt_Remove_course,
|
||||||
Txt_Remove_course);
|
Txt_Remove_course);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -1403,12 +1403,12 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActChgInsCrsCod);
|
Act_FormStart (ActChgInsCrsCod);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"InsCrsCod\" size=\"%u\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"InsCrsCod\" size=\"%u\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
||||||
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
Crs_LENGTH_INSTITUTIONAL_CRS_COD,
|
||||||
Crs->InstitutionalCrsCod,
|
Crs->InstitutionalCrsCod,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Crs->InstitutionalCrsCod);
|
fprintf (Gbl.F.Out,"%s",Crs->InstitutionalCrsCod);
|
||||||
|
@ -1432,8 +1432,8 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Gbl.Usrs.Me.MyAdminDegs.Lst[NumDeg].DegCod == Gbl.CurrentDeg.Deg.DegCod ? " selected=\"selected\"" :
|
Gbl.Usrs.Me.MyAdminDegs.Lst[NumDeg].DegCod == Gbl.CurrentDeg.Deg.DegCod ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Usrs.Me.MyAdminDegs.Lst[NumDeg].ShortName);
|
Gbl.Usrs.Me.MyAdminDegs.Lst[NumDeg].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Gbl.CurrentDeg.Deg.ShortName);
|
fprintf (Gbl.F.Out,"%s",Gbl.CurrentDeg.Deg.ShortName);
|
||||||
|
@ -1457,7 +1457,8 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
YearAux == Crs->Year ? " selected=\"selected\"" :
|
YearAux == Crs->Year ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Txt_YEAR_OF_DEGREE[YearAux]);
|
Txt_YEAR_OF_DEGREE[YearAux]);
|
||||||
fprintf (Gbl.F.Out,"</select></form>");
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_YEAR_OF_DEGREE[Crs->Year]);
|
fprintf (Gbl.F.Out,"%s",Txt_YEAR_OF_DEGREE[Crs->Year]);
|
||||||
|
@ -1483,7 +1484,8 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Txt_SEMESTER_OF_YEAR[Semester]);
|
Txt_SEMESTER_OF_YEAR[Semester]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select></form>");
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_SEMESTER_OF_YEAR[Crs->Semester]);
|
fprintf (Gbl.F.Out,"%s",Txt_SEMESTER_OF_YEAR[Crs->Semester]);
|
||||||
|
@ -1497,10 +1499,10 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActRenCrsSho);
|
Act_FormStart (ActRenCrsSho);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName,
|
Crs_MAX_LENGTH_COURSE_SHORT_NAME,Crs->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Crs->ShortName);
|
fprintf (Gbl.F.Out,"%s",Crs->ShortName);
|
||||||
|
@ -1514,10 +1516,10 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
Act_FormStart (ActRenCrsFul);
|
Act_FormStart (ActRenCrsFul);
|
||||||
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
Crs_PutParamOtherCrsCod (Crs->CrsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName,
|
Crs_MAX_LENGTH_COURSE_FULL_NAME,Crs->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Crs->FullName);
|
fprintf (Gbl.F.Out,"%s",Crs->FullName);
|
||||||
|
@ -1550,13 +1552,13 @@ static void Crs_ListCoursesForEdition (void)
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
(unsigned) Crs_GetStatusBitsFromStatusTxt (Crs_STATUS_PENDING),
|
(unsigned) Crs_GetStatusBitsFromStatusTxt (Crs_STATUS_PENDING),
|
||||||
Txt_COURSE_STATUS[Crs_STATUS_PENDING],
|
Txt_COURSE_STATUS[Crs_STATUS_PENDING],
|
||||||
(unsigned) Crs_GetStatusBitsFromStatusTxt (Crs_STATUS_ACTIVE),
|
(unsigned) Crs_GetStatusBitsFromStatusTxt (Crs_STATUS_ACTIVE),
|
||||||
Txt_COURSE_STATUS[Crs_STATUS_ACTIVE]);
|
Txt_COURSE_STATUS[Crs_STATUS_ACTIVE]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_COURSE_STATUS[StatusTxt]);
|
fprintf (Gbl.F.Out,"%s",Txt_COURSE_STATUS[StatusTxt]);
|
||||||
|
@ -1782,7 +1784,7 @@ static void Crs_PutFormToCreateCourse (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2953,10 +2955,9 @@ static void Crs_PutLinkToGoToCrs (struct Course *Crs)
|
||||||
Crs_PutParamCrsCod (Crs->CrsCod);
|
Crs_PutParamCrsCod (Crs->CrsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Crs->ShortName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Crs->ShortName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",Gbl.Title);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</div>",
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
Gbl.Title);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3010,7 +3011,7 @@ static void Crs_PutLinkToSearchCourses (void)
|
||||||
Par_PutHiddenParamUnsigned ("WhatToSearch",(unsigned) Sch_SEARCH_COURSES);
|
Par_PutHiddenParamUnsigned ("WhatToSearch",(unsigned) Sch_SEARCH_COURSES);
|
||||||
Act_LinkFormSubmit (Txt_Search_courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Search_courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("search",Txt_Search_courses,Txt_Search_courses);
|
Lay_PutSendIcon ("search",Txt_Search_courses,Txt_Search_courses);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3026,7 +3027,7 @@ void Crs_PutFormToSelectMyCourses (void)
|
||||||
Act_FormStart (ActMyCrs);
|
Act_FormStart (ActMyCrs);
|
||||||
Act_LinkFormSubmit (Txt_My_courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_My_courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("hierarchy",Txt_My_courses,Txt_My_courses);
|
Lay_PutSendIcon ("hierarchy",Txt_My_courses,Txt_My_courses);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3326,10 +3327,10 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
|
||||||
Log_DrawLogo (Sco_SCOPE_DEG,Deg.DegCod,Deg.ShortName,
|
Log_DrawLogo (Sco_SCOPE_DEG,Deg.DegCod,Deg.ShortName,
|
||||||
16,"vertical-align:top;",true);
|
16,"vertical-align:top;",true);
|
||||||
fprintf (Gbl.F.Out," %s (%s)"
|
fprintf (Gbl.F.Out," %s (%s)"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
row[2],row[7]);
|
row[2],row[7]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write year (row[4]) *****/
|
/***** Write year (row[4]) *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:center;"
|
||||||
|
@ -3353,10 +3354,9 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA
|
||||||
Crs_PutParamCrsCod (CrsCod);
|
Crs_PutParamCrsCod (CrsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,row[6]);
|
sprintf (Gbl.Title,Txt_Go_to_X,row[6]);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Style);
|
Act_LinkFormSubmit (Gbl.Title,Style);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",row[6]);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>",
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
row[6]);
|
|
||||||
|
|
||||||
/***** Write number of students in course *****/
|
/***** Write number of students in course *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
||||||
|
@ -3433,8 +3433,8 @@ void Crs_AskRemoveOldCrss (void)
|
||||||
|
|
||||||
/***** Send button*****/
|
/***** Send button*****/
|
||||||
Lay_PutSendButton (Txt_Eliminate);
|
Lay_PutSendButton (Txt_Eliminate);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
107
swad_degree.c
107
swad_degree.c
|
@ -238,10 +238,10 @@ void Deg_SeeDegWithPendingCrss (void)
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Deg.FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Deg.FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s"
|
fprintf (Gbl.F.Out,"%s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Deg.FullName);
|
Deg.FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of pending courses (row[1]) */
|
/* Number of pending courses (row[1]) */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -309,7 +309,7 @@ static void Deg_Configuration (bool PrintView)
|
||||||
Act_FormStart (ActSeeCrs);
|
Act_FormStart (ActSeeCrs);
|
||||||
Act_LinkFormSubmit (Txt_Courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Courses,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("crs",Txt_Courses,Txt_Courses);
|
Lay_PutSendIcon ("crs",Txt_Courses,Txt_Courses);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Link to print view */
|
/* Link to print view */
|
||||||
Lay_PutLinkToPrintView1 (ActPrnDegInf);
|
Lay_PutLinkToPrintView1 (ActPrnDegInf);
|
||||||
|
@ -634,8 +634,8 @@ static void Deg_WriteSelectorOfDegree (Act_Action_t NextAction)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -653,9 +653,8 @@ void Deg_WriteCtyInsCtrDeg (void)
|
||||||
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) TabSys);
|
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) TabSys);
|
||||||
Act_LinkFormSubmit (Txt_System,
|
Act_LinkFormSubmit (Txt_System,
|
||||||
The_ClassDegree[Gbl.Prefs.Theme]);
|
The_ClassDegree[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",Txt_System);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
Txt_System);
|
|
||||||
|
|
||||||
if (Gbl.CurrentCty.Cty.CtyCod > 0) // If country selected...
|
if (Gbl.CurrentCty.Cty.CtyCod > 0) // If country selected...
|
||||||
{
|
{
|
||||||
|
@ -668,9 +667,9 @@ void Deg_WriteCtyInsCtrDeg (void)
|
||||||
Cty_PutParamCtyCod (Gbl.CurrentCty.Cty.CtyCod);
|
Cty_PutParamCtyCod (Gbl.CurrentCty.Cty.CtyCod);
|
||||||
Act_LinkFormSubmit (Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language],
|
Act_LinkFormSubmit (Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language],
|
||||||
The_ClassDegree[Gbl.Prefs.Theme]);
|
The_ClassDegree[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
if (Gbl.CurrentIns.Ins.InsCod > 0) // If institution selected...
|
if (Gbl.CurrentIns.Ins.InsCod > 0) // If institution selected...
|
||||||
{
|
{
|
||||||
|
@ -683,9 +682,9 @@ void Deg_WriteCtyInsCtrDeg (void)
|
||||||
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
Ins_PutParamInsCod (Gbl.CurrentIns.Ins.InsCod);
|
||||||
Act_LinkFormSubmit (Gbl.CurrentIns.Ins.FullName,
|
Act_LinkFormSubmit (Gbl.CurrentIns.Ins.FullName,
|
||||||
The_ClassDegree[Gbl.Prefs.Theme]);
|
The_ClassDegree[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.CurrentIns.Ins.ShortName);
|
Gbl.CurrentIns.Ins.ShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If centre selected...
|
if (Gbl.CurrentCtr.Ctr.CtrCod > 0) // If centre selected...
|
||||||
{
|
{
|
||||||
|
@ -698,9 +697,9 @@ void Deg_WriteCtyInsCtrDeg (void)
|
||||||
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
Ctr_PutParamCtrCod (Gbl.CurrentCtr.Ctr.CtrCod);
|
||||||
Act_LinkFormSubmit (Gbl.CurrentCtr.Ctr.FullName,
|
Act_LinkFormSubmit (Gbl.CurrentCtr.Ctr.FullName,
|
||||||
The_ClassDegree[Gbl.Prefs.Theme]);
|
The_ClassDegree[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.CurrentCtr.Ctr.ShortName);
|
Gbl.CurrentCtr.Ctr.ShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
if (Gbl.CurrentDeg.Deg.DegCod > 0) // If degree selected...
|
if (Gbl.CurrentDeg.Deg.DegCod > 0) // If degree selected...
|
||||||
{
|
{
|
||||||
|
@ -716,9 +715,9 @@ void Deg_WriteCtyInsCtrDeg (void)
|
||||||
strcpy (DegreeShortName,Gbl.CurrentDeg.Deg.ShortName);
|
strcpy (DegreeShortName,Gbl.CurrentDeg.Deg.ShortName);
|
||||||
Str_LimitLengthHTMLStr (DegreeShortName,
|
Str_LimitLengthHTMLStr (DegreeShortName,
|
||||||
Deg_MAX_LENGTH_SHORT_NAME_DEGREE_ON_PAGE_HEAD);
|
Deg_MAX_LENGTH_SHORT_NAME_DEGREE_ON_PAGE_HEAD);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
DegreeShortName);
|
DegreeShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1173,11 +1172,11 @@ static void Deg_ListDegreeTypesForEdition (void)
|
||||||
Act_FormStart (ActRemDegTyp);
|
Act_FormStart (ActRemDegTyp);
|
||||||
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_type_of_degree,
|
Txt_Remove_type_of_degree,
|
||||||
Txt_Remove_type_of_degree);
|
Txt_Remove_type_of_degree);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Degree type code */
|
/* Degree type code */
|
||||||
|
@ -1194,12 +1193,12 @@ static void Deg_ListDegreeTypesForEdition (void)
|
||||||
Act_FormStart (ActRenDegTyp);
|
Act_FormStart (ActRenDegTyp);
|
||||||
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"DegTypName\" size=\"25\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"DegTypName\" size=\"25\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Deg_MAX_LENGTH_DEGREE_TYPE_NAME,
|
Deg_MAX_LENGTH_DEGREE_TYPE_NAME,
|
||||||
Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypName,
|
Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Direct log in is allowed for this degree type? */
|
/* Direct log in is allowed for this degree type? */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1207,12 +1206,12 @@ static void Deg_ListDegreeTypesForEdition (void)
|
||||||
Act_FormStart (ActChgDegTypLog);
|
Act_FormStart (ActChgDegTypLog);
|
||||||
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
Deg_PutParamOtherDegTypCod (Gbl.Degs.DegTypes.Lst[NumDegTyp].DegTypCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"AllowDirectLogIn\" value=\"Y\"%s"
|
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"AllowDirectLogIn\" value=\"Y\"%s"
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Degs.DegTypes.Lst[NumDegTyp].AllowDirectLogIn ? " checked=\"checked\"" :
|
Gbl.Degs.DegTypes.Lst[NumDegTyp].AllowDirectLogIn ? " checked=\"checked\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of degrees of this type */
|
/* Number of degrees of this type */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:center;"
|
||||||
|
@ -1318,10 +1317,9 @@ static void Deg_ListOneDegreeForSeeing (struct Degree *Deg,unsigned NumDeg)
|
||||||
Deg_PutParamDegCod (Deg->DegCod);
|
Deg_PutParamDegCod (Deg->DegCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Deg->FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Deg->FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",Deg->FullName);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>",
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
Deg->FullName);
|
|
||||||
|
|
||||||
/* Type of degree */
|
/* Type of degree */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;"
|
||||||
|
@ -1430,11 +1428,11 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActRemDeg);
|
Act_FormStart (ActRemDeg);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_degree,
|
Txt_Remove_degree,
|
||||||
Txt_Remove_degree);
|
Txt_Remove_degree);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -1470,8 +1468,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
(Gbl.Ctrs.Lst[NumCtr].CtrCod == Deg->CtrCod) ? " selected=\"selected\"" :
|
(Gbl.Ctrs.Lst[NumCtr].CtrCod == Deg->CtrCod) ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Ctrs.Lst[NumCtr].ShortName);
|
Gbl.Ctrs.Lst[NumCtr].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Gbl.CurrentCtr.Ctr.ShortName);
|
fprintf (Gbl.F.Out,"%s",Gbl.CurrentCtr.Ctr.ShortName);
|
||||||
|
@ -1485,9 +1483,9 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActRenDegSho);
|
Act_FormStart (ActRenDegSho);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName,Gbl.FormId);
|
Deg_MAX_LENGTH_DEGREE_SHORT_NAME,Deg->ShortName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Deg->ShortName);
|
fprintf (Gbl.F.Out,"%s",Deg->ShortName);
|
||||||
|
@ -1501,9 +1499,9 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActRenDegFul);
|
Act_FormStart (ActRenDegFul);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName,Gbl.FormId);
|
Deg_MAX_LENGTH_DEGREE_FULL_NAME,Deg->FullName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Deg->FullName);
|
fprintf (Gbl.F.Out,"%s",Deg->FullName);
|
||||||
|
@ -1530,8 +1528,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
"",
|
"",
|
||||||
DegTyp->DegTypName);
|
DegTyp->DegTypName);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (NumDegTyp = 0;
|
for (NumDegTyp = 0;
|
||||||
|
@ -1559,8 +1557,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
(Year == Deg->FirstYear) ? " selected=\"selected\"" :
|
(Year == Deg->FirstYear) ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Year);
|
Year);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%u",Deg->FirstYear);
|
fprintf (Gbl.F.Out,"%u",Deg->FirstYear);
|
||||||
|
@ -1584,8 +1582,8 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
(Year == Deg->LastYear) ? " selected=\"selected\"" :
|
(Year == Deg->LastYear) ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Year);
|
Year);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%u",Deg->LastYear);
|
fprintf (Gbl.F.Out,"%u",Deg->LastYear);
|
||||||
|
@ -1599,12 +1597,12 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActChgDegOptYea);
|
Act_FormStart (ActChgDegOptYea);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"OptYear\" value=\"Y\"%s"
|
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"OptYear\" value=\"Y\"%s"
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Deg->OptYear ? " checked=\"checked\"" :
|
Deg->OptYear ? " checked=\"checked\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* Degree optional year */
|
/* Degree optional year */
|
||||||
|
@ -1625,9 +1623,9 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
Act_FormStart (ActChgDegWWW);
|
Act_FormStart (ActChgDegWWW);
|
||||||
Deg_PutParamOtherDegCod (Deg->DegCod);
|
Deg_PutParamOtherDegCod (Deg->DegCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"5\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"5\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Deg->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Deg->WWW,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1661,13 +1659,13 @@ static void Deg_ListDegreesForEdition (void)
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
(unsigned) Deg_GetStatusBitsFromStatusTxt (Deg_STATUS_PENDING),
|
(unsigned) Deg_GetStatusBitsFromStatusTxt (Deg_STATUS_PENDING),
|
||||||
Txt_DEGREE_STATUS[Deg_STATUS_PENDING],
|
Txt_DEGREE_STATUS[Deg_STATUS_PENDING],
|
||||||
(unsigned) Deg_GetStatusBitsFromStatusTxt (Deg_STATUS_ACTIVE),
|
(unsigned) Deg_GetStatusBitsFromStatusTxt (Deg_STATUS_ACTIVE),
|
||||||
Txt_DEGREE_STATUS[Deg_STATUS_ACTIVE]);
|
Txt_DEGREE_STATUS[Deg_STATUS_ACTIVE]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_DEGREE_STATUS[StatusTxt]);
|
fprintf (Gbl.F.Out,"%s",Txt_DEGREE_STATUS[StatusTxt]);
|
||||||
|
@ -1805,7 +1803,7 @@ static void Deg_PutFormToCreateDegType (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1974,7 +1972,7 @@ static void Deg_PutFormToCreateDegree (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -4017,9 +4015,8 @@ void Deg_GetAndWriteDegreesAdminBy (long UsrCod,unsigned ColSpan)
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT_SMALL_NOBR");
|
Act_LinkFormSubmit (Gbl.Title,"DAT_SMALL_NOBR");
|
||||||
Log_DrawLogo (Sco_SCOPE_DEG,DegCod,row[1],
|
Log_DrawLogo (Sco_SCOPE_DEG,DegCod,row[1],
|
||||||
16,"vertical-align:top;",true);
|
16,"vertical-align:top;",true);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",row[2]);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
row[2]);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/swad16x16.gif\" alt=\"%s\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/swad16x16.gif\" alt=\"%s\""
|
||||||
|
|
|
@ -116,9 +116,9 @@ void Dpt_SeeDepts (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_DEPARTMENTS_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_DEPARTMENTS_ORDER[Order]);
|
||||||
if (Order == Gbl.Dpts.SelectedOrderType)
|
if (Order == Gbl.Dpts.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
|
|
||||||
|
@ -218,8 +218,8 @@ static void Dpt_PutFormToEditDpts (void)
|
||||||
Act_FormStart (ActEdiDpt);
|
Act_FormStart (ActEdiDpt);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -522,11 +522,11 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Act_FormStart (ActRemDpt);
|
Act_FormStart (ActRemDpt);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_department,
|
Txt_Remove_department,
|
||||||
Txt_Remove_department);
|
Txt_Remove_department);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -556,7 +556,9 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Gbl.Inss.Lst[NumIns].InsCod == Dpt->InsCod ? " selected=\"selected\"" :
|
Gbl.Inss.Lst[NumIns].InsCod == Dpt->InsCod ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Inss.Lst[NumIns].ShortName);
|
Gbl.Inss.Lst[NumIns].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select></form></td>");
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Department short name */
|
/* Department short name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -564,30 +566,30 @@ static void Dpt_ListDepartmentsForEdition (void)
|
||||||
Act_FormStart (ActRenDptSho);
|
Act_FormStart (ActRenDptSho);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName,Gbl.FormId);
|
MAX_LENGTH_DEPARTMENT_SHORT_NAME,Dpt->ShortName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Department full name */
|
/* Department full name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">");
|
||||||
Act_FormStart (ActRenDptFul);
|
Act_FormStart (ActRenDptFul);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName,Gbl.FormId);
|
MAX_LENGTH_DEPARTMENT_FULL_NAME,Dpt->FullName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Department WWW */
|
/* Department WWW */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;\">");
|
||||||
Act_FormStart (ActChgDptWWW);
|
Act_FormStart (ActChgDptWWW);
|
||||||
Dpt_PutParamDptCod (Dpt->DptCod);
|
Dpt_PutParamDptCod (Dpt->DptCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Dpt->WWW,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Dpt->WWW,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of teachers */
|
/* Number of teachers */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
@ -955,7 +957,7 @@ static void Dpt_PutFormToCreateDepartment (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -138,7 +138,7 @@ void Enr_PutLinkToRequestSignUp (void)
|
||||||
Act_FormStart (ActReqSignUp);
|
Act_FormStart (ActReqSignUp);
|
||||||
Act_LinkFormSubmit (Txt_Sign_up,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Sign_up,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("signup",Txt_Sign_up,Txt_Sign_up);
|
Lay_PutSendIcon ("signup",Txt_Sign_up,Txt_Sign_up);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -270,7 +270,7 @@ void Enr_WriteFormToReqAnotherUsrID (Act_Action_t NextAction)
|
||||||
|
|
||||||
/***** Send button*****/
|
/***** Send button*****/
|
||||||
Lay_PutSendButton (Txt_Continue);
|
Lay_PutSendButton (Txt_Continue);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -294,14 +294,14 @@ void Enr_ReqAcceptRegisterInCrs (void)
|
||||||
Act_FormStart (ActAccEnrCrs);
|
Act_FormStart (ActAccEnrCrs);
|
||||||
Act_LinkFormSubmit (Txt_Confirm_my_enrollment,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Confirm_my_enrollment,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("ok_green",Txt_Confirm_my_enrollment,Txt_Confirm_my_enrollment);
|
Lay_PutSendIcon ("ok_green",Txt_Confirm_my_enrollment,Txt_Confirm_my_enrollment);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Send button to refuse register in the current course *****/
|
/***** Send button to refuse register in the current course *****/
|
||||||
Act_FormStart (ActRemMeCrs);
|
Act_FormStart (ActRemMeCrs);
|
||||||
Act_LinkFormSubmit (Txt_Remove_me_from_this_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_me_from_this_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_me_from_this_course,Txt_Remove_me_from_this_course);
|
Lay_PutSendIcon ("delon",Txt_Remove_me_from_this_course,Txt_Remove_me_from_this_course);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Mark possible notification as seen *****/
|
/***** Mark possible notification as seen *****/
|
||||||
Ntf_SetNotifAsSeen (Ntf_EVENT_ENROLLMENT,
|
Ntf_SetNotifAsSeen (Ntf_EVENT_ENROLLMENT,
|
||||||
|
@ -619,7 +619,7 @@ static void Enr_ShowFormRegRemSeveralUsrs (void)
|
||||||
Lay_PutSendButton (Txt_Confirm);
|
Lay_PutSendButton (Txt_Confirm);
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -640,7 +640,7 @@ static void Enr_PutLinkToRemOldUsrs (void)
|
||||||
Act_FormStart (ActReqRemOldUsr);
|
Act_FormStart (ActReqRemOldUsr);
|
||||||
Act_LinkFormSubmit (Txt_Remove_old_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_old_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_old_users,Txt_Remove_old_users);
|
Lay_PutSendIcon ("delon",Txt_Remove_old_users,Txt_Remove_old_users);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -681,8 +681,8 @@ void Enr_AskRemoveOldUsrs (void)
|
||||||
|
|
||||||
/***** Send button*****/
|
/***** Send button*****/
|
||||||
Lay_PutSendButton (Txt_Eliminate);
|
Lay_PutSendButton (Txt_Eliminate);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1724,7 +1724,7 @@ static void Enr_PutLinkToRemAllStdsThisCrs (void)
|
||||||
Act_FormStart (ActReqRemAllStdCrs);
|
Act_FormStart (ActReqRemAllStdCrs);
|
||||||
Act_LinkFormSubmit (Txt_Remove_all_students,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_all_students,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_all_students,Txt_Remove_all_students);
|
Lay_PutSendIcon ("delon",Txt_Remove_all_students,Txt_Remove_all_students);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1750,7 +1750,7 @@ void Enr_AskRemAllStdsThisCrs (void)
|
||||||
Grp_PutParamAllGroups ();
|
Grp_PutParamAllGroups ();
|
||||||
Pwd_AskForConfirmationOnDangerousAction ();
|
Pwd_AskForConfirmationOnDangerousAction ();
|
||||||
Lay_PutSendButton (Txt_Remove_students);
|
Lay_PutSendButton (Txt_Remove_students);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2044,7 +2044,7 @@ void Enr_AskIfRejectSignUp (void)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
||||||
|
|
||||||
Lay_PutSendButton (Txt_Reject);
|
Lay_PutSendButton (Txt_Reject);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowErrorAndExit ("Wrong role.");
|
Lay_ShowErrorAndExit ("Wrong role.");
|
||||||
|
@ -2185,7 +2185,7 @@ void Enr_ShowEnrollmentRequests (void)
|
||||||
/* Form end */
|
/* Form end */
|
||||||
fprintf (Gbl.F.Out,"</table>");
|
fprintf (Gbl.F.Out,"</table>");
|
||||||
Lay_PutSendButton (Txt_Update);
|
Lay_PutSendButton (Txt_Update);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Build query *****/
|
/***** Build query *****/
|
||||||
switch (Gbl.Scope.Current)
|
switch (Gbl.Scope.Current)
|
||||||
|
@ -2462,10 +2462,10 @@ void Enr_ShowEnrollmentRequests (void)
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Crs.FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Crs.FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s > %s"
|
fprintf (Gbl.F.Out,"%s > %s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Deg.ShortName,Crs.ShortName);
|
Deg.ShortName,Crs.ShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Number of teachers in the course *****/
|
/***** Number of teachers in the course *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -2480,7 +2480,7 @@ void Enr_ShowEnrollmentRequests (void)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** User name *****/
|
/***** User name *****/
|
||||||
|
@ -2506,8 +2506,8 @@ void Enr_ShowEnrollmentRequests (void)
|
||||||
Crs_PutParamCrsCod (Crs.CrsCod);
|
Crs_PutParamCrsCod (Crs.CrsCod);
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
||||||
Lay_PutSendButton (Txt_Register);
|
Lay_PutSendButton (Txt_Register);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Button to reject the request *****/
|
/***** Button to reject the request *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:left;"
|
||||||
|
@ -2516,8 +2516,8 @@ void Enr_ShowEnrollmentRequests (void)
|
||||||
Crs_PutParamCrsCod (Crs.CrsCod);
|
Crs_PutParamCrsCod (Crs.CrsCod);
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
||||||
Lay_PutSendButton (Txt_Reject);
|
Lay_PutSendButton (Txt_Reject);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Mark possible notification as seen *****/
|
/***** Mark possible notification as seen *****/
|
||||||
|
@ -2587,7 +2587,7 @@ static void Enr_PutLinkToAdminOneUsr (void)
|
||||||
Act_FormStart (ActReqMdfOneUsr);
|
Act_FormStart (ActReqMdfOneUsr);
|
||||||
Act_LinkFormSubmit (Txt_Admin_one_user,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Admin_one_user,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("configtest",Txt_Admin_one_user,Txt_Admin_one_user);
|
Lay_PutSendIcon ("configtest",Txt_Admin_one_user,Txt_Admin_one_user);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2602,7 +2602,7 @@ static void Enr_PutLinkToAdminSeveralUsrs (void)
|
||||||
Act_FormStart (ActReqMdfSevUsr);
|
Act_FormStart (ActReqMdfSevUsr);
|
||||||
Act_LinkFormSubmit (Txt_Admin_several_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Admin_several_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("configtest",Txt_Admin_several_users,Txt_Admin_several_users);
|
Lay_PutSendIcon ("configtest",Txt_Admin_several_users,Txt_Admin_several_users);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2879,8 +2879,8 @@ static void Enr_ShowFormToEditOtherUsr (void)
|
||||||
if (Enr_PutActionsRegRemOneUsr (ItsMe))
|
if (Enr_PutActionsRegRemOneUsr (ItsMe))
|
||||||
Lay_PutSendButton (Txt_Confirm);
|
Lay_PutSendButton (Txt_Confirm);
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3204,9 +3204,9 @@ static void Enr_ReqAddAdm (Sco_Scope_t Scope,long Cod,const char *InsCtrDegName)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Register_user_IN_A_COURSE_OR_DEGREE);
|
Txt_Register_user_IN_A_COURSE_OR_DEGREE);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3471,8 +3471,8 @@ static void Enr_AskIfRemoveUsrFromCrs (struct UsrData *UsrDat,bool ItsMe)
|
||||||
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />",
|
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />",
|
||||||
ItsMe ? Txt_Remove_me_from_this_course :
|
ItsMe ? Txt_Remove_me_from_this_course :
|
||||||
Txt_Remove_user_from_this_course);
|
Txt_Remove_user_from_this_course);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
||||||
|
@ -3570,10 +3570,10 @@ static void Enr_AskIfRemAdm (bool ItsMe,Sco_Scope_t Scope,const char *InsCtrDegN
|
||||||
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
ItsMe ? Txt_Remove_me_as_an_administrator :
|
ItsMe ? Txt_Remove_me_as_an_administrator :
|
||||||
Txt_Remove_user_as_an_administrator);
|
Txt_Remove_user_as_an_administrator);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowErrorAndExit ("User doesn't exist.");
|
Lay_ShowErrorAndExit ("User doesn't exist.");
|
||||||
|
|
14
swad_exam.c
14
swad_exam.c
|
@ -448,8 +448,8 @@ static void Exa_ListExamAnnouncements (Exa_tTypeViewExamAnnouncement_t TypeViewE
|
||||||
Act_FormStart (ActEdiExaAnn);
|
Act_FormStart (ActEdiExaAnn);
|
||||||
Act_LinkFormSubmit (Txt_New_announcement_of_exam,The_ClassFormul[Gbl.Prefs.Theme]);
|
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);
|
Lay_PutSendIcon ("new",Txt_New_announcement_of_exam,Txt_New_announcement_of_exam);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -1209,8 +1209,8 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />" \
|
" alt=\"%s\" class=\"ICON16x16\" />" \
|
||||||
" %s</a>",
|
" %s</a>",
|
||||||
Gbl.Prefs.IconsURL,Txt_Edit_announcement_of_exam,Txt_Edit);
|
Gbl.Prefs.IconsURL,Txt_Edit_announcement_of_exam,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>" \
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Create link to remove this exam announcement *****/
|
/***** Create link to remove this exam announcement *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:right;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:right;\">");
|
||||||
|
@ -1223,8 +1223,8 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_announcement_of_exam,
|
Txt_Remove_announcement_of_exam,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
fprintf (Gbl.F.Out,"</form>" \
|
Act_FormEnd ();
|
||||||
"</td>" \
|
fprintf (Gbl.F.Out,"</td>" \
|
||||||
"</tr>");
|
"</tr>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1264,7 +1264,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_
|
||||||
break;
|
break;
|
||||||
case Exa_FORM_VIEW:
|
case Exa_FORM_VIEW:
|
||||||
Lay_PutSendButton (Txt_Send_announcement_of_exam);
|
Lay_PutSendButton (Txt_Send_announcement_of_exam);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2870,8 +2870,8 @@ void Brw_AskEditWorksCrs (void)
|
||||||
|
|
||||||
/* Button to send the form */
|
/* Button to send the form */
|
||||||
Lay_PutSendButton (Txt_View_works);
|
Lay_PutSendButton (Txt_View_works);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -3098,8 +3098,8 @@ static void Brw_FormToChangeCrsGrpZone (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End list and form *****/
|
/***** End list and form *****/
|
||||||
fprintf (Gbl.F.Out,"</ul>"
|
fprintf (Gbl.F.Out,"</ul>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3146,7 +3146,7 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO75x100",true);
|
"PHOTO75x100",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Start form to send a message to this user *****/
|
/***** Start form to send a message to this user *****/
|
||||||
|
@ -3182,8 +3182,8 @@ static void Brw_ShowDataOwnerAsgWrk (struct UsrData *UsrDat)
|
||||||
Str_LimitLengthHTMLStr (UsrDat->Email,25);
|
Str_LimitLengthHTMLStr (UsrDat->Email,25);
|
||||||
fprintf (Gbl.F.Out,"%s</a>",UsrDat->Email);
|
fprintf (Gbl.F.Out,"%s</a>",UsrDat->Email);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -4293,8 +4293,8 @@ static void Brw_PutFormToShowOrAdmin (Brw_ShowOrAdmin_t ShowOrAdmin,
|
||||||
Txt_Edit);
|
Txt_Edit);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -4349,11 +4349,11 @@ static void Brw_WriteFormFullTree (void)
|
||||||
if (Gbl.FileBrowser.FullTree)
|
if (Gbl.FileBrowser.FullTree)
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
" %s"
|
" %s",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Txt_Show_all_files);
|
Txt_Show_all_files);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5017,11 +5017,11 @@ static void Brw_PutIconRemoveFile (Brw_FileType_t FileType,
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Remove_FILE_OR_LINK_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
|
||||||
|
@ -5062,11 +5062,11 @@ static void Brw_PutIconRemoveDir (const char *PathInTree,const char *FileName,co
|
||||||
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Remove_folder_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/deloff16x16.gif\" alt=\"\""
|
||||||
|
@ -5108,11 +5108,11 @@ static void Brw_PutIconCopy (Brw_FileType_t FileType,
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Copy_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Copy_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/copy_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/copy_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/copy_off16x16.gif\" alt=\"\""
|
||||||
|
@ -5151,12 +5151,12 @@ static void Brw_PutIconPasteOn (const char *PathInTree,const char *FileName,cons
|
||||||
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Paste_in_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Paste_in_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5218,11 +5218,11 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
|
||||||
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Expand_FOLDER_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Expand_FOLDER_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/expand16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/expand16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
break;
|
break;
|
||||||
case Brw_EXPAND_TREE_MINUS:
|
case Brw_EXPAND_TREE_MINUS:
|
||||||
/***** Form to contract folder *****/
|
/***** Form to contract folder *****/
|
||||||
|
@ -5247,11 +5247,11 @@ static void Brw_IndentAndWriteIconExpandContract (unsigned Level,Brw_ExpandTree_
|
||||||
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
Brw_ParamListFiles (Brw_IS_FOLDER,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Contract_FOLDER_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Contract_FOLDER_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/contract16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/contract16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5302,14 +5302,14 @@ static void Brw_PutIconShow (unsigned Level,Brw_FileType_t FileType,
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Show_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Show_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/hidden_%s16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/hidden_%s16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
|
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
|
||||||
"on",
|
"on",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5335,14 +5335,14 @@ static void Brw_PutIconHide (unsigned Level,Brw_FileType_t FileType,
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
sprintf (Gbl.Title,Txt_Hide_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Hide_FOLDER_FILE_OR_LINK_X,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/visible_%s16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/visible_%s16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
|
Brw_CheckIfAnyUpperLevelIsHidden (Level) ? "off" :
|
||||||
"on",
|
"on",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5400,13 +5400,13 @@ static void Brw_PutIconFolder (unsigned Level,Brw_ExpandTree_t ExpandTree,
|
||||||
sprintf (Gbl.Title,Txt_Upload_file_or_create_folder_in_FOLDER,FileNameToShow);
|
sprintf (Gbl.Title,Txt_Upload_file_or_create_folder_in_FOLDER,FileNameToShow);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/folder-%s-plus16x16.gif\" alt=\"%s\""
|
" src=\"%s/folder-%s-plus16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16B\" />"
|
" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
|
(ExpandTree == Brw_EXPAND_TREE_PLUS) ? "closed" :
|
||||||
"open",
|
"open",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else // I can't create a new file or folder
|
else // I can't create a new file or folder
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/folder-%s16x16.gif\" alt=\"\""
|
||||||
|
@ -5480,8 +5480,8 @@ static void Brw_PutIconFileWithLinkToViewMetadata (unsigned Size,Brw_FileType_t
|
||||||
Brw_PutIconFile (Size,FileType,FileName);
|
Brw_PutIconFile (Size,FileType,FileName);
|
||||||
|
|
||||||
/* End of the link and of the form */
|
/* End of the link and of the form */
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5571,15 +5571,17 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
|
||||||
/***** Write name of the folder *****/
|
/***** Write name of the folder *****/
|
||||||
fprintf (Gbl.F.Out," ");
|
fprintf (Gbl.F.Out," ");
|
||||||
if (Gbl.FileBrowser.ICanEditFileOrFolder) // Can I rename this folder?
|
if (Gbl.FileBrowser.ICanEditFileOrFolder) // Can I rename this folder?
|
||||||
|
{
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewFolderName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewFolderName\""
|
||||||
" size=\"40\" maxlength=\"40\" value=\"%s\""
|
" size=\"40\" maxlength=\"40\" value=\"%s\""
|
||||||
" class=\"%s\" style=\"background-color:%s\""
|
" class=\"%s\" style=\"background-color:%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
FileName,Gbl.FileBrowser.InputStyle,
|
FileName,Gbl.FileBrowser.InputStyle,
|
||||||
Gbl.FileBrowser.Clipboard.IsThisFile ? LIGHT_GREEN :
|
Gbl.FileBrowser.Clipboard.IsThisFile ? LIGHT_GREEN :
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((Level == 1) &&
|
if ((Level == 1) &&
|
||||||
|
@ -5634,11 +5636,11 @@ static void Brw_WriteFileName (unsigned Level,bool IsPublic,Brw_FileType_t FileT
|
||||||
fprintf (Gbl.F.Out,"<a href=\"javascript:document.getElementById('%s').submit();\""
|
fprintf (Gbl.F.Out,"<a href=\"javascript:document.getElementById('%s').submit();\""
|
||||||
" title=\"%s\" class=\"%s\">"
|
" title=\"%s\" class=\"%s\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Gbl.Title,Gbl.FileBrowser.TxtStyle,
|
Gbl.Title,Gbl.FileBrowser.TxtStyle,
|
||||||
FileNameToShow);
|
FileNameToShow);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Put icon to make public/private file */
|
/* Put icon to make public/private file */
|
||||||
if (IsPublic)
|
if (IsPublic)
|
||||||
|
@ -5833,7 +5835,7 @@ static void Brw_WriteFileOrFolderPublisher (unsigned Level,unsigned long UsrCod)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16B",true);
|
"PHOTO12x16B",Pho_ZOOM);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/usr_bl.jpg\" alt=\"\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/usr_bl.jpg\" alt=\"\""
|
||||||
|
@ -5891,10 +5893,10 @@ void Brw_AskRemFileFromTree (void)
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Gbl.FileBrowser.FileType == Brw_IS_FILE ? Txt_Remove_file :
|
Gbl.FileBrowser.FileType == Brw_IS_FILE ? Txt_Remove_file :
|
||||||
Txt_Remove_link);
|
Txt_Remove_link);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowErrorAndExit (Txt_You_can_not_remove_this_file_or_link);
|
Lay_ShowErrorAndExit (Txt_You_can_not_remove_this_file_or_link);
|
||||||
|
@ -6045,9 +6047,9 @@ static void Brw_AskConfirmRemoveFolderNotEmpty (void)
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Remove_folder);
|
Txt_Remove_folder);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -7663,7 +7665,7 @@ static void Brw_PutFormToCreateAFolder (const char *FileNameToShow)
|
||||||
|
|
||||||
/* Button to send */
|
/* Button to send */
|
||||||
Lay_PutSendButton (Txt_Create_folder);
|
Lay_PutSendButton (Txt_Create_folder);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -7726,9 +7728,9 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div class=\"dz-message\">"
|
fprintf (Gbl.F.Out,"<div class=\"dz-message\">"
|
||||||
"<span class=\"DAT_LIGHT\">%s</div>"
|
"<span class=\"DAT_LIGHT\">%s</div>"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Select_one_or_more_files_from_your_computer_or_drag_and_drop_here);
|
Txt_Select_one_or_more_files_from_your_computer_or_drag_and_drop_here);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Put button to refresh file browser after upload *****/
|
/***** Put button to refresh file browser after upload *****/
|
||||||
Act_FormStart (Brw_ActRefreshAfterUploadFiles[Gbl.FileBrowser.Type]);
|
Act_FormStart (Brw_ActRefreshAfterUploadFiles[Gbl.FileBrowser.Type]);
|
||||||
|
@ -7752,7 +7754,7 @@ static void Brw_PutFormToUploadFilesUsingDropzone (const char *FileNameToShow)
|
||||||
|
|
||||||
/* Button to send */
|
/* Button to send */
|
||||||
Lay_PutSendButton (Txt_FILE_UPLOAD_Done);
|
Lay_PutSendButton (Txt_FILE_UPLOAD_Done);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -7802,7 +7804,7 @@ static void Brw_PutFormToUploadOneFileClassic (const char *FileNameToShow)
|
||||||
|
|
||||||
/* Button to send */
|
/* Button to send */
|
||||||
Lay_PutSendButton (Txt_Upload_file);
|
Lay_PutSendButton (Txt_Upload_file);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -7849,7 +7851,7 @@ static void Brw_PutFormToPasteAFileOrFolder (const char *FileNameToShow)
|
||||||
|
|
||||||
/* Button to send */
|
/* Button to send */
|
||||||
Lay_PutSendButton (Txt_Paste);
|
Lay_PutSendButton (Txt_Paste);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -7910,7 +7912,7 @@ static void Brw_PutFormToCreateALink (const char *FileNameToShow)
|
||||||
|
|
||||||
/* Button to send */
|
/* Button to send */
|
||||||
Lay_PutSendButton (Txt_Create_link);
|
Lay_PutSendButton (Txt_Create_link);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -8902,7 +8904,7 @@ void Brw_ShowFileMetadata (void)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&PublisherUsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&PublisherUsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&PublisherUsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&PublisherUsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16",true);
|
"PHOTO12x16",Pho_ZOOM);
|
||||||
|
|
||||||
/* Write name */
|
/* Write name */
|
||||||
fprintf (Gbl.F.Out,"%s",
|
fprintf (Gbl.F.Out,"%s",
|
||||||
|
@ -9058,7 +9060,7 @@ void Brw_ShowFileMetadata (void)
|
||||||
if (ICanEdit) // I can edit file properties
|
if (ICanEdit) // I can edit file properties
|
||||||
{
|
{
|
||||||
Lay_PutSendButton (Txt_Save_file_properties);
|
Lay_PutSendButton (Txt_Save_file_properties);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
|
@ -9377,9 +9379,10 @@ static void Brw_WriteBigLinkToDownloadFile (const char *URL,Brw_FileType_t FileT
|
||||||
/* Name of the file of marks, link end and form end */
|
/* Name of the file of marks, link end and form end */
|
||||||
fprintf (Gbl.F.Out," %s "
|
fprintf (Gbl.F.Out," %s "
|
||||||
"<img src=\"%s/grades32x32.gif\" alt=\"%s\" title=\"%s\""
|
"<img src=\"%s/grades32x32.gif\" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON32x32\" /></a>"
|
" class=\"ICON32x32\" />"
|
||||||
"</form>",
|
"</a>",
|
||||||
FileNameToShow,Gbl.Prefs.IconsURL,Gbl.Title,Gbl.Title);
|
FileNameToShow,Gbl.Prefs.IconsURL,Gbl.Title,Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -9436,9 +9439,8 @@ static void Brw_WriteSmallLinkToDownloadFile (const char *URL,Brw_FileType_t Fil
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
|
|
||||||
/* Name of the file of marks, link end and form end */
|
/* Name of the file of marks, link end and form end */
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",FileNameToShow);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
FileNameToShow);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
/* Put anchor and filename */
|
/* Put anchor and filename */
|
||||||
|
@ -10961,9 +10963,8 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
Log_DrawLogo (Sco_SCOPE_INS,InsCod,InsShortName,
|
Log_DrawLogo (Sco_SCOPE_INS,InsCod,InsShortName,
|
||||||
16,"vertical-align:top;",true);
|
16,"vertical-align:top;",true);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",InsShortName);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
InsShortName);
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -10979,9 +10980,8 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
Log_DrawLogo (Sco_SCOPE_CTR,CtrCod,CtrShortName,
|
Log_DrawLogo (Sco_SCOPE_CTR,CtrCod,CtrShortName,
|
||||||
16,"vertical-align:top;",true);
|
16,"vertical-align:top;",true);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",CtrShortName);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
CtrShortName);
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -10997,9 +10997,8 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
Log_DrawLogo (Sco_SCOPE_DEG,DegCod,DegShortName,
|
Log_DrawLogo (Sco_SCOPE_DEG,DegCod,DegShortName,
|
||||||
16,"vertical-align:top;",true);
|
16,"vertical-align:top;",true);
|
||||||
fprintf (Gbl.F.Out," %s</a>"
|
fprintf (Gbl.F.Out," %s</a>",DegShortName);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
DegShortName);
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -11013,9 +11012,8 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
Crs_PutParamCrsCod (CrsCod);
|
Crs_PutParamCrsCod (CrsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,CrsShortName);
|
sprintf (Gbl.Title,Txt_Go_to_X,CrsShortName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",CrsShortName);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
CrsShortName);
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -11096,11 +11094,11 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row)
|
||||||
|
|
||||||
/* File name and end of form */
|
/* File name and end of form */
|
||||||
fprintf (Gbl.F.Out,"%s"
|
fprintf (Gbl.F.Out,"%s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
FileNameToShow);
|
FileNameToShow);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
|
|
||||||
Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd;
|
Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd;
|
||||||
}
|
}
|
||||||
|
|
48
swad_forum.c
48
swad_forum.c
|
@ -1125,11 +1125,11 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
||||||
For_PutAllHiddenParamsForum ();
|
For_PutAllHiddenParamsForum ();
|
||||||
For_PutHiddenParamThrCod (Thr->ThrCod);
|
For_PutHiddenParamThrCod (Thr->ThrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_post,
|
Txt_Remove_post,
|
||||||
Txt_Remove_post);
|
Txt_Remove_post);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Form to ban/unban post *****/
|
/***** Form to ban/unban post *****/
|
||||||
|
@ -1148,13 +1148,13 @@ static void For_ShowAForumPost (struct ForumThread *Thr,unsigned PstNum,long Pst
|
||||||
Txt_Post_X_banned_Click_to_unban_it,
|
Txt_Post_X_banned_Click_to_unban_it,
|
||||||
PstNum);
|
PstNum);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Enabled ? "visible" :
|
Enabled ? "visible" :
|
||||||
"hidden",
|
"hidden",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1776,9 +1776,9 @@ static void For_PutFormWhichForums (void)
|
||||||
"</li>",
|
"</li>",
|
||||||
Gbl.FormId,Txt_FORUM_WHICH_FORUM[WhichForums]);
|
Gbl.FormId,Txt_FORUM_WHICH_FORUM[WhichForums]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</ul>"
|
fprintf (Gbl.F.Out,"</ul>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1799,13 +1799,13 @@ static void For_WriteLinkToTopLevelOfForums (void)
|
||||||
" alt=\"%s\" title=\"%s\""
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
||||||
" %s"
|
" %s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</li>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Forums,
|
Txt_Forums,
|
||||||
Txt_Forums,
|
Txt_Forums,
|
||||||
Txt_Forums);
|
Txt_Forums);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2147,11 +2147,11 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
|
||||||
For_PutAllHiddenParamsForum ();
|
For_PutAllHiddenParamsForum ();
|
||||||
For_PutHiddenParamThrCod (Gbl.Forum.ThreadToMove);
|
For_PutHiddenParamThrCod (Gbl.Forum.ThreadToMove);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/paste_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Paste_thread,
|
Txt_Paste_thread,
|
||||||
Txt_Paste_thread);
|
Txt_Paste_thread);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2192,9 +2192,9 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct
|
||||||
if (NumThrs)
|
if (NumThrs)
|
||||||
For_WriteNumberOfThrs (NumThrs,NumThrsWithNewPosts);
|
For_WriteNumberOfThrs (NumThrs,NumThrsWithNewPosts);
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</li>");
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2526,9 +2526,9 @@ void For_ShowForumThrs (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_FORUM_THREAD_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_FORUM_THREAD_ORDER[Order]);
|
||||||
if (Order == Gbl.Forum.SelectedOrderType)
|
if (Order == Gbl.Forum.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:right;\">"
|
||||||
"%s"
|
"%s"
|
||||||
|
@ -3299,11 +3299,11 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
||||||
For_PutAllHiddenParamsForum ();
|
For_PutAllHiddenParamsForum ();
|
||||||
For_PutHiddenParamThrCod (Thr.ThrCod);
|
For_PutHiddenParamThrCod (Thr.ThrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_thread,
|
Txt_Remove_thread,
|
||||||
Txt_Remove_thread);
|
Txt_Remove_thread);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ICanMoveThreads)
|
if (ICanMoveThreads)
|
||||||
|
@ -3315,11 +3315,11 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
|
||||||
For_PutAllHiddenParamsForum ();
|
For_PutAllHiddenParamsForum ();
|
||||||
For_PutHiddenParamThrCod (Thr.ThrCod);
|
For_PutHiddenParamThrCod (Thr.ThrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/cut16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/cut16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Move_thread,
|
Txt_Move_thread,
|
||||||
Txt_Move_thread);
|
Txt_Move_thread);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
@ -3749,7 +3749,7 @@ void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
|
||||||
Txt_MSG_Message);
|
Txt_MSG_Message);
|
||||||
|
|
||||||
Lay_PutSendButton (Txt_Send_message);
|
Lay_PutSendButton (Txt_Send_message);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3967,7 +3967,7 @@ void For_ReqDelThr (void)
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>",
|
"</div>",
|
||||||
Txt_Remove_thread);
|
Txt_Remove_thread);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -107,6 +107,7 @@ void Gbl_InitializeGlobals (void)
|
||||||
Gbl.F.Tmp = NULL;
|
Gbl.F.Tmp = NULL;
|
||||||
Gbl.F.XML = NULL;
|
Gbl.F.XML = NULL;
|
||||||
|
|
||||||
|
Gbl.InsideForm = false; // Set to true inside a form to avoid nested forms
|
||||||
Gbl.NumForm = -1; // Number of form. It's increased by 1 at the begin of each form
|
Gbl.NumForm = -1; // Number of form. It's increased by 1 at the begin of each form
|
||||||
Gbl.NumFormConnectedUsrs = -1; // Number of form in list of connected users. It's increased by 1 at the begin of each form
|
Gbl.NumFormConnectedUsrs = -1; // Number of form in list of connected users. It's increased by 1 at the begin of each form
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,7 @@ struct Globals
|
||||||
struct Files F;
|
struct Files F;
|
||||||
MYSQL mysql;
|
MYSQL mysql;
|
||||||
pid_t PID; // PID of current process
|
pid_t PID; // PID of current process
|
||||||
|
bool InsideForm; // Set to true inside a form to avoid nested forms
|
||||||
int NumForm; // Number of form, used in form submit links
|
int NumForm; // Number of form, used in form submit links
|
||||||
int NumFormConnectedUsrs; // Number of form in list of connected users, used in form submit links
|
int NumFormConnectedUsrs; // Number of form in list of connected users, used in form submit links
|
||||||
char FormId[32]; // Identifier string used in forms
|
char FormId[32]; // Identifier string used in forms
|
||||||
|
|
82
swad_group.c
82
swad_group.c
|
@ -289,8 +289,8 @@ static void Grp_ShowFormSeveralGrps (Act_Action_t NextAction)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1141,24 +1141,24 @@ static void Grp_ListGroupTypesForEdition (void)
|
||||||
Act_FormStart (ActReqRemGrpTyp);
|
Act_FormStart (ActReqRemGrpTyp);
|
||||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_type_of_group,
|
Txt_Remove_type_of_group,
|
||||||
Txt_Remove_type_of_group);
|
Txt_Remove_type_of_group);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Name of group type */
|
/* Name of group type */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left; vertical-align:middle;\">");
|
||||||
Act_FormStart (ActRenGrpTyp);
|
Act_FormStart (ActRenGrpTyp);
|
||||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpTypName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpTypName\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
MAX_LENGTH_GROUP_TYPE_NAME,
|
MAX_LENGTH_GROUP_TYPE_NAME,
|
||||||
Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName,
|
Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Is it mandatory to register in any group? */
|
/* Is it mandatory to register in any group? */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1177,10 +1177,10 @@ static void Grp_ListGroupTypesForEdition (void)
|
||||||
if (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].MandatoryEnrollment)
|
if (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].MandatoryEnrollment)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>"
|
fprintf (Gbl.F.Out,">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Txt_It_is_mandatory_to_choose_a_group);
|
Txt_It_is_mandatory_to_choose_a_group);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Is it possible to register in multiple groups? */
|
/* Is it possible to register in multiple groups? */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1199,10 +1199,10 @@ static void Grp_ListGroupTypesForEdition (void)
|
||||||
if (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].MultipleEnrollment)
|
if (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].MultipleEnrollment)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>"
|
fprintf (Gbl.F.Out,">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Txt_A_student_can_belong_to_several_groups);
|
Txt_A_student_can_belong_to_several_groups);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Open time */
|
/* Open time */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
||||||
|
@ -1235,9 +1235,9 @@ static void Grp_ListGroupTypesForEdition (void)
|
||||||
true,false);
|
true,false);
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of groups of this type */
|
/* Number of groups of this type */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||||
|
@ -1330,12 +1330,12 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
Act_FormStart (ActReqRemGrp);
|
Act_FormStart (ActReqRemGrp);
|
||||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_group,
|
Txt_Remove_group,
|
||||||
Txt_Remove_group);
|
Txt_Remove_group);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write icon to open/close group */
|
/* Write icon to open/close group */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
||||||
|
@ -1347,14 +1347,14 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
Txt_Group_X_closed_click_to_open_it,
|
Txt_Group_X_closed_click_to_open_it,
|
||||||
Grp->GrpName);
|
Grp->GrpName);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Grp->Open ? "open" :
|
Grp->Open ? "open" :
|
||||||
"closed",
|
"closed",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write icon to activate file zones for this group */
|
/* Write icon to activate file zones for this group */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
||||||
|
@ -1366,14 +1366,14 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
Txt_File_zones_of_the_group_X_disabled_click_to_enable_them,
|
Txt_File_zones_of_the_group_X_disabled_click_to_enable_them,
|
||||||
Grp->GrpName);
|
Grp->GrpName);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Grp->FileZones ? "folder-yes" :
|
Grp->FileZones ? "folder-yes" :
|
||||||
"folder-no",
|
"folder-no",
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Group type */
|
/* Group type */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1393,7 +1393,9 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>",GrpTypAux->GrpTypName);
|
fprintf (Gbl.F.Out,">%s</option>",GrpTypAux->GrpTypName);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select></form></td>");
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Group name */
|
/* Group name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1401,10 +1403,10 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
Act_FormStart (ActRenGrp);
|
Act_FormStart (ActRenGrp);
|
||||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"GrpName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
MAX_LENGTH_GROUP_NAME,Grp->GrpName,Gbl.FormId);
|
MAX_LENGTH_GROUP_NAME,Grp->GrpName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Maximum number of students of the group (row[3]) */
|
/* Maximum number of students of the group (row[3]) */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -1413,10 +1415,10 @@ static void Grp_ListGroupsForEdition (void)
|
||||||
Grp_PutParamGrpCod (Grp->GrpCod);
|
Grp_PutParamGrpCod (Grp->GrpCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"MaxStudents\" size=\"3\" maxlength=\"10\" value=\"");
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"MaxStudents\" size=\"3\" maxlength=\"10\" value=\"");
|
||||||
Grp_WriteMaxStdsGrp (Grp->MaxStudents);
|
Grp_WriteMaxStdsGrp (Grp->MaxStudents);
|
||||||
fprintf (Gbl.F.Out,"\" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
fprintf (Gbl.F.Out,"\" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Current number of students in this group */
|
/* Current number of students in this group */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
fprintf (Gbl.F.Out,"<td class=\"DAT\""
|
||||||
|
@ -1560,7 +1562,7 @@ void Grp_ReqRegisterInGrps (void)
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
Lay_PutSendButton (NumGrpsIBelong ? Txt_Change_my_groups :
|
Lay_PutSendButton (NumGrpsIBelong ? Txt_Change_my_groups :
|
||||||
Txt_Enroll_in_groups);
|
Txt_Enroll_in_groups);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else // This course has not groups
|
else // This course has not groups
|
||||||
{
|
{
|
||||||
|
@ -2154,7 +2156,7 @@ static void Grp_PutFormToCreateGroupType (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2239,7 +2241,7 @@ static void Grp_PutFormToCreateGroup (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3307,8 +3309,8 @@ static void Grp_AskConfirmRemGrpTypWithGrps (unsigned NumGrps)
|
||||||
Act_FormStart (ActRemGrpTyp);
|
Act_FormStart (ActRemGrpTyp);
|
||||||
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod);
|
Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTyp.GrpTypCod);
|
||||||
Lay_PutSendButton (Txt_Remove_type_of_group);
|
Lay_PutSendButton (Txt_Remove_type_of_group);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3346,8 +3348,8 @@ static void Grp_AskConfirmRemGrp (void)
|
||||||
Act_FormStart (ActRemGrp);
|
Act_FormStart (ActRemGrp);
|
||||||
Grp_PutParamGrpCod (GrpDat.GrpCod);
|
Grp_PutParamGrpCod (GrpDat.GrpCod);
|
||||||
Lay_PutSendButton (Txt_Remove_group);
|
Lay_PutSendButton (Txt_Remove_group);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -111,9 +111,9 @@ void Hld_SeeHolidays (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_HOLIDAYS_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_HOLIDAYS_ORDER[Order]);
|
||||||
if (Order == Gbl.Hlds.SelectedOrderType)
|
if (Order == Gbl.Hlds.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||||
" %s "
|
" %s "
|
||||||
|
@ -202,8 +202,8 @@ static void Hld_PutFormToEditHlds (void)
|
||||||
Act_FormStart (ActEdiHld);
|
Act_FormStart (ActEdiHld);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -495,12 +495,12 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
Act_FormStart (ActRemHld);
|
Act_FormStart (ActRemHld);
|
||||||
Hld_PutParamHldCod (Hld->HldCod);
|
Hld_PutParamHldCod (Hld->HldCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_holiday,
|
Txt_Remove_holiday,
|
||||||
Txt_Remove_holiday);
|
Txt_Remove_holiday);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Holiday code */
|
/* Holiday code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
@ -528,9 +528,9 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
Gbl.Plcs.Lst[NumPlc].PlcCod == Hld->PlcCod ? " selected=\"selected\"" :
|
Gbl.Plcs.Lst[NumPlc].PlcCod == Hld->PlcCod ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Gbl.Plcs.Lst[NumPlc].ShortName);
|
Gbl.Plcs.Lst[NumPlc].ShortName);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Holiday type */
|
/* Holiday type */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -548,9 +548,9 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
HolidayType == Hld->HldTyp ? " selected=\"selected\"" :
|
HolidayType == Hld->HldTyp ? " selected=\"selected\"" :
|
||||||
"",
|
"",
|
||||||
Txt_HOLIDAY_TYPES[HolidayType]);
|
Txt_HOLIDAY_TYPES[HolidayType]);
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Holiday date / Non school period start date */
|
/* Holiday date / Non school period start date */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -562,8 +562,8 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
"StartDay","StartMonth","StartYear",
|
"StartDay","StartMonth","StartYear",
|
||||||
&(Gbl.Hlds.Lst[NumHld].StartDate),
|
&(Gbl.Hlds.Lst[NumHld].StartDate),
|
||||||
true,false);
|
true,false);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Non school period end date */
|
/* Non school period end date */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -575,8 +575,8 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
"EndDay","EndMonth","EndYear",
|
"EndDay","EndMonth","EndYear",
|
||||||
&(Gbl.Hlds.Lst[NumHld].EndDate),
|
&(Gbl.Hlds.Lst[NumHld].EndDate),
|
||||||
true,(Hld->HldTyp == Hld_HOLIDAY));
|
true,(Hld->HldTyp == Hld_HOLIDAY));
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Holiday name */
|
/* Holiday name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -584,11 +584,11 @@ static void Hld_ListHolidaysForEdition (void)
|
||||||
Act_FormStart (ActRenHld);
|
Act_FormStart (ActRenHld);
|
||||||
Hld_PutParamHldCod (Hld->HldCod);
|
Hld_PutParamHldCod (Hld->HldCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"20\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Hld_MAX_LENGTH_HOLIDAY_NAME,Hld->Name,Gbl.FormId);
|
Hld_MAX_LENGTH_HOLIDAY_NAME,Hld->Name,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -1021,7 +1021,7 @@ static void Hld_PutFormToCreateHoliday (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -82,15 +82,15 @@ void Ico_PutIconsToSelectIconSet (void)
|
||||||
Par_PutHiddenParamString ("IconSet",Ico_IconSetId[IconSet]);
|
Par_PutHiddenParamString ("IconSet",Ico_IconSetId[IconSet]);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s/%s/heart64x64.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s/%s/heart64x64.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
||||||
" style=\"margin:0 auto;\" />"
|
" style=\"margin:0 auto;\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Cfg_ICON_FOLDER_ICON_SETS,
|
Cfg_ICON_FOLDER_ICON_SETS,
|
||||||
Ico_IconSetId[IconSet],
|
Ico_IconSetId[IconSet],
|
||||||
Cfg_ICON_ACTION,
|
Cfg_ICON_ACTION,
|
||||||
Ico_IconSetNames[IconSet],
|
Ico_IconSetNames[IconSet],
|
||||||
Ico_IconSetNames[IconSet]);
|
Ico_IconSetNames[IconSet]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
|
@ -169,7 +169,7 @@ void Ind_ReqIndicatorsCourses (void)
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</table>");
|
"</table>");
|
||||||
Lay_PutSendButton (Txt_Update_indicators);
|
Lay_PutSendButton (Txt_Update_indicators);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Get courses from database *****/
|
/***** Get courses from database *****/
|
||||||
NumCrss = Ind_GetTableOfCourses (&mysql_res);
|
NumCrss = Ind_GetTableOfCourses (&mysql_res);
|
||||||
|
@ -191,7 +191,7 @@ void Ind_ReqIndicatorsCourses (void)
|
||||||
Par_PutHiddenParamLong ("DptCod",Gbl.Stat.DptCod);
|
Par_PutHiddenParamLong ("DptCod",Gbl.Stat.DptCod);
|
||||||
Par_PutHiddenParamLong ("Indicators",Gbl.Stat.NumIndicators);
|
Par_PutHiddenParamLong ("Indicators",Gbl.Stat.NumIndicators);
|
||||||
Lay_PutSendButton (Txt_Show_more_details);
|
Lay_PutSendButton (Txt_Show_more_details);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* End table */
|
/* End table */
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -457,8 +457,8 @@ static void Ind_PutButtonToConfirmIWantToSeeBigList (unsigned NumCrss)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
Lay_PutSendButton (Txt_Show_anyway);
|
Lay_PutSendButton (Txt_Show_anyway);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
37
swad_info.c
37
swad_info.c
|
@ -416,8 +416,8 @@ static void Inf_PutFormToEditInfo (Inf_InfoType_t InfoType)
|
||||||
Act_FormStart (Inf_ActionsEditInfo[InfoType]);
|
Act_FormStart (Inf_ActionsEditInfo[InfoType]);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -438,11 +438,11 @@ static void Inf_PutFormToForceStdsToReadInfo (Inf_InfoType_t InfoType,bool MustB
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," name=\"MustBeRead\" value=\"Y\""
|
fprintf (Gbl.F.Out," name=\"MustBeRead\" value=\"Y\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
" %s"
|
" %s",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Txt_Force_students_to_read_this_information);
|
Txt_Force_students_to_read_this_information);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -463,10 +463,11 @@ static void Inf_PutFormToConfirmIHaveReadInfo (Inf_InfoType_t InfoType)
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," name=\"IHaveRead\" value=\"Y\""
|
fprintf (Gbl.F.Out," name=\"IHaveRead\" value=\"Y\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
"%s</form>"
|
"%s",
|
||||||
"</div>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Txt_I_have_read_this_information);
|
Txt_I_have_read_this_information);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -560,10 +561,10 @@ void Inf_WriteMsgYouMustReadInfo (void)
|
||||||
Act_FormStart (Inf_ActionsSeeInfo[InfoType]);
|
Act_FormStart (Inf_ActionsSeeInfo[InfoType]);
|
||||||
Act_LinkFormSubmit (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]),The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]),The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s"
|
fprintf (Gbl.F.Out,"%s"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</li>",
|
|
||||||
Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]));
|
Act_GetTitleAction (Inf_ActionsSeeInfo[InfoType]));
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</li>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</ul>"
|
fprintf (Gbl.F.Out,"</ul>"
|
||||||
"</td>"
|
"</td>"
|
||||||
|
@ -988,7 +989,7 @@ void Inf_FormsToSelSendInfo (void)
|
||||||
|
|
||||||
/* End of table and form */
|
/* End of table and form */
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1006,7 +1007,7 @@ void Inf_FormToEnterIntegratedEditor (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoT
|
||||||
Lay_PutSendButton (Txt_Edit);
|
Lay_PutSendButton (Txt_Edit);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1024,7 +1025,7 @@ void Inf_FormToEnterPlainTextEditor (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoTy
|
||||||
Lay_PutSendButton (Txt_Edit_text);
|
Lay_PutSendButton (Txt_Edit_text);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1042,7 +1043,7 @@ void Inf_FormToEnterRichTextEditor (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoTyp
|
||||||
Lay_PutSendButton (Txt_Edit_text);
|
Lay_PutSendButton (Txt_Edit_text);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1076,7 +1077,7 @@ void Inf_FormToSendPage (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoType)
|
||||||
Lay_PutSendButton (Txt_Upload_file);
|
Lay_PutSendButton (Txt_Upload_file);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1121,7 +1122,7 @@ void Inf_FormToSendURL (Inf_InfoSrc_t InfoSrc,Inf_InfoType_t InfoType)
|
||||||
Lay_PutSendButton (Txt_Send_URL);
|
Lay_PutSendButton (Txt_Send_URL);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1729,7 +1730,7 @@ void Inf_EditPlainTxtInfo (void)
|
||||||
|
|
||||||
/***** Send and undo buttons *****/
|
/***** Send and undo buttons *****/
|
||||||
Lay_PutSendButton (Txt_Send);
|
Lay_PutSendButton (Txt_Send);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1789,7 +1790,7 @@ void Inf_EditRichTxtInfo (void)
|
||||||
|
|
||||||
/***** Send and undo buttons *****/
|
/***** Send and undo buttons *****/
|
||||||
Lay_PutSendButton (Txt_Send);
|
Lay_PutSendButton (Txt_Send);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -176,10 +176,10 @@ void Ins_SeeInsWithPendingCtrs (void)
|
||||||
Ins_PutParamInsCod (Ins.InsCod);
|
Ins_PutParamInsCod (Ins.InsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Ins.FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Ins.FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
Act_LinkFormSubmit (Gbl.Title,"DAT");
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ins.FullName);
|
Ins.FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of pending centres (row[1]) */
|
/* Number of pending centres (row[1]) */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -250,7 +250,7 @@ static void Ins_Configuration (bool PrintView)
|
||||||
Act_FormStart (ActSeeCtr);
|
Act_FormStart (ActSeeCtr);
|
||||||
Act_LinkFormSubmit (Txt_Centres,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Centres,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("ctr",Txt_Centres,Txt_Centres);
|
Lay_PutSendIcon ("ctr",Txt_Centres,Txt_Centres);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Link to print view */
|
/* Link to print view */
|
||||||
Lay_PutLinkToPrintView1 (ActPrnInsInf);
|
Lay_PutLinkToPrintView1 (ActPrnInsInf);
|
||||||
|
@ -573,10 +573,10 @@ static void Ins_ListOneInstitutionForSeeing (struct Institution *Ins,unsigned Nu
|
||||||
Ins_PutParamInsCod (Ins->InsCod);
|
Ins_PutParamInsCod (Ins->InsCod);
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Ins->FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Ins->FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
Act_LinkFormSubmit (Gbl.Title,TxtClass);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Ins->FullName);
|
Ins->FullName);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Stats *****/
|
/***** Stats *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
||||||
|
@ -659,8 +659,8 @@ static void Ins_PutHeadInstitutionsForSeeing (bool OrderSelectable)
|
||||||
{
|
{
|
||||||
if (Order == Gbl.Inss.SelectedOrderType)
|
if (Order == Gbl.Inss.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
|
@ -1072,8 +1072,8 @@ void Ins_WriteSelectorOfInstitution (Act_Action_t NextAction)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1130,11 +1130,11 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActRemIns);
|
Act_FormStart (ActRemIns);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_institution,
|
Txt_Remove_institution,
|
||||||
Txt_Remove_institution);
|
Txt_Remove_institution);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -1176,8 +1176,8 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
fprintf (Gbl.F.Out,"%s",Gbl.CurrentCty.Cty.Name[Gbl.Prefs.Language]);
|
||||||
|
@ -1191,10 +1191,10 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActRenInsSho);
|
Act_FormStart (ActRenInsSho);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName,
|
Ins_MAX_LENGTH_INSTITUTION_SHORT_NAME,Ins->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Ins->ShortName);
|
fprintf (Gbl.F.Out,"%s",Ins->ShortName);
|
||||||
|
@ -1208,10 +1208,10 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActRenInsFul);
|
Act_FormStart (ActRenInsFul);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName,
|
Ins_MAX_LENGTH_INSTITUTION_FULL_NAME,Ins->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Ins->FullName);
|
fprintf (Gbl.F.Out,"%s",Ins->FullName);
|
||||||
|
@ -1225,11 +1225,11 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
Act_FormStart (ActChgInsWWW);
|
Act_FormStart (ActChgInsWWW);
|
||||||
Ins_PutParamOtherInsCod (Ins->InsCod);
|
Ins_PutParamOtherInsCod (Ins->InsCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Ins->WWW,
|
Cns_MAX_LENGTH_WWW,Ins->WWW,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -1268,13 +1268,13 @@ static void Ins_ListInstitutionsForEdition (void)
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
" onchange=\"javascript:document.getElementById('%s').submit();\">"
|
||||||
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
"<option value=\"%u\" selected=\"selected\">%s</option>"
|
||||||
"<option value=\"%u\">%s</option>"
|
"<option value=\"%u\">%s</option>"
|
||||||
"</select>"
|
"</select>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
(unsigned) Ins_GetStatusBitsFromStatusTxt (Ins_STATUS_PENDING),
|
(unsigned) Ins_GetStatusBitsFromStatusTxt (Ins_STATUS_PENDING),
|
||||||
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING],
|
Txt_INSTITUTION_STATUS[Ins_STATUS_PENDING],
|
||||||
(unsigned) Ins_GetStatusBitsFromStatusTxt (Ins_STATUS_ACTIVE),
|
(unsigned) Ins_GetStatusBitsFromStatusTxt (Ins_STATUS_ACTIVE),
|
||||||
Txt_INSTITUTION_STATUS[Ins_STATUS_ACTIVE]);
|
Txt_INSTITUTION_STATUS[Ins_STATUS_ACTIVE]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_INSTITUTION_STATUS[StatusTxt]);
|
fprintf (Gbl.F.Out,"%s",Txt_INSTITUTION_STATUS[StatusTxt]);
|
||||||
|
@ -1861,7 +1861,7 @@ static void Ins_PutFormToCreateInstitution (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -646,8 +646,8 @@ static void Lay_WritePageTopHeading (void)
|
||||||
ActSysSch)))));
|
ActSysSch)))));
|
||||||
Sco_PutParamScope (Sco_SCOPE_SYS);
|
Sco_PutParamScope (Sco_SCOPE_SYS);
|
||||||
Sch_PutFormToSearch (Gbl.Prefs.PathTheme);
|
Sch_PutFormToSearch (Gbl.Prefs.PathTheme);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Logged user or language selection */
|
/* Logged user or language selection */
|
||||||
|
@ -887,9 +887,8 @@ static void Lay_ShowRightColumn (void)
|
||||||
"<td style=\"text-align:center;\">");
|
"<td style=\"text-align:center;\">");
|
||||||
Act_FormStart (ActLstCon);
|
Act_FormStart (ActLstCon);
|
||||||
Act_LinkFormSubmit (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Connected_users,The_ClassConnected[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",Txt_Connected_PLURAL);
|
||||||
"</form>",
|
Act_FormEnd ();
|
||||||
Txt_Connected_PLURAL);
|
|
||||||
|
|
||||||
/***** Number of connected users in the whole platform *****/
|
/***** Number of connected users in the whole platform *****/
|
||||||
fprintf (Gbl.F.Out,"<div id=\"globalconnected\">"); // Used for AJAX based refresh
|
fprintf (Gbl.F.Out,"<div id=\"globalconnected\">"); // Used for AJAX based refresh
|
||||||
|
@ -946,8 +945,8 @@ void Lay_PutFormToView (Act_Action_t Action)
|
||||||
Act_FormStart (Action);
|
Act_FormStart (Action);
|
||||||
Act_LinkFormSubmit (Txt_View,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_View,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("visible_on",Txt_View,Txt_View);
|
Lay_PutSendIcon ("visible_on",Txt_View,Txt_View);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -963,8 +962,8 @@ void Lay_PutFormToEdit (Act_Action_t Action)
|
||||||
Act_FormStart (Action);
|
Act_FormStart (Action);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1416,13 +1415,13 @@ void Lay_PutIconsToSelectLayout (void)
|
||||||
Par_PutHiddenParamUnsigned ("Layout",(unsigned) Layout);
|
Par_PutHiddenParamUnsigned ("Layout",(unsigned) Layout);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
||||||
" style=\"margin:0 auto;\" />"
|
" style=\"margin:0 auto;\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Lay_LayoutIcons[Layout],
|
Lay_LayoutIcons[Layout],
|
||||||
Txt_LAYOUT_NAMES[Layout],
|
Txt_LAYOUT_NAMES[Layout],
|
||||||
Txt_LAYOUT_NAMES[Layout]);
|
Txt_LAYOUT_NAMES[Layout]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -1484,7 +1483,7 @@ void Lay_PutLinkToPrintView2 (void)
|
||||||
|
|
||||||
Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Print,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("print",Txt_Print,Txt_Print);
|
Lay_PutSendIcon ("print",Txt_Print,Txt_Print);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
33
swad_link.c
33
swad_link.c
|
@ -125,8 +125,8 @@ static void Lnk_PutFormToEditLinks (void)
|
||||||
Act_FormStart (ActEdiLnk);
|
Act_FormStart (ActEdiLnk);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -304,12 +304,12 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActRemLnk);
|
Act_FormStart (ActRemLnk);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_link,
|
Txt_Remove_link,
|
||||||
Txt_Remove_link);
|
Txt_Remove_link);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Link code */
|
/* Link code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
@ -323,11 +323,11 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActRenLnkSho);
|
Act_FormStart (ActRenLnkSho);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName,
|
Lnk_MAX_LENGTH_LINK_SHORT_NAME,Lnk->ShortName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Link full name */
|
/* Link full name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -335,11 +335,11 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActRenLnkFul);
|
Act_FormStart (ActRenLnkFul);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName,
|
Lnk_MAX_LENGTH_LINK_FULL_NAME,Lnk->FullName,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Link WWW */
|
/* Link WWW */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -347,13 +347,12 @@ static void Lnk_ListLinksForEdition (void)
|
||||||
Act_FormStart (ActChgLnkWWW);
|
Act_FormStart (ActChgLnkWWW);
|
||||||
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
Lnk_PutParamLnkCod (Lnk->LnkCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"WWW\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Lnk->WWW,
|
Cns_MAX_LENGTH_WWW,Lnk->WWW,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -634,7 +633,7 @@ static void Lnk_PutFormToCreateLink (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -223,7 +223,7 @@ void Log_PutFormToChangeLogo (Sco_Scope_t Scope)
|
||||||
Txt_Upload_logo;
|
Txt_Upload_logo;
|
||||||
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon (Icon,Msg,Msg);
|
Lay_PutSendIcon (Icon,Msg,Msg);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -302,12 +302,12 @@ void Log_RequestLogo (Sco_Scope_t Scope)
|
||||||
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>",
|
||||||
"</form>",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_File_with_the_logo,
|
Txt_File_with_the_logo,
|
||||||
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
||||||
Txt_Upload_logo);
|
Txt_Upload_logo);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -323,7 +323,7 @@ static void Log_PutLinkToRemoveLogo (Act_Action_t Action)
|
||||||
Act_FormStart (Action);
|
Act_FormStart (Action);
|
||||||
Act_LinkFormSubmit (Txt_Remove_logo,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_logo,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_logo,Txt_Remove_logo);
|
Lay_PutSendIcon ("delon",Txt_Remove_logo,Txt_Remove_logo);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
44
swad_mail.c
44
swad_mail.c
|
@ -116,9 +116,9 @@ void Mai_SeeMailDomains (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_MAIL_DOMAIN_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_MAIL_DOMAIN_ORDER[Order]);
|
||||||
if (Order == Gbl.Mails.SelectedOrderType)
|
if (Order == Gbl.Mails.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
|
|
||||||
|
@ -181,8 +181,8 @@ static void Mai_PutFormToEditMailDomains (void)
|
||||||
Act_FormStart (ActEdiMai);
|
Act_FormStart (ActEdiMai);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -412,11 +412,11 @@ static void Mai_ListMailDomainsForEdition (void)
|
||||||
Act_FormStart (ActRemMai);
|
Act_FormStart (ActRemMai);
|
||||||
Mai_PutParamMaiCod (Mai->MaiCod);
|
Mai_PutParamMaiCod (Mai->MaiCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_mail_domain,
|
Txt_Remove_mail_domain,
|
||||||
Txt_Remove_mail_domain);
|
Txt_Remove_mail_domain);
|
||||||
|
Act_FormEnd ();
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Mail code */
|
/* Mail code */
|
||||||
|
@ -431,11 +431,11 @@ static void Mai_ListMailDomainsForEdition (void)
|
||||||
Act_FormStart (ActRenMaiSho);
|
Act_FormStart (ActRenMaiSho);
|
||||||
Mai_PutParamMaiCod (Mai->MaiCod);
|
Mai_PutParamMaiCod (Mai->MaiCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Domain\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Domain\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Mai_MAX_LENGTH_MAIL_DOMAIN,Mai->Domain,
|
Mai_MAX_LENGTH_MAIL_DOMAIN,Mai->Domain,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Mail domain info */
|
/* Mail domain info */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -443,11 +443,11 @@ static void Mai_ListMailDomainsForEdition (void)
|
||||||
Act_FormStart (ActRenMaiFul);
|
Act_FormStart (ActRenMaiFul);
|
||||||
Mai_PutParamMaiCod (Mai->MaiCod);
|
Mai_PutParamMaiCod (Mai->MaiCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Info\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Info\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Mai_MAX_LENGTH_MAIL_INFO,Mai->Info,
|
Mai_MAX_LENGTH_MAIL_INFO,Mai->Info,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of users */
|
/* Number of users */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;"
|
||||||
|
@ -696,7 +696,7 @@ static void Mai_PutFormToCreateMailDomain (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1078,12 +1078,12 @@ void Mai_ShowFormChangeUsrEmail (void)
|
||||||
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"Email\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"Email\" value=\"%s\" />"
|
||||||
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
||||||
" style=\"margin-right:2px;\" />"
|
" style=\"margin-right:2px;\" />",
|
||||||
"</form>",
|
|
||||||
row[0],
|
row[0],
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* E-mail */
|
/* E-mail */
|
||||||
|
@ -1112,11 +1112,11 @@ void Mai_ShowFormChangeUsrEmail (void)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActChgMai);
|
Act_FormStart (ActChgMai);
|
||||||
fprintf (Gbl.F.Out," <input type=\"hidden\" name=\"NewEmail\" value=\"%s\" />"
|
fprintf (Gbl.F.Out," <input type=\"hidden\" name=\"NewEmail\" value=\"%s\" />"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />",
|
||||||
"</form>",
|
|
||||||
row[0], // E-mail
|
row[0], // E-mail
|
||||||
NumEmail == 1 ? Txt_Confirm_email :
|
NumEmail == 1 ? Txt_Confirm_email :
|
||||||
Txt_Use_this_email);
|
Txt_Use_this_email);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NumEmail == 1 ||
|
if (NumEmail == 1 ||
|
||||||
|
@ -1138,14 +1138,14 @@ void Mai_ShowFormChangeUsrEmail (void)
|
||||||
Txt_Email); // The first e-mail
|
Txt_Email); // The first e-mail
|
||||||
Act_FormStart (ActChgMai);
|
Act_FormStart (ActChgMai);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewEmail\" size=\"16\" maxlength=\"%u\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewEmail\" size=\"16\" maxlength=\"%u\" value=\"%s\" />"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_BYTES_STRING,
|
Cns_MAX_BYTES_STRING,
|
||||||
Gbl.Usrs.Me.UsrDat.Email,
|
Gbl.Usrs.Me.UsrDat.Email,
|
||||||
NumEmails ? Txt_Change_email : // I already have an e-mail address
|
NumEmails ? Txt_Change_email : // I already have an e-mail address
|
||||||
Txt_Save); // I have no e-mail address yet
|
Txt_Save); // I have no e-mail address yet
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -145,8 +145,8 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (Brw_FileType_t FileType,
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Write the number of rows of footer *****/
|
/***** Write the number of rows of footer *****/
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:right;"
|
||||||
|
@ -172,8 +172,8 @@ void Mrk_GetAndWriteNumRowsHeaderAndFooter (Brw_FileType_t FileType,
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd],
|
Gbl.ColorRows[Gbl.RowEvenOdd],
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
Brw_ParamListFiles (FileType,PathInTree,FileName);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
22
swad_menu.c
22
swad_menu.c
|
@ -140,8 +140,8 @@ void Mnu_WriteVerticalMenuThisTabDesktop (void)
|
||||||
/***** End of link and form *****/
|
/***** End of link and form *****/
|
||||||
fprintf (Gbl.F.Out,"</div>"
|
fprintf (Gbl.F.Out,"</div>"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End of container used to highlight this option *****/
|
/***** End of container used to highlight this option *****/
|
||||||
if (!IsTheSelectedAction)
|
if (!IsTheSelectedAction)
|
||||||
|
@ -211,12 +211,12 @@ void Mnu_WriteHorizontalMenuThisTabDesktop (void)
|
||||||
" alt=\"%s\" class=\"ICON28x28\""
|
" alt=\"%s\" class=\"ICON28x28\""
|
||||||
" style=\"margin:0;\" />"
|
" style=\"margin:0;\" />"
|
||||||
"<div>%s</div>"
|
"<div>%s</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||||
Act_Actions[NumAct].Icon,
|
Act_Actions[NumAct].Icon,
|
||||||
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu],
|
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu],
|
||||||
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu]);
|
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End of container used to highlight this option *****/
|
/***** End of container used to highlight this option *****/
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
@ -276,14 +276,14 @@ void Mnu_WriteMenuThisTabMobile (void)
|
||||||
" alt=\"%s\" class=\"ICON64x64\""
|
" alt=\"%s\" class=\"ICON64x64\""
|
||||||
" style=\"margin:4px;\" />"
|
" style=\"margin:4px;\" />"
|
||||||
"<div>%s</div>"
|
"<div>%s</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</div>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||||
Act_Actions[NumAct].Icon,
|
Act_Actions[NumAct].Icon,
|
||||||
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu],
|
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu],
|
||||||
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu]);
|
Txt_MENU_TITLE[Gbl.CurrentTab][NumOptInMenu]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>"
|
||||||
|
"</td>");
|
||||||
|
|
||||||
if ((NumOptVisible % Cfg_LAYOUT_MOBILE_NUM_COLUMNS) ==
|
if ((NumOptVisible % Cfg_LAYOUT_MOBILE_NUM_COLUMNS) ==
|
||||||
(Cfg_LAYOUT_MOBILE_NUM_COLUMNS - 1))
|
(Cfg_LAYOUT_MOBILE_NUM_COLUMNS - 1))
|
||||||
|
@ -320,13 +320,13 @@ void Mnu_PutIconsToSelectMenu (void)
|
||||||
Par_PutHiddenParamUnsigned ("Menu",(unsigned) Menu);
|
Par_PutHiddenParamUnsigned ("Menu",(unsigned) Menu);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s32x32.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON32x32B\""
|
||||||
" style=\"margin:0 auto;\" />"
|
" style=\"margin:0 auto;\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Mnu_MenuIcons[Menu],
|
Mnu_MenuIcons[Menu],
|
||||||
Txt_MENU_NAMES[Menu],
|
Txt_MENU_NAMES[Menu],
|
||||||
Txt_MENU_NAMES[Menu]);
|
Txt_MENU_NAMES[Menu]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
|
@ -340,7 +340,7 @@ static void Msg_PutFormMsgUsrs (const char *Content)
|
||||||
|
|
||||||
/***** Send and undo buttons *****/
|
/***** Send and undo buttons *****/
|
||||||
Lay_PutSendButton (Txt_Send_message);
|
Lay_PutSendButton (Txt_Send_message);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Free memory used by the list of nicknames *****/
|
/***** Free memory used by the list of nicknames *****/
|
||||||
|
@ -782,9 +782,9 @@ void Msg_ReqDelAllRecMsgs (void)
|
||||||
Msg_PutHiddenParamsMsgsFilters ();
|
Msg_PutHiddenParamsMsgsFilters ();
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Delete_messages_received);
|
Txt_Delete_messages_received);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -819,9 +819,9 @@ void Msg_ReqDelAllSntMsgs (void)
|
||||||
Msg_PutHiddenParamsMsgsFilters ();
|
Msg_PutHiddenParamsMsgsFilters ();
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Delete_messages_sent);
|
Txt_Delete_messages_sent);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1555,7 +1555,7 @@ static void Msg_ShowSentOrReceivedMessages (Msg_TypeOfMessages_t TypeOfMessages)
|
||||||
Msg_ShowFormToShowOnlyUnreadMessages ();
|
Msg_ShowFormToShowOnlyUnreadMessages ();
|
||||||
}
|
}
|
||||||
Lay_PutSendButton (Txt_View_messages);
|
Lay_PutSendButton (Txt_View_messages);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
if (TypeOfMessages == Msg_MESSAGES_RECEIVED)
|
if (TypeOfMessages == Msg_MESSAGES_RECEIVED)
|
||||||
NumUnreadMsgs = Msg_GetNumUnreadMsgs (Gbl.Msg.FilterCrsCod,FilterFromToSubquery);
|
NumUnreadMsgs = Msg_GetNumUnreadMsgs (Gbl.Msg.FilterCrsCod,FilterFromToSubquery);
|
||||||
|
@ -1677,7 +1677,7 @@ static void Msg_PutLinkToViewBannedUsers(void)
|
||||||
Act_FormStart (ActLstBanUsr);
|
Act_FormStart (ActLstBanUsr);
|
||||||
Act_LinkFormSubmit (Txt_Banned_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Banned_users,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("stop",Txt_Banned_users,Txt_Banned_users);
|
Lay_PutSendIcon ("stop",Txt_Banned_users,Txt_Banned_users);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2197,10 +2197,10 @@ void Msg_ShowFormDelSentOrRecMsgs (Msg_TypeOfMessages_t TypeOfMessages,unsigned
|
||||||
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\" alt=\"%s\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\" alt=\"%s\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
Gbl.Prefs.IconsURL,Gbl.Title,Gbl.Title);
|
Gbl.Prefs.IconsURL,Gbl.Title,Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2825,7 +2825,8 @@ static void Msg_WriteSentOrReceivedMsgSubject (Msg_TypeOfMessages_t TypeOfMessag
|
||||||
fprintf (Gbl.F.Out,"[%s]",Txt_no_subject);
|
fprintf (Gbl.F.Out,"[%s]",Txt_no_subject);
|
||||||
|
|
||||||
/***** End form to expand the message *****/
|
/***** End form to expand the message *****/
|
||||||
fprintf (Gbl.F.Out,"</a></form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End cell *****/
|
/***** End cell *****/
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
@ -2862,7 +2863,7 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,unsigned WidthOfNameColumn,unsig
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO24x32",true);
|
"PHOTO24x32",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Second column with user name (if author has a web page, put a link to it) *****/
|
/***** Second column with user name (if author has a web page, put a link to it) *****/
|
||||||
|
@ -2929,9 +2930,9 @@ bool Msg_WriteCrsOrgMsg (long CrsCod)
|
||||||
sprintf (Gbl.Title,Txt_Go_to_X,Crs.FullName);
|
sprintf (Gbl.Title,Txt_Go_to_X,Crs.FullName);
|
||||||
Act_LinkFormSubmit (Gbl.Title,"MSG_AUT");
|
Act_LinkFormSubmit (Gbl.Title,"MSG_AUT");
|
||||||
fprintf (Gbl.F.Out,"%s</a>)"
|
fprintf (Gbl.F.Out,"%s</a>)"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Crs.ShortName);
|
Crs.ShortName);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2985,7 +2986,7 @@ static void Msg_WriteFormToReply (long MsgCod,long CrsCod,const char *Subject,
|
||||||
Txt_Reply,
|
Txt_Reply,
|
||||||
Replied ? Txt_Reply_again :
|
Replied ? Txt_Reply_again :
|
||||||
Txt_Reply);
|
Txt_Reply);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3020,7 +3021,7 @@ static void Msg_WriteMsgFrom (struct UsrData *UsrDat,bool Deleted)
|
||||||
ShowPhoto = (Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL));
|
ShowPhoto = (Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL));
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
|
|
||||||
/***** Write user's name *****/
|
/***** Write user's name *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -3165,7 +3166,7 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
|
||||||
false);
|
false);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
|
|
||||||
/* Write user's name */
|
/* Write user's name */
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -3210,9 +3211,9 @@ static void Msg_WriteMsgTo (Msg_TypeOfMessages_t TypeOfMessages,long MsgCod)
|
||||||
Act_LinkFormSubmit (Txt_View_all_recipients,"MSG_AUT");
|
Act_LinkFormSubmit (Txt_View_all_recipients,"MSG_AUT");
|
||||||
fprintf (Gbl.F.Out,Txt_and_X_other_recipients,
|
fprintf (Gbl.F.Out,Txt_and_X_other_recipients,
|
||||||
NumRecipientsKnown - NumRecipientsToShow);
|
NumRecipientsKnown - NumRecipientsToShow);
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3261,12 +3262,12 @@ static void Msg_PutFormToDeleteMessage (long MsgCod,Msg_TypeOfMessages_t TypeOfM
|
||||||
Msg_PutHiddenParamMsgCod (MsgCod);
|
Msg_PutHiddenParamMsgCod (MsgCod);
|
||||||
Msg_PutHiddenParamsMsgsFilters ();
|
Msg_PutHiddenParamsMsgsFilters ();
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16B\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Delete_message,
|
Txt_Delete_message,
|
||||||
Txt_Delete_message);
|
Txt_Delete_message);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3340,11 +3341,11 @@ static void Msg_PutFormToBanSender (struct UsrData *UsrDat)
|
||||||
Msg_PutHiddenParamsMsgsFilters ();
|
Msg_PutHiddenParamsMsgsFilters ();
|
||||||
fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\"> </span>"
|
fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\"> </span>"
|
||||||
"<input type=\"image\" src=\"%s/open_on16x16.gif\""
|
"<input type=\"image\" src=\"%s/open_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Sender_permitted_click_to_ban_him,
|
Txt_Sender_permitted_click_to_ban_him,
|
||||||
Txt_Sender_permitted_click_to_ban_him);
|
Txt_Sender_permitted_click_to_ban_him);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3361,11 +3362,11 @@ static void Msg_PutFormToUnbanSender (struct UsrData *UsrDat)
|
||||||
Msg_PutHiddenParamsMsgsFilters ();
|
Msg_PutHiddenParamsMsgsFilters ();
|
||||||
fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\"> </span>"
|
fprintf (Gbl.F.Out,"<span class=\"MSG_AUT\"> </span>"
|
||||||
"<input type=\"image\" src=\"%s/closed_on16x16.gif\""
|
"<input type=\"image\" src=\"%s/closed_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Sender_banned_click_to_unban_him,
|
Txt_Sender_banned_click_to_unban_him,
|
||||||
Txt_Sender_banned_click_to_unban_him);
|
Txt_Sender_banned_click_to_unban_him);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3541,12 +3542,12 @@ void Msg_ListBannedUsrs (void)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat.EncryptedUsrCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/closed_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/closed_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Sender_banned_click_to_unban_him,
|
Txt_Sender_banned_click_to_unban_him,
|
||||||
Txt_Sender_banned_click_to_unban_him);
|
Txt_Sender_banned_click_to_unban_him);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Show photo */
|
/* Show photo */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"width:24px;"
|
fprintf (Gbl.F.Out,"<td style=\"width:24px;"
|
||||||
|
@ -3554,7 +3555,7 @@ void Msg_ListBannedUsrs (void)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",true);
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write user's full name */
|
/* Write user's full name */
|
||||||
|
|
|
@ -252,12 +252,12 @@ void Net_ShowFormMyWebsAndSocialNets (void)
|
||||||
Par_PutHiddenParamUnsigned ("Web",(unsigned) NumURL);
|
Par_PutHiddenParamUnsigned ("Web",(unsigned) NumURL);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\""
|
||||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_LENGTH_URL,URL,
|
Cns_MAX_LENGTH_URL,URL,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End table *****/
|
/***** End table *****/
|
||||||
|
|
|
@ -239,12 +239,12 @@ void Nck_ShowFormChangeUsrNickname (void)
|
||||||
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"Nick\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"hidden\" name=\"Nick\" value=\"%s\" />"
|
||||||
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\""
|
||||||
" style=\"margin-right:2px;\" />"
|
" style=\"margin-right:2px;\" />",
|
||||||
"</form>",
|
|
||||||
row[0],
|
row[0],
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Nickname */
|
/* Nickname */
|
||||||
|
@ -263,10 +263,10 @@ void Nck_ShowFormChangeUsrNickname (void)
|
||||||
Act_FormStart (ActChgNic);
|
Act_FormStart (ActChgNic);
|
||||||
fprintf (Gbl.F.Out," "
|
fprintf (Gbl.F.Out," "
|
||||||
"<input type=\"hidden\" name=\"NewNick\" value=\"@%s\" />"
|
"<input type=\"hidden\" name=\"NewNick\" value=\"@%s\" />"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />",
|
||||||
"</form>",
|
|
||||||
row[0], // Nickname
|
row[0], // Nickname
|
||||||
Txt_Use_this_nickname);
|
Txt_Use_this_nickname);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NumNick == 1 ||
|
if (NumNick == 1 ||
|
||||||
|
@ -288,14 +288,14 @@ void Nck_ShowFormChangeUsrNickname (void)
|
||||||
Txt_Nickname); // The first nickname
|
Txt_Nickname); // The first nickname
|
||||||
Act_FormStart (ActChgNic);
|
Act_FormStart (ActChgNic);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewNick\" size=\"16\" maxlength=\"%u\" value=\"@%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NewNick\" size=\"16\" maxlength=\"%u\" value=\"@%s\" />"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
1 + Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA,
|
1 + Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA,
|
||||||
Gbl.Usrs.Me.UsrDat.Nickname,
|
Gbl.Usrs.Me.UsrDat.Nickname,
|
||||||
NumNicks ? Txt_Change_nickname : // I already have a nickname
|
NumNicks ? Txt_Change_nickname : // I already have a nickname
|
||||||
Txt_Save); // I have no nickname yet
|
Txt_Save); // I have no nickname yet
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -116,7 +116,7 @@ void Not_ShowFormNotice (void)
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_MSG_Message);
|
Txt_MSG_Message);
|
||||||
Lay_PutSendButton (Txt_Create_notice);
|
Lay_PutSendButton (Txt_Create_notice);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -317,7 +317,7 @@ void Not_ShowNotices (Not_Listing_t TypeNoticesListing)
|
||||||
Act_FormStart (ActWriNot);
|
Act_FormStart (ActWriNot);
|
||||||
Act_LinkFormSubmit (Txt_New_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_notice,Txt_New_notice);
|
Lay_PutSendIcon ("new",Txt_New_notice,Txt_New_notice);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Show highlighted notice *****/
|
/***** Show highlighted notice *****/
|
||||||
|
@ -501,22 +501,22 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
Not_PutHiddenParamNotCod (NotCod);
|
Not_PutHiddenParamNotCod (NotCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/visible_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/visible_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_NOTICE_Active_Mark_as_obsolete,
|
Txt_NOTICE_Active_Mark_as_obsolete,
|
||||||
Txt_NOTICE_Active_Mark_as_obsolete);
|
Txt_NOTICE_Active_Mark_as_obsolete);
|
||||||
|
Act_FormEnd ();
|
||||||
break;
|
break;
|
||||||
case Not_OBSOLETE_NOTICE:
|
case Not_OBSOLETE_NOTICE:
|
||||||
Act_FormStart (ActRevNot);
|
Act_FormStart (ActRevNot);
|
||||||
Not_PutHiddenParamNotCod (NotCod);
|
Not_PutHiddenParamNotCod (NotCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/hidden_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/hidden_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_NOTICE_Obsolete_Mark_as_active,
|
Txt_NOTICE_Obsolete_Mark_as_active,
|
||||||
Txt_NOTICE_Obsolete_Mark_as_active);
|
Txt_NOTICE_Obsolete_Mark_as_active);
|
||||||
|
Act_FormEnd ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else // Don't put form to change the state of the notice
|
else // Don't put form to change the state of the notice
|
||||||
|
@ -556,8 +556,10 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
fprintf (Gbl.F.Out," ");
|
fprintf (Gbl.F.Out," ");
|
||||||
Dat_WriteHourMinute (&DateTime[8]);
|
Dat_WriteHourMinute (&DateTime[8]);
|
||||||
if (TypeNoticesListing == Not_LIST_BRIEF_NOTICES)
|
if (TypeNoticesListing == Not_LIST_BRIEF_NOTICES)
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
{
|
||||||
"</form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Write the content of the notice *****/
|
/***** Write the content of the notice *****/
|
||||||
|
@ -571,11 +573,12 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
Not_PutHiddenParamNotCod (NotCod);
|
Not_PutHiddenParamNotCod (NotCod);
|
||||||
Act_LinkFormSubmit (Txt_See_full_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_See_full_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/ellipsis32x32.gif\""
|
||||||
" alt=\"%s\" class=\"ICON32x32\" /></a>"
|
" alt=\"%s\" class=\"ICON32x32\" />"
|
||||||
"</form>"
|
"</a>",
|
||||||
"</div>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_See_full_notice);
|
Txt_See_full_notice);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
|
@ -600,11 +603,11 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
|
||||||
Act_LinkFormSubmit (Txt_Remove_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_notice,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_notice,
|
Txt_Remove_notice,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
|
@ -417,12 +417,12 @@ void Ntf_ShowMyNotifications (void)
|
||||||
{
|
{
|
||||||
Ntf_StartFormGoToAction (NotifyEvent,Crs.CrsCod,Cod);
|
Ntf_StartFormGoToAction (NotifyEvent,Crs.CrsCod,Cod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/%s/%s64x64.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||||
Ntf_Icons[NotifyEvent],
|
Ntf_Icons[NotifyEvent],
|
||||||
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
|
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],
|
||||||
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s16x16.gif\" alt=\"%s\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s16x16.gif\" alt=\"%s\""
|
||||||
|
@ -440,9 +440,9 @@ void Ntf_ShowMyNotifications (void)
|
||||||
{
|
{
|
||||||
Ntf_StartFormGoToAction (NotifyEvent,Crs.CrsCod,Cod);
|
Ntf_StartFormGoToAction (NotifyEvent,Crs.CrsCod,Cod);
|
||||||
Act_LinkFormSubmit (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],ClassAnchor);
|
Act_LinkFormSubmit (Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent],ClassAnchor);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
Txt_NOTIFY_EVENTS_SINGULAR[NotifyEvent]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<span class=\"%s\">%s</span>",
|
fprintf (Gbl.F.Out,"<span class=\"%s\">%s</span>",
|
||||||
|
@ -467,9 +467,13 @@ void Ntf_ShowMyNotifications (void)
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<span class=\"%s\">",ClassAnchor);
|
fprintf (Gbl.F.Out,"<span class=\"%s\">",ClassAnchor);
|
||||||
fprintf (Gbl.F.Out,"%s: %s",Txt_Forum,ForumName);
|
fprintf (Gbl.F.Out,"%s: %s",Txt_Forum,ForumName);
|
||||||
fprintf (Gbl.F.Out,PutLink ? "</a>"
|
if (PutLink)
|
||||||
"</form>" :
|
{
|
||||||
"</span>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fprintf (Gbl.F.Out,"</span>");
|
||||||
}
|
}
|
||||||
else if (Crs.CrsCod > 0)
|
else if (Crs.CrsCod > 0)
|
||||||
{
|
{
|
||||||
|
@ -481,9 +485,13 @@ void Ntf_ShowMyNotifications (void)
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<span class=\"%s\">",ClassAnchor);
|
fprintf (Gbl.F.Out,"<span class=\"%s\">",ClassAnchor);
|
||||||
fprintf (Gbl.F.Out,"%s: %s",Txt_Course,Crs.ShortName);
|
fprintf (Gbl.F.Out,"%s: %s",Txt_Course,Crs.ShortName);
|
||||||
fprintf (Gbl.F.Out,PutLink ? "</a>"
|
if (PutLink)
|
||||||
"</form>" :
|
{
|
||||||
"</span>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fprintf (Gbl.F.Out,"</span>");
|
||||||
}
|
}
|
||||||
else if (Deg.DegCod > 0)
|
else if (Deg.DegCod > 0)
|
||||||
{
|
{
|
||||||
|
@ -578,11 +586,11 @@ static void Ntf_WriteFormAllNotifications (bool AllNotifications)
|
||||||
if (AllNotifications)
|
if (AllNotifications)
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
" %s"
|
" %s",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Txt_Show_all_notifications);
|
Txt_Show_all_notifications);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1610,7 +1618,7 @@ static void Ntf_PutLinkToChangePrefs (void)
|
||||||
Act_FormStart (ActEdiPrf);
|
Act_FormStart (ActEdiPrf);
|
||||||
Act_LinkFormSubmit (Txt_Change_preferences,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Change_preferences,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("heart",Txt_Change_preferences,Txt_Change_preferences);
|
Lay_PutSendIcon ("heart",Txt_Change_preferences,Txt_Change_preferences);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1625,7 +1633,7 @@ static void Ntf_PutLinkToMarkAllNotifAsSeen (void)
|
||||||
Act_FormStart (ActMrkNtfSee);
|
Act_FormStart (ActMrkNtfSee);
|
||||||
Act_LinkFormSubmit (Txt_Mark_all_notifications_as_read,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Mark_all_notifications_as_read,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("visible_on",Txt_Mark_all_notifications_as_read,Txt_Mark_all_notifications_as_read);
|
Lay_PutSendIcon ("visible_on",Txt_Mark_all_notifications_as_read,Txt_Mark_all_notifications_as_read);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1712,7 +1720,7 @@ void Ntf_PutFormChangeNotifSentByEMail (void)
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</table>");
|
fprintf (Gbl.F.Out,"</table>");
|
||||||
Lay_PutSendButton (Txt_Save_changes);
|
Lay_PutSendButton (Txt_Save_changes);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End table *****/
|
/***** End table *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -1827,7 +1835,8 @@ void Ntf_WriteNumberOfNewNtfs (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</a></form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -176,10 +176,13 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"[%s]",
|
fprintf (Gbl.F.Out,"[%s]",
|
||||||
Txt_first_message_not_allowed);
|
Txt_first_message_not_allowed);
|
||||||
fprintf (Gbl.F.Out,"%s",
|
if (LinkToPagCurrent)
|
||||||
LinkToPagCurrent ? "</a>"
|
{
|
||||||
"</form>" :
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</span>");
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
fprintf (Gbl.F.Out,"</span>");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Pagination->MoreThanOnePage)
|
if (Pagination->MoreThanOnePage)
|
||||||
|
@ -245,9 +248,9 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
||||||
1,(unsigned) Pagination->NumPags);
|
1,(unsigned) Pagination->NumPags);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Font);
|
Act_LinkFormSubmit (Gbl.Title,Font);
|
||||||
fprintf (Gbl.F.Out,"1</a>"
|
fprintf (Gbl.F.Out,"1</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
if (Pagination->LeftPage > 2)
|
if (Pagination->LeftPage > 2)
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||||
"..."
|
"..."
|
||||||
|
@ -305,10 +308,10 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
||||||
(unsigned) Pagination->LeftPage,(unsigned) Pagination->NumPags);
|
(unsigned) Pagination->LeftPage,(unsigned) Pagination->NumPags);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Font);
|
Act_LinkFormSubmit (Gbl.Title,Font);
|
||||||
fprintf (Gbl.F.Out,"%u</a>"
|
fprintf (Gbl.F.Out,"%u</a>",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
(unsigned) Pagination->LeftPage);
|
(unsigned) Pagination->LeftPage);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
if (Pagination->LeftPage < Pagination->StartPage-1)
|
if (Pagination->LeftPage < Pagination->StartPage-1)
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||||
"..."
|
"..."
|
||||||
|
@ -372,9 +375,9 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
||||||
(unsigned) NumPage,(unsigned) Pagination->NumPags);
|
(unsigned) NumPage,(unsigned) Pagination->NumPags);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Font);
|
Act_LinkFormSubmit (Gbl.Title,Font);
|
||||||
fprintf (Gbl.F.Out,"%u</a>"
|
fprintf (Gbl.F.Out,"%u</a>",
|
||||||
"</form>",
|
|
||||||
(unsigned) NumPage);
|
(unsigned) NumPage);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
@ -434,10 +437,9 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
||||||
(unsigned) Pagination->RightPage,(unsigned) Pagination->NumPags);
|
(unsigned) Pagination->RightPage,(unsigned) Pagination->NumPags);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Font);
|
Act_LinkFormSubmit (Gbl.Title,Font);
|
||||||
fprintf (Gbl.F.Out,"%u</a>"
|
fprintf (Gbl.F.Out,"%u</a>",(unsigned) Pagination->RightPage);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>",
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
(unsigned) Pagination->RightPage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Possible link to last page *****/
|
/***** Possible link to last page *****/
|
||||||
|
@ -495,10 +497,9 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate,long ThrCod,struct P
|
||||||
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
sprintf (Gbl.Title,Txt_See_page_X_of_Y,
|
||||||
(unsigned) Pagination->NumPags,(unsigned) Pagination->NumPags);
|
(unsigned) Pagination->NumPags,(unsigned) Pagination->NumPags);
|
||||||
Act_LinkFormSubmit (Gbl.Title,Font);
|
Act_LinkFormSubmit (Gbl.Title,Font);
|
||||||
fprintf (Gbl.F.Out,"%u</a>"
|
fprintf (Gbl.F.Out,"%u</a>",(unsigned) Pagination->NumPags);
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>",
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
(unsigned) Pagination->NumPags);
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
fprintf (Gbl.F.Out,"<td class=\"%s\" style=\"text-align:left;\">"
|
||||||
"]"
|
"]"
|
||||||
|
|
|
@ -233,7 +233,7 @@ void Pwd_ShowFormSendNewPwd (void)
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
Lay_PutSendButton (Txt_Email_new_password);
|
Lay_PutSendButton (Txt_Email_new_password);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -682,7 +682,7 @@ void Pwd_ShowFormChgPwd (void)
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Txt_Save);
|
Txt_Save);
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -761,7 +761,7 @@ void Pwd_ShowFormOthPwd (void)
|
||||||
|
|
||||||
/* End form */
|
/* End form */
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
||||||
|
@ -792,7 +792,7 @@ void Pwd_PutLinkToChangeUsrPassword (const struct UsrData *UsrDat)
|
||||||
}
|
}
|
||||||
Act_LinkFormSubmit (Txt_Change_password,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Change_password,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("key",Txt_Change_password,Txt_Change_password);
|
Lay_PutSendIcon ("key",Txt_Change_password,Txt_Change_password);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
Lay_ShowAlert (Lay_WARNING,Txt_User_not_found_or_you_do_not_have_permission_);
|
||||||
|
|
76
swad_photo.c
76
swad_photo.c
|
@ -52,6 +52,7 @@
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
extern struct Globals Gbl;
|
extern struct Globals Gbl;
|
||||||
|
extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS];
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
|
@ -167,7 +168,7 @@ void Pho_PutLinkToChangeUsrPhoto (const struct UsrData *UsrDat)
|
||||||
Txt_Upload_photo;
|
Txt_Upload_photo;
|
||||||
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Msg,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("photo",Msg,Msg);
|
Lay_PutSendIcon ("photo",Msg,Msg);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -190,7 +191,7 @@ static void Pho_PutLinkToRemoveUsrPhoto (const struct UsrData *UsrDat)
|
||||||
|
|
||||||
Act_LinkFormSubmit (Txt_Remove_photo,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Remove_photo,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("delon",Txt_Remove_photo,Txt_Remove_photo);
|
Lay_PutSendIcon ("delon",Txt_Remove_photo,Txt_Remove_photo);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -243,7 +244,7 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Show photo */
|
/* Show photo */
|
||||||
Pho_ShowUsrPhoto (UsrDat,PhotoURL,"PHOTO150x200",true);
|
Pho_ShowUsrPhoto (UsrDat,PhotoURL,"PHOTO150x200",Pho_ZOOM);
|
||||||
}
|
}
|
||||||
Lay_ShowAlert (Lay_INFO,Txt_You_can_send_a_file_with_an_image_in_jpg_format_);
|
Lay_ShowAlert (Lay_INFO,Txt_You_can_send_a_file_with_an_image_in_jpg_format_);
|
||||||
|
|
||||||
|
@ -269,14 +270,14 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho
|
||||||
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
"<input type=\"submit\" value=\"%s\" accept=\"image/jpeg\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_File_with_the_photo,
|
Txt_File_with_the_photo,
|
||||||
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
||||||
UsrDat->UsrCod,
|
UsrDat->UsrCod,
|
||||||
Txt_Upload_photo);
|
Txt_Upload_photo);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -507,7 +508,7 @@ void Pho_ReceivePhotoAndDetectFaces (bool ItsMe,const struct UsrData *UsrDat)
|
||||||
if (!ItsMe)
|
if (!ItsMe)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Par_PutHiddenParamString ("FileName",StrFileName);
|
Par_PutHiddenParamString ("FileName",StrFileName);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
NumFacesRed++;
|
NumFacesRed++;
|
||||||
|
@ -948,26 +949,44 @@ void Pho_UpdatePhotoName (struct UsrData *UsrDat)
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
const char *ClassPhoto,bool Zoom)
|
const char *ClassPhoto,Pho_Zoom_t Zoom)
|
||||||
{
|
{
|
||||||
char SpecialFullName [3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
|
char SpecialFullName [3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
|
||||||
char SpecialShortName[3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+6];
|
char SpecialShortName[3*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+6];
|
||||||
char SpecialSurnames [2*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
|
char SpecialSurnames [2*(Usr_MAX_BYTES_NAME_SPEC_CHAR+1)+1];
|
||||||
|
bool PutLinkToPublicProfile = !Gbl.InsideForm && // Only if not inside another form
|
||||||
|
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW; // Only in main window
|
||||||
|
bool PutZoomCode = PhotoURL && // Photo exists
|
||||||
|
Zoom == Pho_ZOOM && // Make zoom
|
||||||
|
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW; // Only in main window
|
||||||
|
|
||||||
/* Replace tildes, ñ, etc. in full name by codes,
|
/***** Replace tildes, ñ, etc. in full name by codes,
|
||||||
because some browsers (i.e., IE5) don't show correctly tildes with AJAX */
|
because some browsers (i.e., IE5)
|
||||||
|
don't show correctly tildes with AJAX *****/
|
||||||
strcpy (SpecialFullName,UsrDat->FullName);
|
strcpy (SpecialFullName,UsrDat->FullName);
|
||||||
Str_ReplaceSpecialCharByCodes (SpecialFullName,sizeof (SpecialFullName)-1);
|
Str_ReplaceSpecialCharByCodes (SpecialFullName,sizeof (SpecialFullName)-1);
|
||||||
|
|
||||||
|
/***** Start form to go to public profile *****/
|
||||||
|
if (PutLinkToPublicProfile)
|
||||||
|
{
|
||||||
|
Act_FormStart (ActSeePubPrf);
|
||||||
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
|
Act_LinkFormSubmit (NULL,NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/***** Start image *****/
|
||||||
fprintf (Gbl.F.Out,"<img src=\"");
|
fprintf (Gbl.F.Out,"<img src=\"");
|
||||||
if (PhotoURL)
|
if (PhotoURL)
|
||||||
fprintf (Gbl.F.Out,"%s",PhotoURL);
|
fprintf (Gbl.F.Out,"%s",PhotoURL);
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",Gbl.Prefs.IconsURL);
|
fprintf (Gbl.F.Out,"%s/usr_bl.jpg",Gbl.Prefs.IconsURL);
|
||||||
fprintf (Gbl.F.Out,"\" class=\"%s\"",ClassPhoto);
|
fprintf (Gbl.F.Out,"\" class=\"%s\"",ClassPhoto);
|
||||||
if (SpecialFullName[0])
|
if (SpecialFullName[0] &&
|
||||||
|
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW) // Only in main window
|
||||||
fprintf (Gbl.F.Out," title=\"%s\"",SpecialFullName);
|
fprintf (Gbl.F.Out," title=\"%s\"",SpecialFullName);
|
||||||
if (Zoom && PhotoURL)
|
|
||||||
|
/***** Image zoom *****/
|
||||||
|
if (PutZoomCode)
|
||||||
{
|
{
|
||||||
strcpy (SpecialShortName,UsrDat->FirstName);
|
strcpy (SpecialShortName,UsrDat->FirstName);
|
||||||
Str_LimitLengthHTMLStr (SpecialShortName,23);
|
Str_LimitLengthHTMLStr (SpecialShortName,23);
|
||||||
|
@ -987,7 +1006,16 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
fprintf (Gbl.F.Out," onmouseover=\"zoom(this,'%s','%s')\" onmouseout=\"noZoom(this);\"",
|
fprintf (Gbl.F.Out," onmouseover=\"zoom(this,'%s','%s')\" onmouseout=\"noZoom(this);\"",
|
||||||
PhotoURL,SpecialShortName);
|
PhotoURL,SpecialShortName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***** End image *****/
|
||||||
fprintf (Gbl.F.Out," />");
|
fprintf (Gbl.F.Out," />");
|
||||||
|
|
||||||
|
/***** End form to go to public profile *****/
|
||||||
|
if (PutLinkToPublicProfile)
|
||||||
|
{
|
||||||
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1462,9 +1490,9 @@ static void Pho_PutSelectorForTypeOfAvg (void)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>",Txt_AVERAGE_PHOTO_TYPES[TypeOfAvg]);
|
fprintf (Gbl.F.Out,">%s</option>",Txt_AVERAGE_PHOTO_TYPES[TypeOfAvg]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1532,9 +1560,9 @@ static void Pho_PutSelectorForHowComputePhotoSize (void)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>",Txt_STAT_DEGREE_PHOTO_SIZE[PhoSi]);
|
fprintf (Gbl.F.Out,">%s</option>",Txt_STAT_DEGREE_PHOTO_SIZE[PhoSi]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1602,9 +1630,9 @@ static void Pho_PutSelectorForHowOrderDegrees (void)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>",Txt_STAT_DEGREE_PHOTO_ORDER[Order]);
|
fprintf (Gbl.F.Out,">%s</option>",Txt_STAT_DEGREE_PHOTO_ORDER[Order]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1719,9 +1747,9 @@ static void Pho_PutLinkToCalculateDegreeStats (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End selector, form, table and div *****/
|
/***** End selector, form, table and div *****/
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Free list of all the degrees *****/
|
/***** Free list of all the degrees *****/
|
||||||
Deg_FreeListAllDegs ();
|
Deg_FreeListAllDegs ();
|
||||||
|
|
|
@ -34,6 +34,13 @@
|
||||||
#define Pho_PHOTO_REAL_WIDTH 150
|
#define Pho_PHOTO_REAL_WIDTH 150
|
||||||
#define Pho_PHOTO_REAL_HEIGHT 200
|
#define Pho_PHOTO_REAL_HEIGHT 200
|
||||||
|
|
||||||
|
/***** Zoom? *****/
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
Pho_ZOOM,
|
||||||
|
Pho_NO_ZOOM,
|
||||||
|
} Pho_Zoom_t;
|
||||||
|
|
||||||
/***** Average photos of students in degrees ******/
|
/***** Average photos of students in degrees ******/
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -99,7 +106,7 @@ bool Pho_CheckIfPrivPhotoExists (long UsrCod,char *PathPrivRelPhoto);
|
||||||
bool Pho_RemovePhoto (struct UsrData *UsrDat);
|
bool Pho_RemovePhoto (struct UsrData *UsrDat);
|
||||||
void Pho_UpdatePhotoName (struct UsrData *UsrDat);
|
void Pho_UpdatePhotoName (struct UsrData *UsrDat);
|
||||||
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
const char *ClassPhoto,bool Zoom);
|
const char *ClassPhoto,Pho_Zoom_t Zoom);
|
||||||
|
|
||||||
void Pho_ChangePhotoVisibility (void);
|
void Pho_ChangePhotoVisibility (void);
|
||||||
|
|
||||||
|
|
28
swad_place.c
28
swad_place.c
|
@ -113,9 +113,9 @@ void Plc_SeePlaces (void)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_PLACES_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_PLACES_ORDER[Order]);
|
||||||
if (Order == Gbl.Plcs.SelectedOrderType)
|
if (Order == Gbl.Plcs.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
|
|
||||||
|
@ -207,8 +207,8 @@ static void Plc_PutFormToEditPlcs (void)
|
||||||
Act_FormStart (ActEdiPlc);
|
Act_FormStart (ActEdiPlc);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -440,11 +440,11 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
Act_FormStart (ActRemPlc);
|
Act_FormStart (ActRemPlc);
|
||||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_place,
|
Txt_Remove_place,
|
||||||
Txt_Remove_place);
|
Txt_Remove_place);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -460,10 +460,10 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
Act_FormStart (ActRenPlcSho);
|
Act_FormStart (ActRenPlcSho);
|
||||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"ShortName\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName,Gbl.FormId);
|
Plc_MAX_LENGTH_PLACE_SHORT_NAME,Plc->ShortName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Place full name */
|
/* Place full name */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -471,10 +471,10 @@ static void Plc_ListPlacesForEdition (void)
|
||||||
Act_FormStart (ActRenPlcFul);
|
Act_FormStart (ActRenPlcFul);
|
||||||
Plc_PutParamPlcCod (Plc->PlcCod);
|
Plc_PutParamPlcCod (Plc->PlcCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FullName\" size=\"40\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plc_MAX_LENGTH_PLACE_FULL_NAME,Plc->FullName,Gbl.FormId);
|
Plc_MAX_LENGTH_PLACE_FULL_NAME,Plc->FullName,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of centres */
|
/* Number of centres */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
@ -730,7 +730,7 @@ static void Plc_PutFormToCreatePlace (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of formn *****/
|
/***** End of formn *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -157,8 +157,8 @@ static void Plg_PutFormToEditPlugins (void)
|
||||||
Act_FormStart (ActEdiPlg);
|
Act_FormStart (ActEdiPlg);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -375,12 +375,12 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActRemPlg);
|
Act_FormStart (ActRemPlg);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_plugin,
|
Txt_Remove_plugin,
|
||||||
Txt_Remove_plugin);
|
Txt_Remove_plugin);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin code */
|
/* Plugin code */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
fprintf (Gbl.F.Out,"<td class=\"DAT\" style=\"text-align:right;\">"
|
||||||
|
@ -402,10 +402,10 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActRenPlg);
|
Act_FormStart (ActRenPlg);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Name\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plg_MAX_LENGTH_PLUGIN_NAME,Plg->Name,Gbl.FormId);
|
Plg_MAX_LENGTH_PLUGIN_NAME,Plg->Name,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin description */
|
/* Plugin description */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -413,10 +413,10 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActChgPlgDes);
|
Act_FormStart (ActChgPlgDes);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Description\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Description\" size=\"30\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plg_MAX_LENGTH_PLUGIN_DESCRIPTION,Plg->Description,Gbl.FormId);
|
Plg_MAX_LENGTH_PLUGIN_DESCRIPTION,Plg->Description,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin logo */
|
/* Plugin logo */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -424,10 +424,10 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActChgPlgLog);
|
Act_FormStart (ActChgPlgLog);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Logo\" size=\"4\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Logo\" size=\"4\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plg_MAX_LENGTH_PLUGIN_LOGO,Plg->Logo,Gbl.FormId);
|
Plg_MAX_LENGTH_PLUGIN_LOGO,Plg->Logo,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin application key */
|
/* Plugin application key */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -435,10 +435,10 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActChgPlgAppKey);
|
Act_FormStart (ActChgPlgAppKey);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"AppKey\" size=\"16\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"AppKey\" size=\"16\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Plg_MAX_LENGTH_PLUGIN_APP_KEY,Plg->AppKey,Gbl.FormId);
|
Plg_MAX_LENGTH_PLUGIN_APP_KEY,Plg->AppKey,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin URL */
|
/* Plugin URL */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -446,10 +446,10 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActChgPlgURL);
|
Act_FormStart (ActChgPlgURL);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"URL\" size=\"15\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Cns_MAX_LENGTH_WWW,Plg->URL,Gbl.FormId);
|
Cns_MAX_LENGTH_WWW,Plg->URL,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Plugin IP */
|
/* Plugin IP */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -457,11 +457,11 @@ static void Plg_ListPluginsForEdition (void)
|
||||||
Act_FormStart (ActChgPlgIP);
|
Act_FormStart (ActChgPlgIP);
|
||||||
Plg_PutParamPlgCod (Plg->PlgCod);
|
Plg_PutParamPlgCod (Plg->PlgCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"IP\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"IP\" size=\"10\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_LENGTH_IP,Plg->IP,Gbl.FormId);
|
Cns_MAX_LENGTH_IP,Plg->IP,Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -924,7 +924,7 @@ static void Plg_PutFormToCreatePlugin (void)
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -246,8 +246,8 @@ void Prf_PutSelectorToSelectLanguage (void)
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s</option>",Txt_STR_LANG_NAME[Lan]);
|
fprintf (Gbl.F.Out,">%s</option>",Txt_STR_LANG_NAME[Lan]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -274,7 +274,7 @@ void Prf_AskChangeLanguage (void)
|
||||||
Act_FormStart (ActChgLan);
|
Act_FormStart (ActChgLan);
|
||||||
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Gbl.Prefs.Language);
|
Par_PutHiddenParamUnsigned ("Lan",(unsigned) Gbl.Prefs.Language);
|
||||||
Lay_PutSendButton (Txt_Switch_to_LANGUAGE[Gbl.Prefs.Language]);
|
Lay_PutSendButton (Txt_Switch_to_LANGUAGE[Gbl.Prefs.Language]);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
Gbl.Prefs.Language = CurrentLanguage; // Restore current language
|
Gbl.Prefs.Language = CurrentLanguage; // Restore current language
|
||||||
}
|
}
|
||||||
|
@ -355,13 +355,13 @@ static void Prf_PutIconsToSelectSideCols (void)
|
||||||
Par_PutHiddenParamUnsigned ("SideCols",SideCols);
|
Par_PutHiddenParamUnsigned ("SideCols",SideCols);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/layout%u%u_32x20.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/layout%u%u_32x20.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" style=\"display:block;"
|
" alt=\"%s\" title=\"%s\" style=\"display:block;"
|
||||||
" width:32px; height:20px; margin:0 auto;\" />"
|
" width:32px; height:20px; margin:0 auto;\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
SideCols >> 1,SideCols & 1,
|
SideCols >> 1,SideCols & 1,
|
||||||
Txt_LAYOUT_SIDE_COLUMNS[SideCols],
|
Txt_LAYOUT_SIDE_COLUMNS[SideCols],
|
||||||
Txt_LAYOUT_SIDE_COLUMNS[SideCols]);
|
Txt_LAYOUT_SIDE_COLUMNS[SideCols]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
@ -396,7 +396,7 @@ void Prf_PutLeftIconToHideShowCols (void)
|
||||||
Txt_Show_left_column,
|
Txt_Show_left_column,
|
||||||
Txt_Show_left_column);
|
Txt_Show_left_column);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -428,7 +428,7 @@ void Prf_PutRigthIconToHideShowCols (void)
|
||||||
Txt_Show_right_column,
|
Txt_Show_right_column,
|
||||||
Txt_Show_right_column);
|
Txt_Show_right_column);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
212
swad_record.c
212
swad_record.c
|
@ -208,12 +208,12 @@ void Rec_ListFieldsRecordsForEdition (void)
|
||||||
Act_FormStart (ActReqRemFie);
|
Act_FormStart (ActReqRemFie);
|
||||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_record_field,
|
Txt_Remove_record_field,
|
||||||
Txt_Remove_record_field);
|
Txt_Remove_record_field);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Name of the field */
|
/* Name of the field */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;"
|
||||||
|
@ -222,12 +222,12 @@ void Rec_ListFieldsRecordsForEdition (void)
|
||||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FieldName\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"FieldName\""
|
||||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Rec_MAX_LENGTH_NAME_FIELD,
|
Rec_MAX_LENGTH_NAME_FIELD,
|
||||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name,
|
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].Name,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Number of lines in the form */
|
/* Number of lines in the form */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -236,11 +236,11 @@ void Rec_ListFieldsRecordsForEdition (void)
|
||||||
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
Par_PutHiddenParamLong ("FieldCod",Gbl.CurrentCrs.Records.LstFields.Lst[NumField].FieldCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NumLines\" size=\"2\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"NumLines\" size=\"2\""
|
||||||
" maxlength=\"2\" value=\"%u\""
|
" maxlength=\"2\" value=\"%u\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].NumLines,
|
Gbl.CurrentCrs.Records.LstFields.Lst[NumField].NumLines,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Visibility of a field */
|
/* Visibility of a field */
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center;"
|
||||||
|
@ -260,8 +260,9 @@ void Rec_ListFieldsRecordsForEdition (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Txt_RECORD_FIELD_VISIBILITY_MENU[Vis]);
|
Txt_RECORD_FIELD_VISIBILITY_MENU[Vis]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select></form>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</td>"
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -341,7 +342,7 @@ void Rec_ShowFormCreateRecordField (void)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
Lay_PutSendButton (Txt_Create_record_field);
|
Lay_PutSendButton (Txt_Create_record_field);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -592,7 +593,7 @@ void Rec_AskConfirmRemFieldWithRecords (unsigned NumRecords)
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>",
|
"</div>",
|
||||||
Txt_Remove_record_field);
|
Txt_Remove_record_field);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -887,7 +888,7 @@ void Rec_PutLinkToEditRecordFields (void)
|
||||||
Act_FormStart (ActEdiRecFie);
|
Act_FormStart (ActEdiRecFie);
|
||||||
Act_LinkFormSubmit (Txt_Edit_record_fields,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit_record_fields,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit_record_fields,Txt_Edit_record_fields);
|
Lay_PutSendIcon ("edit",Txt_Edit_record_fields,Txt_Edit_record_fields);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -929,8 +930,8 @@ void Rec_ListRecordsInvs (void)
|
||||||
Act_FormStart (ActPrnRecSevInv);
|
Act_FormStart (ActPrnRecSevInv);
|
||||||
Usr_PutHiddenParUsrCodAll (ActPrnRecSevInv,Gbl.Usrs.Select.All);
|
Usr_PutHiddenParUsrCodAll (ActPrnRecSevInv,Gbl.Usrs.Select.All);
|
||||||
Rec_ShowLinkToPrintPreviewOfRecords ();
|
Rec_ShowLinkToPrintPreviewOfRecords ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Initialize structure with user's data *****/
|
/***** Initialize structure with user's data *****/
|
||||||
|
@ -1015,8 +1016,8 @@ static void Rec_ShowRecordOneStdCrs (void)
|
||||||
Act_FormStart (ActPrnRecSevStd);
|
Act_FormStart (ActPrnRecSevStd);
|
||||||
Usr_PutHiddenParUsrCodAll (ActPrnRecSevStd,Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
Usr_PutHiddenParUsrCodAll (ActPrnRecSevStd,Gbl.Usrs.Other.UsrDat.EncryptedUsrCod);
|
||||||
Rec_ShowLinkToPrintPreviewOfRecords ();
|
Rec_ShowLinkToPrintPreviewOfRecords ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Show the record *****/
|
/***** Show the record *****/
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||||
|
@ -1079,8 +1080,8 @@ void Rec_ListRecordsStdsCrs (void)
|
||||||
Act_FormStart (ActPrnRecSevStd);
|
Act_FormStart (ActPrnRecSevStd);
|
||||||
Usr_PutHiddenParUsrCodAll (ActPrnRecSevStd,Gbl.Usrs.Select.All);
|
Usr_PutHiddenParUsrCodAll (ActPrnRecSevStd,Gbl.Usrs.Select.All);
|
||||||
Rec_ShowLinkToPrintPreviewOfRecords ();
|
Rec_ShowLinkToPrintPreviewOfRecords ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Initialize structure with user's data *****/
|
/***** Initialize structure with user's data *****/
|
||||||
|
@ -1171,8 +1172,8 @@ static void Rec_ShowRecordOneTchCrs (void)
|
||||||
Par_PutHiddenParamChar ("ParamOfficeHours",'Y');
|
Par_PutHiddenParamChar ("ParamOfficeHours",'Y');
|
||||||
Par_PutHiddenParamChar ("ShowOfficeHours",'Y');
|
Par_PutHiddenParamChar ("ShowOfficeHours",'Y');
|
||||||
Rec_ShowLinkToPrintPreviewOfRecords ();
|
Rec_ShowLinkToPrintPreviewOfRecords ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;"
|
||||||
" margin-bottom:10px;\">");
|
" margin-bottom:10px;\">");
|
||||||
|
@ -1243,8 +1244,8 @@ void Rec_ListRecordsTchsCrs (void)
|
||||||
ShowOfficeHours ? 'Y' :
|
ShowOfficeHours ? 'Y' :
|
||||||
'N');
|
'N');
|
||||||
Rec_ShowLinkToPrintPreviewOfRecords ();
|
Rec_ShowLinkToPrintPreviewOfRecords ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Initialize structure with user's data *****/
|
/***** Initialize structure with user's data *****/
|
||||||
|
@ -1362,13 +1363,13 @@ static void Rec_WriteFormShowOfficeHours (bool ShowOfficeHours,const char *ListU
|
||||||
" onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
" onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
||||||
"<img src=\"%s/clock16x16.gif\""
|
"<img src=\"%s/clock16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
"<span class=\"%s\"> %s</span>"
|
"<span class=\"%s\"> %s</span>",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId,
|
Gbl.FormId,
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Show_office_hours,
|
Txt_Show_office_hours,
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_Show_office_hours);
|
Txt_Show_office_hours);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1644,7 +1645,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat)
|
||||||
if (DataForm)
|
if (DataForm)
|
||||||
{
|
{
|
||||||
Lay_PutSendButton (Txt_Send);
|
Lay_PutSendButton (Txt_Send);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1872,8 +1873,8 @@ void Rec_ShowFormSignUpWithMyCommonRecord (void)
|
||||||
Act_FormStart (ActSignUp);
|
Act_FormStart (ActSignUp);
|
||||||
Rec_ShowSharedUsrRecord (Rec_FORM_SIGN_UP,&Gbl.Usrs.Me.UsrDat);
|
Rec_ShowSharedUsrRecord (Rec_FORM_SIGN_UP,&Gbl.Usrs.Me.UsrDat);
|
||||||
Lay_PutSendButton (Txt_Sign_up);
|
Lay_PutSendButton (Txt_Sign_up);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1908,8 +1909,8 @@ void Rec_ShowFormMyCommRecord (void)
|
||||||
Rec_ShowSharedUsrRecord (Rec_FORM_MY_COMMON_RECORD,&Gbl.Usrs.Me.UsrDat);
|
Rec_ShowSharedUsrRecord (Rec_FORM_MY_COMMON_RECORD,&Gbl.Usrs.Me.UsrDat);
|
||||||
Lay_PutSendButton (Txt_Save_changes);
|
Lay_PutSendButton (Txt_Save_changes);
|
||||||
Rec_WriteLinkToDataProtectionClause ();
|
Rec_WriteLinkToDataProtectionClause ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1925,7 +1926,7 @@ static void Rec_PutFormToMyCommonRecord (void)
|
||||||
Act_FormStart (ActReqEdiRecCom);
|
Act_FormStart (ActReqEdiRecCom);
|
||||||
Act_LinkFormSubmit (Txt_Edit_my_personal_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit_my_personal_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit_my_personal_data,Txt_Edit_my_personal_data);
|
Lay_PutSendIcon ("edit",Txt_Edit_my_personal_data,Txt_Edit_my_personal_data);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1944,7 +1945,7 @@ static void Rec_PutLinkToMyCrsRecord (void)
|
||||||
Act_FormStart (ActSeeRecCrs);
|
Act_FormStart (ActSeeRecCrs);
|
||||||
Act_LinkFormSubmit (Txt_View_my_record_for_this_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_View_my_record_for_this_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("card",Txt_View_my_record_for_this_course,Txt_View_my_record_for_this_course);
|
Lay_PutSendIcon ("card",Txt_View_my_record_for_this_course,Txt_View_my_record_for_this_course);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1964,8 +1965,8 @@ void Rec_ShowFormOtherNewCommonRecord (struct UsrData *UsrDat)
|
||||||
Grp_ShowLstGrpsToChgOtherUsrsGrps (UsrDat->UsrCod);
|
Grp_ShowLstGrpsToChgOtherUsrsGrps (UsrDat->UsrCod);
|
||||||
|
|
||||||
Lay_PutSendButton (Txt_Register);
|
Lay_PutSendButton (Txt_Register);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2010,6 +2011,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
struct UsrData *UsrDat)
|
struct UsrData *UsrDat)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_View_record_card;
|
||||||
extern const char *Txt_Admin_user;
|
extern const char *Txt_Admin_user;
|
||||||
extern const char *Txt_ID;
|
extern const char *Txt_ID;
|
||||||
extern const char *Txt_Nickname;
|
extern const char *Txt_Nickname;
|
||||||
|
@ -2017,6 +2019,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
extern const char *Txt_View_works;
|
extern const char *Txt_View_works;
|
||||||
extern const char *Txt_See_exams;
|
extern const char *Txt_See_exams;
|
||||||
extern const char *Txt_Attendance;
|
extern const char *Txt_Attendance;
|
||||||
|
extern const char *Txt_View_public_profile;
|
||||||
extern const char *Txt_Email;
|
extern const char *Txt_Email;
|
||||||
extern const char *Txt_Sex;
|
extern const char *Txt_Sex;
|
||||||
extern const char *Txt_Role;
|
extern const char *Txt_Role;
|
||||||
|
@ -2050,10 +2053,11 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
const char *ClassHead,*ClassForm,*ClassData;
|
const char *ClassHead,*ClassForm,*ClassData;
|
||||||
char PhotoURL[PATH_MAX+1];
|
char PhotoURL[PATH_MAX+1];
|
||||||
bool ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod);
|
bool ItsMe = (Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod);
|
||||||
bool IAmTeacher = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER); // My current role is teacher
|
bool IAmLoggedAsStudent = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_STUDENT); // My current role is student
|
||||||
bool IAmDegAdmin = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_DEG_ADM); // My current role is degree administrator
|
bool IAmLoggedAsTeacher = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER); // My current role is teacher
|
||||||
bool IAmSuperuser = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SYS_ADM); // My current role is superuser
|
bool IAmLoggedAsDegAdm = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_DEG_ADM); // My current role is degree administrator
|
||||||
bool HeIsTeacher = (UsrDat->Roles & (1 << Rol_ROLE_TEACHER)); // He/she already is a teacher in any course
|
bool IAmLoggedAsSysAdm = (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SYS_ADM); // My current role is superuser
|
||||||
|
bool HeIsTeacherInAnyCourse = (UsrDat->Roles & (1 << Rol_ROLE_TEACHER)); // He/she already is a teacher in any course
|
||||||
bool HeBelongsToCurrentCrs = (UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT ||
|
bool HeBelongsToCurrentCrs = (UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT ||
|
||||||
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_TEACHER);
|
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_TEACHER);
|
||||||
bool RoleForm = (TypeOfView == Rec_FORM_SIGN_UP ||
|
bool RoleForm = (TypeOfView == Rec_FORM_SIGN_UP ||
|
||||||
|
@ -2063,12 +2067,13 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
bool DataForm = (TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
bool DataForm = (TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
||||||
TypeOfView == Rec_FORM_NEW_RECORD_OTHER_NEW_USR ||
|
TypeOfView == Rec_FORM_NEW_RECORD_OTHER_NEW_USR ||
|
||||||
(TypeOfView == Rec_FORM_MODIFY_RECORD_OTHER_EXISTING_USR &&
|
(TypeOfView == Rec_FORM_MODIFY_RECORD_OTHER_EXISTING_USR &&
|
||||||
!(IAmTeacher && HeIsTeacher))); // A teacher can not modify another teacher's data
|
!(IAmLoggedAsTeacher && HeIsTeacherInAnyCourse))); // A teacher can not modify another teacher's data
|
||||||
bool GoToPublicProfileForm = (TypeOfView == Rec_RECORD_LIST ||
|
bool GoToPublicProfileForm = (TypeOfView == Rec_RECORD_LIST ||
|
||||||
TypeOfView == Rec_RECORD_PUBLIC ||
|
TypeOfView == Rec_RECORD_PUBLIC ||
|
||||||
|
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
||||||
TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK);
|
TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK);
|
||||||
bool CommandForms = GoToPublicProfileForm && Gbl.Usrs.Me.Logged;
|
bool CommandForms = GoToPublicProfileForm && Gbl.Usrs.Me.Logged;
|
||||||
bool ShowEmail = (IAmDegAdmin || IAmSuperuser || DataForm ||
|
bool ShowEmail = (IAmLoggedAsDegAdm || IAmLoggedAsSysAdm || DataForm ||
|
||||||
TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
||||||
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
||||||
TypeOfView == Rec_FORM_MY_COURSE_RECORD ||
|
TypeOfView == Rec_FORM_MY_COURSE_RECORD ||
|
||||||
|
@ -2077,19 +2082,19 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
(TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK ||
|
(TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK ||
|
||||||
((TypeOfView == Rec_RECORD_LIST ||
|
((TypeOfView == Rec_RECORD_LIST ||
|
||||||
TypeOfView == Rec_RECORD_PRINT) &&
|
TypeOfView == Rec_RECORD_PRINT) &&
|
||||||
(IAmTeacher || Gbl.Usrs.Listing.RecsUsrs == Rec_RECORD_USERS_TEACHERS)))));
|
(IAmLoggedAsTeacher || Gbl.Usrs.Listing.RecsUsrs == Rec_RECORD_USERS_TEACHERS)))));
|
||||||
bool ShowID = (IAmDegAdmin || IAmSuperuser || DataForm ||
|
bool ShowID = (IAmLoggedAsDegAdm || IAmLoggedAsSysAdm || DataForm ||
|
||||||
TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
||||||
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
||||||
TypeOfView == Rec_FORM_MY_COURSE_RECORD ||
|
TypeOfView == Rec_FORM_MY_COURSE_RECORD ||
|
||||||
TypeOfView == Rec_MY_COURSE_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COURSE_RECORD_CHECK ||
|
||||||
(UsrDat->Accepted &&
|
(UsrDat->Accepted &&
|
||||||
((TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK &&
|
((TypeOfView == Rec_OTHER_USR_COMMON_RECORD_CHECK &&
|
||||||
!(IAmTeacher && HeIsTeacher)) || // A teacher can not see another teacher's ID
|
!(IAmLoggedAsTeacher && HeIsTeacherInAnyCourse)) || // A teacher can not see another teacher's ID
|
||||||
((TypeOfView == Rec_RECORD_LIST ||
|
((TypeOfView == Rec_RECORD_LIST ||
|
||||||
TypeOfView == Rec_RECORD_PRINT) &&
|
TypeOfView == Rec_RECORD_PRINT) &&
|
||||||
IAmTeacher && Gbl.Usrs.Listing.RecsUsrs == Rec_RECORD_USERS_STUDENTS))));
|
IAmLoggedAsTeacher && Gbl.Usrs.Listing.RecsUsrs == Rec_RECORD_USERS_STUDENTS))));
|
||||||
bool ShowData = ItsMe || UsrDat->Accepted || IAmDegAdmin || IAmSuperuser;
|
bool ShowData = ItsMe || UsrDat->Accepted || IAmLoggedAsDegAdm || IAmLoggedAsSysAdm;
|
||||||
bool ShowIDRows = (TypeOfView != Rec_RECORD_PUBLIC);
|
bool ShowIDRows = (TypeOfView != Rec_RECORD_PUBLIC);
|
||||||
bool ShowAddressRows = (TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
bool ShowAddressRows = (TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
||||||
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
||||||
|
@ -2097,7 +2102,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
TypeOfView == Rec_MY_COURSE_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COURSE_RECORD_CHECK ||
|
||||||
((TypeOfView == Rec_RECORD_LIST ||
|
((TypeOfView == Rec_RECORD_LIST ||
|
||||||
TypeOfView == Rec_RECORD_PRINT) &&
|
TypeOfView == Rec_RECORD_PRINT) &&
|
||||||
(IAmTeacher || IAmSuperuser) &&
|
(IAmLoggedAsTeacher || IAmLoggedAsSysAdm) &&
|
||||||
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT));
|
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT));
|
||||||
bool ShowTeacherRows = (((TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
bool ShowTeacherRows = (((TypeOfView == Rec_FORM_MY_COMMON_RECORD ||
|
||||||
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
TypeOfView == Rec_MY_COMMON_RECORD_CHECK ||
|
||||||
|
@ -2126,7 +2131,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
case Rec_FORM_MY_COMMON_RECORD:
|
case Rec_FORM_MY_COMMON_RECORD:
|
||||||
RecordWidth = Rec_WIDTH_SHARE_RECORD_BIG;
|
RecordWidth = Rec_WIDTH_SHARE_RECORD_BIG;
|
||||||
FrameWidth = 10;
|
FrameWidth = 10;
|
||||||
Col3Width = 160;
|
// Col3Width = 160;
|
||||||
ClassHead = "HEAD_REC";
|
ClassHead = "HEAD_REC";
|
||||||
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
|
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
|
||||||
ClassData = "DAT_REC";
|
ClassData = "DAT_REC";
|
||||||
|
@ -2145,7 +2150,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
}
|
}
|
||||||
RecordWidth = Rec_WIDTH_SHARE_RECORD_BIG;
|
RecordWidth = Rec_WIDTH_SHARE_RECORD_BIG;
|
||||||
FrameWidth = 10;
|
FrameWidth = 10;
|
||||||
Col3Width = 160;
|
// Col3Width = 160;
|
||||||
ClassHead = "HEAD_REC";
|
ClassHead = "HEAD_REC";
|
||||||
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
|
ClassForm = The_ClassFormul[Gbl.Prefs.Theme];
|
||||||
ClassData = "DAT_REC";
|
ClassData = "DAT_REC";
|
||||||
|
@ -2156,7 +2161,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
case Rec_RECORD_PUBLIC:
|
case Rec_RECORD_PUBLIC:
|
||||||
RecordWidth = Rec_WIDTH_SHARE_RECORD_SMALL;
|
RecordWidth = Rec_WIDTH_SHARE_RECORD_SMALL;
|
||||||
FrameWidth = 10;
|
FrameWidth = 10;
|
||||||
Col3Width = 160;
|
// Col3Width = 160;
|
||||||
ClassHead = "HEAD_REC_SMALL";
|
ClassHead = "HEAD_REC_SMALL";
|
||||||
ClassForm = "DAT_REC_SMALL";
|
ClassForm = "DAT_REC_SMALL";
|
||||||
ClassData = "DAT_REC_SMALL_BOLD";
|
ClassData = "DAT_REC_SMALL_BOLD";
|
||||||
|
@ -2164,7 +2169,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
case Rec_RECORD_PRINT:
|
case Rec_RECORD_PRINT:
|
||||||
RecordWidth = Rec_WIDTH_SHARE_RECORD_PRINT;
|
RecordWidth = Rec_WIDTH_SHARE_RECORD_PRINT;
|
||||||
FrameWidth = 1;
|
FrameWidth = 1;
|
||||||
Col3Width = 160;
|
// Col3Width = 160;
|
||||||
ClassHead = "HEAD_REC_SMALL";
|
ClassHead = "HEAD_REC_SMALL";
|
||||||
ClassForm = "DAT_REC_SMALL";
|
ClassForm = "DAT_REC_SMALL";
|
||||||
ClassData = "DAT_REC_SMALL_BOLD";
|
ClassData = "DAT_REC_SMALL_BOLD";
|
||||||
|
@ -2217,6 +2222,31 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<div style=\"width:22px; margin:6px auto 0 auto;\">");
|
fprintf (Gbl.F.Out,"<div style=\"width:22px; margin:6px auto 0 auto;\">");
|
||||||
|
|
||||||
|
/***** Button to view user's record card when:
|
||||||
|
- viewing public profile &&
|
||||||
|
- a course is selected &&
|
||||||
|
- the user belongs to it &&
|
||||||
|
- I belong to it or I am system admin *****/
|
||||||
|
if (TypeOfView == Rec_RECORD_PUBLIC &&
|
||||||
|
HeBelongsToCurrentCrs &&
|
||||||
|
(IAmLoggedAsStudent ||
|
||||||
|
IAmLoggedAsTeacher ||
|
||||||
|
IAmLoggedAsSysAdm))
|
||||||
|
{
|
||||||
|
Act_FormStart ((UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT) ? ActSeeRecOneStd :
|
||||||
|
ActSeeRecOneTch);
|
||||||
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
|
Act_LinkFormSubmit (Txt_View_record_card,NULL);
|
||||||
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIGHLIGHT\" style=\"display:inline;\" >"
|
||||||
|
"<img src=\"%s/card16x16.gif\""
|
||||||
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
|
"</div>"
|
||||||
|
"</a>",
|
||||||
|
Gbl.Prefs.IconsURL,
|
||||||
|
Txt_View_record_card);
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
|
||||||
/***** Button to admin user *****/
|
/***** Button to admin user *****/
|
||||||
if (ItsMe ||
|
if (ItsMe ||
|
||||||
(Gbl.CurrentCrs.Crs.CrsCod > 0 && Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER) ||
|
(Gbl.CurrentCrs.Crs.CrsCod > 0 && Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER) ||
|
||||||
|
@ -2232,15 +2262,15 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
"<img src=\"%s/config16x16.gif\""
|
"<img src=\"%s/config16x16.gif\""
|
||||||
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Admin_user);
|
Txt_Admin_user);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // A course is selected
|
if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // A course is selected
|
||||||
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT && // He/she is a student in the current course
|
UsrDat->RoleInCurrentCrsDB == Rol_ROLE_STUDENT && // He/she is a student in the current course
|
||||||
(ItsMe || IAmTeacher || IAmSuperuser)) // I can view
|
(ItsMe || IAmLoggedAsTeacher || IAmLoggedAsSysAdm)) // I can view
|
||||||
{
|
{
|
||||||
/***** Button to view user's assignments and works *****/
|
/***** Button to view user's assignments and works *****/
|
||||||
if (ItsMe) // I am a student
|
if (ItsMe) // I am a student
|
||||||
|
@ -2257,10 +2287,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
"<img src=\"%s/folder16x16.gif\""
|
"<img src=\"%s/folder16x16.gif\""
|
||||||
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_View_works);
|
Txt_View_works);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Button to view user's test exams *****/
|
/***** Button to view user's test exams *****/
|
||||||
if (ItsMe)
|
if (ItsMe)
|
||||||
|
@ -2276,14 +2306,14 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
"<img src=\"%s/file16x16.gif\""
|
"<img src=\"%s/file16x16.gif\""
|
||||||
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_See_exams);
|
Txt_See_exams);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Button to view user's attendance *****/
|
/***** Button to view user's attendance *****/
|
||||||
// TODO: A student should see her/his attendance
|
// TODO: A student should see her/his attendance
|
||||||
if (IAmTeacher || IAmSuperuser)
|
if (IAmLoggedAsTeacher || IAmLoggedAsSysAdm)
|
||||||
{
|
{
|
||||||
Act_FormStart (ActSeeLstAttStd);
|
Act_FormStart (ActSeeLstAttStd);
|
||||||
Par_PutHiddenParamString ("UsrCodStd",UsrDat->EncryptedUsrCod);
|
Par_PutHiddenParamString ("UsrCodStd",UsrDat->EncryptedUsrCod);
|
||||||
|
@ -2293,10 +2323,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
"<img src=\"%s/rollcall16x16.gif\""
|
"<img src=\"%s/rollcall16x16.gif\""
|
||||||
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Attendance);
|
Txt_Attendance);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2313,10 +2343,10 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
"<img src=\"%s/msg16x16.gif\""
|
"<img src=\"%s/msg16x16.gif\""
|
||||||
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
" style=\"width:16px;height:16px;\" alt=\"%s\" />"
|
||||||
"</div>"
|
"</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
@ -2343,8 +2373,7 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
Col3Width);
|
Col3Width);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO150x200",
|
"PHOTO150x200",Pho_NO_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
|
@ -2365,13 +2394,14 @@ void Rec_ShowSharedUsrRecord (Rec_RecordViewType_t TypeOfView,
|
||||||
/* Put form to go to public profile */
|
/* Put form to go to public profile */
|
||||||
Act_FormStart (ActSeePubPrf);
|
Act_FormStart (ActSeePubPrf);
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
sprintf (Gbl.Title,Txt_Write_a_message_to_X,UsrDat->FullName);
|
Act_LinkFormSubmit (Txt_View_public_profile,"HEAD_REC_BIG");
|
||||||
Act_LinkFormSubmit (Gbl.Title,"HEAD_REC_BIG");
|
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"@%s",UsrDat->Nickname);
|
fprintf (Gbl.F.Out,"@%s",UsrDat->Nickname);
|
||||||
if (GoToPublicProfileForm)
|
if (GoToPublicProfileForm)
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
{
|
||||||
"</form>");
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
|
||||||
/* Link to QR code */
|
/* Link to QR code */
|
||||||
if (!DataForm)
|
if (!DataForm)
|
||||||
|
@ -3135,7 +3165,7 @@ static void Rec_PutLinkToChangeMyInsCtrDpt (void)
|
||||||
Act_FormStart (ActReqEdiMyIns);
|
Act_FormStart (ActReqEdiMyIns);
|
||||||
Act_LinkFormSubmit (Txt_Edit_my_institution,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit_my_institution,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("institution",Txt_Edit_my_institution,Txt_Edit_my_institution);
|
Lay_PutSendIcon ("institution",Txt_Edit_my_institution,Txt_Edit_my_institution);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3151,7 +3181,7 @@ static void Rec_PutLinkToChangeMySocialNetworks (void)
|
||||||
Act_FormStart (ActReqEdiMyNet);
|
Act_FormStart (ActReqEdiMyNet);
|
||||||
Act_LinkFormSubmit (Txt_Edit_my_webs_networks,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit_my_webs_networks,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("earth",Txt_Edit_my_webs_networks,Txt_Edit_my_webs_networks);
|
Lay_PutSendIcon ("earth",Txt_Edit_my_webs_networks,Txt_Edit_my_webs_networks);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -3232,9 +3262,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
Gbl.Ctys.Lst[NumCty].Name[Gbl.Prefs.Language]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Institution *****/
|
/***** Institution *****/
|
||||||
|
@ -3276,9 +3306,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Gbl.Inss.Lst[NumIns].FullName);
|
Gbl.Inss.Lst[NumIns].FullName);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
if (IAmTeacher)
|
if (IAmTeacher)
|
||||||
|
@ -3323,9 +3353,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Gbl.Ctrs.Lst[NumCtr].FullName);
|
Gbl.Ctrs.Lst[NumCtr].FullName);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Department *****/
|
/***** Department *****/
|
||||||
|
@ -3368,9 +3398,9 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Gbl.Dpts.Lst[NumDpt].FullName);
|
Gbl.Dpts.Lst[NumDpt].FullName);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Office *****/
|
/***** Office *****/
|
||||||
|
@ -3385,13 +3415,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
Act_FormGoToStart (ActChgMyOff);
|
Act_FormGoToStart (ActChgMyOff);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Office\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Office\""
|
||||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Cns_MAX_LENGTH_STRING,
|
Cns_MAX_LENGTH_STRING,
|
||||||
Gbl.Usrs.Me.UsrDat.Tch.Office,
|
Gbl.Usrs.Me.UsrDat.Tch.Office,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
|
|
||||||
/***** Phone *****/
|
/***** Phone *****/
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
|
@ -3404,13 +3434,13 @@ void Rec_ShowFormMyInsCtrDpt (void)
|
||||||
Act_FormGoToStart (ActChgMyOffPho);
|
Act_FormGoToStart (ActChgMyOffPho);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"OfficePhone\""
|
||||||
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
" style=\"width:400px;\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />"
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>"
|
|
||||||
"</td>"
|
|
||||||
"</tr>",
|
|
||||||
Usr_MAX_LENGTH_PHONE,
|
Usr_MAX_LENGTH_PHONE,
|
||||||
Gbl.Usrs.Me.UsrDat.Tch.OfficePhone,
|
Gbl.Usrs.Me.UsrDat.Tch.OfficePhone,
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** End table *****/
|
/***** End table *****/
|
||||||
|
|
|
@ -312,8 +312,8 @@ void Rol_PutFormToChangeMyRole (bool FormInHead)
|
||||||
fprintf (Gbl.F.Out,">%s</option>",
|
fprintf (Gbl.F.Out,">%s</option>",
|
||||||
Txt_ROLES_SINGUL_Abc[Role][Gbl.Usrs.Me.UsrDat.Sex]);
|
Txt_ROLES_SINGUL_Abc[Role][Gbl.Usrs.Me.UsrDat.Sex]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -279,8 +279,8 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -375,7 +375,7 @@ static void Sta_PutFormToRequestAccessesCrs (void)
|
||||||
Act_FormStart (ActReqAccCrs);
|
Act_FormStart (ActReqAccCrs);
|
||||||
Act_LinkFormSubmit (Txt_Visits_to_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Visits_to_course,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("stats",Txt_Visits_to_course,Txt_Visits_to_course);
|
Lay_PutSendIcon ("stats",Txt_Visits_to_course,Txt_Visits_to_course);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -508,8 +508,8 @@ void Sta_AskSeeCrsAccesses (void)
|
||||||
Sta_PutSeeAccessesButton ();
|
Sta_PutSeeAccessesButton ();
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</table>"
|
fprintf (Gbl.F.Out,"</table>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Free the memory used by the list of users */
|
/* Free the memory used by the list of users */
|
||||||
Usr_FreeListsEncryptedUsrCods ();
|
Usr_FreeListsEncryptedUsrCods ();
|
||||||
|
@ -636,8 +636,8 @@ void Sta_AskSeeGblAccesses (void)
|
||||||
Sta_PutSeeAccessesButton ();
|
Sta_PutSeeAccessesButton ();
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</table>"
|
fprintf (Gbl.F.Out,"</table>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1528,7 +1528,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
if (FirstRow > 1)
|
if (FirstRow > 1)
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Write number of current page */
|
/* Write number of current page */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"width:60%%; text-align:center;\">"
|
fprintf (Gbl.F.Out,"<td class=\"TIT_TBL\" style=\"width:60%%; text-align:center;\">"
|
||||||
|
@ -1563,7 +1563,7 @@ static void Sta_ShowDetailedAccessesList (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
if (LastRow < NumRows)
|
if (LastRow < NumRows)
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>"
|
"</table>"
|
||||||
|
@ -1806,7 +1806,7 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16",true);
|
"PHOTO12x16",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write the user's ID if user is a student in current course */
|
/* Write the user's ID if user is a student in current course */
|
||||||
|
@ -2070,9 +2070,9 @@ static void Sta_ShowDistrAccessesPerDaysAndHour (unsigned long NumRows,MYSQL_RES
|
||||||
fprintf (Gbl.F.Out," selected=\"selected\"");
|
fprintf (Gbl.F.Out," selected=\"selected\"");
|
||||||
fprintf (Gbl.F.Out,">%s",Txt_STAT_COLOR_TYPES[ColorType]);
|
fprintf (Gbl.F.Out,">%s",Txt_STAT_COLOR_TYPES[ColorType]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</select>"
|
fprintf (Gbl.F.Out,"</select>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** Compute maximum number of pages generated per day-hour *****/
|
/***** Compute maximum number of pages generated per day-hour *****/
|
||||||
|
@ -3467,7 +3467,7 @@ static void Sta_ShowNumAccessesPerCourse (unsigned long NumRows,MYSQL_RES *mysql
|
||||||
fprintf (Gbl.F.Out,"-");
|
fprintf (Gbl.F.Out,"-");
|
||||||
fprintf (Gbl.F.Out," ");
|
fprintf (Gbl.F.Out," ");
|
||||||
if (CrsOK)
|
if (CrsOK)
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Draw bar proportional to number of pages generated */
|
/* Draw bar proportional to number of pages generated */
|
||||||
|
@ -3644,8 +3644,8 @@ void Sta_ReqUseOfPlatform (void)
|
||||||
Txt_Show_statistic);
|
Txt_Show_statistic);
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -224,9 +224,9 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst)
|
||||||
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
fprintf (Gbl.F.Out,"%s",Txt_ASG_ATT_OR_SVY_ORDER[Order]);
|
||||||
if (Order == Gbl.Svys.SelectedOrderType)
|
if (Order == Gbl.Svys.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<th class=\"TIT_TBL\" style=\"text-align:center;\">"
|
||||||
"%s"
|
"%s"
|
||||||
|
@ -285,7 +285,7 @@ static void Svy_PutFormToSelectWhichGroupsToShow (void)
|
||||||
Svy_PutHiddenParamSvyOrderType ();
|
Svy_PutHiddenParamSvyOrderType ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Grp_ShowSelectorWhichGrps ();
|
Grp_ShowSelectorWhichGrps ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -393,9 +393,9 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Act_LinkFormSubmit (Txt_View_survey,
|
Act_LinkFormSubmit (Txt_View_survey,
|
||||||
Svy.Status.Visible ? "ASG_TITLE" :
|
Svy.Status.Visible ? "ASG_TITLE" :
|
||||||
"ASG_TITLE_LIGHT");
|
"ASG_TITLE_LIGHT");
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Svy.Title);
|
Svy.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/* Number of questions and number of distinct users who have already answered this survey */
|
/* Number of questions and number of distinct users who have already answered this survey */
|
||||||
fprintf (Gbl.F.Out,"<p class=\"%s\">%s: %u; %s: %u</p></td>",
|
fprintf (Gbl.F.Out,"<p class=\"%s\">%s: %u; %s: %u</p></td>",
|
||||||
|
@ -426,7 +426,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Lay_PutSendButton (Txt_Answer_survey);
|
Lay_PutSendButton (Txt_Answer_survey);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
/* Possible button to see the result of the survey */
|
/* Possible button to see the result of the survey */
|
||||||
else if (Svy.Status.ICanViewResults)
|
else if (Svy.Status.ICanViewResults)
|
||||||
|
@ -437,7 +437,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Lay_PutSendButton (Txt_View_survey_results);
|
Lay_PutSendButton (Txt_View_survey_results);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -562,7 +562,7 @@ static void Svy_WriteAuthor (struct Survey *Svy)
|
||||||
/***** Show photo *****/
|
/***** Show photo *****/
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO12x16",true);
|
"PHOTO12x16",Pho_ZOOM);
|
||||||
|
|
||||||
/***** Write name *****/
|
/***** Write name *****/
|
||||||
strcpy (FirstName,UsrDat.FirstName);
|
strcpy (FirstName,UsrDat.FirstName);
|
||||||
|
@ -704,8 +704,8 @@ static void Svy_PutFormToCreateNewSvy (void)
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Act_LinkFormSubmit (Txt_New_survey,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_survey,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_survey,Txt_New_survey);
|
Lay_PutSendIcon ("new",Txt_New_survey,Txt_New_survey);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -731,12 +731,12 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove,
|
Txt_Remove,
|
||||||
Txt_Remove);
|
Txt_Remove);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to reset survey *****/
|
/***** Put form to reset survey *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -746,12 +746,12 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/reset16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/reset16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Reset,
|
Txt_Reset,
|
||||||
Txt_Reset);
|
Txt_Reset);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to hide/show survey *****/
|
/***** Put form to hide/show survey *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -771,8 +771,8 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible)
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Show,Txt_Show);
|
Txt_Show,Txt_Show);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Put form to edit survey *****/
|
/***** Put form to edit survey *****/
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
fprintf (Gbl.F.Out,"<td style=\"text-align:left;\">");
|
||||||
|
@ -782,12 +782,12 @@ static void Svy_PutFormsToRemEditOneSvy (long SvyCod,bool Visible)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Edit,
|
Txt_Edit,
|
||||||
Txt_Edit);
|
Txt_Edit);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</tr>"
|
fprintf (Gbl.F.Out,"</tr>"
|
||||||
"</table>");
|
"</table>");
|
||||||
|
@ -1272,9 +1272,9 @@ void Svy_AskRemSurvey (void)
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Remove_survey);
|
Txt_Remove_survey);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Show surveys again *****/
|
/***** Show surveys again *****/
|
||||||
Svy_ListAllSurveys (&SvyQst);
|
Svy_ListAllSurveys (&SvyQst);
|
||||||
|
@ -1375,9 +1375,9 @@ void Svy_AskResetSurvey (void)
|
||||||
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
Lay_ShowAlert (Lay_WARNING,Gbl.Message);
|
||||||
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
fprintf (Gbl.F.Out,"<div style=\"text-align:center;\">"
|
||||||
"<input type=\"submit\" value=\"%s\" />"
|
"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Reset_survey);
|
Txt_Reset_survey);
|
||||||
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Show surveys again *****/
|
/***** Show surveys again *****/
|
||||||
Svy_ListAllSurveys (&SvyQst);
|
Svy_ListAllSurveys (&SvyQst);
|
||||||
|
@ -1707,7 +1707,7 @@ void Svy_RequestCreatOrEditSvy (void)
|
||||||
Txt_Modify_survey);
|
Txt_Modify_survey);
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Show questions of the survey ready to be edited *****/
|
/***** Show questions of the survey ready to be edited *****/
|
||||||
if (!ItsANewSurvey)
|
if (!ItsANewSurvey)
|
||||||
|
@ -2536,9 +2536,12 @@ static void Svy_ShowFormEditOneQst (long SvyCod,struct SurveyQuestion *SvyQst,ch
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Send and undo buttons *****/
|
/***** Send and undo buttons *****/
|
||||||
fprintf (Gbl.F.Out,"</table></tr></table></div>");
|
fprintf (Gbl.F.Out,"</table>"
|
||||||
|
"</tr>"
|
||||||
|
"</table>"
|
||||||
|
"</div>");
|
||||||
Lay_PutSendButton (Txt_Send);
|
Lay_PutSendButton (Txt_Send);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
Svy_FreeTextChoiceAnswers (SvyQst,NumAnswers);
|
Svy_FreeTextChoiceAnswers (SvyQst,NumAnswers);
|
||||||
}
|
}
|
||||||
|
@ -3028,12 +3031,12 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
Sta_WriteParamsDatesSeeAccesses ();
|
Sta_WriteParamsDatesSeeAccesses ();
|
||||||
Svy_WriteParamEditQst (SvyQst);
|
Svy_WriteParamEditQst (SvyQst);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_question,
|
Txt_Remove_question,
|
||||||
Txt_Remove_question);
|
Txt_Remove_question);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write icon to edit the question */
|
/* Write icon to edit the question */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BT%d\">",
|
fprintf (Gbl.F.Out,"<td class=\"BT%d\">",
|
||||||
|
@ -3042,12 +3045,12 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
Svy_PutParamSvyCod (Svy->SvyCod);
|
Svy_PutParamSvyCod (Svy->SvyCod);
|
||||||
Svy_PutParamQstCod (SvyQst->QstCod);
|
Svy_PutParamQstCod (SvyQst->QstCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Edit_question,
|
Txt_Edit_question,
|
||||||
Txt_Edit_question);
|
Txt_Edit_question);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write index of question inside survey (row[1]) */
|
/* Write index of question inside survey (row[1]) */
|
||||||
|
@ -3100,7 +3103,7 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
Lay_PutSendButton (Txt_Send_survey);
|
Lay_PutSendButton (Txt_Send_survey);
|
||||||
|
|
||||||
/***** Form end *****/
|
/***** Form end *****/
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -3116,8 +3119,8 @@ static void Svy_ListSvyQuestions (struct Survey *Svy,struct SurveyQuestion *SvyQ
|
||||||
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
Pag_PutHiddenParamPagNum (Gbl.Pag.CurrentPage);
|
||||||
Act_LinkFormSubmit (Txt_New_question,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_question,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_question,Txt_New_question);
|
Lay_PutSendIcon ("new",Txt_New_question,Txt_New_question);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,9 +155,9 @@ void Syl_PutFormWhichSyllabus (void)
|
||||||
"</li>",
|
"</li>",
|
||||||
Gbl.FormId,Txt_SYLLABUS_WHICH_SYLLABUS[WhichSyllabus]);
|
Gbl.FormId,Txt_SYLLABUS_WHICH_SYLLABUS[WhichSyllabus]);
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</ul>"
|
fprintf (Gbl.F.Out,"</ul>");
|
||||||
"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -563,11 +563,11 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
sprintf (Gbl.Title,"%s %s",
|
sprintf (Gbl.Title,"%s %s",
|
||||||
Txt_Remove,StrItemCod);
|
Txt_Remove,StrItemCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -584,11 +584,11 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
Txt_Move_up_X,
|
Txt_Move_up_X,
|
||||||
StrItemCod);
|
StrItemCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/up_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/up_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/up_off16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/up_off16x16.gif\""
|
||||||
|
@ -610,11 +610,11 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
StrItemCod);
|
StrItemCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/down_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/down_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/down_off16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/down_off16x16.gif\""
|
||||||
|
@ -633,11 +633,11 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
StrItemCod);
|
StrItemCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/left_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/left_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/left_off16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/left_off16x16.gif\""
|
||||||
|
@ -657,11 +657,11 @@ static void Syl_ShowRowSyllabus (Inf_InfoType_t InfoType,unsigned NumItem,int Le
|
||||||
StrItemCod);
|
StrItemCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/right_on16x16.gif\" alt=\"%s\""
|
" src=\"%s/right_on16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16\" />"
|
" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/right_off16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/right_off16x16.gif\""
|
||||||
|
@ -903,11 +903,11 @@ static void Syl_PutFormItemSyllabus (Inf_InfoType_t InfoType,bool NewItem,unsign
|
||||||
Syl_PutParamNumItem (NumItem);
|
Syl_PutParamNumItem (NumItem);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Txt\" size=\"80\" maxlength=\"%u\" value=\"%s\""
|
fprintf (Gbl.F.Out,"<input type=\"text\" name=\"Txt\" size=\"80\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\""
|
" onchange=\"javascript:document.getElementById('%s').submit();\""
|
||||||
" onfocus=\"javascript:if(this.value=='%s') this.value='';\" />"
|
" onfocus=\"javascript:if(this.value=='%s') this.value='';\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Syl_MAX_LENGTH_TEXT_ITEM,Text,Gbl.FormId,
|
Syl_MAX_LENGTH_TEXT_ITEM,Text,Gbl.FormId,
|
||||||
Txt_Enter_a_new_item_here);
|
Txt_Enter_a_new_item_here);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
22
swad_tab.c
22
swad_tab.c
|
@ -166,13 +166,13 @@ static void Tab_DrawTabsDeskTop (void)
|
||||||
" alt=\"%s\" title=\"%s\""
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON32x32\" style=\"margin:4px;\" />"
|
" class=\"ICON32x32\" style=\"margin:4px;\" />"
|
||||||
"<div>%s</div>"
|
"<div>%s</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||||
Tab_TabIcons[NumTab],
|
Tab_TabIcons[NumTab],
|
||||||
Txt_TABS_FULL_TXT[NumTab],
|
Txt_TABS_FULL_TXT[NumTab],
|
||||||
Txt_TABS_FULL_TXT[NumTab],
|
Txt_TABS_FULL_TXT[NumTab],
|
||||||
Txt_TABS_SHORT_TXT[NumTab]);
|
Txt_TABS_SHORT_TXT[NumTab]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
||||||
|
@ -236,14 +236,14 @@ void Tab_DrawTabsMobile (void)
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON64x64\""
|
" alt=\"%s\" title=\"%s\" class=\"ICON64x64\""
|
||||||
" style=\"margin:4px;\" />"
|
" style=\"margin:4px;\" />"
|
||||||
"<div>%s</div>"
|
"<div>%s</div>"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
|
||||||
Tab_TabIcons[NumTab],
|
Tab_TabIcons[NumTab],
|
||||||
Txt_TABS_FULL_TXT[NumTab],
|
Txt_TABS_FULL_TXT[NumTab],
|
||||||
Txt_TABS_FULL_TXT[NumTab],
|
Txt_TABS_FULL_TXT[NumTab],
|
||||||
Txt_TABS_FULL_TXT[NumTab]);
|
Txt_TABS_FULL_TXT[NumTab]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
fprintf (Gbl.F.Out,"<div class=\"ICON_HIDDEN\">"
|
||||||
|
@ -353,9 +353,9 @@ static void Tab_WriteBreadcrumbHome (void)
|
||||||
|
|
||||||
Act_FormStart (ActHom);
|
Act_FormStart (ActHom);
|
||||||
Act_LinkFormSubmit (Txt_Home_PAGE,The_ClassTabOn[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Home_PAGE,The_ClassTabOn[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Txt_Home_PAGE);
|
Txt_Home_PAGE);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -373,9 +373,9 @@ static void Tab_WriteBreadcrumbTab (void)
|
||||||
Act_LinkFormSubmit (Txt_TABS_FULL_TXT[Gbl.CurrentTab],The_ClassTabOn[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_TABS_FULL_TXT[Gbl.CurrentTab],The_ClassTabOn[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
/***** Title and end of form *****/
|
/***** Title and end of form *****/
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Txt_TABS_FULL_TXT[Gbl.CurrentTab]);
|
Txt_TABS_FULL_TXT[Gbl.CurrentTab]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -392,9 +392,9 @@ static void Tab_WriteBreadcrumbAction (void)
|
||||||
Act_LinkFormSubmit (Title,The_ClassTabOn[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Title,The_ClassTabOn[Gbl.Prefs.Theme]);
|
||||||
|
|
||||||
/***** Title and end of form *****/
|
/***** Title and end of form *****/
|
||||||
fprintf (Gbl.F.Out,"%s</a>"
|
fprintf (Gbl.F.Out,"%s</a>",
|
||||||
"</form>",
|
|
||||||
Title);
|
Title);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
74
swad_test.c
74
swad_test.c
|
@ -291,9 +291,9 @@ void Tst_ShowFormAskTst (void)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Generate_exam);
|
Txt_Generate_exam);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -320,7 +320,7 @@ static void Tst_PutFormToSeeResultsOfUsersTests (void)
|
||||||
ActReqSeeUsrTstExa);
|
ActReqSeeUsrTstExa);
|
||||||
Act_LinkFormSubmit (Txt_Results_tests,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Results_tests,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("file",Txt_Results_tests,Txt_Results_tests);
|
Lay_PutSendIcon ("file",Txt_Results_tests,Txt_Results_tests);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -335,7 +335,7 @@ static void Tst_PutFormToEdit (void)
|
||||||
Act_FormStart (ActEdiTstQst);
|
Act_FormStart (ActEdiTstQst);
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -351,7 +351,7 @@ static void Tst_PutFormToConfigure (void)
|
||||||
Act_FormStart (ActCfgTst);
|
Act_FormStart (ActCfgTst);
|
||||||
Act_LinkFormSubmit (Txt_Configure_tests,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Configure_tests,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("configtest",Txt_Configure,Txt_Configure);
|
Lay_PutSendIcon ("configtest",Txt_Configure,Txt_Configure);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -418,7 +418,7 @@ void Tst_ShowNewTestExam (void)
|
||||||
|
|
||||||
/* End form */
|
/* End form */
|
||||||
Lay_PutSendButton (Txt_Done_assess_exam);
|
Lay_PutSendButton (Txt_Done_assess_exam);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Set test status *****/
|
/***** Set test status *****/
|
||||||
Tst_SetTstStatus (NumAccessesTst,Tst_STATUS_SHOWN_BUT_NOT_ASSESSED);
|
Tst_SetTstStatus (NumAccessesTst,Tst_STATUS_SHOWN_BUT_NOT_ASSESSED);
|
||||||
|
@ -1145,9 +1145,9 @@ void Tst_ShowFormAskEditTsts (void)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />"
|
fprintf (Gbl.F.Out,"<input type=\"submit\" value=\"%s\" />"
|
||||||
"</div>"
|
"</div>",
|
||||||
"</form>",
|
|
||||||
Txt_Show_questions);
|
Txt_Show_questions);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free structure that stores the query result */
|
/* Free structure that stores the query result */
|
||||||
|
@ -1167,7 +1167,7 @@ static void Tst_PutFormToCreateNewTstQst (void)
|
||||||
Act_FormStart (ActEdiOneTstQst);
|
Act_FormStart (ActEdiOneTstQst);
|
||||||
Act_LinkFormSubmit (Txt_New_question,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_New_question,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("new",Txt_New_question,Txt_New_question);
|
Lay_PutSendIcon ("new",Txt_New_question,Txt_New_question);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1528,8 +1528,8 @@ static void Tst_ShowFormEditTags (void)
|
||||||
" size=\"36\" maxlength=\"%u\" value=\"%s\""
|
" size=\"36\" maxlength=\"%u\" value=\"%s\""
|
||||||
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
" onchange=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
Tst_MAX_TAG_LENGTH,row[1],Gbl.FormId);
|
Tst_MAX_TAG_LENGTH,row[1],Gbl.FormId);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1555,12 +1555,12 @@ static void Tst_PutIconEnable (long TagCod,const char *TagTxt)
|
||||||
Par_PutHiddenParamLong ("TagCod",TagCod);
|
Par_PutHiddenParamLong ("TagCod",TagCod);
|
||||||
sprintf (Gbl.Title,Txt_Tag_X_not_allowed_Click_to_allow_it,TagTxt);
|
sprintf (Gbl.Title,Txt_Tag_X_not_allowed_Click_to_allow_it,TagTxt);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/hidden_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/hidden_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1576,12 +1576,12 @@ static void Tst_PutIconDisable (long TagCod,const char *TagTxt)
|
||||||
Par_PutHiddenParamLong ("TagCod",TagCod);
|
Par_PutHiddenParamLong ("TagCod",TagCod);
|
||||||
sprintf (Gbl.Title,Txt_Tag_X_allowed_Click_to_disable_it,TagTxt);
|
sprintf (Gbl.Title,Txt_Tag_X_allowed_Click_to_disable_it,TagTxt);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/visible_on16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/visible_on16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Gbl.Title,
|
Gbl.Title,
|
||||||
Gbl.Title);
|
Gbl.Title);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1717,7 +1717,7 @@ static void Tst_ShowFormConfigTst (void)
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2485,8 +2485,8 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
||||||
{
|
{
|
||||||
if (Order == Gbl.Test.SelectedOrderType)
|
if (Order == Gbl.Test.SelectedOrderType)
|
||||||
fprintf (Gbl.F.Out,"</u>");
|
fprintf (Gbl.F.Out,"</u>");
|
||||||
fprintf (Gbl.F.Out,"</a>"
|
fprintf (Gbl.F.Out,"</a>");
|
||||||
"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</th>");
|
fprintf (Gbl.F.Out,"</th>");
|
||||||
}
|
}
|
||||||
|
@ -2518,12 +2518,12 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
||||||
NumRows == 1 ? 'Y' :
|
NumRows == 1 ? 'Y' :
|
||||||
'N'); // If there are only one row, don't list again after removing
|
'N'); // If there are only one row, don't list again after removing
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/delon16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Remove_question,
|
Txt_Remove_question,
|
||||||
Txt_Remove_question);
|
Txt_Remove_question);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write icon to edit the question */
|
/* Write icon to edit the question */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"BT%d\">",
|
fprintf (Gbl.F.Out,"<td class=\"BT%d\">",
|
||||||
|
@ -2531,12 +2531,12 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
||||||
Act_FormStart (ActEdiOneTstQst);
|
Act_FormStart (ActEdiOneTstQst);
|
||||||
Par_PutHiddenParamLong ("QstCod",QstCod);
|
Par_PutHiddenParamLong ("QstCod",QstCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/edit16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" title=\"%s\" class=\"ICON16x16\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_Edit_question,
|
Txt_Edit_question,
|
||||||
Txt_Edit_question);
|
Txt_Edit_question);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/* Write number of question */
|
/* Write number of question */
|
||||||
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL\" style=\"text-align:center;"
|
fprintf (Gbl.F.Out,"<td class=\"DAT_SMALL\" style=\"text-align:center;"
|
||||||
|
@ -2595,9 +2595,9 @@ static void Tst_ListOneOrMoreQuestionsToEdit (unsigned long NumRows,MYSQL_RES *m
|
||||||
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"Shuffle\" value=\"Y\"");
|
fprintf (Gbl.F.Out,"<input type=\"checkbox\" name=\"Shuffle\" value=\"Y\"");
|
||||||
if (Str_ConvertToUpperLetter (row[3][0]) == 'Y')
|
if (Str_ConvertToUpperLetter (row[3][0]) == 'Y')
|
||||||
fprintf (Gbl.F.Out," checked=\"checked\"");
|
fprintf (Gbl.F.Out," checked=\"checked\"");
|
||||||
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />"
|
fprintf (Gbl.F.Out," onclick=\"javascript:document.getElementById('%s').submit();\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.FormId);
|
Gbl.FormId);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
|
@ -4522,7 +4522,7 @@ static void Tst_PutFormEditOneQst (char *Stem,char *Feedback)
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>");
|
"</table>");
|
||||||
Lay_PutSendButton (Txt_Save);
|
Lay_PutSendButton (Txt_Save);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
Tst_FreeTextChoiceAnswers ();
|
Tst_FreeTextChoiceAnswers ();
|
||||||
}
|
}
|
||||||
|
@ -5995,7 +5995,7 @@ void Tst_SelUsrsToSeeUsrsTstExams (void)
|
||||||
fprintf (Gbl.F.Out,"</table>"
|
fprintf (Gbl.F.Out,"</table>"
|
||||||
"</div>");
|
"</div>");
|
||||||
Lay_PutSendButton (Txt_See_exams);
|
Lay_PutSendButton (Txt_See_exams);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -6030,7 +6030,7 @@ void Tst_SelDatesToSeeMyTstExams (void)
|
||||||
|
|
||||||
/***** Button to send the form *****/
|
/***** Button to send the form *****/
|
||||||
Lay_PutSendButton (Txt_See_exams);
|
Lay_PutSendButton (Txt_See_exams);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -6363,11 +6363,11 @@ static void Tst_ShowResultsOfTestExams (struct UsrData *UsrDat)
|
||||||
Tst_PutParamTstCod (TstCod);
|
Tst_PutParamTstCod (TstCod);
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/file16x16.gif\""
|
fprintf (Gbl.F.Out,"<input type=\"image\" src=\"%s/file16x16.gif\""
|
||||||
" alt=\"%s\" title=\"%s\""
|
" alt=\"%s\" title=\"%s\""
|
||||||
" class=\"ICON16x16B\" />"
|
" class=\"ICON16x16B\" />",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Txt_See_exam,
|
Txt_See_exam,
|
||||||
Txt_See_exam);
|
Txt_See_exam);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
@ -6491,7 +6491,7 @@ static void Tst_ShowDataUsr (struct UsrData *UsrDat,unsigned NumExams)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO36x48",true);
|
"PHOTO36x48",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
||||||
/***** Start form to go to user's record card *****/
|
/***** Start form to go to user's record card *****/
|
||||||
|
@ -6519,8 +6519,8 @@ static void Tst_ShowDataUsr (struct UsrData *UsrDat,unsigned NumExams)
|
||||||
fprintf (Gbl.F.Out,",<br />%s",UsrDat->FirstName);
|
fprintf (Gbl.F.Out,",<br />%s",UsrDat->FirstName);
|
||||||
|
|
||||||
/***** End form *****/
|
/***** End form *****/
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -6629,7 +6629,7 @@ void Tst_ShowOneTestExam (void)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Other.UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Other.UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&Gbl.Usrs.Other.UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&Gbl.Usrs.Other.UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO36x48",true);
|
"PHOTO36x48",Pho_ZOOM);
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ void TsI_PutFormToExportQuestions (void)
|
||||||
/***** Put a link to create a file with questions *****/
|
/***** Put a link to create a file with questions *****/
|
||||||
Act_LinkFormSubmit (Txt_Export_questions_to_XML_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Export_questions_to_XML_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("export",Txt_Export_questions_to_XML_file,Txt_Export_questions);
|
Lay_PutSendIcon ("export",Txt_Export_questions_to_XML_file,Txt_Export_questions);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -117,7 +117,7 @@ void TsI_PutFormToImportQuestions (void)
|
||||||
/***** Put a link to create a file with questions *****/
|
/***** Put a link to create a file with questions *****/
|
||||||
Act_LinkFormSubmit (Txt_Import_questions_from_XML_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Import_questions_from_XML_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("import",Txt_Import_questions_from_XML_file,Txt_Import_questions);
|
Lay_PutSendIcon ("import",Txt_Import_questions_from_XML_file,Txt_Import_questions);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -152,13 +152,13 @@ void TsI_ShowFormImportQstsFromXML (void)
|
||||||
"<input type=\"submit\" value=\"%s\" accept=\"text/xml\" />"
|
"<input type=\"submit\" value=\"%s\" accept=\"text/xml\" />"
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"</table>"
|
"</table>",
|
||||||
"</form>"
|
|
||||||
"</div>",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme],
|
The_ClassFormul[Gbl.Prefs.Theme],
|
||||||
Txt_XML_file,
|
Txt_XML_file,
|
||||||
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
Fil_NAME_OF_PARAM_FILENAME_ORG,
|
||||||
Txt_Upload_file);
|
Txt_Upload_file);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
109
swad_text.c
109
swad_text.c
|
@ -5589,28 +5589,7 @@ const char *Txt_courses =
|
||||||
#elif L==8
|
#elif L==8
|
||||||
"disciplinas";
|
"disciplinas";
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
const char *Txt_Courses_as_a_ROLE = // Warning: it is very important to include %s in the following sentences
|
|
||||||
#if L==0
|
|
||||||
"Assignatures com %s";
|
|
||||||
#elif L==1
|
|
||||||
"Kurse als %s";
|
|
||||||
#elif L==2
|
|
||||||
"Courses as %s";
|
|
||||||
#elif L==3
|
|
||||||
"Asignaturas como %s";
|
|
||||||
#elif L==4
|
|
||||||
"Matières comme %s";
|
|
||||||
#elif L==5
|
|
||||||
"Asignaturas como %s"; // Okoteve traducción
|
|
||||||
#elif L==6
|
|
||||||
"Corsi come %s";
|
|
||||||
#elif L==7
|
|
||||||
"Kursy jako %s";
|
|
||||||
#elif L==8
|
|
||||||
"Disciplinas como %s";
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
const char *Txt_X_courses_have_been_eliminated = // Warning: it is very important to include %u in the following sentences
|
const char *Txt_X_courses_have_been_eliminated = // Warning: it is very important to include %u in the following sentences
|
||||||
#if L==0
|
#if L==0
|
||||||
"Se ha(n) eliminado %u asignatura(s)."; // Necessita traduccio
|
"Se ha(n) eliminado %u asignatura(s)."; // Necessita traduccio
|
||||||
|
@ -11546,28 +11525,7 @@ const char *Txt_Files_works =
|
||||||
#elif L==8
|
#elif L==8
|
||||||
"Arquivos trabalhos";
|
"Arquivos trabalhos";
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
const char *Txt_First_access =
|
|
||||||
#if L==0
|
|
||||||
"Primer accés";
|
|
||||||
#elif L==1
|
|
||||||
"Erster Zugang";
|
|
||||||
#elif L==2
|
|
||||||
"First access";
|
|
||||||
#elif L==3
|
|
||||||
"Primer acceso";
|
|
||||||
#elif L==4
|
|
||||||
"Premier accès";
|
|
||||||
#elif L==5
|
|
||||||
"Primer acceso"; // Okoteve traducción
|
|
||||||
#elif L==6
|
|
||||||
"Primo accesso";
|
|
||||||
#elif L==7
|
|
||||||
"Pierwszy dostęp";
|
|
||||||
#elif L==8
|
|
||||||
"Primeiro acesso";
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
const char *Txt_first_message_not_allowed =
|
const char *Txt_first_message_not_allowed =
|
||||||
#if L==0
|
#if L==0
|
||||||
"primer mensaje no permitido"; // Necessita traduccio
|
"primer mensaje no permitido"; // Necessita traduccio
|
||||||
|
@ -46905,27 +46863,6 @@ const char *Txt_View =
|
||||||
"Ver";
|
"Ver";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const char *Txt_View_a_user_public_profile =
|
|
||||||
#if L==0
|
|
||||||
"Veure el perfil públic d'un usuari";
|
|
||||||
#elif L==1
|
|
||||||
"Öffentliches Benutzer-Profile anzeigen";
|
|
||||||
#elif L==2
|
|
||||||
"View a user's public profile";
|
|
||||||
#elif L==3
|
|
||||||
"Ver el perfil público de un usuario";
|
|
||||||
#elif L==4
|
|
||||||
"Voir le profil public d'un utilisateur";
|
|
||||||
#elif L==5
|
|
||||||
"Ver el perfil público de un usuario"; // Okoteve traducción
|
|
||||||
#elif L==6
|
|
||||||
"Mostra il profilo pubblico di un utente";
|
|
||||||
#elif L==7
|
|
||||||
"Zobacz profil publiczny użytkownika";
|
|
||||||
#elif L==8
|
|
||||||
"Ver o perfil público de um utilizador";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
const char *Txt_View_all_recipients =
|
const char *Txt_View_all_recipients =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Ver todos los destinatarios"; // Necessita traduccio
|
"Ver todos los destinatarios"; // Necessita traduccio
|
||||||
|
@ -47073,6 +47010,48 @@ const char *Txt_View_my_record_for_this_course =
|
||||||
"Meu cartão em disciplina";
|
"Meu cartão em disciplina";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_View_public_profile =
|
||||||
|
#if L==0
|
||||||
|
"Veure perfil públic";
|
||||||
|
#elif L==1
|
||||||
|
"Öffentliches Profile anzeigen";
|
||||||
|
#elif L==2
|
||||||
|
"View public profile";
|
||||||
|
#elif L==3
|
||||||
|
"Ver perfil público";
|
||||||
|
#elif L==4
|
||||||
|
"Voir profil public";
|
||||||
|
#elif L==5
|
||||||
|
"Ver perfil público"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Mostra profilo pubblico";
|
||||||
|
#elif L==7
|
||||||
|
"Zobacz profil publiczny";
|
||||||
|
#elif L==8
|
||||||
|
"Ver perfil público";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
const char *Txt_View_record_card =
|
||||||
|
#if L==0
|
||||||
|
"Ver ficha"; // Necessita traduccio
|
||||||
|
#elif L==1
|
||||||
|
"View record card"; // Need Übersetzung
|
||||||
|
#elif L==2
|
||||||
|
"View record card";
|
||||||
|
#elif L==3
|
||||||
|
"Ver ficha";
|
||||||
|
#elif L==4
|
||||||
|
"View record card"; // Besoin de traduction
|
||||||
|
#elif L==5
|
||||||
|
"Ver ficha"; // Okoteve traducción
|
||||||
|
#elif L==6
|
||||||
|
"Vedi scheda";
|
||||||
|
#elif L==7
|
||||||
|
"Zobacz rekord";
|
||||||
|
#elif L==8
|
||||||
|
"View record card"; // Necessita de tradução
|
||||||
|
#endif
|
||||||
|
|
||||||
const char *Txt_View_survey =
|
const char *Txt_View_survey =
|
||||||
#if L==0
|
#if L==0
|
||||||
"Veure enquesta";
|
"Veure enquesta";
|
||||||
|
|
|
@ -247,14 +247,14 @@ void The_PutIconsToSelectTheme (void)
|
||||||
fprintf (Gbl.F.Out,"<input type=\"image\""
|
fprintf (Gbl.F.Out,"<input type=\"image\""
|
||||||
" src=\"%s/%s/%s/theme_32x20.gif\" alt=\"%s\""
|
" src=\"%s/%s/%s/theme_32x20.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" style=\"display:block;"
|
" title=\"%s\" style=\"display:block;"
|
||||||
" width:32px; height:20px; margin:0 auto;\" />"
|
" width:32px; height:20px; margin:0 auto;\" />",
|
||||||
"</form>"
|
|
||||||
"</td>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Cfg_ICON_FOLDER_THEMES,
|
Cfg_ICON_FOLDER_THEMES,
|
||||||
The_ThemeId[Theme],
|
The_ThemeId[Theme],
|
||||||
The_ThemeNames[Theme],
|
The_ThemeNames[Theme],
|
||||||
The_ThemeNames[Theme]);
|
The_ThemeNames[Theme]);
|
||||||
|
Act_FormEnd ();
|
||||||
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</tr>");
|
fprintf (Gbl.F.Out,"</tr>");
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
|
|
|
@ -257,7 +257,7 @@ void TT_ShowClassTimeTable (void)
|
||||||
Grp_PutParamWhichGrps ();
|
Grp_PutParamWhichGrps ();
|
||||||
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
Lay_PutSendIcon ("edit",Txt_Edit,Txt_Edit);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PutEditOfficeHours)
|
if (PutEditOfficeHours)
|
||||||
|
@ -265,7 +265,7 @@ void TT_ShowClassTimeTable (void)
|
||||||
Act_FormStart (ActEdiTut);
|
Act_FormStart (ActEdiTut);
|
||||||
Act_LinkFormSubmit (Txt_Edit_office_hours,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Edit_office_hours,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("edit",Txt_Edit_office_hours,Txt_Edit_office_hours);
|
Lay_PutSendIcon ("edit",Txt_Edit_office_hours,Txt_Edit_office_hours);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!PrintView)
|
if (!PrintView)
|
||||||
|
@ -296,8 +296,8 @@ void TT_ShowClassTimeTable (void)
|
||||||
"<td>");
|
"<td>");
|
||||||
Act_FormStart (Gbl.CurrentAct);
|
Act_FormStart (Gbl.CurrentAct);
|
||||||
Grp_ShowSelectorWhichGrps ();
|
Grp_ShowSelectorWhichGrps ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,8 +326,8 @@ void TT_EditCrsTimeTable (void)
|
||||||
Act_FormStart (ActSeeCrsTimTbl);
|
Act_FormStart (ActSeeCrsTimTbl);
|
||||||
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);
|
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Start of table *****/
|
/***** Start of table *****/
|
||||||
Lay_StartRoundFrameTable10 ("98%",0,NULL);
|
Lay_StartRoundFrameTable10 ("98%",0,NULL);
|
||||||
|
@ -358,8 +358,8 @@ void TT_ShowMyTutTimeTable (void)
|
||||||
Act_FormStart (ActSeeMyTimTbl);
|
Act_FormStart (ActSeeMyTimTbl);
|
||||||
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Show_timetable,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);
|
Lay_PutSendIcon ("clock",Txt_Show_timetable,Txt_Show_timetable);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Time table *****/
|
/***** Time table *****/
|
||||||
Lay_StartRoundFrameTable10 (NULL,0,Txt_TIMETABLE_TYPES[TT_TUTOR_TIMETABLE]);
|
Lay_StartRoundFrameTable10 (NULL,0,Txt_TIMETABLE_TYPES[TT_TUTOR_TIMETABLE]);
|
||||||
|
@ -1301,7 +1301,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns
|
||||||
/***** End of form *****/
|
/***** End of form *****/
|
||||||
if (TimeTableView == TT_CRS_EDIT ||
|
if (TimeTableView == TT_CRS_EDIT ||
|
||||||
TimeTableView == TT_TUT_EDIT)
|
TimeTableView == TT_TUT_EDIT)
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End of cell *****/
|
/***** End of cell *****/
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
|
|
137
swad_user.c
137
swad_user.c
|
@ -136,7 +136,7 @@ static void Usr_SetUsrRoleAndPrefs (void);
|
||||||
static void Usr_InsertMyLastData (void);
|
static void Usr_InsertMyLastData (void);
|
||||||
|
|
||||||
static void Usr_WriteRowGstMainData (unsigned NumUsr,struct UsrData *UsrDat);
|
static void Usr_WriteRowGstMainData (unsigned NumUsr,struct UsrData *UsrDat);
|
||||||
static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckboxToSelectUsr);
|
static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckBoxToSelectUsr);
|
||||||
static void Usr_WriteRowGstAllData (struct UsrData *UsrDat);
|
static void Usr_WriteRowGstAllData (struct UsrData *UsrDat);
|
||||||
static void Usr_WriteMainUsrDataExceptUsrID (struct UsrData *UsrDat,const char *BgColor,bool ShowEmail,
|
static void Usr_WriteMainUsrDataExceptUsrID (struct UsrData *UsrDat,const char *BgColor,bool ShowEmail,
|
||||||
const char *MailLink,
|
const char *MailLink,
|
||||||
|
@ -1350,7 +1350,7 @@ void Usr_WriteFormLogin (void)
|
||||||
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
|
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
|
||||||
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("arroba",Txt_Create_account,Gbl.Title);
|
Lay_PutSendIcon ("arroba",Txt_Create_account,Gbl.Title);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Link to enter from external site *****/
|
/***** Link to enter from external site *****/
|
||||||
if (Cfg_EXTERNAL_LOGIN_URL[0] &&
|
if (Cfg_EXTERNAL_LOGIN_URL[0] &&
|
||||||
|
@ -1407,15 +1407,15 @@ void Usr_WriteFormLogin (void)
|
||||||
"</tr>",
|
"</tr>",
|
||||||
Txt_Log_in);
|
Txt_Log_in);
|
||||||
Lay_EndRoundFrameTable10 ();
|
Lay_EndRoundFrameTable10 ();
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** Link used for sending a new password *****/
|
/***** Link used for sending a new password *****/
|
||||||
Act_FormStart (ActReqSndNewPwd);
|
Act_FormStart (ActReqSndNewPwd);
|
||||||
Par_PutHiddenParamString ("UsrId",Gbl.Usrs.Me.UsrIdLogin);
|
Par_PutHiddenParamString ("UsrId",Gbl.Usrs.Me.UsrIdLogin);
|
||||||
Act_LinkFormSubmit (Txt_I_forgot_my_password,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_I_forgot_my_password,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("key",Txt_I_forgot_my_password,Txt_I_forgot_my_password);
|
Lay_PutSendIcon ("key",Txt_I_forgot_my_password,Txt_I_forgot_my_password);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1526,9 +1526,9 @@ void Usr_PutFormLogIn (void)
|
||||||
Act_LinkFormSubmit (Txt_Log_in,The_ClassHead[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Log_in,The_ClassHead[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/login16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/login16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.PathTheme,Txt_Log_in,Txt_Log_in);
|
Gbl.Prefs.PathTheme,Txt_Log_in,Txt_Log_in);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -1565,7 +1565,7 @@ void Usr_WriteLoggedUsrHead (void)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Me.UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&Gbl.Usrs.Me.UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&Gbl.Usrs.Me.UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO15x20",true);
|
"PHOTO15x20",Pho_ZOOM);
|
||||||
|
|
||||||
/***** User's name *****/
|
/***** User's name *****/
|
||||||
fprintf (Gbl.F.Out,"<span class=\"%s\"> ",
|
fprintf (Gbl.F.Out,"<span class=\"%s\"> ",
|
||||||
|
@ -1595,9 +1595,9 @@ void Usr_PutFormLogOut (void)
|
||||||
Act_LinkFormSubmit (Txt_Log_out,The_ClassHead[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Log_out,The_ClassHead[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/logout16x16.gif\" alt=\"%s\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/logout16x16.gif\" alt=\"%s\""
|
||||||
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
" class=\"ICON16x16\" style=\"vertical-align:middle;\" />"
|
||||||
" %s</a>"
|
" %s</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.PathTheme,Txt_Log_out,Txt_Log_out);
|
Gbl.Prefs.PathTheme,Txt_Log_out,Txt_Log_out);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2453,8 +2453,8 @@ void Usr_ShowFormsRoleAndLogout (void)
|
||||||
Act_FormStart (ActLogOut);
|
Act_FormStart (ActLogOut);
|
||||||
Act_LinkFormSubmit (Txt_Log_out,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Log_out,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("logout",Txt_Log_out,Txt_Log_out);
|
Lay_PutSendIcon ("logout",Txt_Log_out,Txt_Log_out);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Write message with my new logged role *****/
|
/***** Write message with my new logged role *****/
|
||||||
sprintf (Gbl.Message,Txt_You_are_LOGGED_as_X,
|
sprintf (Gbl.Message,Txt_You_are_LOGGED_as_X,
|
||||||
|
@ -2616,8 +2616,7 @@ static void Usr_WriteRowGstMainData (unsigned NumUsr,struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2653,7 +2652,7 @@ static void Usr_WriteRowGstMainData (unsigned NumUsr,struct UsrData *UsrDat)
|
||||||
/************ Write a row of a table with the data of a student **************/
|
/************ Write a row of a table with the data of a student **************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void Usr_WriteRowStdMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckboxToSelectUsr)
|
void Usr_WriteRowStdMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckBoxToSelectUsr)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Enrollment_confirmed;
|
extern const char *Txt_Enrollment_confirmed;
|
||||||
extern const char *Txt_Enrollment_not_confirmed;
|
extern const char *Txt_Enrollment_not_confirmed;
|
||||||
|
@ -2671,12 +2670,12 @@ void Usr_WriteRowStdMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutChe
|
||||||
fprintf (Gbl.F.Out,"<tr>");
|
fprintf (Gbl.F.Out,"<tr>");
|
||||||
|
|
||||||
/***** Checkbox to select user *****/
|
/***** Checkbox to select user *****/
|
||||||
if (PutCheckboxToSelectUsr)
|
if (PutCheckBoxToSelectUsr)
|
||||||
UsrIsTheMsgSender = (UsrDat->UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
|
UsrIsTheMsgSender = (UsrDat->UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
|
||||||
// Two colors are used alternatively to better distinguish the rows
|
// Two colors are used alternatively to better distinguish the rows
|
||||||
BgColor = UsrIsTheMsgSender ? LIGHT_GREEN :
|
BgColor = UsrIsTheMsgSender ? LIGHT_GREEN :
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd];
|
Gbl.ColorRows[Gbl.RowEvenOdd];
|
||||||
if (PutCheckboxToSelectUsr)
|
if (PutCheckBoxToSelectUsr)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;"
|
||||||
" background-color:%s;\">",
|
" background-color:%s;\">",
|
||||||
|
@ -2719,8 +2718,7 @@ void Usr_WriteRowStdMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutChe
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2777,8 +2775,7 @@ static void Usr_WriteRowGstAllData (struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_NO_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2882,8 +2879,7 @@ void Usr_WriteRowStdAllData (struct UsrData *UsrDat,char *GroupNames)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_NO_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2977,7 +2973,7 @@ void Usr_WriteRowStdAllData (struct UsrData *UsrDat,char *GroupNames)
|
||||||
/************* Write a row of a table with the data of a teacher *************/
|
/************* Write a row of a table with the data of a teacher *************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckboxToSelectUsr)
|
static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool PutCheckBoxToSelectUsr)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Enrollment_confirmed;
|
extern const char *Txt_Enrollment_confirmed;
|
||||||
extern const char *Txt_Enrollment_not_confirmed;
|
extern const char *Txt_Enrollment_not_confirmed;
|
||||||
|
@ -2995,11 +2991,11 @@ static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool
|
||||||
fprintf (Gbl.F.Out,"<tr>");
|
fprintf (Gbl.F.Out,"<tr>");
|
||||||
|
|
||||||
/***** Checkbox to select user *****/
|
/***** Checkbox to select user *****/
|
||||||
if (PutCheckboxToSelectUsr)
|
if (PutCheckBoxToSelectUsr)
|
||||||
UsrIsTheMsgSender = (UsrDat->UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
|
UsrIsTheMsgSender = (UsrDat->UsrCod == Gbl.Usrs.Other.UsrDat.UsrCod);
|
||||||
BgColor = UsrIsTheMsgSender ? LIGHT_GREEN :
|
BgColor = UsrIsTheMsgSender ? LIGHT_GREEN :
|
||||||
Gbl.ColorRows[Gbl.RowEvenOdd]; // Two colors are used alternatively to better distinguish the rows
|
Gbl.ColorRows[Gbl.RowEvenOdd]; // Two colors are used alternatively to better distinguish the rows
|
||||||
if (PutCheckboxToSelectUsr)
|
if (PutCheckBoxToSelectUsr)
|
||||||
{
|
{
|
||||||
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;"
|
fprintf (Gbl.F.Out,"<td style=\"text-align:center; vertical-align:middle;"
|
||||||
" background-color:%s;\">",
|
" background-color:%s;\">",
|
||||||
|
@ -3039,8 +3035,7 @@ static void Usr_WriteRowTchMainData (unsigned NumUsr,struct UsrData *UsrDat,bool
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3099,8 +3094,7 @@ void Usr_WriteRowTchAllData (struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_NO_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3182,8 +3176,7 @@ void Usr_WriteRowAdmData (unsigned NumUsr,struct UsrData *UsrDat)
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
"PHOTO18x24",
|
"PHOTO18x24",Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
fprintf (Gbl.F.Out,"</td>");
|
fprintf (Gbl.F.Out,"</td>");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4328,8 +4321,8 @@ static void Usr_PutButtonToConfirmIWantToSeeBigList (unsigned NumUsrs)
|
||||||
|
|
||||||
/***** Send button *****/
|
/***** Send button *****/
|
||||||
Lay_PutSendButton (Txt_Show_anyway);
|
Lay_PutSendButton (Txt_Show_anyway);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -4734,8 +4727,8 @@ void Usr_ShowFormsToSelectUsrListType (Act_Action_t NextAction)
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
Usr_PutExtraParamsUsrList (NextAction);
|
Usr_PutExtraParamsUsrList (NextAction);
|
||||||
Usr_PutSelectorNumColsClassPhoto ();
|
Usr_PutSelectorNumColsClassPhoto ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** 2nd row *****/
|
/***** 2nd row *****/
|
||||||
|
@ -4753,8 +4746,8 @@ void Usr_ShowFormsToSelectUsrListType (Act_Action_t NextAction)
|
||||||
Usr_PutParamUsrListType (Usr_LIST);
|
Usr_PutParamUsrListType (Usr_LIST);
|
||||||
Usr_PutExtraParamsUsrList (NextAction);
|
Usr_PutExtraParamsUsrList (NextAction);
|
||||||
Usr_PutCheckboxListWithPhotos ();
|
Usr_PutCheckboxListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
|
||||||
/***** End of table *****/
|
/***** End of table *****/
|
||||||
|
@ -4778,12 +4771,12 @@ static void Usr_FormToSelectUsrListType (Act_Action_t NextAction,Usr_ShowUsrsTyp
|
||||||
Act_LinkFormSubmit (Txt_USR_LIST_TYPES[ListType],The_ClassFormulNB[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_USR_LIST_TYPES[ListType],The_ClassFormulNB[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/%s16x16.gif\""
|
||||||
" alt=\"%s\" class=\"ICON16x16\" />"
|
" alt=\"%s\" class=\"ICON16x16\" />"
|
||||||
" %s </a>"
|
" %s </a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,
|
Gbl.Prefs.IconsURL,
|
||||||
Usr_IconsClassPhotoOrList[ListType],
|
Usr_IconsClassPhotoOrList[ListType],
|
||||||
Txt_USR_LIST_TYPES[ListType],
|
Txt_USR_LIST_TYPES[ListType],
|
||||||
Txt_USR_LIST_TYPES[ListType]);
|
Txt_USR_LIST_TYPES[ListType]);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -5883,8 +5876,8 @@ void Usr_ListDataAdms (void)
|
||||||
Act_FormStart (ActLstAdm);
|
Act_FormStart (ActLstAdm);
|
||||||
Sco_PutSelectorScope (true);
|
Sco_PutSelectorScope (true);
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Get and order list of administrators *****/
|
/***** Get and order list of administrators *****/
|
||||||
Usr_GetAdmsLst (Gbl.Scope.Current);
|
Usr_GetAdmsLst (Gbl.Scope.Current);
|
||||||
|
@ -5896,8 +5889,8 @@ void Usr_ListDataAdms (void)
|
||||||
Act_FormStart (ActLstAdm);
|
Act_FormStart (ActLstAdm);
|
||||||
Sco_PutParamScope (Gbl.Scope.Current);
|
Sco_PutParamScope (Gbl.Scope.Current);
|
||||||
Usr_PutCheckboxListWithPhotos ();
|
Usr_PutCheckboxListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Initialize number of columns *****/
|
/***** Initialize number of columns *****/
|
||||||
NumColumns = Usr_NUM_MAIN_FIELDS_DATA_ADM;
|
NumColumns = Usr_NUM_MAIN_FIELDS_DATA_ADM;
|
||||||
|
@ -6313,8 +6306,8 @@ void Usr_SeeGuests (void)
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
||||||
Sco_PutSelectorScope (true);
|
Sco_PutSelectorScope (true);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -6350,8 +6343,8 @@ void Usr_SeeGuests (void)
|
||||||
Usr_PutExtraParamsUsrList (ActLstInvAll);
|
Usr_PutExtraParamsUsrList (ActLstInvAll);
|
||||||
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6392,8 +6385,8 @@ void Usr_SeeGuests (void)
|
||||||
|
|
||||||
/* Send button */
|
/* Send button */
|
||||||
Lay_PutSendButton (Txt_Show_records);
|
Lay_PutSendButton (Txt_Show_records);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -6458,8 +6451,8 @@ void Usr_SeeStudents (void)
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
||||||
Sco_PutSelectorScope (true);
|
Sco_PutSelectorScope (true);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -6503,8 +6496,8 @@ void Usr_SeeStudents (void)
|
||||||
Usr_PutExtraParamsUsrList (ActLstStdAll);
|
Usr_PutExtraParamsUsrList (ActLstStdAll);
|
||||||
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -6558,7 +6551,7 @@ void Usr_SeeStudents (void)
|
||||||
if (ICanViewRecords)
|
if (ICanViewRecords)
|
||||||
{
|
{
|
||||||
Lay_PutSendButton (Txt_Show_records);
|
Lay_PutSendButton (Txt_Show_records);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
@ -6612,8 +6605,8 @@ void Usr_SeeTeachers (void)
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
fprintf (Gbl.F.Out,"%s: ",Txt_Scope);
|
||||||
Sco_PutSelectorScope (true);
|
Sco_PutSelectorScope (true);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/***** Form to select type of list of users *****/
|
/***** Form to select type of list of users *****/
|
||||||
Usr_ShowFormsToSelectUsrListType (ActLstTch);
|
Usr_ShowFormsToSelectUsrListType (ActLstTch);
|
||||||
|
@ -6645,8 +6638,8 @@ void Usr_SeeTeachers (void)
|
||||||
Usr_PutParamListWithPhotos ();
|
Usr_PutParamListWithPhotos ();
|
||||||
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Show_all_data,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
Lay_PutSendIcon ("table",Txt_Show_all_data,Txt_Show_all_data);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -6697,7 +6690,7 @@ void Usr_SeeTeachers (void)
|
||||||
{
|
{
|
||||||
/* Send button */
|
/* Send button */
|
||||||
Lay_PutSendButton (Txt_Show_records);
|
Lay_PutSendButton (Txt_Show_records);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
@ -6729,7 +6722,7 @@ static void Usr_PutLinkToListOfficialStudents (void)
|
||||||
Act_FormStart (ActGetExtLstStd);
|
Act_FormStart (ActGetExtLstStd);
|
||||||
Act_LinkFormSubmit (Txt_Official_students,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Official_students,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("list",Txt_Official_students,Txt_Official_students);
|
Lay_PutSendIcon ("list",Txt_Official_students,Txt_Official_students);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6972,8 +6965,7 @@ static void Usr_DrawClassPhoto (Usr_ClassPhotoType_t ClassPhotoType,
|
||||||
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
ShowPhoto = Pho_ShowUsrPhotoIsAllowed (&UsrDat,PhotoURL);
|
||||||
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
Pho_ShowUsrPhoto (&UsrDat,ShowPhoto ? PhotoURL :
|
||||||
NULL,
|
NULL,
|
||||||
ClassPhoto,
|
ClassPhoto,Pho_ZOOM);
|
||||||
Act_Actions[Gbl.CurrentAct].BrowserWindow == Act_MAIN_WINDOW);
|
|
||||||
|
|
||||||
/***** Photo foot *****/
|
/***** Photo foot *****/
|
||||||
fprintf (Gbl.F.Out,"<br />");
|
fprintf (Gbl.F.Out,"<br />");
|
||||||
|
@ -7446,13 +7438,13 @@ static float Usr_GetNumUsrsPerCrs (Rol_Role_t Role)
|
||||||
|
|
||||||
void Usr_RequestUserProfile (void)
|
void Usr_RequestUserProfile (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_View_a_user_public_profile;
|
extern const char *Txt_View_public_profile;
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
extern const char *The_ClassFormul[The_NUM_THEMES];
|
||||||
extern const char *Txt_Nickname;
|
extern const char *Txt_Nickname;
|
||||||
extern const char *Txt_Continue;
|
extern const char *Txt_Continue;
|
||||||
|
|
||||||
/***** Start frame *****/
|
/***** Start frame *****/
|
||||||
Lay_StartRoundFrameTable10 (NULL,2,Txt_View_a_user_public_profile);
|
Lay_StartRoundFrameTable10 (NULL,2,Txt_View_public_profile);
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td>");
|
"<td>");
|
||||||
|
|
||||||
|
@ -7469,7 +7461,7 @@ void Usr_RequestUserProfile (void)
|
||||||
|
|
||||||
/***** Send button*****/
|
/***** Send button*****/
|
||||||
Lay_PutSendButton (Txt_Continue);
|
Lay_PutSendButton (Txt_Continue);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
|
|
||||||
/***** End frame *****/
|
/***** End frame *****/
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
|
@ -7603,14 +7595,12 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
extern const char *Txt_course;
|
extern const char *Txt_course;
|
||||||
extern const char *Txt_courses;
|
extern const char *Txt_courses;
|
||||||
extern const char *Txt_From_TIME;
|
extern const char *Txt_From_TIME;
|
||||||
// extern const char *Txt_First_access;
|
|
||||||
extern const char *Txt_day;
|
extern const char *Txt_day;
|
||||||
extern const char *Txt_days;
|
extern const char *Txt_days;
|
||||||
extern const char *Txt_Calculate;
|
extern const char *Txt_Calculate;
|
||||||
extern const char *Txt_Clicks;
|
extern const char *Txt_Clicks;
|
||||||
extern const char *Txt_of_PART_OF_A_TOTAL;
|
extern const char *Txt_of_PART_OF_A_TOTAL;
|
||||||
extern const char *Txt_clicks;
|
extern const char *Txt_clicks;
|
||||||
// extern const char *Txt_Courses_as_a_ROLE;
|
|
||||||
extern const char *Txt_Forums;
|
extern const char *Txt_Forums;
|
||||||
extern const char *Txt_post;
|
extern const char *Txt_post;
|
||||||
extern const char *Txt_posts;
|
extern const char *Txt_posts;
|
||||||
|
@ -7629,8 +7619,6 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
unsigned NumPublicFiles;
|
unsigned NumPublicFiles;
|
||||||
|
|
||||||
/***** Start table *****/
|
/***** Start table *****/
|
||||||
// Lay_StartRoundFrameTable10 (NULL,2,Txt_Figures);
|
|
||||||
// Lay_StartRoundFrameTable10 (NULL,2,NULL);
|
|
||||||
fprintf (Gbl.F.Out,"<table class=\"TABLE10 CELLS_PAD_2\">");
|
fprintf (Gbl.F.Out,"<table class=\"TABLE10 CELLS_PAD_2\">");
|
||||||
|
|
||||||
/***** Number of courses in which the user is teacher or student *****/
|
/***** Number of courses in which the user is teacher or student *****/
|
||||||
|
@ -7722,7 +7710,7 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
@ -7767,7 +7755,7 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
@ -7803,7 +7791,7 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
@ -7839,7 +7827,7 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
Usr_PutParamOtherUsrCodEncrypted (UsrDat->EncryptedUsrCod);
|
||||||
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Calculate,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
Lay_PutSendIcon ("recycle",Txt_Calculate,Txt_Calculate);
|
||||||
fprintf (Gbl.F.Out,"</form>");
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
fprintf (Gbl.F.Out,"</td>"
|
fprintf (Gbl.F.Out,"</td>"
|
||||||
"</tr>");
|
"</tr>");
|
||||||
|
@ -7868,7 +7856,6 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat)
|
||||||
|
|
||||||
/***** End of table *****/
|
/***** End of table *****/
|
||||||
fprintf (Gbl.F.Out,"</table>");
|
fprintf (Gbl.F.Out,"</table>");
|
||||||
// Lay_EndRoundFrameTable10 ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -122,8 +122,8 @@ void ZIP_PutButtonToCreateZIPAsgWrk (void)
|
||||||
Par_PutHiddenParamChar ("CreateZIP",'Y');
|
Par_PutHiddenParamChar ("CreateZIP",'Y');
|
||||||
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
Lay_PutSendIcon ("download",Txt_Create_ZIP_file,Txt_Create_ZIP_file);
|
Lay_PutSendIcon ("download",Txt_Create_ZIP_file,Txt_Create_ZIP_file);
|
||||||
fprintf (Gbl.F.Out,"</form>"
|
Act_FormEnd ();
|
||||||
"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -308,9 +308,9 @@ void ZIP_PutButtonToDownloadZIPOfAFolder (const char *PathInTree,const char *Fil
|
||||||
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
Act_LinkFormSubmit (Txt_Create_ZIP_file,The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
fprintf (Gbl.F.Out,"<img src=\"%s/download16x16.gif\" alt=\"%s\""
|
fprintf (Gbl.F.Out,"<img src=\"%s/download16x16.gif\" alt=\"%s\""
|
||||||
" title=\"%s\" class=\"ICON16x16B\" />"
|
" title=\"%s\" class=\"ICON16x16B\" />"
|
||||||
"</a>"
|
"</a>",
|
||||||
"</form>",
|
|
||||||
Gbl.Prefs.IconsURL,Txt_Create_ZIP_file,Txt_Create_ZIP_file);
|
Gbl.Prefs.IconsURL,Txt_Create_ZIP_file,Txt_Create_ZIP_file);
|
||||||
|
Act_FormEnd ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user