Commit 03920e26 authored by François Jacquet's avatar François Jacquet
Browse files

HTML Activity input is required

Format input title + add PopTable
parent dc5e913d
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment