swad-core/swad_institution.h

80 lines
3.0 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_institution.h: institutions
#ifndef _SWAD_INS
#define _SWAD_INS
/*
SWAD (Shared Workspace At a Distance in Spanish),
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-2024 Antonio Ca<EFBFBD>as Vargas
2014-12-01 23:55:08 +01:00
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 **********************************/
/*****************************************************************************/
#include "swad_center.h"
2014-12-01 23:55:08 +01:00
#include "swad_constant.h"
#include "swad_figure_cache.h"
#include "swad_name.h"
2016-12-13 13:32:19 +01:00
#include "swad_role_type.h"
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Ins_SeeInsWithPendingCtrs (void);
void Ins_DrawInstitutionLogoWithLink (struct Hie_Node *Ins,const char *IconClass);
void Ins_DrawInstitLogoAndNameWithLink (struct Hie_Node *Ins,Act_Action_t Action,
const char *IconClass);
2015-11-19 18:33:16 +01:00
2014-12-01 23:55:08 +01:00
void Ins_ShowInssOfCurrentCty (void);
void Ins_EditInstitutions (void);
2020-01-07 22:07:06 +01:00
void Ins_GetBasicListOfInstitutions (long CtyCod);
void Ins_GetFullListOfInstitutions (long CtyCod);
2017-03-02 00:53:34 +01:00
void Ins_WriteInstitutionNameAndCty (long InsCod);
bool Ins_GetInstitDataByCod (struct Hie_Node *Node);
2017-06-20 14:43:26 +02:00
void Ins_FlushCacheFullNameAndCtyOfInstitution (void);
void Ins_GetShrtNameAndCtyOfInstitution (struct Hie_Node *Ins,
char CtyName[Nam_MAX_BYTES_FULL_NAME + 1]);
2017-03-02 00:53:34 +01:00
2015-07-25 20:20:07 +02:00
void Ins_WriteSelectorOfInstitution (void);
2014-12-01 23:55:08 +01:00
void Ins_RemoveInstitution (void);
void Ins_RenameInsShort (void);
void Ins_RenameInsFull (void);
void Ins_RenameInstitution (struct Hie_Node *Ins,Nam_ShrtOrFullName_t ShrtOrFull);
2014-12-01 23:55:08 +01:00
void Ins_ChangeInsWWW (void);
void Ins_ChangeInsStatus (void);
2016-03-01 23:58:48 +01:00
void Ins_ContEditAfterChgIns (void);
2020-05-05 21:49:00 +02:00
void Ins_ReceiveFormReqIns (void);
void Ins_ReceiveFormNewIns (void);
2014-12-01 23:55:08 +01:00
unsigned Ins_GetCachedNumInssWithUsrs (Rol_Role_t Role);
2014-12-01 23:55:08 +01:00
2018-10-31 16:16:57 +01:00
void Ins_ListInssFound (MYSQL_RES **mysql_res,unsigned NumInss);
2014-12-01 23:55:08 +01:00
void Ins_PutParInsCod (void *InsCod);
//-------------------------------- Figures ------------------------------------
void Ins_GetAndShowInstitutionsStats (void);
2014-12-01 23:55:08 +01:00
#endif