mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version19.104
This commit is contained in:
parent
f00a0dfa12
commit
3b7a79f29a
6
Makefile
6
Makefile
|
@ -29,9 +29,9 @@
|
||||||
OBJS = swad_account.o swad_action.o swad_agenda.o swad_alert.o \
|
OBJS = swad_account.o swad_action.o swad_agenda.o swad_alert.o \
|
||||||
swad_announcement.o swad_API.o swad_assignment.o swad_attendance.o \
|
swad_announcement.o swad_API.o swad_assignment.o swad_attendance.o \
|
||||||
swad_banner.o swad_box.o swad_button.o \
|
swad_banner.o swad_box.o swad_button.o \
|
||||||
swad_calendar.o swad_centre.o swad_chat.o swad_classroom.o \
|
swad_calendar.o swad_centre.o swad_centre_config.o swad_chat.o \
|
||||||
swad_config.o swad_connected.o swad_cookie.o swad_country.o \
|
swad_classroom.o swad_config.o swad_connected.o swad_cookie.o \
|
||||||
swad_course.o swad_course_config.o swad_cryptography.o \
|
swad_country.o swad_course.o swad_course_config.o swad_cryptography.o \
|
||||||
swad_database.o swad_date.o swad_degree.o swad_degree_config.o \
|
swad_database.o swad_date.o swad_degree.o swad_degree_config.o \
|
||||||
swad_degree_type.o swad_department.o swad_duplicate.o \
|
swad_degree_type.o swad_department.o swad_duplicate.o \
|
||||||
swad_enrolment.o swad_exam.o \
|
swad_enrolment.o swad_exam.o \
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
#include "swad_announcement.h"
|
#include "swad_announcement.h"
|
||||||
#include "swad_banner.h"
|
#include "swad_banner.h"
|
||||||
#include "swad_calendar.h"
|
#include "swad_calendar.h"
|
||||||
|
#include "swad_centre_config.h"
|
||||||
#include "swad_config.h"
|
#include "swad_config.h"
|
||||||
#include "swad_cookie.h"
|
#include "swad_cookie.h"
|
||||||
#include "swad_country.h"
|
#include "swad_country.h"
|
||||||
|
@ -1829,26 +1830,26 @@ const struct Act_Actions Act_Actions[Act_NUM_ACTIONS] =
|
||||||
|
|
||||||
// TabCtr ******************************************************************
|
// TabCtr ******************************************************************
|
||||||
// Actions in menu:
|
// Actions in menu:
|
||||||
[ActSeeCtrInf ] = {1151, 0,TabCtr,ActSeeCtrInf , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ShowConfiguration ,"info" },
|
[ActSeeCtrInf ] = {1151, 0,TabCtr,ActSeeCtrInf , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ShowConfiguration ,"info" },
|
||||||
[ActSeeDeg ] = {1011, 1,TabCtr,ActSeeDeg , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Deg_ShowDegsOfCurrentCtr ,"graduation-cap" },
|
[ActSeeDeg ] = {1011, 1,TabCtr,ActSeeDeg , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Deg_ShowDegsOfCurrentCtr ,"graduation-cap" },
|
||||||
[ActSeeCla ] = {1744, 2,TabCtr,ActSeeCla , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Cla_SeeClassrooms ,"classroom" },
|
[ActSeeCla ] = {1744, 2,TabCtr,ActSeeCla , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Cla_SeeClassrooms ,"classroom" },
|
||||||
|
|
||||||
// Actions not in menu:
|
// Actions not in menu:
|
||||||
[ActPrnCtrInf ] = {1152,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,Ctr_PrintConfiguration ,NULL},
|
[ActPrnCtrInf ] = {1152,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_NEW_TAB,NULL ,CtrCfg_PrintConfiguration ,NULL},
|
||||||
[ActChgCtrInsCfg ] = {1589,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x200, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,Ctr_ChangeCtrInsInConfig ,Ctr_ContEditAfterChgCtrInConfig,NULL},
|
[ActChgCtrInsCfg ] = {1589,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x200, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,CtrCfg_ChangeCtrInsInConfig ,CtrCfg_ContEditAfterChgCtrInConfig,NULL},
|
||||||
[ActRenCtrShoCfg ] = {1595,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x300, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,Ctr_RenameCentreShortInConfig ,Ctr_ContEditAfterChgCtrInConfig,NULL},
|
[ActRenCtrShoCfg ] = {1595,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x300, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,CtrCfg_RenameCentreShortInConfig ,CtrCfg_ContEditAfterChgCtrInConfig,NULL},
|
||||||
[ActRenCtrFulCfg ] = {1594,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x300, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,Ctr_RenameCentreFullInConfig ,Ctr_ContEditAfterChgCtrInConfig,NULL},
|
[ActRenCtrFulCfg ] = {1594,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x300, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,CtrCfg_RenameCentreFullInConfig ,CtrCfg_ContEditAfterChgCtrInConfig,NULL},
|
||||||
[ActChgCtrPlcCfg ] = {1648,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrPlcInConfig ,NULL},
|
[ActChgCtrPlcCfg ] = {1648,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrPlcInConfig ,NULL},
|
||||||
[ActChgCtrLatCfg ] = {1815,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrLatitudeInConfig ,NULL},
|
[ActChgCtrLatCfg ] = {1815,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrLatitudeInConfig ,NULL},
|
||||||
[ActChgCtrLgtCfg ] = {1816,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrLongitudeInConfig ,NULL},
|
[ActChgCtrLgtCfg ] = {1816,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrLongitudeInConfig ,NULL},
|
||||||
[ActChgCtrAltCfg ] = {1817,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrAltitudeInConfig ,NULL},
|
[ActChgCtrAltCfg ] = {1817,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrAltitudeInConfig ,NULL},
|
||||||
[ActChgCtrWWWCfg ] = {1596,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrWWWInConfig ,NULL},
|
[ActChgCtrWWWCfg ] = {1596,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrWWWInConfig ,NULL},
|
||||||
[ActReqCtrLog ] = {1244,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_RequestLogo ,NULL},
|
[ActReqCtrLog ] = {1244,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_RequestLogo ,NULL},
|
||||||
[ActRecCtrLog ] = {1051,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,Ctr_ReceiveLogo ,Ctr_ShowConfiguration ,NULL},
|
[ActRecCtrLog ] = {1051,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,CtrCfg_ReceiveLogo ,CtrCfg_ShowConfiguration ,NULL},
|
||||||
[ActRemCtrLog ] = {1342,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,Ctr_RemoveLogo ,Ctr_ShowConfiguration ,NULL},
|
[ActRemCtrLog ] = {1342,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,CtrCfg_RemoveLogo ,CtrCfg_ShowConfiguration ,NULL},
|
||||||
[ActReqCtrPho ] = {1160,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_RequestPhoto ,NULL},
|
[ActReqCtrPho ] = {1160,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_RequestPhoto ,NULL},
|
||||||
[ActRecCtrPho ] = {1161,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,NULL ,Ctr_ReceivePhoto ,NULL},
|
[ActRecCtrPho ] = {1161,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_DATA,Act_BRW_1ST_TAB,NULL ,CtrCfg_ReceivePhoto ,NULL},
|
||||||
[ActChgCtrPhoAtt ] = {1159,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Ctr_ChangeCtrPhotoAttribution ,NULL},
|
[ActChgCtrPhoAtt ] = {1159,-1,TabUnk,ActSeeCtrInf , 0, 0, 0,0x380, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,CtrCfg_ChangeCtrPhotoAttribution ,NULL},
|
||||||
|
|
||||||
[ActSeeDegTyp ] = {1013,-1,TabUnk,ActSeeDeg , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,DT_SeeDegreeTypesInDegTab ,NULL},
|
[ActSeeDegTyp ] = {1013,-1,TabUnk,ActSeeDeg , 0, 0, 0,0x3C7, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,DT_SeeDegreeTypesInDegTab ,NULL},
|
||||||
[ActEdiDegTyp ] = { 573,-1,TabUnk,ActSeeDeg , 0, 0, 0,0x200, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,DT_EditDegreeTypes ,NULL},
|
[ActEdiDegTyp ] = { 573,-1,TabUnk,ActSeeDeg , 0, 0, 0,0x200, 0, 0, 0,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,DT_EditDegreeTypes ,NULL},
|
||||||
|
|
1278
swad_centre.c
1278
swad_centre.c
File diff suppressed because it is too large
Load Diff
|
@ -100,9 +100,6 @@ void Ctr_SeeCtrWithPendingDegs (void);
|
||||||
void Ctr_DrawCentreLogoAndNameWithLink (struct Centre *Ctr,Act_Action_t Action,
|
void Ctr_DrawCentreLogoAndNameWithLink (struct Centre *Ctr,Act_Action_t Action,
|
||||||
const char *ClassLink,const char *ClassLogo);
|
const char *ClassLink,const char *ClassLogo);
|
||||||
|
|
||||||
void Ctr_ShowConfiguration (void);
|
|
||||||
void Ctr_PrintConfiguration (void);
|
|
||||||
|
|
||||||
void Ctr_ShowCtrsOfCurrentIns (void);
|
void Ctr_ShowCtrsOfCurrentIns (void);
|
||||||
void Ctr_EditCentres (void);
|
void Ctr_EditCentres (void);
|
||||||
|
|
||||||
|
@ -118,28 +115,18 @@ void Ctr_WriteSelectorOfCentre (void);
|
||||||
void Ctr_PutParamCtrCod (long CtrCod);
|
void Ctr_PutParamCtrCod (long CtrCod);
|
||||||
long Ctr_GetAndCheckParamOtherCtrCod (long MinCodAllowed);
|
long Ctr_GetAndCheckParamOtherCtrCod (long MinCodAllowed);
|
||||||
void Ctr_RemoveCentre (void);
|
void Ctr_RemoveCentre (void);
|
||||||
void Ctr_ChangeCtrInsInConfig (void);
|
|
||||||
void Ctr_ContEditAfterChgCtrInConfig (void);
|
|
||||||
void Ctr_ChangeCtrPlc (void);
|
void Ctr_ChangeCtrPlc (void);
|
||||||
void Ctr_ChangeCtrPlcInConfig (void);
|
void Ctr_UpdateCtrPlcDB (long CtrCod,long NewPlcCod);
|
||||||
void Ctr_RenameCentreShort (void);
|
void Ctr_RenameCentreShort (void);
|
||||||
void Ctr_RenameCentreFull (void);
|
void Ctr_RenameCentreFull (void);
|
||||||
void Ctr_RenameCentreShortInConfig (void);
|
void Ctr_RenameCentre (struct Centre *Ctr,Cns_ShrtOrFullName_t ShrtOrFullName);
|
||||||
void Ctr_RenameCentreFullInConfig (void);
|
bool Ctr_CheckIfCtrNameExistsInIns (const char *FieldName,const char *Name,
|
||||||
void Ctr_ChangeCtrLatitudeInConfig (void);
|
long CtrCod,long InsCod);
|
||||||
void Ctr_ChangeCtrLongitudeInConfig (void);
|
|
||||||
void Ctr_ChangeCtrAltitudeInConfig (void);
|
|
||||||
void Ctr_ChangeCtrWWW (void);
|
void Ctr_ChangeCtrWWW (void);
|
||||||
void Ctr_ChangeCtrWWWInConfig (void);
|
void Ctr_UpdateCtrWWWDB (long CtrCod,const char NewWWW[Cns_MAX_BYTES_WWW + 1]);
|
||||||
void Ctr_ChangeCtrStatus (void);
|
void Ctr_ChangeCtrStatus (void);
|
||||||
void Ctr_ContEditAfterChgCtr (void);
|
void Ctr_ContEditAfterChgCtr (void);
|
||||||
|
|
||||||
void Ctr_RequestLogo (void);
|
|
||||||
void Ctr_ReceiveLogo (void);
|
|
||||||
void Ctr_RemoveLogo (void);
|
|
||||||
void Ctr_RequestPhoto (void);
|
|
||||||
void Ctr_ReceivePhoto (void);
|
|
||||||
void Ctr_ChangeCtrPhotoAttribution (void);
|
|
||||||
void Ctr_RecFormReqCtr (void);
|
void Ctr_RecFormReqCtr (void);
|
||||||
void Ctr_RecFormNewCtr (void);
|
void Ctr_RecFormNewCtr (void);
|
||||||
|
|
||||||
|
|
1320
swad_centre_config.c
Normal file
1320
swad_centre_config.c
Normal file
File diff suppressed because it is too large
Load Diff
57
swad_centre_config.h
Normal file
57
swad_centre_config.h
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
// swad_centre_config.h: configuration of current centre
|
||||||
|
|
||||||
|
#ifndef _SWAD_CTR_CFG
|
||||||
|
#define _SWAD_CTR_CFG
|
||||||
|
/*
|
||||||
|
SWAD (Shared Workspace At a Distance),
|
||||||
|
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-2019 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
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
/*****************************************************************************/
|
||||||
|
/********************************* Headers ***********************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/************************** Public types and constants ***********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/****************************** Public prototypes ****************************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
void CtrCfg_ShowConfiguration (void);
|
||||||
|
void CtrCfg_PrintConfiguration (void);
|
||||||
|
|
||||||
|
void CtrCfg_RequestLogo (void);
|
||||||
|
void CtrCfg_ReceiveLogo (void);
|
||||||
|
void CtrCfg_RemoveLogo (void);
|
||||||
|
void CtrCfg_RequestPhoto (void);
|
||||||
|
void CtrCfg_ReceivePhoto (void);
|
||||||
|
void CtrCfg_ChangeCtrPhotoAttribution (void);
|
||||||
|
void CtrCfg_ChangeCtrInsInConfig (void);
|
||||||
|
void CtrCfg_RenameCentreShortInConfig (void);
|
||||||
|
void CtrCfg_RenameCentreFullInConfig (void);
|
||||||
|
void CtrCfg_ChangeCtrPlcInConfig (void);
|
||||||
|
void CtrCfg_ChangeCtrLatitudeInConfig (void);
|
||||||
|
void CtrCfg_ChangeCtrLongitudeInConfig (void);
|
||||||
|
void CtrCfg_ChangeCtrAltitudeInConfig (void);
|
||||||
|
void CtrCfg_ChangeCtrWWWInConfig (void);
|
||||||
|
void CtrCfg_ContEditAfterChgCtrInConfig (void);
|
||||||
|
|
||||||
|
#endif
|
|
@ -492,7 +492,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 19.103 (2019-12-28)"
|
#define Log_PLATFORM_VERSION "SWAD 19.104 (2019-12-29)"
|
||||||
#define CSS_FILE "swad19.101.5.css"
|
#define CSS_FILE "swad19.101.5.css"
|
||||||
#define JS_FILE "swad19.91.1.js"
|
#define JS_FILE "swad19.91.1.js"
|
||||||
/*
|
/*
|
||||||
|
@ -500,8 +500,9 @@ ps2pdf source.ps destination.pdf
|
||||||
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
// TODO: Impedir la creación y edición de proyectos si no son editables.
|
||||||
// TODO: No se puede entrar con DNI '1' suponiendo que no tenga password ¿por qué?
|
// TODO: No se puede entrar con DNI '1' suponiendo que no tenga password ¿por qué?
|
||||||
|
|
||||||
Version 19.10x: Dec 28, 2019 Map in country information. (? lines)
|
Version 19.10x: Dec 29, 2019 Map in country information. (? lines)
|
||||||
Version 19.10x: Dec 28, 2019 Map in institution information. (? lines)
|
Version 19.10x: Dec 29, 2019 Map in institution information. (? lines)
|
||||||
|
Version 19.104: Dec 29, 2019 New module swad_centre_config for centre configuration. (249534 lines)
|
||||||
Version 19.103: Dec 29, 2019 New module swad_degree_config for degree configuration. (249457 lines)
|
Version 19.103: Dec 29, 2019 New module swad_degree_config for degree configuration. (249457 lines)
|
||||||
Version 19.102: Dec 29, 2019 New module swad_course_config for course configuration. (249397 lines)
|
Version 19.102: Dec 29, 2019 New module swad_course_config for course configuration. (249397 lines)
|
||||||
Version 19.101.5: Dec 28, 2019 Country information is splitted into two columns. (249330 lines)
|
Version 19.101.5: Dec 28, 2019 Country information is splitted into two columns. (249330 lines)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user