generated from github/welcome-to-github
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #242 from lbr38/devel
4.17.0
- Loading branch information
Showing
38 changed files
with
392 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
www/controllers/Layout/Table/vars/tasks/list-queued.vars.inc.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
$myTask = new \Controllers\Task\Task(); | ||
$reloadableTableOffset = 0; | ||
|
||
/** | ||
* Retrieve offset from cookie if exists | ||
*/ | ||
if (!empty($_COOKIE['tables/tasks/list-queued/offset']) and is_numeric($_COOKIE['tables/tasks/list-queued/offset'])) { | ||
$reloadableTableOffset = $_COOKIE['tables/tasks/list-queued/offset']; | ||
} | ||
|
||
/** | ||
* Get list of queued tasks, with offset | ||
*/ | ||
$reloadableTableContent = $myTask->listQueued('', true, $reloadableTableOffset); | ||
|
||
/** | ||
* Get list of ALL queued tasks, without offset, for the total count | ||
*/ | ||
$reloadableTableTotalItems = count($myTask->listQueued()); | ||
|
||
/** | ||
* Count total pages for the pagination | ||
*/ | ||
$reloadableTableTotalPages = ceil($reloadableTableTotalItems / 10); | ||
|
||
/** | ||
* Calculate current page number | ||
*/ | ||
$reloadableTableCurrentPage = ceil($reloadableTableOffset / 10) + 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.