mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-07 00:00:33 +02:00
Version 22.17: Sep 21, 2022 New module swad_assignment_resource.
This commit is contained in:
parent
83ce48af4d
commit
beb2a24fa2
5
Makefile
5
Makefile
|
@ -9,7 +9,7 @@
|
|||
# and used to support university teaching. #
|
||||
# #
|
||||
# This file is part of SWAD core. #
|
||||
# Copyright (C) 1999-2021 Antonio Cañas Vargas #
|
||||
# Copyright (C) 1999-2022 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 #
|
||||
|
@ -30,7 +30,8 @@ OBJS = swad_account.o swad_account_database.o swad_action.o swad_admin.o \
|
|||
swad_admin_database.o swad_agenda.o swad_agenda_database.o swad_alert.o \
|
||||
swad_announcement.o swad_announcement_database.o swad_API.o \
|
||||
swad_API_database.o swad_assignment.o swad_assignment_database.o \
|
||||
swad_attendance.o swad_attendance_database.o swad_autolink.o \
|
||||
swad_assignment_resource.o swad_attendance.o swad_attendance_database.o \
|
||||
swad_autolink.o \
|
||||
swad_banner.o swad_banner_database.o swad_box.o swad_browser.o \
|
||||
swad_browser_database.o swad_building.o swad_building_database.o \
|
||||
swad_button.o \
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -602,7 +602,7 @@ const struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
|||
[ActRemAsg ] = { 806,-1,TabUnk,ActSeeAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Asg_RemoveAssignment ,NULL},
|
||||
[ActHidAsg ] = { 964,-1,TabUnk,ActSeeAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Asg_HideAssignment ,NULL},
|
||||
[ActUnhAsg ] = { 965,-1,TabUnk,ActSeeAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Asg_UnhideAssignment ,NULL},
|
||||
[ActReqLnkAsg ] = {1943,-1,TabUnk,ActSeeAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Asg_GetLinkToAssignment ,NULL},
|
||||
[ActReqLnkAsg ] = {1943,-1,TabUnk,ActSeeAsg ,0x220,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,AsgRsc_GetLinkToAssignment ,NULL},
|
||||
|
||||
[ActReqUsrPrj ] = {1805,-1,TabUnk,ActSeePrj ,0x238,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prj_ListUsrsToSelect ,NULL},
|
||||
[ActSeeTblAllPrj ] = {1696,-1,TabUnk,ActSeePrj ,0x238,0x200, 0, 0, 0, 0, 0,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Prj_ShowTableSelectedPrjs ,NULL},
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -49,7 +49,6 @@
|
|||
#include "swad_pagination.h"
|
||||
#include "swad_parameter.h"
|
||||
#include "swad_photo.h"
|
||||
#include "swad_program_database.h"
|
||||
#include "swad_role.h"
|
||||
#include "swad_setting.h"
|
||||
#include "swad_string.h"
|
||||
|
@ -64,9 +63,6 @@ extern struct Globals Gbl;
|
|||
/***************************** Private prototypes ****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Asg_ResetAssignments (struct Asg_Assignments *Assignments);
|
||||
|
||||
static void Asg_ShowAllAssignments (struct Asg_Assignments *Assignments);
|
||||
static void Asg_PutHeadForSeeing (struct Asg_Assignments *Assignments,
|
||||
bool PrintView);
|
||||
static bool Asg_CheckIfICanCreateAssignments (void);
|
||||
|
@ -74,13 +70,11 @@ static void Asg_PutIconsListAssignments (void *Assignments);
|
|||
static void Asg_PutIconToCreateNewAsg (void *Assignments);
|
||||
static void Asg_PutButtonToCreateNewAsg (void *Assignments);
|
||||
static void Asg_ParamsWhichGroupsToShow (void *Assignments);
|
||||
static void Asg_ShowOneAssignmentInBox (struct Asg_Assignments *Assignments);
|
||||
static void Asg_PutIconsOneAsg (void *Assignments);
|
||||
static void Asg_ShowOneAssignment (struct Asg_Assignments *Assignments,
|
||||
long AsgCod,bool PrintView);
|
||||
static void Asg_WriteAsgAuthor (struct Asg_Assignment *Asg);
|
||||
static void Asg_WriteAssignmentFolder (struct Asg_Assignment *Asg,bool PrintView);
|
||||
static Dat_StartEndTime_t Asg_GetParamAsgOrder (void);
|
||||
|
||||
static void Asg_PutFormsToRemEditOneAsg (struct Asg_Assignments *Assignments,
|
||||
const struct Asg_Assignment *Asg,
|
||||
|
@ -92,7 +86,6 @@ static void Asg_GetDataOfAssignment (struct Asg_Assignment *Asg,
|
|||
unsigned NumAsgs);
|
||||
static void Asg_ResetAssignment (struct Asg_Assignment *Asg);
|
||||
static void Asg_FreeListAssignments (struct Asg_Assignments *Assignments);
|
||||
static void Asg_PutParamAsgCod (long AsgCod);
|
||||
static void Asg_ShowLstGrpsToEditAssignment (long AsgCod);
|
||||
static void Asg_CreateAssignment (struct Asg_Assignment *Asg,const char *Txt);
|
||||
static void Asg_UpdateAssignment (struct Asg_Assignment *Asg,const char *Txt);
|
||||
|
@ -104,7 +97,7 @@ static bool Asg_CheckIfIBelongToCrsOrGrpsThisAssignment (long AsgCod);
|
|||
/*************************** Reset assignments *******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Asg_ResetAssignments (struct Asg_Assignments *Assignments)
|
||||
void Asg_ResetAssignments (struct Asg_Assignments *Assignments)
|
||||
{
|
||||
Assignments->LstIsRead = false; // List is not read
|
||||
Assignments->Num = 0;
|
||||
|
@ -138,7 +131,7 @@ void Asg_SeeAssignments (void)
|
|||
/**************************** Show all assignments ***************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Asg_ShowAllAssignments (struct Asg_Assignments *Assignments)
|
||||
void Asg_ShowAllAssignments (struct Asg_Assignments *Assignments)
|
||||
{
|
||||
extern const char *Hlp_ASSESSMENT_Assignments;
|
||||
extern const char *Txt_Assignments;
|
||||
|
@ -416,7 +409,7 @@ void Asg_PrintOneAssignment (void)
|
|||
/************************* Show an assignment in a box ***********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Asg_ShowOneAssignmentInBox (struct Asg_Assignments *Assignments)
|
||||
void Asg_ShowOneAssignmentInBox (struct Asg_Assignments *Assignments)
|
||||
{
|
||||
extern const char *Hlp_ASSESSMENT_Assignments;
|
||||
extern const char *Txt_Assignment;
|
||||
|
@ -685,7 +678,7 @@ static void Asg_WriteAssignmentFolder (struct Asg_Assignment *Asg,bool PrintView
|
|||
/******* Get parameter with the type or order in list of assignments *********/
|
||||
/*****************************************************************************/
|
||||
|
||||
static Dat_StartEndTime_t Asg_GetParamAsgOrder (void)
|
||||
Dat_StartEndTime_t Asg_GetParamAsgOrder (void)
|
||||
{
|
||||
return (Dat_StartEndTime_t)
|
||||
Par_GetParToUnsignedLong ("Order",
|
||||
|
@ -985,7 +978,7 @@ void Asg_GetNotifAssignment (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
|||
/***************** Write parameter with code of assignment *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Asg_PutParamAsgCod (long AsgCod)
|
||||
void Asg_PutParamAsgCod (long AsgCod)
|
||||
{
|
||||
Par_PutHiddenParamLong (NULL,"AsgCod",AsgCod);
|
||||
}
|
||||
|
@ -1771,99 +1764,3 @@ void Asg_GetAndShowAssignmentsStats (void)
|
|||
/***** End table and box *****/
|
||||
Box_BoxTableEnd ();
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/***************************** Get link to assignment ******************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Asg_GetLinkToAssignment (void)
|
||||
{
|
||||
extern const char *Txt_Link_to_resource_X_copied_into_clipboard;
|
||||
struct Asg_Assignments Assignments;
|
||||
char Title[Asg_MAX_BYTES_ASSIGNMENT_TITLE + 1];
|
||||
|
||||
/***** Reset assignments *****/
|
||||
Asg_ResetAssignments (&Assignments);
|
||||
|
||||
/***** Get parameters *****/
|
||||
Assignments.SelectedOrder = Asg_GetParamAsgOrder ();
|
||||
Grp_GetParamWhichGroups ();
|
||||
Assignments.CurrentPage = Pag_GetParamPagNum (Pag_ASSIGNMENTS);
|
||||
|
||||
/***** Get assignment code *****/
|
||||
if ((Assignments.AsgCod = Asg_GetParamAsgCod ()) <= 0)
|
||||
Err_WrongAssignmentExit ();
|
||||
|
||||
/***** Get assignment title *****/
|
||||
Asg_DB_GetAssignmentTitleByCod (Assignments.AsgCod,Title);
|
||||
|
||||
/***** Copy link to assignment into resource clipboard *****/
|
||||
Prg_DB_CopyToClipboard (PrgRsc_ASSIGNMENT,Assignments.AsgCod);
|
||||
|
||||
/***** Write sucess message *****/
|
||||
Ale_ShowAlert (Ale_SUCCESS,Txt_Link_to_resource_X_copied_into_clipboard,
|
||||
Title);
|
||||
|
||||
/***** Show selected assignment in a box *****/
|
||||
Asg_ShowOneAssignmentInBox (&Assignments);
|
||||
|
||||
/***** Show current assignments, if any *****/
|
||||
Asg_ShowAllAssignments (&Assignments);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/*********************** Write assignment in course program ************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Asg_WriteAssignmentInCrsProgram (long AsgCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle)
|
||||
{
|
||||
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||
char Title[Asg_MAX_BYTES_ASSIGNMENT_TITLE + 1];
|
||||
|
||||
/***** Get assignment title *****/
|
||||
Asg_DB_GetAssignmentTitleByCod (AsgCod,Title);
|
||||
|
||||
/***** Begin form to go to assignment *****/
|
||||
if (PutFormToGo)
|
||||
{
|
||||
Frm_BeginForm (ActSeeOneAsg);
|
||||
Asg_PutParamAsgCod (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[ActSeeOneAsg],
|
||||
"class=\"LM BT_LINK PRG_RSC_%s\"",
|
||||
The_GetSuffix ());
|
||||
}
|
||||
|
||||
/***** Icon depending on type ******/
|
||||
if (PutFormToGo)
|
||||
Ico_PutIconLink (Icon,Ico_BLACK,ActSeeOneAsg);
|
||||
else
|
||||
Ico_PutIconOn (Icon,Ico_BLACK,IconTitle);
|
||||
|
||||
/***** Write assignment title of exam *****/
|
||||
HTM_Txt (Title);
|
||||
|
||||
/***** End form to download file *****/
|
||||
if (PutFormToGo)
|
||||
{
|
||||
/* End form */
|
||||
HTM_BUTTON_End ();
|
||||
|
||||
Frm_EndForm ();
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/**************** Get assignment title from assignment code ******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Asg_GetTitleFromAsgCod (long AsgCod,char *Title,size_t TitleSize)
|
||||
{
|
||||
char TitleFromDB[Asg_MAX_BYTES_ASSIGNMENT_TITLE + 1];
|
||||
|
||||
/***** Get assignment title *****/
|
||||
Asg_DB_GetAssignmentTitleByCod (AsgCod,TitleFromDB);
|
||||
Str_Copy (Title,TitleFromDB,TitleSize);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -79,10 +79,17 @@ struct Asg_Assignment
|
|||
/***************************** Public prototypes *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Asg_ResetAssignments (struct Asg_Assignments *Assignments);
|
||||
|
||||
void Asg_SeeAssignments (void);
|
||||
void Asg_ShowAllAssignments (struct Asg_Assignments *Assignments);
|
||||
void Asg_SeeOneAssignment (void);
|
||||
void Asg_PrintOneAssignment (void);
|
||||
|
||||
void Asg_ShowOneAssignmentInBox (struct Asg_Assignments *Assignments);
|
||||
|
||||
Dat_StartEndTime_t Asg_GetParamAsgOrder (void);
|
||||
|
||||
void Asg_RequestCreatOrEditAsg (void);
|
||||
void Asg_GetDataOfAssignmentByCod (struct Asg_Assignment *Asg);
|
||||
void Asg_GetDataOfAssignmentByFolder (struct Asg_Assignment *Asg);
|
||||
|
@ -91,6 +98,7 @@ void Asg_GetNotifAssignment (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
|||
char **ContentStr,
|
||||
long AsgCod,bool GetContent);
|
||||
|
||||
void Asg_PutParamAsgCod (long AsgCod);
|
||||
long Asg_GetParamAsgCod (void);
|
||||
void Asg_ReqRemAssignment (void);
|
||||
void Asg_RemoveAssignment (void);
|
||||
|
@ -105,9 +113,9 @@ unsigned Asg_GetNumAssignments (HieLvl_Level_t Scope,unsigned *NumNotif);
|
|||
void Asg_GetAndShowAssignmentsStats (void);
|
||||
|
||||
//--------------------------- Program resources -------------------------------
|
||||
void Asg_GetLinkToAssignment (void);
|
||||
void Asg_WriteAssignmentInCrsProgram (long AsgCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle);
|
||||
void Asg_GetTitleFromAsgCod (long AsgCod,char *Title,size_t TitleSize);
|
||||
void AsgRsc_GetLinkToAssignment (void);
|
||||
void AsgRsc_WriteAssignmentInCrsProgram (long AsgCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle);
|
||||
void AsgRsc_GetTitleFromAsgCod (long AsgCod,char *Title,size_t TitleSize);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -3327,7 +3327,7 @@ void Att_GetLinkToEvent (void)
|
|||
/**************** Write attendance event in course program *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Att_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
|
||||
void AttRsc_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle)
|
||||
{
|
||||
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||
|
@ -3370,7 +3370,7 @@ void Att_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
|
|||
/*************** Get attendance event title from game code *******************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Att_GetTitleFromAttCod (long AttCod,char *Title,size_t TitleSize)
|
||||
void AttRsc_GetTitleFromAttCod (long AttCod,char *Title,size_t TitleSize)
|
||||
{
|
||||
char TitleFromDB[Att_MAX_BYTES_ATTENDANCE_EVENT_TITLE + 1];
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -111,8 +111,8 @@ void Att_PrintUsrsAttendanceCrs (void);
|
|||
|
||||
//--------------------------- Program resources -------------------------------
|
||||
void Att_GetLinkToEvent (void);
|
||||
void Att_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
|
||||
void AttRsc_WriteAttEventInCrsProgram (long AttCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle);
|
||||
void Att_GetTitleFromAttCod (long AttCod,char *Title,size_t TitleSize);
|
||||
void AttRsc_GetTitleFromAttCod (long AttCod,char *Title,size_t TitleSize);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -5374,7 +5374,7 @@ void Brw_GetLinkToFile (void)
|
|||
/******************** Write file name in course program **********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Brw_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
void BrwRsc_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle)
|
||||
{
|
||||
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||
|
@ -5431,7 +5431,7 @@ void Brw_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
|||
/******************** Write file name in course program **********************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Brw_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
void BrwRsc_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle)
|
||||
{
|
||||
extern const char *Txt_Actions[Act_NUM_ACTIONS];
|
||||
|
@ -5476,7 +5476,7 @@ void Brw_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
|||
/********************** Get file name from file code *************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void Brw_GetFileNameFromFilCod (long FilCod,char *FileName,size_t FileNameSize)
|
||||
void BrwRsc_GetFileNameFromFilCod (long FilCod,char *FileName,size_t FileNameSize)
|
||||
{
|
||||
struct FileMetadata FileMetadata;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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
|
||||
|
@ -257,11 +257,11 @@ void Brw_SetFullPathInTree (void);
|
|||
|
||||
//--------------------------- Program resources -------------------------------
|
||||
void Brw_GetLinkToFile (void);
|
||||
void Brw_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
void BrwRsc_WriteDocFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle);
|
||||
void Brw_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
void BrwRsc_WriteMrkFileNameInCrsProgram (long FilCod,bool PutFormToGo,
|
||||
const char *Icon,const char *IconTitle);
|
||||
void Brw_GetFileNameFromFilCod (long FilCod,char *FileName,size_t FileNameSize);
|
||||
void BrwRsc_GetFileNameFromFilCod (long FilCod,char *FileName,size_t FileNameSize);
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void Brw_CreateTmpPublicLinkToPrivateFile (const char *FullPathIncludingFile,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
and used to support university teaching.
|
||||
|
||||
This file is part of SWAD core.
|
||||
Copyright (C) 1999-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 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-2021 Antonio Cañas Vargas
|
||||
Copyright (C) 1999-2022 Antonio Cañas Vargas
|
||||
|
||||