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.
|
2019-01-07 21:52:19 +01:00
|
|
|
|
Copyright (C) 1999-2019 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 *****************************/
|
|
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
2017-03-11 00:47:23 +01:00
|
|
|
|
#define Lay_MAX_BYTES_TITLE (4096 - 1)
|
2014-12-01 23:55:08 +01:00
|
|
|
|
|
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);
|
|
|
|
|
|
2017-04-17 19:03:21 +02:00
|
|
|
|
void Lay_PutContextualLink (Act_Action_t NextAction,const char *Anchor,
|
2016-01-02 02:33:23 +01:00
|
|
|
|
void (*FuncParams) (),
|
2015-12-13 19:02:06 +01:00
|
|
|
|
const char *Icon,
|
2016-07-01 16:32:42 +02:00
|
|
|
|
const char *Title,const char *Text,
|
2016-07-04 14:33:31 +02:00
|
|
|
|
const char *OnSubmit);
|
2016-11-22 10:44:58 +01:00
|
|
|
|
void Lay_PutContextualCheckbox (Act_Action_t NextAction,
|
2016-11-22 12:07:29 +01:00
|
|
|
|
void (*FuncParams) (),
|
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
|
|
|
|
|
2017-05-25 13:43:54 +02:00
|
|
|
|
void Lay_StartSection (const char *SectionId);
|
|
|
|
|
void Lay_EndSection (void);
|
|
|
|
|
|
2018-10-18 20:06:54 +02:00
|
|
|
|
void Lay_NotEnoughMemoryExit (void);
|
2018-10-24 23:03:11 +02:00
|
|
|
|
void Lay_WrongScopeExit (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
|