't1.id', 'dbjoin' => 'id', 'dt' => 0 ),
array( 'db' => 't1.subject', 'dbjoin' => 'subject', 'dt' => 1, 'formatter' => function( $d, $row ) {
return ''.$d.'';
} ),
array( 'db' => 't2.title', 'dbjoin' => 'title', 'dt' => 2 ),
array( 'db' => 't1.name', 'dbjoin' => 'name', 'dt' => 3 ),
array( 'db' => 't1.initiated', 'dbjoin' => 'initiated', 'dt' => 4, 'formatter' => function( $d, $row ) {
return JAK_base::jakTimesince($d, JAK_DATEFORMAT, JAK_TIMEFORMAT);
} ),
array( 'db' => 't1.status', 'dbjoin' => 'status', 'dt' => 5, 'formatter' => function( $d, $row ) {
global $BT_LANGUAGE;
if (isset($_SESSION['jak_lcp_lang']) && file_exists(APP_PATH.'lang/'.$BT_LANGUAGE.'.php')) {
include (APP_PATH.'lang/'.$BT_LANGUAGE.'.php');
} else {
include (APP_PATH.'lang/'.JAK_LANG.'.php');
}
global $HD_SUPPORT_STATUS;
$support_status = '';
if (isset($HD_SUPPORT_STATUS) && !empty($HD_SUPPORT_STATUS)) foreach ($HD_SUPPORT_STATUS as $v) {
if (isset($d) && $d == $v['id']) {
$support_status = ''.$v['title'].'';
break;
}
}
return $support_status.' '.$row["prioritytitle"].'';
} ),
array( 'db' => 't1.subject', 'dbjoin' => 'subject', 'dt' => 6, 'formatter' => function( $d, $row ) {
global $BT_LANGUAGE;
if (isset($_SESSION['jak_lcp_lang']) && file_exists(APP_PATH.'lang/'.$BT_LANGUAGE.'.php')) {
include (APP_PATH.'lang/'.$BT_LANGUAGE.'.php');
} else {
include (APP_PATH.'lang/'.JAK_LANG.'.php');
}
return ''.$jkl['hd13'].'';
} ),
array( 'db' => 't1.updated', 'dbjoin' => 'updated', 'dt' => 7 ),
array( 'db' => 't3.title AS prioritytitle', 'dbjoin' => 'prioritytitle', 'dt' => 8 ),
array( 'db' => 't3.class', 'dbjoin' => 'class', 'dt' => 9 )
);
die(json_encode(SSP::join( $_GET, $table, $table2, $table3, $primaryKey, $columns, $where, $where )));
?>