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
1cd43d41
Commit
1cd43d41
authored
10 years ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
all export functions are working
parent
6a1c7182
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/admin/pages_export.php
+66
-4
66 additions, 4 deletions
registration-system/admin/pages_export.php
with
66 additions
and
4 deletions
registration-system/admin/pages_export.php
+
66
−
4
View file @
1cd43d41
...
@@ -37,7 +37,7 @@ if(isset($_REQUEST['ex'])){
...
@@ -37,7 +37,7 @@ if(isset($_REQUEST['ex'])){
function
genRefRa
(){
function
genRefRa
(){
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
]);
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
,
"ORDER"
=>
"forname ASC"
]);
$tabdata
=
[];
$tabdata
=
[];
foreach
(
$people
as
$p
){
foreach
(
$people
as
$p
){
array_push
(
$tabdata
,
[
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
],
""
,
""
]);
array_push
(
$tabdata
,
[
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
],
""
,
""
]);
...
@@ -67,13 +67,46 @@ ausgelegten Geld für die Fachschaftsfahrt auf das Konto des/der Finanzverantwor
...
@@ -67,13 +67,46 @@ ausgelegten Geld für die Fachschaftsfahrt auf das Konto des/der Finanzverantwor
}
}
function
genTreff
(){
function
genTreff
(){
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
,
"ORDER"
=>
"forname ASC"
]);
$ttabdata
=
[];
foreach
(
$people
as
$p
){
array_push
(
$ttabdata
,
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
]);
}
// leerfelder (just in case)
for
(
$run
=
0
;
$run
<
8
;
$run
++
){
array_push
(
$ttabdata
,
" "
);
}
$tabdata
=
[];
// transpose long list to have multiple columns
for
(
$run
=
0
;
$run
<
count
(
$ttabdata
);
$run
++
){
$c1
=
(
isset
(
$ttabdata
[
$run
])
?
$ttabdata
[
$run
]
:
" "
);
$run
++
;
$c2
=
(
isset
(
$ttabdata
[
$run
])
?
$ttabdata
[
$run
]
:
" "
);
$run
++
;
$c3
=
(
isset
(
$ttabdata
[
$run
])
?
$ttabdata
[
$run
]
:
" "
);
array_push
(
$tabdata
,
[
$c1
,
" "
,
""
,
$c2
,
" "
,
""
,
$c3
,
" "
]);
}
$tabconf
=
[
"colwidth"
=>
[
"20%"
,
"10pt"
,
"1px; margin:0; padding:0; font-size:1pt"
,
"20%"
,
"10pt"
,
"1px; margin:0; padding:0; font-size:1pt"
,
"20%"
,
"10pt"
],
"cellheight"
=>
"25pt"
];
printTable
([
"Name"
,
"X"
,
""
,
"Name"
,
"X"
,
""
,
"Name"
,
"X"
],
$tabdata
,
$tabconf
);
$data
=
getFahrtInfo
();
$header
=
"
<h1>Anwesenheitsliste Treffpunkt</h1>
Liste aller Teilnehmer, die angegeben haben, gemeinsam mit Bus/Bahn anzureisen"
;
$footer
=
"Anwesenheitsliste - "
.
$data
[
'titel'
];
}
}
function
genKonto
(){
function
genKonto
(){
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
]);
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
,
"ORDER"
=>
"forname ASC"
]);
$tabdata
=
[];
$tabdata
=
[];
foreach
(
$people
as
$p
){
foreach
(
$people
as
$p
){
array_push
(
$tabdata
,
[
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
],
" "
,
" "
,
" "
,
" "
]);
array_push
(
$tabdata
,
[
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
],
" "
,
" "
,
" "
,
" "
]);
...
@@ -99,7 +132,33 @@ Diese Liste verbleibt bei dem/der Fahrtverantwortlichen <u>".$data['leiter']."</
...
@@ -99,7 +132,33 @@ Diese Liste verbleibt bei dem/der Fahrtverantwortlichen <u>".$data['leiter']."</
}
}
function
genUnter
(){
function
genUnter
(){
global
$header
,
$footer
,
$admin_db
,
$config_current_fahrt_id
;
$people
=
$admin_db
->
select
(
'bachelor'
,[
"forname"
,
"sirname"
],
[
"fahrt_id"
=>
$config_current_fahrt_id
,
"ORDER"
=>
"forname ASC"
]);
$tabdata
=
[];
foreach
(
$people
as
$p
){
array_push
(
$tabdata
,
[
$p
[
'forname'
]
.
" "
.
$p
[
'sirname'
],
" "
,
" "
]);
}
// leerfelder (just in case)
for
(
$run
=
0
;
$run
<
8
;
$run
++
){
array_push
(
$tabdata
,
[
" "
,
" "
,
" "
]);
}
$tabconf
=
[
"colwidth"
=>
[
"20%"
,
"25%"
,
"55%"
],
"cellheight"
=>
"25pt"
];
printTable
([
"Name"
,
"Unterschrift"
,
" "
],
$tabdata
,
$tabconf
);
$data
=
getFahrtInfo
();
$header
=
"
<h1>TeilnehmerInnenliste</h1>
<h2>Fachschaftsfahrt</h2>
Fachschaft: <u>Informatik</u><br />
Datum der Fahrt: <u>"
.
comm_from_mysqlDate
(
$data
[
'von'
])
.
" - "
.
comm_from_mysqlDate
(
$data
[
'bis'
])
.
"</u><br />
Verantwortlicher: <u>"
.
$data
[
'leiter'
]
.
"</u><br />
Liste aller Teilnehmer der Fachschaftsfahrt in der Einrichtung <u>"
.
$data
[
'ziel'
]
.
"</u>"
;
$footer
=
"TeilnehmerInnenliste - "
.
$data
[
'titel'
];
}
}
function
printTable
(
$headers
,
$data
,
$tabconf
=
[]){
function
printTable
(
$headers
,
$data
,
$tabconf
=
[]){
...
@@ -109,8 +168,11 @@ function printTable($headers, $data, $tabconf = []){
...
@@ -109,8 +168,11 @@ function printTable($headers, $data, $tabconf = []){
<table class='dattable'>
<table class='dattable'>
<thead>
<thead>
<tr>"
;
<tr>"
;
foreach
(
$headers
as
$h
)
$cell
=
0
;
$text
.
=
"<th>"
.
$h
.
"</th>"
;
foreach
(
$headers
as
$h
){
$text
.
=
"<th"
.
cellStyle
(
$tabconf
,
$cell
)
.
">"
.
$h
.
"</th>"
;
$cell
++
;
}
$text
.
=
"
$text
.
=
"
</tr>
</tr>
</thead>
</thead>
...
...
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