| @@ 33-42 (lines=10) @@ | ||
| 30 | $conditions['limit'] = $_GET['iDisplayLength']; |
|
| 31 | } |
|
| 32 | ||
| 33 | if ( isset( $_GET['iSortCol_0'] ) ) |
|
| 34 | { |
|
| 35 | for ( $i=0 ; $i < intval( $_GET['iSortingCols'] ) ; $i++ ) |
|
| 36 | { |
|
| 37 | if ( $_GET[ 'bSortable_' . intval($_GET['iSortCol_' . $i]) ] == "true" ) |
|
| 38 | { |
|
| 39 | $conditions['order'] = array('Produto.' . $aColumns[intval($_GET['iSortCol_' . $i])] => $_GET['sSortDir_'.$i]); |
|
| 40 | } |
|
| 41 | } |
|
| 42 | } |
|
| 43 | ||
| 44 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 45 | { |
|
| @@ 156-165 (lines=10) @@ | ||
| 153 | $sql .= ' LIMIT ' . $_GET['iDisplayLength'] . ' OFFSET ' . $_GET['iDisplayStart']; |
|
| 154 | } |
|
| 155 | ||
| 156 | if ( isset( $_GET['iSortCol_0'] ) ) |
|
| 157 | { |
|
| 158 | for ( $i=0 ; $i < intval( $_GET['iSortingCols'] ) ; $i++ ) |
|
| 159 | { |
|
| 160 | if ( $_GET[ 'bSortable_' . intval($_GET['iSortCol_' . $i]) ] == "true" ) |
|
| 161 | { |
|
| 162 | $conditions['order'] = array('Produto.' . $aColumns[intval($_GET['iSortCol_' . $i])] => $_GET['sSortDir_'.$i]); |
|
| 163 | } |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||
| 167 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 168 | { |
|
| @@ 93-102 (lines=10) @@ | ||
| 90 | $conditions['limit'] = $_GET['iDisplayLength']; |
|
| 91 | } |
|
| 92 | ||
| 93 | if ( isset( $_GET['iSortCol_0'] ) ) |
|
| 94 | { |
|
| 95 | for ( $i=0 ; $i < intval( $_GET['iSortingCols'] ) ; $i++ ) |
|
| 96 | { |
|
| 97 | if ( $_GET[ 'bSortable_' . intval($_GET['iSortCol_' . $i]) ] == "true" ) |
|
| 98 | { |
|
| 99 | $conditions['order'] = array('Venda.' . $aColumns[intval($_GET['iSortCol_' . $i])] => $_GET['sSortDir_'.$i]); |
|
| 100 | } |
|
| 101 | } |
|
| 102 | } |
|
| 103 | ||
| 104 | if ( isset( $_GET['sSearch'] ) && !empty( $_GET['sSearch'] ) ) |
|
| 105 | { |
|