|
|
@ -382,93 +382,101 @@ echo Display::input('hidden', 'form_sent', '1'); |
|
|
|
echo Display::input('hidden', 'add_type', null); |
|
|
|
echo Display::input('hidden', 'add_type', null); |
|
|
|
|
|
|
|
|
|
|
|
?> |
|
|
|
?> |
|
|
|
<div class="row"> |
|
|
|
<table border="0" cellpadding="5" cellspacing="0" width="100%"> |
|
|
|
<div class="col-md-5"> |
|
|
|
<tbody> |
|
|
|
<?php if (Usergroup::SOCIAL_CLASS == $data['group_type']) { |
|
|
|
<tr> |
|
|
|
?> |
|
|
|
<td width="40%" align="center"> |
|
|
|
<select name="relation" id="relation"> |
|
|
|
<?php if (Usergroup::SOCIAL_CLASS == $data['group_type']) { |
|
|
|
<option value=""><?php echo get_lang('Relation type selection'); ?></option>
|
|
|
|
?> |
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_ADMIN; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_ADMIN == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<select name="relation" id="relation"> |
|
|
|
<?php echo get_lang('Admin'); ?></option>
|
|
|
|
<option value=""><?php echo get_lang('Relation type selection'); ?></option>
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_READER; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_READER == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_ADMIN; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_ADMIN == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<?php echo get_lang('Reader'); ?></option>
|
|
|
|
<?php echo get_lang('Admin'); ?></option>
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_PENDING_INVITATION; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_PENDING_INVITATION == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_READER; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_READER == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<?php echo get_lang('Pending invitation'); ?></option>
|
|
|
|
<?php echo get_lang('Reader'); ?></option>
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_MODERATOR; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_MODERATOR == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_PENDING_INVITATION; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_PENDING_INVITATION == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<?php echo get_lang('Moderator'); ?></option>
|
|
|
|
<?php echo get_lang('Pending invitation'); ?></option>
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_HRM; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_HRM == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_MODERATOR; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_MODERATOR == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<?php echo get_lang('Human Resources Manager'); ?></option>
|
|
|
|
<?php echo get_lang('Moderator'); ?></option>
|
|
|
|
</select> |
|
|
|
<option value="<?php echo GROUP_USER_PERMISSION_HRM; ?>" <?php echo isset($relation) && GROUP_USER_PERMISSION_HRM == $relation ? 'selected=selected' : ''; ?> >
|
|
|
|
<?php |
|
|
|
<?php echo get_lang('Human Resources Manager'); ?></option>
|
|
|
|
} ?> |
|
|
|
</select> |
|
|
|
|
|
|
|
<?php |
|
|
|
<div class="multiple_select_header"> |
|
|
|
} ?> |
|
|
|
<b><?php echo get_lang('Users on platform'); ?> :</b>
|
|
|
|
|
|
|
|
<?php echo get_lang('First letter (last name)'); ?> :
|
|
|
|
<div class="multiple_select_header"> |
|
|
|
<select id="first_letter_user" name="firstLetterUser" onchange="change_select();"> |
|
|
|
<b><?php echo get_lang('Users on platform'); ?> :</b>
|
|
|
|
<option value = "%">--</option> |
|
|
|
<?php echo get_lang('First letter (last name)'); ?> :
|
|
|
|
<?php |
|
|
|
<select id="first_letter_user" name="firstLetterUser" onchange="change_select();"> |
|
|
|
echo Display :: get_alphabet_options($first_letter_user); |
|
|
|
<option value = "%">--</option> |
|
|
|
?> |
|
|
|
<?php |
|
|
|
</select> |
|
|
|
echo Display :: get_alphabet_options($first_letter_user); |
|
|
|
</div> |
|
|
|
?> |
|
|
|
<?php |
|
|
|
</select> |
|
|
|
echo Display::select( |
|
|
|
</div> |
|
|
|
'elements_not_in_name', |
|
|
|
<?php |
|
|
|
$elements_not_in, |
|
|
|
echo Display::select( |
|
|
|
'', |
|
|
|
'elements_not_in_name', |
|
|
|
[ |
|
|
|
$elements_not_in, |
|
|
|
'class' => 'form-control', |
|
|
|
'', |
|
|
|
'multiple' => 'multiple', |
|
|
|
[ |
|
|
|
'id' => 'elements_not_in', |
|
|
|
'class' => 'form-control', |
|
|
|
'size' => '15px', |
|
|
|
'multiple' => 'multiple', |
|
|
|
], |
|
|
|
'id' => 'elements_not_in', |
|
|
|
false |
|
|
|
'size' => '15px', |
|
|
|
); |
|
|
|
], |
|
|
|
?> |
|
|
|
false |
|
|
|
<br /> |
|
|
|
); |
|
|
|
<label class="control-label"> |
|
|
|
?> |
|
|
|
<input type="checkbox" <?php if ($user_with_any_group) { |
|
|
|
<br /> |
|
|
|
echo 'checked="checked"'; |
|
|
|
<label class="control-label"> |
|
|
|
} ?> 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) { |
|
|
|
<?php echo get_lang('Users registered in any group'); ?> |
|
|
|
echo 'checked="checked"'; |
|
|
|
</label> |
|
|
|
} ?> onchange="checked_in_no_group(this.checked);" name="user_with_any_group" id="user_with_any_group_id"> |
|
|
|
</div> |
|
|
|
<?php echo get_lang('Users registered in any group'); ?> |
|
|
|
<div class="col-md-2"> |
|
|
|
</label> |
|
|
|
<div style="padding-top:54px;width:auto;text-align: center;"> |
|
|
|
</td> |
|
|
|
<button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> |
|
|
|
<td width="20%" align="center"> |
|
|
|
<i class="mdi mdi-fast-forward-outline ch-tool-icon"></i> |
|
|
|
<div style="padding-top:54px;width:auto;text-align: center;"> |
|
|
|
</button> |
|
|
|
<button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))" onclick="moveItem(document.getElementById('elements_not_in'), document.getElementById('elements_in'))"> |
|
|
|
<br /><br /> |
|
|
|
<i class="mdi mdi-fast-forward-outline ch-tool-icon"></i> |
|
|
|
<button class="btn btn--plain" 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> |
|
|
|
<i class="mdi mdi-rewind-outline ch-tool-icon"></i> |
|
|
|
<br /><br /> |
|
|
|
</button> |
|
|
|
<button class="btn btn--plain" type="button" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))" onclick="moveItem(document.getElementById('elements_in'), document.getElementById('elements_not_in'))"> |
|
|
|
</div> |
|
|
|
<i class="mdi mdi-rewind-outline ch-tool-icon"></i> |
|
|
|
</div> |
|
|
|
</button> |
|
|
|
<div class="col-md-5"> |
|
|
|
</div> |
|
|
|
<div class="multiple_select_header"> |
|
|
|
</td> |
|
|
|
<b><?php echo get_lang('Users in group'); ?> :</b>
|
|
|
|
<td width="40%" align="center"> |
|
|
|
</div> |
|
|
|
<div class="multiple_select_header"> |
|
|
|
<?php |
|
|
|
<b><?php echo get_lang('Users in group'); ?> :</b>
|
|
|
|
echo Display::select( |
|
|
|
</div> |
|
|
|
'elements_in_name[]', |
|
|
|
<?php |
|
|
|
$elements_in, |
|
|
|
echo Display::select( |
|
|
|
'', |
|
|
|
'elements_in_name[]', |
|
|
|
[ |
|
|
|
$elements_in, |
|
|
|
'class' => 'form-control', |
|
|
|
'', |
|
|
|
'multiple' => 'multiple', |
|
|
|
[ |
|
|
|
'id' => 'elements_in', |
|
|
|
'class' => 'form-control', |
|
|
|
'size' => '15px', |
|
|
|
'multiple' => 'multiple', |
|
|
|
], |
|
|
|
'id' => 'elements_in', |
|
|
|
false |
|
|
|
'size' => '15px', |
|
|
|
); |
|
|
|
], |
|
|
|
?> |
|
|
|
false |
|
|
|
</div> |
|
|
|
); |
|
|
|
</div> |
|
|
|
?> |
|
|
|
<?php |
|
|
|
</td> |
|
|
|
echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" ><em class="fa fa-check"></em>'. |
|
|
|
</tr> |
|
|
|
get_lang('Subscribe users to class').'</button>'; |
|
|
|
<tr> |
|
|
|
?> |
|
|
|
<td colspan="3" align="center"> |
|
|
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
echo '<button class="btn btn--primary" type="button" value="" onclick="valide()" ><em class="fa fa-check"></em>'. |
|
|
|
|
|
|
|
get_lang('Subscribe users to class').'</button>'; |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
</tbody> |
|
|
|
|
|
|
|
</table> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
function moveItem(origin , destination) { |
|
|
|
function moveItem(origin , destination) { |
|
|
|