|
|
|
|
@ -60,7 +60,8 @@ if (is_array($extra_field_list)) { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function search_users($needle, $type) { |
|
|
|
|
function search_users($needle, $type) |
|
|
|
|
{ |
|
|
|
|
global $tbl_user,$tbl_session_rel_user,$id_session; |
|
|
|
|
$xajax_response = new XajaxResponse(); |
|
|
|
|
$return = ''; |
|
|
|
|
@ -82,7 +83,7 @@ function search_users($needle, $type) { |
|
|
|
|
$cond_user_id = ''; |
|
|
|
|
|
|
|
|
|
//Only for single & multiple |
|
|
|
|
if (in_array($type, array('single','multiple'))) |
|
|
|
|
if (in_array($type, array('single','multiple'))) { |
|
|
|
|
if (!empty($id_session)) { |
|
|
|
|
$id_session = intval($id_session); |
|
|
|
|
// check id_user from session_rel_user table |
|
|
|
|
@ -98,6 +99,7 @@ function search_users($needle, $type) { |
|
|
|
|
$cond_user_id = ' AND user.user_id NOT IN('.implode(",",$user_ids).')'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch($type) { |
|
|
|
|
case 'single': |
|
|
|
|
@ -560,7 +562,8 @@ if (!empty($errorMsg)) { |
|
|
|
|
</form> |
|
|
|
|
<script> |
|
|
|
|
<!-- |
|
|
|
|
function moveItem(origin , destination){ |
|
|
|
|
function moveItem(origin , destination) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
for (var i = 0 ; i<origin.options.length ; i++) { |
|
|
|
|
if (origin.options[i].selected) { |
|
|
|
|
@ -574,7 +577,8 @@ function moveItem(origin , destination){ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function sortOptions(options) { |
|
|
|
|
function sortOptions(options) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
newOptions = new Array(); |
|
|
|
|
for (i = 0 ; i<options.length ; i++) |
|
|
|
|
@ -587,7 +591,8 @@ function sortOptions(options) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function mysort(a, b){ |
|
|
|
|
function mysort(a, b) |
|
|
|
|
{ |
|
|
|
|
if (a.text.toLowerCase() > b.text.toLowerCase()) { |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
@ -597,7 +602,8 @@ function mysort(a, b){ |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function valide(){ |
|
|
|
|
function valide() |
|
|
|
|
{ |
|
|
|
|
var options = document.getElementById('destination_users').options; |
|
|
|
|
for (i = 0 ; i<options.length ; i++) |
|
|
|
|
options[i].selected = true; |
|
|
|
|
@ -605,7 +611,8 @@ function valide(){ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function loadUsersInSelect(select){ |
|
|
|
|
function loadUsersInSelect(select) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
var xhr_object = null; |
|
|
|
|
|
|
|
|
|
@ -636,7 +643,8 @@ function loadUsersInSelect(select){ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function makepost(select){ |
|
|
|
|
function makepost(select) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
var options = select.options; |
|
|
|
|
var ret = ""; |
|
|
|
|
|