?> :</b></td> </tr> <?php if ($add_type == 'multiple') { ?> <tr><td width="45%" align="center"> <?php echo get_lang('FirstLetterCourse'); ?> : <select name="firstLetterCourse" onchange = "xajax_search_courses(this.value,'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options(); echo Display::get_numeric_options(0, 9, ''); ?> </select> </td> <td> </td></tr> <?php } ?> <tr> <td width="45%" align="center"> <?php if (!($add_type == 'multiple')) { ?> <input type="text" id="course_to_add" onkeyup="xajax_search_courses(this.value,'single')" /> <div id="ajax_list_courses_single"></div>
</td> <td width="20%"> </td> <td width="40%" align="center"> <b><?php echo get_lang('CourseList'); ?> :</b> <br/><br/> <?php echo get_lang('FirstLetterCourse'); ?> : <select name="firstLetterCourse" onchange="javascript:document.formulaire.form_sent.value='2'; document.formulaire.submit();"> <option value="">--</option> <?php echo Display::get_alphabet_options($first_letter_course); ?> </select> </td> </tr> <tr> <td width="40%" align="center"> <select name="UserList[]" multiple="multiple" size="20" style="width:300px;"> <?php foreach ($db_users as $user) { ?> <option value="<?php echo $user['user_id']; ?> " <?php if (in_array($user['user_id'], $users)) {
</div> <div class="col-md-4"> <div class="code-course"> <?php if ($add_type == 'multiple') { ?> <p><?php echo get_lang('FirstLetterUser'); ?> </p> <select class="selectpicker show-tick form-control" name="firstLetterUser" onchange = "xajax_search_users(this.value,'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options($firstLetterUser); ?> </select> <?php } ?> </div> <div class="control-course"> <?php if ($ajax_search) { ?> <div class="separate-action"> <button class="btn btn-primary" type="button" onclick="remove_item(document.getElementById('destination'))"></button> </div> <?php } else {
?> : </b></td> </tr> <?php if ($add_type == 'multiple') { ?> <tr><td width="45%" align="center"> <?php echo get_lang('FirstLetterSession'); ?> : <select name="firstLetterSession" onchange = "xajax_search_sessions(this.value, 'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options($_POST['firstLetterSession']); ?> </select> </td> <td> </td></tr> <?php } ?> <tr> <td width="45%" align="center"> <div id="ajax_list_sessions_multiple"> <select id="origin" name="NoAssignedSessionsList[]" multiple="multiple" size="20" style="width:340px;"> <?php while ($enreg = Database::fetch_array($result)) { ?> <option value="<?php
} ?> <div class="multiple_select_header"> <b><?php echo get_lang('UsersInPlatform'); ?> :</b> <?php echo get_lang('FirstLetterUser'); ?> : <select id="first_letter_user" name="firstLetterUser" onchange="change_select();"> <option value = "%">--</option> <?php echo Display::get_alphabet_options($first_letter_user); ?> </select> </div> <?php echo Display::select('elements_not_in_name', $elements_not_in, '', array('class' => 'col-md-7', 'multiple' => 'multiple', 'id' => 'elements_not_in', 'size' => '15px'), false); ?> <br /> <label class="control-label"> <input type="checkbox" <?php if ($user_with_any_group) { echo 'checked="checked"'; } ?> onchange="checked_in_no_group(this.checked);" name="user_with_any_group" id="user_with_any_group_id"> <?php
</select> </div> </div> <div class="col-md-4"> <div class="code-course"> <?php if ($add_type == 'multiple') { ?> <p><?php echo get_lang('FirstLetterSession'); ?> :</p> <select class="selectpicker form-control" name="firstLetterSession" onchange = "xajax_search_sessions(this.value, 'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options($firstLetterSession); ?> </select> <?php } ?> </div> <div class="control-course"> <?php if ($ajax_search) { ?> <div class="separate-action"> <button class="btn btn-primary" type="button" onclick="remove_item(document.getElementById('destination'))"> <em class="fa fa-arrow-left"></em> </button> </div>
</td> <td width="20%"> </td> <td width="40%" align="center"> <b><?php echo get_lang('UsersInsideClass'); ?> :</b> <br/><br/> <?php echo get_lang('FirstLetterUser'); ?> : <select name="firstLetterRight" onchange="javascript:document.formulaire.formSent.value='2'; document.formulaire.submit();"> <option value="">--</option> <?php echo Display::get_alphabet_options($first_letter_right); ?> </select> </td> </tr> <tr> <td width="40%" align="center"> <select name="LeftUserList[]" multiple="multiple" size="20" style="width:230px;"> <?php foreach ($left_users as $user) { ?> <option value="<?php echo $user['user_id']; ?> " <?php if (in_array($user['user_id'], $left_user_list)) {
?> <tr> <td align="center"> <?php echo get_lang('FirstLetterUser'); ?> : <div id="firstLetter"> <select name="firstLetterUser" id="firstLetterUser" onchange = "xajax_search_users(this.value,'multiple',document.getElementById('relation').value)" > <option value = "%"><?php echo get_lang('All'); ?> </option> <?php $selected_letter = isset($_POST['firstLetterUser']) ? $_POST['firstLetterUser'] : null; echo Display::get_alphabet_options($selected_letter); ?> </select> </div> </td> <td align="center"> </td> </tr> <?php } ?> <tr> <td align="center"> <div id="content_source"> <?php if (!($add_type == 'multiple')) { ?>
$form .= Display::return_message($errorMsg, 'error'); //main API } $form .= '<table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <td align="center"><b>' . get_lang('Friends') . ' :</b> </td> <td></td> <td align="center"><b>' . get_lang('SendInvitationTo') . ':</b></td></tr>'; if ($add_type == 'no') { $form .= ' <tr> <td align="center">' . get_lang('FirstLetterUser') . ' : <select name="firstLetterUser" onchange = "xajax_search_users(this.value,\'multiple\')" > <option value = "%">--</option> ' . Display::get_alphabet_options() . ' </select> </td> <td align="center"> </td> </tr>'; } $form .= ' <tr> <td align="center"> <div id="content_source">'; if (!($add_type == 'multiple')) { $form .= '<input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,\'single\')" /><div id="ajax_list_users_single"></div>'; } else { $form .= '<div id="ajax_list_users_multiple"> <select id="origin_users" name="nosessionUsersList[]" multiple="multiple" size="15" style="width:290px;">'; foreach ($nosessionUsersList as $enreg) {
?> :</b></td> </tr> <?php if ($add_type == 'multiple') { ?> <tr><td width="45%" align="center"> <?php echo get_lang('FirstLetterCourse'); ?> : <select name="firstLetterCourse" onchange = "xajax_search_courses(this.value,'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options($_POST['firstLetterCourse']); ?> </select> </td> <td> </td></tr> <?php } ?> <tr> <td width="45%" align="center"> <div id="ajax_list_courses_multiple"> <select id="origin" name="NoAssignedCoursesList[]" multiple="multiple" size="20" style="width:340px;"> <?php while ($enreg = Database::fetch_array($result)) { ?> <option value="<?php
?> :</b></td> </tr> <?php if ($add_type == 'multiple') { ?> <tr><td width="45%" align="center"> <?php echo get_lang('FirstLetterUser'); ?> : <select name="firstLetterUser" onchange = "xajax_search_users(this.value,'multiple')"> <option value="%">--</option> <?php echo Display::get_alphabet_options($_POST['firstLetterUser']); ?> </select> </td> <td> </td></tr> <?php } ?> <tr> <td width="45%" align="center"> <div id="ajax_list_users_multiple"> <select id="origin" name="NoAssignedUsersList[]" multiple="multiple" size="20" style="width:340px;"> <?php while ($enreg = Database::fetch_array($result)) { $person_name = api_get_person_name($enreg['firstname'], $enreg['lastname']); ?>