25 lines
No EOL
1 KiB
PHP
25 lines
No EOL
1 KiB
PHP
<?php
|
|
// echo'<pre>'; print_r($row_nichtda); echo'</pre>';
|
|
error_reporting(E_ALL); ini_set('display_errors',1);
|
|
header('Content-Type: text/html; charset=utf-8');
|
|
|
|
$abfrage_conline = $GLOBALS['mysql']->query("SELECT * FROM karten WHERE status = 2 OR status = 3 OR status = 4 ORDER BY status ASC"); $key=0;
|
|
while($row = $abfrage_conline->fetch_assoc()) {
|
|
$clog = $GLOBALS['mysql']->query_single("SELECT * FROM mitarbeiter WHERE id='".$row['user']."'");
|
|
$abfrage_c[$key]['name']=$clog['name'];
|
|
if($row['status']==3) { $abfrage_c[$key]['grund']=$row['grund']; }
|
|
if($row['status']==2) {
|
|
if($row['lastlog']>=$row['edittime']) {
|
|
$abfrage_c[$key]['ontour']=1;
|
|
} else {
|
|
$abfrage_c[$key]['ontour']=0;
|
|
}
|
|
}
|
|
$abfrage_c[$key]['status']=$row['status'];
|
|
$abfrage_c[$key]['etime']=$row['edittime'];
|
|
$key++;
|
|
}
|
|
$template->assign('abfrage_c', $abfrage_c);
|
|
//----------------------------------------------------------------------------------------------------
|
|
$template->assign('content', 'tpl/ajax/pi_conline.tpl');
|
|
?>
|