|
|
|
@ -1248,7 +1248,7 @@ function getWorkListStudent( |
|
|
|
|
$where_condition |
|
|
|
|
"; |
|
|
|
|
|
|
|
|
|
$sql .= " ORDER BY $column $direction "; |
|
|
|
|
$sql .= " ORDER BY `$column` $direction "; |
|
|
|
|
|
|
|
|
|
if (!empty($start) && !empty($limit)) { |
|
|
|
|
$sql .= " LIMIT $start, $limit"; |
|
|
|
@ -1449,7 +1449,7 @@ function getAllWorkListStudent( |
|
|
|
|
$where |
|
|
|
|
"; |
|
|
|
|
|
|
|
|
|
$sql .= " ORDER BY $column $direction "; |
|
|
|
|
$sql .= " ORDER BY `$column` $direction "; |
|
|
|
|
|
|
|
|
|
if (!empty($start) && !empty($limit)) { |
|
|
|
|
$sql .= " LIMIT $start, $limit"; |
|
|
|
@ -1614,7 +1614,7 @@ function getWorkListTeacher( |
|
|
|
|
parent_id = 0 AND |
|
|
|
|
post_group_id = $groupIid |
|
|
|
|
$where_condition |
|
|
|
|
ORDER BY $column $direction |
|
|
|
|
ORDER BY `$column` $direction |
|
|
|
|
LIMIT $start, $limit"; |
|
|
|
|
$result = Database::query($sql);*/ |
|
|
|
|
|
|
|
|
@ -1852,7 +1852,7 @@ function get_work_user_list_from_documents( |
|
|
|
|
return $result['count']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$sql .= " ORDER BY $column $direction"; |
|
|
|
|
$sql .= " ORDER BY `$column` $direction"; |
|
|
|
|
$sql .= " LIMIT $start, $limit"; |
|
|
|
|
|
|
|
|
|
$result = Database::query($sql); |
|
|
|
@ -2117,7 +2117,7 @@ function get_work_user_list( |
|
|
|
|
$whereCondition |
|
|
|
|
$condition_session |
|
|
|
|
AND u.status != ".INVITEE." |
|
|
|
|
ORDER BY $column $direction"; |
|
|
|
|
ORDER BY `$column` $direction"; |
|
|
|
|
|
|
|
|
|
if (!empty($start) && !empty($limit)) { |
|
|
|
|
$sql .= " LIMIT $start, $limit"; |
|
|
|
@ -2647,7 +2647,7 @@ function getAllWork( |
|
|
|
|
$statusCondition |
|
|
|
|
AND u.status != ".INVITEE; |
|
|
|
|
|
|
|
|
|
$sql .= " ORDER BY $column $direction "; |
|
|
|
|
$sql .= " ORDER BY `$column` $direction "; |
|
|
|
|
|
|
|
|
|
if (!empty($start) && !empty($limit)) { |
|
|
|
|
$sql .= " LIMIT $start, $limit"; |
|
|
|
@ -5805,7 +5805,7 @@ function getWorkUserList($courseCode, $sessionId, $groupId, $start, $limit, $sid |
|
|
|
|
|
|
|
|
|
if (!empty($sidx) && !empty($sord)) { |
|
|
|
|
if (in_array($sidx, ['firstname', 'lastname'])) { |
|
|
|
|
$orderBy = "ORDER BY $sidx $sord"; |
|
|
|
|
$orderBy = "ORDER BY `$sidx` $sord"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|