mirror of https://github.com/acanas/swad-core.git
Version 22.74: Mar 10, 2023 New module swad_parameter_code.
parent
24e2901a61
commit
288ebde35a
16
Makefile
16
Makefile
|
@ -9,7 +9,7 @@
|
|||
# and used to support university teaching. #
|
||||
# #
|
||||
# This file is part of SWAD core. #
|
||||
# Copyright (C) 1999-2022 Antonio Cañas Vargas #
|
||||
# Copyright (C) 1999-2023 Antonio Cañas Vargas #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU Affero General Public License as #
|
||||
|
@ -73,13 +73,13 @@ OBJS = swad_account.o swad_account_database.o swad_action.o swad_action_list.o \
|
|||
swad_network.o swad_network_database.o swad_nickname.o \
|
||||
swad_nickname_database.o swad_notice.o swad_notice_database.o \
|
||||
swad_notification.o swad_notification_database.o \
|
||||
swad_pagination.o swad_parameter.o swad_password.o \
|
||||
swad_password_database.o swad_photo.o swad_photo_database.o \
|
||||
swad_photo_shape.o swad_place.o swad_place_database.o swad_plugin.o \
|
||||
swad_plugin_database.o swad_privacy.o swad_process.o swad_profile.o \
|
||||
swad_profile_database.o swad_program.o swad_program_database.o \
|
||||
swad_program_resource.o swad_project.o swad_project_database.o \
|
||||
swad_project_resource.o \
|
||||
swad_pagination.o swad_parameter.o swad_parameter_code.o \
|
||||
swad_password.o swad_password_database.o swad_photo.o \
|
||||
swad_photo_database.o swad_photo_shape.o swad_place.o \
|
||||
swad_place_database.o swad_plugin.o swad_plugin_database.o \
|
||||
swad_privacy.o swad_process.o swad_profile.o swad_profile_database.o \
|
||||
swad_program.o swad_program_database.o swad_program_resource.o \
|
||||
swad_project.o swad_project_database.o swad_project_resource.o \
|
||||
swad_question.o swad_question_database.o swad_question_import.o \
|
||||
swad_QR.o \
|
||||
swad_record.o swad_record_database.o swad_report.o \
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
SWAD (Shared Workspace At a Distance),
|
||||
is a web platform developed at the University of Granada (Spain),
|
||||
and used to support university teaching.
|
||||
Copyright (C) 1999-2022 Antonio Cañas-Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas-Vargas
|
||||
University of Granada (SPAIN) (acanas@ugr.es)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -2700,7 +2700,7 @@ int swad__getAttendanceUsers (struct soap *soap,
|
|||
|
||||
/***** Query list of attendance users *****/
|
||||
AttEventIsAsociatedToGrps = Grp_DB_CheckIfAssociatedToGrps ("att_groups",
|
||||
Par_AttCod,
|
||||
"AttCod",
|
||||
Event.AttCod);
|
||||
|
||||
NumUsrs = Att_DB_GetListUsrsInAttEvent (&mysql_res,Event.AttCod,AttEventIsAsociatedToGrps);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -411,7 +411,7 @@ static void ID_PutLinkToConfirmID (struct Usr_Data *UsrDat,unsigned NumID,
|
|||
Frm_BeginFormAnchor (NextAction[UsrDat->Roles.InCurrentCrs],Anchor);
|
||||
if (Gbl.Action.Original != ActUnk)
|
||||
{
|
||||
Par_PutParCode (Par_OrgActCod,Act_GetActCod (Gbl.Action.Original)); // Original action, used to know where we came from
|
||||
ParCod_PutPar (ParCod_OrgAct,Act_GetActCod (Gbl.Action.Original)); // Original action, used to know where we came from
|
||||
switch (Gbl.Action.Original)
|
||||
{
|
||||
case ActSeeRecSevGst:
|
||||
|
@ -890,7 +890,7 @@ void ID_ConfirmOtherUsrID (void)
|
|||
unsigned NumIDFound = 0; // Initialized to avoid warning
|
||||
|
||||
/***** Get where we came from *****/
|
||||
Gbl.Action.Original = Act_GetActionFromActCod (Par_GetParCode (Par_OrgActCod));
|
||||
Gbl.Action.Original = Act_GetActionFromActCod (ParCod_GetPar (ParCod_OrgAct));
|
||||
|
||||
/***** Get other user's code from form and get user's data *****/
|
||||
ICanConfirm = false;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -35,6 +35,7 @@
|
|||
#include "swad_HTML.h"
|
||||
#include "swad_MAC.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_parameter_code.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/******************************* Private types *******************************/
|
||||
|
@ -63,7 +64,7 @@ static void MAC_PutPars (void *Args)
|
|||
{
|
||||
if (Args)
|
||||
{
|
||||
Par_PutParCode (Par_RooCod,((struct MAC_Pars *) Args)->RooCod);
|
||||
ParCod_PutPar (ParCod_Roo,((struct MAC_Pars *) Args)->RooCod);
|
||||
Par_PutParString (NULL,"MAC",((struct MAC_Pars *) Args)->MACstr);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
@ -145,14 +145,14 @@ void QR_ImageQRCode (const char *QRString)
|
|||
/*************** Show QR code with direct link (shortcut URL) ****************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void QR_LinkTo (unsigned Size,Par_Code_t ParCode,long Cod)
|
||||
void QR_LinkTo (unsigned Size,ParCod_Param_t ParCode,long Cod)
|
||||
{
|
||||
extern const char *Par_CodeStr[];
|
||||
extern const char *Txt_Shortcut;
|
||||
char *URL;
|
||||
|
||||
/***** Show QR code with link *****/
|
||||
if (ParCode == Par_None)
|
||||
if (ParCode == ParCod_None)
|
||||
{
|
||||
if (asprintf (&URL,"https://chart.googleapis.com/"
|
||||
"chart?cht=qr&chs=%ux%u&chl=%s/",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -27,7 +27,7 @@
|
|||
/********************************* Headers ***********************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_parameter_code.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************************** Public prototypes *****************************/
|
||||
|
@ -41,7 +41,7 @@ void QR_PrintQRCode (void);
|
|||
void QR_PrintUsrQRCode (void);
|
||||
void QR_ImageQRCode (const char *QRString);
|
||||
|
||||
void QR_LinkTo (unsigned Size,Par_Code_t ParCode,long Cod);
|
||||
void QR_LinkTo (unsigned Size,ParCod_Param_t ParCode,long Cod);
|
||||
void QR_ExamAnnnouncement (void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
is a web platform developed at the University of Granada (Spain),
|
||||
and used to support university teaching.
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
is a web platform developed at the University of Granada (Spain),
|
||||
and used to support university teaching.
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
@ -962,7 +962,7 @@ void Agd_PutParsMyAgenda (unsigned Past__FutureEvents,
|
|||
if (NumPage > 1)
|
||||
Pag_PutParPagNum (Pag_MY_AGENDA,NumPage);
|
||||
|
||||
Par_PutParCode (Par_AgdCod,AgdCodToEdit);
|
||||
ParCod_PutPar (ParCod_Agd,AgdCodToEdit);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -1172,7 +1172,7 @@ void Agd_AskRemEvent (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1207,7 +1207,7 @@ void Agd_RemoveEvent (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1240,7 +1240,7 @@ void Agd_HideEvent (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1269,7 +1269,7 @@ void Agd_UnhideEvent (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1299,7 +1299,7 @@ void Agd_MakeEventPrivate (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1333,7 +1333,7 @@ void Agd_MakeEventPublic (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get event code *****/
|
||||
AgdEvent.AgdCod = Par_GetAndCheckParCode (Par_AgdCod);
|
||||
AgdEvent.AgdCod = ParCod_GetAndCheckPar (ParCod_Agd);
|
||||
|
||||
/***** Get data of the event from database *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1382,7 +1382,7 @@ void Agd_RequestCreatOrEditEvent (void)
|
|||
Agd_GetPars (&Agenda,Agd_MY_AGENDA);
|
||||
|
||||
/***** Get the code of the event *****/
|
||||
ItsANewEvent = ((AgdEvent.AgdCod = Par_GetParCode (Par_AgdCod)) <= 0);
|
||||
ItsANewEvent = ((AgdEvent.AgdCod = ParCod_GetPar (ParCod_Agd)) <= 0);
|
||||
|
||||
/***** Get from the database the data of the event *****/
|
||||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
@ -1528,7 +1528,7 @@ void Agd_ReceiveFormEvent (void)
|
|||
AgdEvent.UsrCod = Gbl.Usrs.Me.UsrDat.UsrCod;
|
||||
|
||||
/***** Get the code of the event *****/
|
||||
ItsANewEvent = ((AgdEvent.AgdCod = Par_GetParCode (Par_AgdCod)) <= 0);
|
||||
ItsANewEvent = ((AgdEvent.AgdCod = ParCod_GetPar (ParCod_Agd)) <= 0);
|
||||
|
||||
/***** Get start/end date-times *****/
|
||||
AgdEvent.TimeUTC[Dat_STR_TIME] = Dat_GetTimeUTCFromForm (Dat_STR_TIME);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
@ -37,6 +37,7 @@
|
|||
#include "swad_global.h"
|
||||
#include "swad_HTML.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_parameter_code.h"
|
||||
#include "swad_role.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -305,7 +306,7 @@ static void Ann_DrawAnAnnouncement (long AnnCod,Ann_Status_t Status,
|
|||
static void Ann_PutParAnnCod (void *AnnCod)
|
||||
{
|
||||
if (AnnCod)
|
||||
Par_PutParCode (Par_AnnCod,*((long *) AnnCod));
|
||||
ParCod_PutPar (ParCod_Ann,*((long *) AnnCod));
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -429,7 +430,7 @@ void Ann_HideActiveAnnouncement (void)
|
|||
long AnnCod;
|
||||
|
||||
/***** Get the code of the global announcement to hide *****/
|
||||
AnnCod = Par_GetAndCheckParCode (Par_AnnCod);
|
||||
AnnCod = ParCod_GetAndCheckPar (ParCod_Ann);
|
||||
|
||||
/***** Set global announcement as hidden *****/
|
||||
Ann_DB_HideAnnouncement (AnnCod);
|
||||
|
@ -444,7 +445,7 @@ void Ann_RevealHiddenAnnouncement (void)
|
|||
long AnnCod;
|
||||
|
||||
/***** Get the code of the global announcement to show *****/
|
||||
AnnCod = Par_GetAndCheckParCode (Par_AnnCod);
|
||||
AnnCod = ParCod_GetAndCheckPar (ParCod_Ann);
|
||||
|
||||
/***** Set global announcement as not hidden *****/
|
||||
Ann_DB_UnhideAnnouncement (AnnCod);
|
||||
|
@ -460,7 +461,7 @@ void Ann_RemoveAnnouncement (void)
|
|||
long AnnCod;
|
||||
|
||||
/***** Get the code of the global announcement *****/
|
||||
AnnCod = Par_GetAndCheckParCode (Par_AnnCod);
|
||||
AnnCod = ParCod_GetAndCheckPar (ParCod_Ann);
|
||||
|
||||
/***** Remove users who have seen the announcement *****/
|
||||
Ann_DB_RemoveUsrsWhoSawAnnouncement (AnnCod);
|
||||
|
@ -484,7 +485,7 @@ void Ann_MarkAnnouncementAsSeen (void)
|
|||
long AnnCod;
|
||||
|
||||
/***** Get the code of the global announcement *****/
|
||||
AnnCod = Par_GetAndCheckParCode (Par_AnnCod);
|
||||
AnnCod = ParCod_GetAndCheckPar (ParCod_Ann);
|
||||
|
||||
/***** Mark announcement as seen *****/
|
||||
Ann_DB_MarkAnnouncementAsSeenByMe (AnnCod);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General 3 License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -48,7 +48,7 @@
|
|||
#include "swad_notification.h"
|
||||
#include "swad_notification_database.h"
|
||||
#include "swad_pagination.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_parameter_code.h"
|
||||
#include "swad_photo.h"
|
||||
#include "swad_program_resource.h"
|
||||
#include "swad_role.h"
|
||||
|
@ -382,7 +382,7 @@ void Asg_SeeOneAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get the code of the assignment *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Show selected assignment in a box *****/
|
||||
Asg_ShowOneAssignmentInBox (&Assignments);
|
||||
|
@ -403,7 +403,7 @@ void Asg_PrintOneAssignment (void)
|
|||
Asg_ResetAssignments (&Assignments);
|
||||
|
||||
/***** Get the code of the assignment *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Write header *****/
|
||||
Lay_WriteHeaderClassPhoto (true,false,
|
||||
|
@ -774,7 +774,7 @@ static void Asg_PutPars (void *Assignments)
|
|||
|
||||
if (Assignments)
|
||||
{
|
||||
Par_PutParCode (Par_AsgCod,((struct Asg_Assignments *) Assignments)->Asg.AsgCod);
|
||||
ParCod_PutPar (ParCod_Asg,((struct Asg_Assignments *) Assignments)->Asg.AsgCod);
|
||||
Par_PutParOrder ((unsigned) ((struct Asg_Assignments *) Assignments)->SelectedOrder);
|
||||
WhichGroups = Grp_GetParWhichGroups ();
|
||||
Grp_PutParWhichGroups (&WhichGroups);
|
||||
|
@ -1022,7 +1022,7 @@ void Asg_ReqRemAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Get data of the assignment from database *****/
|
||||
Asg_GetDataOfAssignmentByCod (&Assignments.Asg);
|
||||
|
@ -1056,7 +1056,7 @@ void Asg_RemoveAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Get data of the assignment from database *****/
|
||||
Asg_GetDataOfAssignmentByCod (&Assignments.Asg); // Inside this function, the course is checked to be the current one
|
||||
|
@ -1099,7 +1099,7 @@ void Asg_HideAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Get data of the assignment from database *****/
|
||||
Asg_GetDataOfAssignmentByCod (&Assignments.Asg);
|
||||
|
@ -1128,7 +1128,7 @@ void Asg_UnhideAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Get data of the assignment from database *****/
|
||||
Asg_GetDataOfAssignmentByCod (&Assignments.Asg);
|
||||
|
@ -1179,7 +1179,7 @@ void Asg_RequestCreatOrEditAsg (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get the code of the assignment *****/
|
||||
ItsANewAssignment = ((Assignments.Asg.AsgCod = Par_GetParCode (Par_AsgCod)) <= 0);
|
||||
ItsANewAssignment = ((Assignments.Asg.AsgCod = ParCod_GetPar (ParCod_Asg)) <= 0);
|
||||
|
||||
/***** Get from the database the data of the assignment *****/
|
||||
if (ItsANewAssignment)
|
||||
|
@ -1344,7 +1344,7 @@ static void Asg_ShowLstGrpsToEditAssignment (long AsgCod)
|
|||
"id=\"WholeCrs\" value=\"Y\"%s"
|
||||
" onclick=\"uncheckChildren(this,'GrpCods')\"",
|
||||
Grp_DB_CheckIfAssociatedToGrps ("asg_groups",
|
||||
Par_AsgCod,
|
||||
"AsgCod",
|
||||
AsgCod) ? "" :
|
||||
" checked=\"checked\"");
|
||||
HTM_TxtF ("%s %s",Txt_The_whole_course,Gbl.Hierarchy.Crs.ShrtName);
|
||||
|
@ -1399,7 +1399,7 @@ void Asg_ReceiveFormAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get the code of the assignment *****/
|
||||
ItsANewAssignment = ((Assignments.Asg.AsgCod = Par_GetParCode (Par_AsgCod)) <= 0);
|
||||
ItsANewAssignment = ((Assignments.Asg.AsgCod = ParCod_GetPar (ParCod_Asg)) <= 0);
|
||||
|
||||
if (ItsANewAssignment)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -33,7 +33,7 @@
|
|||
#include "swad_error.h"
|
||||
#include "swad_form.h"
|
||||
#include "swad_pagination.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_parameter_code.h"
|
||||
#include "swad_program_database.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
|
@ -55,7 +55,7 @@ void AsgRsc_GetLinkToAssignment (void)
|
|||
Assignments.CurrentPage = Pag_GetParPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
Assignments.Asg.AsgCod = Par_GetAndCheckParCode (Par_AsgCod);
|
||||
Assignments.Asg.AsgCod = ParCod_GetAndCheckPar (ParCod_Asg);
|
||||
|
||||
/***** Get assignment title *****/
|
||||
AsgRsc_GetTitleFromAsgCod (Assignments.Asg.AsgCod,Title,sizeof (Title) - 1);
|
||||
|
@ -95,7 +95,7 @@ void AsgRsc_WriteAssignmentInCrsProgram (long AsgCod,bool PutFormToGo,
|
|||
NextAction = (AsgCod > 0) ? ActSeeOneAsg : // Assignment specified
|
||||
ActSeeAsg; // All assignments
|
||||
Frm_BeginForm (NextAction);
|
||||
Par_PutParCode (Par_AsgCod,AsgCod);
|
||||
ParCod_PutPar (ParCod_Asg,AsgCod);
|
||||
// TODO: In the listing of assignments, the page is always the first.
|
||||
// The page should be that corresponding to the selected assignment.
|
||||
HTM_BUTTON_Submit_Begin (Txt_Actions[NextAction],
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2023 Antonio Cañas Vargas
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
|
@ -651,7 +651,7 @@ static void Att_PutPars (void *Events)
|
|||
|
||||
if (Events)
|
||||
{
|
||||
Par_PutParCode (Par_AttCod,((struct Att_Events *) Events)->Event.AttCod);
|
||||
ParCod_PutPar (ParCod_Att,((struct Att_Events *) Events)->Event.AttCod);
|
||||
Par_PutParOrder ((unsigned) ((struct Att_Events *) Events)->SelectedOrder);
|
||||
WhichGroups = Grp_GetParWhichGroups ();
|
||||
Grp_PutParWhichGroups (&WhichGroups);
|
||||
|
@ -832,7 +832,7 @@ void Att_AskRemAttEvent (void)
|
|||
Events.CurrentPage = Pag_GetParPagNum (Pag_ATT_EVENTS);
|
||||
|
||||
/***** Get attendance event code *****/
|
||||
Events.Event.AttCod = Par_GetAndCheckParCode (Par_AttCod);
|
||||
Events.Event.AttCod = ParCod_GetAndCheckPar (ParCod_Att);
|
||||
|
||||
/***** Get data of the attendance event from database *****/
|
||||
Att_GetDataOfAttEventByCodAndCheckCrs (&Events.Event);
|
||||
|
@ -858,7 +858,7 @@ void Att_GetAndRemAttEvent (void)
|
|||
struct Att_Event Event;
|
||||
|
||||
/***** Get attendance event code *****/
|
||||
Event.AttCod = Par_GetAndCheckParCode (Par_AttCod);
|
||||
Event.AttCod = ParCod_GetAndCheckPar (ParCod_Att);
|
||||
|
||||
/***** Get data of the attendance event from database *****/
|
||||
// Inside this function, the course is checked to be the current one
|
||||
|
@ -900,7 +900,7 @@ void Att_HideAttEvent (void)
|
|||
struct Att_Event Event;
|
||||
|
||||
/***** Get attendance event code *****/
|
||||
Event.AttCod = Par_GetAndCheckParCode (Par_AttCod);
|
||||
Event.AttCod = ParCod_GetAndCheckPar (ParCod_Att);
|
||||
|
||||
/***** Get data of the attendance event from database *****/
|
||||
Att_GetDataOfAttEventByCodAndCheckCrs (&Event);
|
||||
|
@ -921,7 +921,7 @@ void Att_UnhideAttEvent (void)
|
|||
struct Att_Event Event;
|
||||
|
||||
/***** Get attendance event code *****/
|
||||
Event.AttCod = Par_GetAndCheckParCode (Par_AttCod);
|
||||
Event.AttCod = ParCod_GetAndCheckPar (ParCod_Att);
|
||||
|
||||
/***** Get data of the attendance event from database *****/
|
||||
Att_GetDataOfAttEventByCodAndCheckCrs (&Event);
|
||||
|
@ -969,7 +969,7 @@ void Att_RequestCreatOrEditAttEvent (void)
|
|||
Events.CurrentPage = Pag_GetParPagNum (Pag_ATT_EVENTS);
|
||||
|
||||
/***** Get the code of the attendance event *****/
|
||||
ItsANewAttEvent = ((Events.Event.AttCod = Par_GetParCode (Par_AttCod)) <= 0);
|
||||
ItsANewAttEvent = ((Events.Event.AttCod = ParCod_GetPar (ParCod_Att)) <= 0);
|
||||
|
||||
/***** Get from the database the data of the attendance event *****/
|
||||
if (ItsANewAttEvent)
|
||||
|
@ -1000,7 +1000,7 @@ void Att_RequestCreatOrEditAttEvent (void)
|
|||
else
|
||||
{
|
||||
Frm_BeginForm (ActChgAtt);
|
||||
Par_PutParCode (Par_AttCod,Events.Event.AttCod);
|
||||
ParCod_PutPar (ParCod_Att,Events.Event.AttCod);
|
||||
}
|
||||
Par_PutParOrder ((unsigned) Events.SelectedOrder);
|
||||
WhichGroups = Grp_GetParWhichGroups ();
|
||||
|
@ -1134,7 +1134,7 @@ static void Att_ShowLstGrpsToEditAttEvent (long AttCod)
|
|||
"id=\"WholeCrs\" value=\"Y\"%s"
|
||||
" onclick=\"uncheckChildren(this,'GrpCods')\"",
|
||||
Grp_DB_CheckIfAssociatedToGrps ("att_groups",
|
||||
Par_AttCod,
|
||||
"AttCod",
|
||||
AttCod) ? "" :
|
||||
" checked=\"checked\"");
|
||||
HTM_TxtF ("%s %s",Txt_The_whole_course,Gbl.Hierarchy.Crs.ShrtName);
|
||||
|
@ -1178,7 +1178,7 @@ void Att_ReceiveFormAttEvent (void)
|
|||
char Description[Cns_MAX_BYTES_TEXT + 1];
|
||||
|
||||
/***** Get the code of the attendance event *****/
|
||||
ItsANewAttEvent = ((ReceivedAtt.AttCod = Par_GetParCode (Par_AttCod)) <= 0);
|
||||
ItsANewAttEvent = ((ReceivedAtt.AttCod = ParCod_GetPar (ParCod_Att)) <= 0);
|
||||
|
||||
if (!ItsANewAttEvent)
|
||||
{
|
||||
|