Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fsfahrttool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Sarah Kleest-Meißner
fsfahrttool
Commits
7231e00a
Commit
7231e00a
authored
8 years ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
merge
fix missing close input
parent
a686a56e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
registration-system/view/signups/form/index.php
+24
-29
24 additions, 29 deletions
registration-system/view/signups/form/index.php
with
24 additions
and
29 deletions
registration-system/view/signups/form/index.php
+
24
−
29
View file @
7231e00a
...
@@ -55,63 +55,57 @@ class FormSignupMethod extends SignupMethod {
...
@@ -55,63 +55,57 @@ class FormSignupMethod extends SignupMethod {
$link_params
=
$this
->
getFormSubmitBaseParams
();
$link_params
=
$this
->
getFormSubmitBaseParams
();
echo
'<div style="margin: 0 auto;width: 702px;">'
;
if
(
$waitlist_mode
)
if
(
$waitlist_mode
)
echo
'<h1 style="color: red;">Warteliste</h1>
echo
'<h1 style="color: red;">Warteliste</h1>
<p>Eintragen und hoffen...</p>'
;
<p>Eintragen und hoffen...</p>'
;
else
else
echo
'<h1>Anmeldeformular</h1>
echo
'<h1>Anmeldeformular</h1>
<p>Bitte hier verbindlich anmelden.</p>'
;
<p>Bitte hier verbindlich anmelden.</p>'
;
echo
'</div>'
;
echo
'<div id="stylized" class="myform">
echo
'<div id="stylized" class="myform">
<form id="form" name="form" method="post" action="index.php'
.
$link_params
.
'">'
;
<form id="form" name="form" method="post" action="index.php'
.
$link_params
.
'">'
;
$this
->
show_formular_helper_hidden_input
(
'signupstats'
,
(
isset
(
$bachelorData
[
'signupstats'
])
?
$bachelorData
[
'signupstats'
]
:
null
));
$this
->
show_formular_helper_hidden_input
(
'signupstats'
,
(
isset
(
$bachelorData
[
'signupstats'
])
?
$bachelorData
[
'signupstats'
]
:
null
));
$this
->
show_formular_helper_input
(
'Vorname'
,
'forname'
,
$bachelorData
[
'forname'
],
''
);
$this
->
show_formular_helper_input
(
'Vorname'
,
'forname'
,
$bachelorData
[
'forname'
],
''
,
'width:47%; float:left;'
);
$this
->
show_formular_helper_input
(
'Nachname'
,
'sirname'
,
$bachelorData
[
'sirname'
],
''
);
$this
->
show_formular_helper_input
(
'Nachname'
,
'sirname'
,
$bachelorData
[
'sirname'
],
''
,
'width:47%; float:right;'
);
$this
->
show_formular_helper_input
(
'Anzeigename'
,
'pseudo'
,
$bachelorData
[
'pseudo'
],
''
);
echo
'<div style="clear:both"></div>'
;
echo
$soft_prot
->
add
(
array
(
'forname'
,
'sirname'
,
'pseudo'
),
$this
->
environment
->
config
[
'invalidChars'
])
->
write
();
$this
->
show_formular_helper_input
(
'Anzeigename'
,
'pseudo'
,
$bachelorData
[
'pseudo'
],
''
,
'width:47%; float:left;'
);
$this
->
show_formular_helper_input
(
'E-Mail-Adresse'
,
'mehl'
,
$bachelorData
[
'mehl'
],
'regelmäßig lesen!'
);
$this
->
show_formular_helper_input
(
'E-Mail-Adresse'
,
'mehl'
,
$bachelorData
[
'mehl'
],
'regelmäßig lesen!'
,
'width:47%; float:right;'
);
$this
->
show_formular_helper_sel
(
'Du bist'
,
'studityp'
,
$this
->
environment
->
oconfig
[
'studitypen'
],
$bachelorData
[
'studityp'
],
''
);
echo
'<div style="clear:both"></div>'
;
$this
->
show_formular_helper_sel
(
'Alter 18+?'
,
'virgin'
,
[
'UNSET'
=>
''
,
'JA'
=>
'Ja'
,
'NEIN'
=>
'Nein'
],
isset
(
$bachelorData
[
'virgin'
])
?
(
$bachelorData
[
'virgin'
]
==
0
?
'JA'
:
'NEIN'
)
:
'UNSET'
,
'Bist du älter als 18 Jahre?'
);
$this
->
show_formular_helper_sel
(
'Essenswunsch'
,
'essen'
,
$this
->
environment
->
oconfig
[
'essen'
],
$bachelorData
[
'essen'
],
'Info für den Koch.'
);
$this
->
show_formular_helper_sel2
(
'Anreise'
,
'anday'
,
array_slice
(
$possible_dates
,
0
,
-
1
),
$bachelorData
[
'anday'
],
'antyp'
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
'antyp'
],
''
);
$this
->
show_formular_helper_sel2
(
'Abreise'
,
'abday'
,
array_slice
(
$possible_dates
,
1
),
$bachelorData
[
'abday'
],
'abtyp'
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
'abtyp'
],
''
);
$this
->
show_formular_helper_sel
(
"Du bist"
,
"studityp"
,
$this
->
environment
->
oconfig
[
'studitypen'
],
$bachelorData
[
"studityp"
],
$this
->
show_formular_helper_sel
(
"Du bist"
,
"studityp"
,
$this
->
environment
->
oconfig
[
'studitypen'
],
$bachelorData
[
"studityp"
],
""
,
'width:4
5
%; float:left;'
);
""
,
'width:4
7
%; float:left;'
);
$this
->
show_formular_helper_sel
(
"Alter 18+?"
,
"virgin"
,
[
'UNSET'
=>
''
,
'JA'
=>
'Ja'
,
'NEIN'
=>
'Nein'
],
$this
->
show_formular_helper_sel
(
"Alter 18+?"
,
"virgin"
,
[
'UNSET'
=>
''
,
'JA'
=>
'Ja'
,
'NEIN'
=>
'Nein'
],
isset
(
$bachelorData
[
'virgin'
])
?
(
$bachelorData
[
'virgin'
]
==
0
?
"JA"
:
"NEIN"
)
:
'UNSET'
,
isset
(
$bachelorData
[
'virgin'
])
?
(
$bachelorData
[
'virgin'
]
==
0
?
"JA"
:
"NEIN"
)
:
'UNSET'
,
"Bist du älter als 18 Jahre?"
,
'width:4
5
%; float:right;margin-right:-6px;'
);
"Bist du älter als 18 Jahre?"
,
'width:4
7
%; float:right;margin-right:-6px;'
);
echo
'<div style="clear:both;"></div>'
;
echo
'<div style="clear:both;"></div>'
;
$this
->
show_formular_helper_sel
(
"Essenswunsch"
,
"essen"
,
$this
->
environment
->
oconfig
[
'essen'
],
$bachelorData
[
"essen"
],
$this
->
show_formular_helper_sel
(
"Essenswunsch"
,
"essen"
,
$this
->
environment
->
oconfig
[
'essen'
],
$bachelorData
[
"essen"
],
"Info für den Koch."
,
'width:4
5
%; float:left;'
);
"Info für den Koch."
,
'width:4
7
%; float:left;'
);
echo
'<div style="clear:both;"></div>'
;
echo
'<div style="clear:both;"></div>'
;
$this
->
show_formular_helper_sel2
(
"Anreise"
,
"anday"
,
array_slice
(
$possible_dates
,
0
,
-
1
),
$bachelorData
[
"anday"
],
$this
->
show_formular_helper_sel2
(
"Anreise"
,
"anday"
,
array_slice
(
$possible_dates
,
0
,
-
1
),
$bachelorData
[
"anday"
],
"antyp"
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
"antyp"
],
""
,
'width:4
5
%; float:left;'
);
"antyp"
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
"antyp"
],
""
,
'width:4
7
%; float:left;'
);
$this
->
show_formular_helper_sel2
(
"Abreise"
,
"abday"
,
array_slice
(
$possible_dates
,
1
),
$bachelorData
[
"abday"
],
$this
->
show_formular_helper_sel2
(
"Abreise"
,
"abday"
,
array_slice
(
$possible_dates
,
1
),
$bachelorData
[
"abday"
],
"abtyp"
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
"abtyp"
],
""
,
'width:4
5
%; float:right;margin-right:-6px;'
);
"abtyp"
,
$this
->
environment
->
oconfig
[
'reisearten'
],
$bachelorData
[
"abtyp"
],
""
,
'width:4
7
%; float:right;margin-right:-6px;'
);
echo
'<div style="clear:both;"></div>
echo
'<div style="clear:both;"></div>
<label>Anmerkung</label>
<label>Anmerkung</label>
<textarea id="comment" name ="comment" rows="3" cols="50">'
.
$bachelorData
[
"comment"
]
.
'</textarea>
<textarea id="comment" name ="comment" rows="3" cols="50">'
.
$bachelorData
[
"comment"
]
.
'</textarea>
<input type="checkbox" name="public" value="public" style="width:40px"><span style="float:left">Anmeldung verstecken</span><br/>
<input type="checkbox" name="public" value="public" style="width:40px" /><span>Anmeldung verstecken</span><br/>
<input type="checkbox" name="disclaimer" value="disclaimer" style="width:40px">
<input type="checkbox" name="disclaimer" value="disclaimer" style="width:40px" />
<span style="float:left"><a style="text-decoration:underline;" target="_blank" href="'
.
$fahrt
->
get
(
'disclaimlink'
)
.
'">Disclaimer</a> gelesen und akzeptiert</span><br/> akzeptieren</span><br/>
<span><a style="text-decoration:underline;" target="_blank" href="'
.
$fahrt
->
get
(
'disclaimlink'
)
.
'">Disclaimer</a> gelesen und akzeptiert</span><br/>
<div style="clear:both"></div>'
;
<div style="clear:both"></div>'
;
$this
->
show_formular_helper_input
(
"Captcha eingeben"
,
"captcha"
,
""
,
""
,
'width:45%; float:left;'
);
$this
->
show_formular_helper_input
(
"Captcha eingeben"
,
"captcha"
,
""
,
""
,
'width:45%; float:left;'
);
echo
'<img src="view/captcha.php" style="float:right; width: 45%;" /><div style="clear:both"></div>
echo
'<img src="view/captcha.php" style="float:right; width: 45%;" />
<div style="clear:both"></div>
<button type="submit" name="submit" id="submit" value="submit">Anmelden!</button>
<button type="submit" name="submit" id="submit" value="submit">Anmelden!</button>
</form>
</form>
</div>'
;
</div>'
;
echo
$soft_prot
->
add
(
array
(
'forname'
,
'sirname'
,
'pseudo'
),
$this
->
environment
->
config
[
'invalidChars'
])
->
write
();
}
}
/**
/**
...
@@ -150,8 +144,9 @@ class FormSignupMethod extends SignupMethod {
...
@@ -150,8 +144,9 @@ class FormSignupMethod extends SignupMethod {
* @param $values2
* @param $values2
* @param $selected2
* @param $selected2
* @param $subtext
* @param $subtext
* @param $style
*/
*/
private
function
show_formular_helper_sel2
(
$name
,
$id
,
$values
,
$selected
,
$id2
,
$values2
,
$selected2
,
$subtext
,
$style
=
null
)
{
private
function
show_formular_helper_sel2
(
$name
,
$id
,
$values
,
$selected
,
$id2
,
$values2
,
$selected2
,
$subtext
,
$style
=
null
)
{
$style
=
(
empty
(
$style
)
?
''
:
'style="'
.
$style
.
'"'
);
$style
=
(
empty
(
$style
)
?
''
:
'style="'
.
$style
.
'"'
);
echo
'<div class="fieldbox" '
.
$style
.
'><label style="text-align:left">'
.
$name
.
'
echo
'<div class="fieldbox" '
.
$style
.
'><label style="text-align:left">'
.
$name
.
'
...
@@ -177,7 +172,7 @@ class FormSignupMethod extends SignupMethod {
...
@@ -177,7 +172,7 @@ class FormSignupMethod extends SignupMethod {
echo
'<div class="fieldbox" '
.
$style
.
'><label for="'
.
$id
.
'">'
.
$name
.
'
echo
'<div class="fieldbox" '
.
$style
.
'><label for="'
.
$id
.
'">'
.
$name
.
'
<span class="small">'
.
$subtext
.
'</span>
<span class="small">'
.
$subtext
.
'</span>
</label><br />
</label><br />
<input type="text" name="'
.
$id
.
'" id="'
.
$id
.
'" value="'
.
$value
.
'" />'
;
<input type="text" name="'
.
$id
.
'" id="'
.
$id
.
'" value="'
.
$value
.
'" />
</div>
'
;
}
}
private
function
show_formular_helper_hidden_input
(
$id
,
$value
)
{
private
function
show_formular_helper_hidden_input
(
$id
,
$value
)
{
...
...
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