Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
François Jacquet
rosariosis
Commits
03920e26
Commit
03920e26
authored
Mar 05, 2020
by
François Jacquet
Browse files
HTML Activity input is required
Format input title + add PopTable
parent
dc5e913d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/Eligibility/AddActivity.php
modules/Eligibility/AddActivity.php
+9
-7
No files found.
modules/Eligibility/AddActivity.php
View file @
03920e26
...
...
@@ -58,23 +58,25 @@ if ( $_REQUEST['search_modfunc'] === 'list' )
DrawHeader
(
''
,
SubmitButton
(
_
(
'Add Activity to Selected Students'
)
)
);
echo
'<br />'
;
//FJ css WPadmin
echo
'<table class="postbox center col1-align-right"><tr><td>'
.
_
(
'Activity'
)
.
'</td>'
;
echo
'<td>'
;
PopTable
(
'header'
,
_
(
'Add Activity'
)
);
$activities_RET
=
DBGet
(
"SELECT ID,TITLE
FROM ELIGIBILITY_ACTIVITIES
WHERE SYEAR='"
.
UserSyear
()
.
"'
AND SCHOOL_ID='"
.
UserSchool
()
.
"'"
);
echo
'<select name="activity_id"><option value="">'
.
_
(
'N/A'
)
.
'</option>'
;
echo
'<label><select name="activity_id" required><option value="">'
.
_
(
'N/A'
)
.
'</option>'
;
foreach
(
(
array
)
$activities_RET
as
$activity
)
{
echo
'<option value="'
.
$activity
[
'ID'
]
.
'">'
.
$activity
[
'TITLE'
]
.
'</option>'
;
}
echo
'</select>'
;
echo
'</td>'
;
echo
'</tr></table><br />'
;
echo
'</select>'
.
FormatInputTitle
(
_
(
'Activity'
)
)
.
'</label>'
;
PopTable
(
'footer'
);
echo
'<br />'
;
}
//FJ fix bug no Search when student already selected
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment