Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AvailabilitySchedule
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
Uni Osnabrück
Plugins
AvailabilitySchedule
Commits
afb685da
Commit
afb685da
authored
1 year ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
drop semester selector
parent
5738fc44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AvailSchedule.class.php
+3
-2
3 additions, 2 deletions
AvailSchedule.class.php
plugin.manifest
+1
-1
1 addition, 1 deletion
plugin.manifest
templates/schedule.php
+3
-18
3 additions, 18 deletions
templates/schedule.php
with
7 additions
and
21 deletions
AvailSchedule.class.php
+
3
−
2
View file @
afb685da
...
...
@@ -39,6 +39,7 @@ class AvailSchedule extends StudipPlugin implements SystemPlugin
function
show_action
()
{
$seminar_id
=
Context
::
getId
();
$semester_id
=
Semester
::
findCurrent
()
->
id
;
if
(
!
$seminar_id
||
!
$GLOBALS
[
'perm'
]
->
have_studip_perm
(
'tutor'
,
$seminar_id
))
{
die
;
...
...
@@ -53,8 +54,8 @@ class AvailSchedule extends StudipPlugin implements SystemPlugin
$template
=
$template_factory
->
open
(
'schedule'
);
$layout
=
$GLOBALS
[
'template_factory'
]
->
open
(
'layouts/base'
);
$template
->
set_layout
(
$layout
);
$template
->
set_attribute
(
'
really
'
,
Request
::
option
(
'
really'
));
$template
->
set_attribute
(
'semester_id'
,
Request
::
option
(
'semester_id'
));
$template
->
set_attribute
(
'
semester_id
'
,
Request
::
option
(
'
semester_id'
,
$semester_id
));
Sidebar
::
get
()
->
addWidget
(
new
SemesterSelectorWidget
(
URLHelper
::
getLink
()
));
echo
$template
->
render
();
}
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
1
−
1
View file @
afb685da
pluginclassname=AvailSchedule
pluginname=AvailabilitySchedule
origin=elan-ev
version=0.3
version=0.3
-os1
studipMinVersion=5.0
studipMaxVersion=5.0.99
This diff is collapsed.
Click to expand it.
templates/schedule.php
+
3
−
18
View file @
afb685da
...
...
@@ -22,38 +22,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr>
<td
class=
"blank"
>
<br/>
<?
$all_semester
=
Semester
::
getAll
();
if
(
!
$really
)
{
?>
<b>
Sie können sich einen sogenannten Verfügbarkeitsplan anzeigen lassen.
<br/>
Es handelt sich dabei um eine Wochenübersicht, worauf sie erkennen können
wieviele ihrer Teilnehmer zu den jeweiligen Zeiten andere Veranstaltungen belegen.
<br/>
<br/>
Klicken Sie auf ein Semester, um sich dafür diesen Verfügbarkeitsplan anzeigen zu lassen:
<br/>
<?
foreach
(
$all_semester
as
$key
=>
$val
)
{
if
(
$val
[
'ende'
]
>=
time
())
{
echo
'<a href="'
.
URLHelper
::
getLink
(
'?really=yes&semester_id='
.
$key
)
.
'">'
.
$val
[
'name'
]
.
'</a>'
;
echo
' | '
;
}
}
?>
</b><br/>
<br/>
<?
}
else
{
flush
();
$plan
=
createPlanData
(
Request
::
get
(
'cid'
),
$all_semester
[
$semester_id
][
'beginn'
]);
$semester
=
Semester
::
find
(
$semester_id
);
$plan
=
createPlanData
(
Request
::
get
(
'cid'
),
$semester
->
beginn
);
if
(
!
$plan
)
{
echo
MessageBox
::
error
(
'Sie können dieses Tool nur nutzen, wenn Sie mehr als 5 Teilnehmer in ihrer Veranstaltung haben!'
);
}
else
{
printTable
(
$plan
,
$
all_
semester
[
$semester_id
][
'
name
'
]
);
printTable
(
$plan
,
$semester
->
name
);
flush
();
echo
"<br/><br/>"
;
printList
(
$plan
);
}
}
?>
<br/>
</td>
...
...
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