swad-core/swad_layout.h

121 lines
4.6 KiB
C
Raw Normal View History

2014-12-01 23:55:08 +01:00
// swad_layout.h: page layout
#ifndef _SWAD_LAY
#define _SWAD_LAY
/*
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.
2021-02-09 12:43:45 +01:00
Copyright (C) 1999-2021 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_action.h"
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
2014-12-27 13:09:29 +01:00
#define Lay_HIDE_BOTH_COLUMNS 0 // 00
#define Lay_SHOW_RIGHT_COLUMN 1 // 01
#define Lay_SHOW_LEFT_COLUMN 2 // 10
#define Lay_SHOW_BOTH_COLUMNS (Lay_SHOW_LEFT_COLUMN | Lay_SHOW_RIGHT_COLUMN) // 11
2014-12-01 23:55:08 +01:00
/*****************************************************************************/
/********************************* Public types ******************************/
/*****************************************************************************/
/*****************************************************************************/
/****************************** Public prototypes ****************************/
/*****************************************************************************/
void Lay_WriteStartOfPage (void);
2017-10-04 12:20:58 +02:00
void Lay_WriteHTTPStatus204NoContent (void);
2019-01-12 03:00:59 +01:00
void Lay_PutContextualLinkOnlyIcon (Act_Action_t NextAction,const char *Anchor,
2020-03-26 02:54:30 +01:00
void (*FuncParams) (void *Args),void *Args,
2019-01-12 03:00:59 +01:00
const char *Icon,
const char *Title);
void Lay_PutContextualLinkIconText (Act_Action_t NextAction,const char *Anchor,
2020-03-26 02:54:30 +01:00
void (*FuncParams) (void *Args),void *Args,
2019-01-12 03:00:59 +01:00
const char *Icon,
const char *Text);
void Lay_PutContextualLinkIconTextOnSubmit (Act_Action_t NextAction,const char *Anchor,
2020-04-11 15:21:30 +02:00
void (*FuncParams) (const void *Args),const void *Args,
2019-01-12 03:00:59 +01:00
const char *Icon,
const char *Text,
const char *OnSubmit);
2016-11-22 10:44:58 +01:00
void Lay_PutContextualCheckbox (Act_Action_t NextAction,
2019-04-11 14:45:31 +02:00
void (*FuncParams) (void),
2017-05-22 12:23:08 +02:00
const char *CheckboxName,
bool Checked,bool Disabled,
2016-11-22 10:44:58 +01:00
const char *Title,const char *Text);
2015-07-22 19:20:30 +02:00
2018-10-18 20:06:54 +02:00
void Lay_NotEnoughMemoryExit (void);
2018-10-24 23:03:11 +02:00
void Lay_WrongScopeExit (void);
void Lay_WrongCountrExit (void);
void Lay_WrongInstitExit (void);
void Lay_WrongCenterExit (void);
void Lay_WrongDegTypExit (void);
void Lay_WrongDegreeExit (void);
void Lay_WrongCourseExit (void);
2020-01-07 22:07:06 +01:00
void Lay_WrongOrderExit (void);
void Lay_WrongGrpTypExit (void);
void Lay_WrongGroupExit (void);
2020-04-08 03:06:45 +02:00
void Lay_WrongTypeOfViewExit (void);
void Lay_WrongBannerExit (void);
void Lay_WrongBuildingExit (void);
void Lay_WrongAssignmentExit (void);
2020-05-09 18:18:04 +02:00
void Lay_WrongProjectExit (void);
void Lay_WrongCallForExamExit (void);
2020-04-25 01:36:53 +02:00
void Lay_WrongExamExit (void);
2020-04-26 01:54:27 +02:00
void Lay_WrongSetExit (void);
void Lay_WrongQuestionExit (void);
void Lay_WrongQuestionIndexExit (void);
void Lay_WrongAnswerExit (void);
void Lay_WrongAnswerIndexExit (void);
2020-05-17 02:28:30 +02:00
void Lay_WrongExamSessionExit (void);
void Lay_WrongGameExit (void);
void Lay_WrongMatchExit (void);
void Lay_WrongSurveyExit (void);
2021-02-08 20:38:12 +01:00
void Lay_WrongWhoExit (void);
void Lay_WrongEventExit (void);
void Lay_WrongUserExit (void);
2019-10-26 01:56:36 +02:00
void Lay_NoPermissionExit (void);
2017-05-10 10:25:01 +02:00
void Lay_ShowErrorAndExit (const char *Txt);
2016-01-09 15:00:14 +01:00
2014-12-01 23:55:08 +01:00
void Lay_RefreshNotifsAndConnected (void);
void Lay_RefreshLastClicks (void);
2016-03-18 22:17:35 +01:00
void Lay_WriteHeaderClassPhoto (bool PrintView,bool DrawingClassPhoto,
2014-12-01 23:55:08 +01:00
long InsCod,long DegCod,long CrsCod);
void Lay_AdvertisementMobile (void);
2014-12-29 13:26:39 +01:00
void Lay_IndentDependingOnLevel (unsigned Level,bool IsLastItemInLevel[]);
2015-04-11 02:04:23 +02:00
void Lay_HelpPlainEditor (void);
void Lay_HelpRichEditor (void);
2016-10-03 22:41:45 +02:00
void Lay_StartHTMLFile (FILE *File,const char *Title);
2014-12-01 23:55:08 +01:00
#endif