Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
bd0e0f98
Commit
bd0e0f98
authored
Nov 15, 2018
by
Stephane Crozat
Browse files
Add instructions to home page
parent
d08e596d
Changes
2
Show whitespace changes
Inline
Side-by-side
index.php
View file @
bd0e0f98
...
...
@@ -27,6 +27,7 @@ include 'lib/views.php';
$db
=
new
DB
();
Views
::
printHtmlBegin
();
Views
::
printInstructions
();
Views
::
printUser
(
$_SESSION
[
'utclogin'
],
$_SESSION
[
'surname'
],
$_SESSION
[
'firstname'
]);
if
(
isset
(
$_GET
[
'api'
])
&&
isset
(
$_GET
[
'utclogin'
]))
{
...
...
lib/views.php
View file @
bd0e0f98
...
...
@@ -13,6 +13,14 @@ class Views {
echo
'<h1>Inscriptions Api</h1>'
;
}
public
static
function
printInstructions
()
{
echo
'<h2>Instructions</h2>'
;
echo
'<p>Les Api sont décrites ici : <b><a href="https://apint.utc.fr/cat">https://apint.utc.fr/cat</a></b>.</p>'
;
echo
'<p>Veillez à avoir bien lu la fiche avant de vous inscrire (pré-requis, dates...).</p>'
;
echo
'<p>Vous pouvez vous inscrire et vous désinscrire librement jusqu\'au 4 décembre 2018.</p>'
;
echo
'<p>Veillez à <b>ne pas</b> choisir deux Api qui se chevauchent (sauf pour le cas particulier de l\'Api <i>Animer une Api</i>).</p>'
;
}
public
static
function
printUser
(
$utclogin
,
$surname
,
$firstname
)
{
echo
'<p><i>'
.
$firstname
.
' '
.
$surname
.
'</i> (<b>'
.
$utclogin
.
'</b>)</p>'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment