Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
canap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SI-FSD
canap
Commits
a81154ff
Commit
a81154ff
authored
6 years ago
by
nicrausaz
Browse files
Options
Downloads
Patches
Plain Diff
start form migration
parent
d676bc38
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
canapEPFL/form.php
+72
-56
72 additions, 56 deletions
canapEPFL/form.php
canapEPFL/templates/header.php
+1
-23
1 addition, 23 deletions
canapEPFL/templates/header.php
with
73 additions
and
79 deletions
canapEPFL/form.php
+
72
−
56
View file @
a81154ff
...
@@ -16,66 +16,83 @@
...
@@ -16,66 +16,83 @@
?>
?>
<!doctype html>
<!doctype html>
<html
lang=
"fr"
>
<html
lang=
"fr"
>
<head>
<head>
<title>
Formulaire Apprentissage
</title>
<title>
Formulaire Apprentissage
</title>
<?php
include
(
'templates/head.php'
);
?>
<?php
include
(
'templates/head.php'
);
?>
</head>
</head>
<body>
<body>
<div
class=
"page-style"
>
<?php
include
(
'templates/header.php'
)
?>
<?php
include
(
'templates/header.php'
)
?>
<main
id=
"main"
role=
"main"
class=
"content container-grid"
>
<p
class=
"paracenter"
>
Les champs notés d'un astérisque* doivent être obligatoirement remplis.
</p>
<h3
class=
"mb-5"
>
Candidature pour un apprentissage
</h3>
<form
method=
"post"
action=
"cible.php"
enctype=
"multipart/form-data"
>
<small
class=
"mb-3"
>
Les champs notés d'un * doivent être obligatoirement remplis.
</small>
<fieldset>
<legend><span
class=
"number"
>
1
</span>
Apprentissage
</legend>
<div
id=
"lieux"
>
<form
method=
"post"
action=
"cible.php"
enctype=
"multipart/form-data"
>
<label
for=
"lieu"
>
Je désire effectuer ma formation à:
</label><p>
<h3>
1. Apprentissage
</h3>
<dl
class=
"radio-list-left"
>
<!-- Choix formation -->
<dd>
<div
class=
"form-group"
>
<input
type=
"radio"
name=
"lieu"
id=
"lieuLausanne"
value=
"Lausanne"
<?php
echo
(
!
isset
(
$_SESSION
[
'postedForm'
][
'lieu'
])
||
$_SESSION
[
'postedForm'
][
'lieu'
]
==
"Lausanne"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
<label>
Je désire effectuer ma formation à:
</label>
<label
for=
"lieuLausanne"
>
EPFL Lausanne
</label>
<div
class=
"custom-control custom-radio"
>
</dd>
<input
type=
"radio"
name=
"lieu"
id=
"lieuLausanne"
class=
"custom-control-input"
value=
"Lausanne"
<?php
echo
(
!
isset
(
$_SESSION
[
'postedForm'
][
'lieu'
])
||
$_SESSION
[
'postedForm'
][
'lieu'
]
==
"Lausanne"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
<dd>
<label
class=
"custom-control-label"
for=
"lieuLausanne"
>
EPFL Lausanne
</label>
<input
type=
"radio"
name=
"lieu"
id=
"lieuSion"
value=
"Sion"
<?php
echo
(
$_SESSION
[
'postedForm'
][
'lieu'
]
==
"Sion"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
</div>
<label
for=
"lieuSion"
>
EPFL Valais Sion
</label>
<div
class=
"custom-control custom-radio"
>
</dd>
<input
type=
"radio"
name=
"lieu"
id=
"lieuSion"
class=
"custom-control-input"
value=
"Sion"
<?php
echo
(
$_SESSION
[
'postedForm'
][
'lieu'
]
==
"Sion"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
</dl>
<label
class=
"custom-control-label"
for=
"lieuSion"
>
EPFL Valais Sion
</label>
</div>
</div>
<label
for=
"job"
>
Je suis intéressé par la formation de:
</label>
</div>
<div
class=
"form-group"
>
<select
name=
"job"
id=
"jbLausanne"
class=
"jobSelectors"
data-required
>
<label>
Je suis intéressé par la formation de:
</label>
<option
value=
"menu"
selected
disabled
>
Choisir une formation...
</option>
<select
name=
"job"
id=
"jbLausanne"
class=
"custom-select"
data-required
>
<?php
<option
selected
disabled
>
Choisir une formation...
</option>
foreach
(
$LISTJOB
[
'Lausanne'
]
as
$jobKey
=>
$jobVal
)
{
<?php
foreach
(
$LISTJOB
[
'Lausanne'
]
as
$jobKey
=>
$jobVal
)
{
if
(
$_SESSION
[
'postedForm'
][
'job'
]
==
$jobKey
)
{
echo
"<option value='
$jobKey
' selected='selected'>
$jobVal
</option>"
;
}
else
{
echo
"<option value='
$jobKey
'>
$jobVal
</option>"
;
}
}
?>
</select>
<select
name=
"job"
id=
"jbSion"
class=
"custom-select"
style=
"display: none;"
data-required
>
<option
value=
"menu"
selected
disabled
>
Choisir une formation...
</option>
<?php
foreach
(
$LISTJOB
[
'Sion'
]
as
$jobKey
=>
$jobVal
)
{
if
(
$_SESSION
[
'postedForm'
][
'job'
]
==
$jobKey
)
{
echo
"<option value='
$jobKey
' selected='selected'>
$jobVal
</option>"
;
}
else
{
echo
"<option value='
$jobKey
'>
$jobVal
</option>"
;
}
}
?>
</select>
</div>
<!-- / Choix formation -->
<div
id=
"all"
style=
"display: none;"
>
<div
class=
"form-group"
>
<!-- Infos filières informaticien -->
<div
id=
"infoOnly"
>
<?php
include
(
'templates/filieresinfos.php'
)
?>
</div>
<!-- / Infos filières informaticien -->
<!-- Maturité -->
<div
class=
"custom-control custom-radio"
>
<input
type=
"radio"
name=
"mpt"
id=
"mpt1"
class=
"custom-control-input"
value=
"false"
<?php
echo
(
!
isset
(
$_SESSION
[
'postedForm'
][
'mpt'
])
||
$_SESSION
[
'postedForm'
][
'mpt'
]
==
"false"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
<label
class=
"custom-control-label"
for=
"mpt1"
>
EPFL Lausanne
</label>
</div>
<div
class=
"custom-control custom-radio"
>
<input
type=
"radio"
name=
"mpt"
id=
"mpt2"
class=
"custom-control-input"
value=
"true"
<?php
echo
(
$_SESSION
[
'postedForm'
][
'mpt'
]
==
"true"
)
?
"checked=
\"
checked
\"
"
:
''
;
?>
>
<label
class=
"custom-control-label"
for=
"mpt2"
>
EPFL Valais Sion
</label>
</div>
<button
class=
"btn btn-primary"
id=
"infoMpt"
>
Infos sur la maturité professionnelle
</button>
<!-- / Maturité -->
</div>
</div>
if
(
$_SESSION
[
'postedForm'
][
'job'
]
==
$jobKey
)
{
</form>
echo
"<option value='
$jobKey
' selected='selected'>
$jobVal
</option>"
;
</main>
}
else
{
echo
"<option value='
$jobKey
'>
$jobVal
</option>"
;
}
}
?>
</select>
<select
name=
"job"
id=
"jbSion"
class=
"jobSelectors"
style=
"display: none;"
data-required
>
<option
value=
"menu"
selected
disabled
>
Choisir une formation...
</option>
<?php
foreach
(
$LISTJOB
[
'Sion'
]
as
$jobKey
=>
$jobVal
)
{
if
(
$_SESSION
[
'postedForm'
][
'job'
]
==
$jobKey
)
{
echo
"<option value='
$jobKey
' selected='selected'>
$jobVal
</option>"
;
}
else
{
echo
"<option value='
$jobKey
'>
$jobVal
</option>"
;
}
}
?>
</select>
</fieldset>
<div
id=
"all"
style=
"display: none;"
>
<fieldset>
<div
id=
"infoOnly"
>
<?php
include
(
'templates/filieresinfos.php'
)
?>
</div>
<label
for=
"mpt"
>
Je désire m'inscire en maturité professionnelle intégrée*:
</label><p>
<label
for=
"mpt"
>
Je désire m'inscire en maturité professionnelle intégrée*:
</label><p>
<dl
class=
"radio-list-left"
>
<dl
class=
"radio-list-left"
>
<dd>
<dd>
...
@@ -347,7 +364,6 @@
...
@@ -347,7 +364,6 @@
<input
type=
"submit"
value=
"Terminer"
/>
<input
type=
"submit"
value=
"Terminer"
/>
</div>
</div>
</fieldset>
</fieldset>
</div>
</form>
</form>
<script>
lieu
=
'
<?php
echo
$_SESSION
[
'postedForm'
][
'lieu'
]
;
?>
'
;
</script>
<script>
lieu
=
'
<?php
echo
$_SESSION
[
'postedForm'
][
'lieu'
]
;
?>
'
;
</script>
<?php
<?php
...
...
This diff is collapsed.
Click to expand it.
canapEPFL/templates/header.php
+
1
−
23
View file @
a81154ff
...
@@ -3,32 +3,10 @@
...
@@ -3,32 +3,10 @@
<img
src=
"./style/epfl2018/svg/epfl-logo.svg"
alt=
"Logo EPFL, École polytechnique fédérale de Lausanne"
class=
"img-fluid"
>
<img
src=
"./style/epfl2018/svg/epfl-logo.svg"
alt=
"Logo EPFL, École polytechnique fédérale de Lausanne"
class=
"img-fluid"
>
</a>
</a>
<ul
aria-hidden=
"true"
class=
"nav-header d-none d-xl-flex"
>
<ul
aria-hidden=
"true"
class=
"nav-header d-none d-xl-flex"
>
<li
id=
"menu-item-1"
>
<li>
<a
class=
"nav-item"
>
Candidature pour un apprentissage
</a>
<a
class=
"nav-item"
>
Candidature pour un apprentissage
</a>
</li>
</li>
</ul>
</ul>
<div
class=
"dropdown dropright search d-none d-xl-block"
>
<a
class=
"dropdown-toggle"
href=
"#"
data-toggle=
"dropdown"
>
<svg
class=
"icon"
aria-hidden=
"true"
><use
xlink:href=
"#icon-search"
></use></svg>
</a>
<form
action=
"#"
class=
"dropdown-menu border-0 p-0"
>
<div
class=
"search-form mt-1 input-group"
>
<label
for=
"search"
class=
"sr-only"
>
Rechercher sur le site
</label>
<input
type=
"text"
class=
"form-control"
name=
"search"
placeholder=
"Rechercher"
>
<button
type=
"submit"
class=
"d-none d-xl-block btn btn-primary input-group-append"
>
Valider
</button></div>
</form>
</div>
<form
action=
"#"
class=
"d-lg-none"
>
<div
class=
"input-group search-mobile"
role=
"search"
>
<div
class=
"input-group-prepend"
>
<span
class=
"input-group-text"
>
<svg
class=
"icon"
aria-hidden=
"true"
><use
xlink:href=
"#icon-search"
></use></svg>
</span>
</div>
<label
for=
"search"
class=
"sr-only"
>
Rechercher sur le site
</label>
<input
type=
"text"
class=
"form-control"
name=
"search"
placeholder=
"Rechercher"
>
</div>
</form>
<nav
class=
"nav-lang justify-self-end"
>
<nav
class=
"nav-lang justify-self-end"
>
<a
class=
"logo"
>
<a
class=
"logo"
>
<img
src=
"./style/img/FA.png"
alt=
"Logo FA, Formation Apprentis EPFL"
class=
"img-fluid"
>
<img
src=
"./style/img/FA.png"
alt=
"Logo FA, Formation Apprentis EPFL"
class=
"img-fluid"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment