init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
25
scripts/ajax/pi_conline.php
Normal file
25
scripts/ajax/pi_conline.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?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');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue