-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathget_queue.php
39 lines (32 loc) · 967 Bytes
/
get_queue.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* @version $Header$
*
* @author lsces <[email protected]>
* @package tasks
* @copyright 2008 bitweaver
* @license LGPL {@link http://www.gnu.org/licenses/lgpl.html}
**/
/**
* Setup
*/
require_once( '../kernel/setup_inc.php' );
$gBitSystem->verifyPackage( 'tasks' );
require_once( TASKS_PKG_PATH.'Tasks.php');
$gTask = new Tasks();
if( !empty( $_REQUEST['queue_id'] ) ) {
$gTask->getNextTask( $_REQUEST['queue_id'] );
}
if ( $gTask->isValid() ) {
$gBitSmarty->assignByRef( 'taskInfo', $gTask->mInfo );
require_once( CITIZEN_PKG_PATH.'Citizen.php');
$gCitizen = new Citizen( $this->mCitizenId );
if ( $gCitizen->isValid() ) {
$gBitSmarty->assignByRef( 'citizenInfo', $gCitizen->mInfo );
}
$gBitSystem->setBrowserTitle("Task List Item");
$gBitSystem->display( 'bitpackage:tasks/show_task.tpl', NULL, array( 'display_mode' => 'display' ));
} else {
header ("location: ".TASKS_PKG_URL."view.php");
die;
}?>