Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fsfahrttool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
fsini-informatik
fsfahrttool
Commits
1e684824
Commit
1e684824
authored
10 years ago
by
Tim Repke
Browse files
Options
Downloads
Patches
Plain Diff
admin list: toggle now works, also shortend an/abtyp in table to array key to reduce width
parent
ea994218
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
registration-system/admin/pages_list.php
+8
-8
8 additions, 8 deletions
registration-system/admin/pages_list.php
with
8 additions
and
8 deletions
registration-system/admin/pages_list.php
+
8
−
8
View file @
1e684824
...
...
@@ -7,7 +7,7 @@
*/
global
$text
,
$headers
,
$admin_db
,
$config_current_fahrt_id
,
$ajax
,
$config_studitypen
,
$config_essen
,
$config_reisearten
;
global
$text
,
$headers
,
$admin_db
,
$config_current_fahrt_id
,
$ajax
,
$config_studitypen
,
$config_essen
,
$config_reisearten
,
$config_essen_o
,
$config_reisearten_o
;
$ecols
=
[
"forname"
=>
function
(
$d
){
return
$d
;
},
...
...
@@ -220,18 +220,18 @@ $columnFunctions = array(
//,"FahrtID" => function($person) { return $person["fahrt_id"]; }
,
"Anmeldung"
=>
function
(
$person
)
{
return
date
(
"d.m.Y"
,
$person
[
'anm_time'
]);
},
"Name"
=>
function
(
$person
)
{
return
"<a href='mailto:"
.
$person
[
"mehl"
]
.
"?subject=FS-Fahrt'>"
.
$person
[
"forname"
]
.
" "
.
$person
[
"sirname"
]
.
" ("
.
$person
[
"pseudo"
]
.
")</a>"
;
},
"Anreisetyp"
=>
function
(
$person
)
{
return
$person
[
"antyp"
]
;
},
"Abreisetyp"
=>
function
(
$person
)
{
return
$person
[
"abtyp"
]
;
},
"Anreisetyp"
=>
function
(
$person
)
{
global
$config_reisearten_o
;
return
array_search
(
$person
[
"antyp"
],
$config_reisearten_o
)
;
},
"Abreisetyp"
=>
function
(
$person
)
{
global
$config_reisearten_o
;
return
array_search
(
$person
[
"abtyp"
],
$config_reisearten_o
)
;
},
"Anreisetag"
=>
function
(
$person
)
{
return
comm_from_mysqlDate
(
$person
[
"anday"
]);
},
"Abreisetag"
=>
function
(
$person
)
{
return
comm_from_mysqlDate
(
$person
[
"abday"
]);
},
"Kommentar"
=>
function
(
$person
)
{
return
$person
[
"comment"
];
},
"StudiTyp"
=>
function
(
$person
)
{
return
$person
[
"studityp"
];
},
"Essen"
=>
function
(
$person
)
{
return
$person
[
"essen"
]
;
},
"Essen"
=>
function
(
$person
)
{
global
$config_essen_o
;
return
array_search
(
$person
[
"essen"
],
$config_essen_o
)
;
},
"18+"
=>
function
(
$person
)
{
return
((
$person
[
"virgin"
]
==
0
)
?
"Ja"
:
"Nein"
);
},
"PaidReBack"
=>
function
(
$person
)
{
return
(
$person
[
"paid"
]
?
$person
[
"paid"
]
:
"0"
)
.
","
.
(
$person
[
"repaid"
]
?
$person
[
"repaid"
]
:
"0"
)
.
","
.
(
$person
[
"backstepped"
]
?
$person
[
"backstepped"
]
:
"0"
);
}
);
$text
.
=
"Toggle Column "
;
$text
.
=
"Toggle Column
:
"
;
$tcnt
=
0
;
foreach
(
$columnFunctions
as
$key
=>
$value
){
$text
.
=
'<a class="toggle-vis" data-column="'
.
$tcnt
.
'">'
.
$key
.
'</a> - '
;
...
...
@@ -240,7 +240,7 @@ foreach($columnFunctions as $key => $value){
$text
.
=
"<br />"
;
$text
.
=
<<<END
<table id="mlist">
<table id="mlist"
class="compact hover"
>
<thead>
<tr>
END;
...
...
@@ -293,9 +293,9 @@ $text .=<<<END
return ((tmp[0]==0) ? '0' : '1') + ((tmp[1]==0) ? '0' : '1') + ((tmp[2]==0) ? '0' : '1');
}
} );
var ltab;
$(document).ready(function(){
var
ltab = $('#mlist').
d
ataTable({
ltab = $('#mlist').
D
ataTable({
"columnDefs": [
{ type: 'link', targets: 2 },
{ type: 'link', targets: 0 },
...
...
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