diff --git a/media/js/testik.js b/media/js/testik.js deleted file mode 100644 index 5badcd44055701820a3380b6bc9c357561267e61..0000000000000000000000000000000000000000 --- a/media/js/testik.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Created by ami96_000 on 02.07.2015. - */ -$(function(){ - var faculty=$('#faculty'); - faculty.change(function () { - alert( - faculty.find('option:selected').val()); - }); - -}); \ No newline at end of file diff --git a/~dev_rating/application/classes/Model/Support.php b/~dev_rating/application/classes/Model/Support.php index 71c381dfa93418a3bdaa00a1e4937fa77e09d6d4..fc25fcf7eac01311ea519652f052ef32775cd8e1 100644 --- a/~dev_rating/application/classes/Model/Support.php +++ b/~dev_rating/application/classes/Model/Support.php @@ -25,10 +25,13 @@ class Model_Support extends Model ->execute()->get('Num'); } - public static function getReports($userID) { - $query = 'CALL `GetRequests`(0, 100, :account, "all")'; + public static function getReports($userID, $offset = 0, $count = 1000, $statusFilter = 'all') { + $query = 'CALL `GetRequests`(:offset, :count, :account, :filter)'; return DB::query(Database::SELECT, $query) ->param(':account', $userID) + ->param(':offset', $offset) + ->param(':count', $count) + ->param(':filter', $statusFilter) ->execute()->as_array(); } } diff --git a/~dev_rating/application/views/admin/requests/errors.twig b/~dev_rating/application/views/admin/requests/errors.twig index 9e3a5c567d41ec68e6f82cee2afe8c26f3fa25ee..d472ec972b034b934d5aa2f7d87812b9ba2a5f49 100644 --- a/~dev_rating/application/views/admin/requests/errors.twig +++ b/~dev_rating/application/views/admin/requests/errors.twig @@ -11,8 +11,7 @@ <td>{{ ind }} </td> <td>{{ req.ID }}</td> <td>{{ req.Title }}</td> - - <td>{{ req.Description|raw}}</td> + <td>{{ req.Status}}</td> </tr> {% endfor %} </table>