|
|
|
@ -462,99 +462,73 @@ if ($add_type=='multiple') { |
|
|
|
|
<input type="hidden" name="add_type" /> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
if(!empty($errorMsg)) { |
|
|
|
|
if (!empty($errorMsg)) { |
|
|
|
|
Display::display_normal_message($errorMsg); //main API |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="span5"> |
|
|
|
|
<div class="multiple_select_header"> |
|
|
|
|
<b><?php echo get_lang('UserListInPlatform') ?> :</b>
|
|
|
|
|
|
|
|
|
|
<?php if ($add_type=='multiple') { ?> |
|
|
|
|
<?php echo get_lang('FirstLetterUser'); ?> :
|
|
|
|
|
<select id="first_letter_user" name="firstLetterUser" onchange = "change_select(this.value);" > |
|
|
|
|
<option value = "%">--</option> |
|
|
|
|
<?php |
|
|
|
|
echo Display :: get_alphabet_options(); |
|
|
|
|
?> |
|
|
|
|
</select> |
|
|
|
|
<?php } ?> |
|
|
|
|
</div> |
|
|
|
|
<div id="content_source"> |
|
|
|
|
<?php |
|
|
|
|
if (!($add_type=='multiple')) { |
|
|
|
|
?> |
|
|
|
|
<input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" /> |
|
|
|
|
<div id="ajax_list_users_single"></div> |
|
|
|
|
<?php |
|
|
|
|
} else { |
|
|
|
|
?> |
|
|
|
|
<div id="ajax_list_users_multiple"> |
|
|
|
|
<select id="origin_users" name="nosessionUsersList[]" multiple="multiple" size="15" class="span5"> |
|
|
|
|
<?php |
|
|
|
|
foreach ($nosessionUsersList as $uid => $enreg) { |
|
|
|
|
?> |
|
|
|
|
<option value="<?php echo $uid; ?>" <?php if(in_array($uid,$UserList)) echo 'selected="selected"'; ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
<input type="checkbox" onchange="checked_in_no_session(this.checked);" name="user_with_any_session" id="user_with_any_session_id"> |
|
|
|
|
<label for="user_with_any_session_id"><?php echo get_lang('UsersRegisteredInNoSession'); ?></label>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
unset($nosessionUsersList); |
|
|
|
|
?> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<table border="0" cellpadding="5" cellspacing="0" width="100%"> |
|
|
|
|
<!-- Users --> |
|
|
|
|
<tr> |
|
|
|
|
<td align="center"><b><?php echo get_lang('UserListInPlatform') ?> :</b>
|
|
|
|
|
</td> |
|
|
|
|
<td></td> |
|
|
|
|
<td align="center"><b><?php echo get_lang('UserListInSession') ?> :</b></td>
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
|
<?php if ($add_type=='multiple') { ?> |
|
|
|
|
<tr> |
|
|
|
|
<td align="center"> |
|
|
|
|
|
|
|
|
|
<?php echo get_lang('FirstLetterUser'); ?> :
|
|
|
|
|
<select id="first_letter_user" name="firstLetterUser" onchange = "change_select(this.value);" > |
|
|
|
|
<option value = "%">--</option> |
|
|
|
|
<div class="span2"> |
|
|
|
|
<div style="padding-top:54px;width:auto;text-align: center;"> |
|
|
|
|
<?php |
|
|
|
|
echo Display :: get_alphabet_options(); |
|
|
|
|
?> |
|
|
|
|
</select> |
|
|
|
|
</td> |
|
|
|
|
<td align="center"> </td> |
|
|
|
|
</tr> |
|
|
|
|
<?php } ?> |
|
|
|
|
<tr> |
|
|
|
|
<td align="center"> |
|
|
|
|
<div id="content_source"> |
|
|
|
|
<?php |
|
|
|
|
if (!($add_type=='multiple')) { |
|
|
|
|
?> |
|
|
|
|
<input type="text" id="user_to_add" onkeyup="xajax_search_users(this.value,'single')" /> |
|
|
|
|
<div id="ajax_list_users_single"></div> |
|
|
|
|
<?php |
|
|
|
|
} else { |
|
|
|
|
?> |
|
|
|
|
<div id="ajax_list_users_multiple"> |
|
|
|
|
<select id="origin_users" name="nosessionUsersList[]" multiple="multiple" size="15" style="width:380px;"> |
|
|
|
|
<?php |
|
|
|
|
foreach ($nosessionUsersList as $uid => $enreg) { |
|
|
|
|
?> |
|
|
|
|
<option value="<?php echo $uid; ?>" <?php if(in_array($uid,$UserList)) echo 'selected="selected"'; ?>><?php echo api_get_person_name($enreg['fn'], $enreg['ln']).' ('.$enreg['un'].')'; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
<input type="checkbox" onchange="checked_in_no_session(this.checked);" name="user_with_any_session" id="user_with_any_session_id"> |
|
|
|
|
<label for="user_with_any_session_id"><?php echo get_lang('UsersRegisteredInNoSession'); ?></label>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
unset($nosessionUsersList); |
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</td> |
|
|
|
|
<td width="10%" valign="middle" align="center"> |
|
|
|
|
<?php |
|
|
|
|
if ($ajax_search) { |
|
|
|
|
?> |
|
|
|
|
<button class="arrowl" type="button" onclick="remove_item(document.getElementById('destination_users'))" ></button> |
|
|
|
|
<?php |
|
|
|
|
} else { |
|
|
|
|
?> |
|
|
|
|
<button class="arrowr" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))"></button> |
|
|
|
|
<br /><br /> |
|
|
|
|
<button class="arrowl" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))"></button> |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
<br /><br /><br /><br /><br /><br /> |
|
|
|
|
</td> |
|
|
|
|
<td align="center"> |
|
|
|
|
<select id="destination_users" name="sessionUsersList[]" multiple="multiple" size="15" style="width:380px;"> |
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
|
foreach($sessionUsersList as $enreg) { |
|
|
|
|
?> |
|
|
|
|
<option value="<?php echo $enreg['user_id']; ?>"><?php echo api_get_person_name($enreg['firstname'], $enreg['lastname']).' ('.$enreg['username'].')'; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
unset($sessionUsersList); |
|
|
|
|
?> |
|
|
|
|
if ($ajax_search) { |
|
|
|
|
?> |
|
|
|
|
<button class="arrowl" type="button" onclick="remove_item(document.getElementById('destination_users'))" ></button> |
|
|
|
|
<?php |
|
|
|
|
} else { |
|
|
|
|
?> |
|
|
|
|
<button class="arrowr" type="button" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))" onclick="moveItem(document.getElementById('origin_users'), document.getElementById('destination_users'))"></button> |
|
|
|
|
<br /><br /> |
|
|
|
|
<button class="arrowl" type="button" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))" onclick="moveItem(document.getElementById('destination_users'), document.getElementById('origin_users'))"></button> |
|
|
|
|
|
|
|
|
|
</select></td> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td colspan="3" align="center"> |
|
|
|
|
<br /> |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
</div> |
|
|
|
|
<br /> |
|
|
|
|
<br /> |
|
|
|
|
<?php |
|
|
|
|
if(isset($_GET['add'])) { |
|
|
|
|
echo '<button class="save" type="button" value="" onclick="valide()" >'.get_lang('FinishSessionCreation').'</button>'; |
|
|
|
@ -564,12 +538,26 @@ unset($sessionUsersList); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
</td> |
|
|
|
|
</tr> |
|
|
|
|
</table> |
|
|
|
|
</form> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
<div class="span5"> |
|
|
|
|
<div class="multiple_select_header"> |
|
|
|
|
<b><?php echo get_lang('UserListInSession') ?> :</b>
|
|
|
|
|
</div> |
|
|
|
|
<select id="destination_users" name="sessionUsersList[]" multiple="multiple" size="15" class="span5"> |
|
|
|
|
<?php |
|
|
|
|
foreach($sessionUsersList as $enreg) { |
|
|
|
|
?> |
|
|
|
|
<option value="<?php echo $enreg['user_id']; ?>"><?php echo api_get_person_name($enreg['firstname'], $enreg['lastname']).' ('.$enreg['username'].')'; ?></option>
|
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
unset($sessionUsersList); |
|
|
|
|
?> |
|
|
|
|
</select> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</form> |
|
|
|
|
<script> |
|
|
|
|
<!-- |
|
|
|
|
function moveItem(origin , destination){ |
|
|
|
|
|
|
|
|
|