|
|
@ -84,7 +84,6 @@ function change_select(val) { |
|
|
|
|
|
|
|
|
|
|
|
</script>'; |
|
|
|
</script>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$form_sent = 0; |
|
|
|
$form_sent = 0; |
|
|
|
$errorMsg = ''; |
|
|
|
$errorMsg = ''; |
|
|
|
|
|
|
|
|
|
|
@ -94,7 +93,10 @@ if (is_array($extra_field_list)) { |
|
|
|
foreach ($extra_field_list as $extra_field) { |
|
|
|
foreach ($extra_field_list as $extra_field) { |
|
|
|
//if is enabled to filter and is a "<select>" field type |
|
|
|
//if is enabled to filter and is a "<select>" field type |
|
|
|
if ($extra_field[8]==1 && $extra_field[2]==4 ) { |
|
|
|
if ($extra_field[8]==1 && $extra_field[2]==4 ) { |
|
|
|
$new_field_list[] = array('name'=> $extra_field[3], 'variable'=>$extra_field[1], 'data'=> $extra_field[9]); |
|
|
|
$new_field_list[] = array( |
|
|
|
|
|
|
|
'name'=> $extra_field[3], |
|
|
|
|
|
|
|
'variable' => $extra_field[1], 'data'=> $extra_field[9] |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -103,7 +105,7 @@ $usergroup = new UserGroup(); |
|
|
|
$id = intval($_GET['id']); |
|
|
|
$id = intval($_GET['id']); |
|
|
|
$first_letter_user = ''; |
|
|
|
$first_letter_user = ''; |
|
|
|
|
|
|
|
|
|
|
|
if ($_POST['form_sent']) { |
|
|
|
if (isset($_POST['form_sent']) && $_POST['form_sent']) { |
|
|
|
$form_sent = $_POST['form_sent']; |
|
|
|
$form_sent = $_POST['form_sent']; |
|
|
|
$elements_posted = $_POST['elements_in_name']; |
|
|
|
$elements_posted = $_POST['elements_in_name']; |
|
|
|
$first_letter_user = $_POST['firstLetterUser']; |
|
|
|
$first_letter_user = $_POST['firstLetterUser']; |
|
|
@ -129,7 +131,10 @@ if (is_array($extra_field_list)) { |
|
|
|
if (UserManager::is_extra_field_available($new_field['variable'])) { |
|
|
|
if (UserManager::is_extra_field_available($new_field['variable'])) { |
|
|
|
if (isset($_POST[$varname]) && $_POST[$varname]!='0') { |
|
|
|
if (isset($_POST[$varname]) && $_POST[$varname]!='0') { |
|
|
|
$use_extra_fields = true; |
|
|
|
$use_extra_fields = true; |
|
|
|
$extra_field_result[]= UserManager::get_extra_user_data_by_value($new_field['variable'], $_POST[$varname]); |
|
|
|
$extra_field_result[] = UserManager::get_extra_user_data_by_value( |
|
|
|
|
|
|
|
$new_field['variable'], |
|
|
|
|
|
|
|
$_POST[$varname] |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -210,18 +215,13 @@ if (!empty($user_list)) { |
|
|
|
|
|
|
|
|
|
|
|
$add_type == 'unique' ? true : false; |
|
|
|
$add_type == 'unique' ? true : false; |
|
|
|
Display::display_header($tool_name); |
|
|
|
Display::display_header($tool_name); |
|
|
|
if ($add_type == 'multiple') { |
|
|
|
|
|
|
|
$link_add_type_unique = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=unique">'.Display::return_icon('single.gif').get_lang('SessionAddTypeUnique').'</a>'; |
|
|
|
|
|
|
|
$link_add_type_multiple = Display::return_icon('multiple.gif').get_lang('SessionAddTypeMultiple'); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$link_add_type_unique = Display::return_icon('single.gif').get_lang('SessionAddTypeUnique'); |
|
|
|
|
|
|
|
$link_add_type_multiple = '<a href="'.api_get_self().'?id_session='.$id_session.'&add='.Security::remove_XSS($_GET['add']).'&add_type=multiple">'.Display::return_icon('multiple.gif').get_lang('SessionAddTypeMultiple').'</a>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div class="actions">'; |
|
|
|
echo '<div class="actions">'; |
|
|
|
echo '<a href="usergroups.php">'.Display::return_icon('back.png',get_lang('Back'), array(), ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
echo '<a href="usergroups.php">'. |
|
|
|
|
|
|
|
Display::return_icon('back.png', get_lang('Back'), array(), ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
|
|
|
|
|
|
|
echo '<a href="usergroup_user_import.php">'.Display::return_icon('import_csv.png',get_lang('Import'), array(), ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
echo '<a href="usergroup_user_import.php">'. |
|
|
|
|
|
|
|
Display::return_icon('import_csv.png', get_lang('Import'), array(), ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
echo '</div>'; |
|
|
|
?> |
|
|
|
?> |
|
|
@ -261,7 +261,6 @@ echo Display::input('hidden','add_type',null); |
|
|
|
if (!empty($errorMsg)) { |
|
|
|
if (!empty($errorMsg)) { |
|
|
|
Display::display_normal_message($errorMsg); |
|
|
|
Display::display_normal_message($errorMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -276,8 +275,15 @@ if(!empty($errorMsg)) { |
|
|
|
?> |
|
|
|
?> |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<?php |
|
|
|
<?php echo Display::select('elements_not_in_name', $elements_not_in, '',array('class'=>'span5', 'multiple'=>'multiple','id'=>'elements_not_in','size'=>'15px'),false); ?> |
|
|
|
echo Display::select( |
|
|
|
|
|
|
|
'elements_not_in_name', |
|
|
|
|
|
|
|
$elements_not_in, |
|
|
|
|
|
|
|
'', |
|
|
|
|
|
|
|
array('class'=>'span5', 'multiple'=>'multiple','id'=>'elements_not_in','size'=>'15px'), |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
?> |
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<label class="control-label"> |
|
|
|
<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">
|
|
|
|
<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">
|
|
|
@ -286,25 +292,33 @@ if(!empty($errorMsg)) { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="span2"> |
|
|
|
<div class="span2"> |
|
|
|
<div style="padding-top:54px;width:auto;text-align: center;"> |
|
|
|
<div style="padding-top:54px;width:auto;text-align: center;"> |
|
|
|
<button class="arrowr" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"></button> |
|
|
|
<button class="arrowr" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> |
|
|
|
|
|
|
|
</button> |
|
|
|
<br /><br /> |
|
|
|
<br /><br /> |
|
|
|
<button class="arrowl" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"></button> |
|
|
|
<button class="arrowl" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"> |
|
|
|
|
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="span5"> |
|
|
|
<div class="span5"> |
|
|
|
<div class="multiple_select_header"> |
|
|
|
<div class="multiple_select_header"> |
|
|
|
|
|
|
|
|
|
|
|
<b><?php echo get_lang('UsersInGroup') ?> :</b>
|
|
|
|
<b><?php echo get_lang('UsersInGroup') ?> :</b>
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
echo Display::select('elements_in_name[]', $elements_in, '', array('class'=>'span5', 'multiple'=>'multiple','id'=>'elements_in','size'=>'15px'),false ); |
|
|
|
echo Display::select( |
|
|
|
|
|
|
|
'elements_in_name[]', |
|
|
|
|
|
|
|
$elements_in, |
|
|
|
|
|
|
|
'', |
|
|
|
|
|
|
|
array('class'=>'span5', 'multiple'=>'multiple','id'=>'elements_in','size'=>'15px'), |
|
|
|
|
|
|
|
false |
|
|
|
|
|
|
|
); |
|
|
|
unset($sessionUsersList); |
|
|
|
unset($sessionUsersList); |
|
|
|
?> |
|
|
|
?> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<?php |
|
|
|
<?php |
|
|
|
echo '<button class="save" type="button" value="" onclick="valide()" >'.get_lang('SubscribeUsersToClass').'</button>'; |
|
|
|
echo '<button class="save" type="button" value="" onclick="valide()" >'. |
|
|
|
|
|
|
|
get_lang('SubscribeUsersToClass').'</button>'; |
|
|
|
?> |
|
|
|
?> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|