inner join tt_users u on (u.id = upb.user_id)
where (u.status = 1 or u.status = 0)
group by u.id
- order by u.name";
+ order by upper(u.name)";
$res = $mdb2->query($sql);
$user_list = array();
if (is_a($res, 'PEAR_Error'))
$mdb2 = getConnection();
if (isset($options['getAllFields']))
- $sql = "select * from tt_users where team_id = $user->team_id and status = 1 order by name";
+ $sql = "select * from tt_users where team_id = $user->team_id and status = 1 order by upper(name)";
else
- $sql = "select id, name from tt_users where team_id = $user->team_id and status = 1 order by name";
+ $sql = "select id, name from tt_users where team_id = $user->team_id and status = 1 order by upper(name)";
$res = $mdb2->query($sql);
$user_list = array();
if (is_a($res, 'PEAR_Error'))
global $user;
$mdb2 = getConnection();
- $sql = "select id, name from tt_users where team_id = $user->team_id and (status = 1 or status = 0) order by name";
+ $sql = "select id, name from tt_users where team_id = $user->team_id and (status = 1 or status = 0) order by upper(name)";
$res = $mdb2->query($sql);
$user_list = array();
if (is_a($res, 'PEAR_Error'))
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_users where team_id = $team_id and status = 0 order by name";
+ $sql = "select * from tt_users where team_id = $team_id and status = 0 order by upper(name)";
else
- $sql = "select id, name from tt_users where team_id = $team_id and status = 0 order by name";
+ $sql = "select id, name from tt_users where team_id = $team_id and status = 0 order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_users where team_id = $team_id order by name";
+ $sql = "select * from tt_users where team_id = $team_id order by upper(name)";
else
- $sql = "select id, name from tt_users where team_id = $team_id order by name";
+ $sql = "select id, name from tt_users where team_id = $team_id order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_projects where team_id = $team_id order by status, name";
+ $sql = "select * from tt_projects where team_id = $team_id order by status, upper(name)";
else
- $sql = "select id, name from tt_projects where team_id = $team_id order by status, name";
+ $sql = "select id, name from tt_projects where team_id = $team_id order by status, upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$result = array();
$mdb2 = getConnection();
- $sql = "select id, name, description from tt_tasks where team_id = $team_id and status = 1 order by name";
+ $sql = "select id, name, description from tt_tasks where team_id = $team_id and status = 1 order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
$sql = "select id, name, description from tt_tasks
- where team_id = $team_id and status = 0 order by name";
+ where team_id = $team_id and status = 0 order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_tasks where team_id = $team_id order by status, name";
+ $sql = "select * from tt_tasks where team_id = $team_id order by status, upper(name)";
else
- $sql = "select id, name from tt_tasks where team_id = $team_id order by status, name";
+ $sql = "select id, name from tt_tasks where team_id = $team_id order by status, upper(name)";
$res = $mdb2->query($sql);
$result = array();
if (!is_a($res, 'PEAR_Error')) {
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_clients where team_id = $team_id and status = 1 order by name";
+ $sql = "select * from tt_clients where team_id = $team_id and status = 1 order by upper(name)";
else
- $sql = "select id, name from tt_clients where team_id = $team_id and status = 1 order by name";
+ $sql = "select id, name from tt_clients where team_id = $team_id and status = 1 order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_clients where team_id = $team_id and status = 0 order by name";
+ $sql = "select * from tt_clients where team_id = $team_id and status = 0 order by upper(name)";
else
- $sql = "select id, name from tt_clients where team_id = $team_id and status = 0 order by name";
+ $sql = "select id, name from tt_clients where team_id = $team_id and status = 0 order by upper(name)";
$res = $mdb2->query($sql);
$result = array();
$mdb2 = getConnection();
if ($all_fields)
- $sql = "select * from tt_clients where team_id = $team_id order by status, name";
+ $sql = "select * from tt_clients where team_id = $team_id order by status, upper(name)";
else
- $sql = "select id, name from tt_clients where team_id = $team_id order by status, name";
+ $sql = "select id, name from tt_clients where team_id = $team_id order by status, upper(name)";
$res = $mdb2->query($sql);
$result = array();