<?php if(empty($_GET['minus'])){ $_GET['minus'] = 1;} $start = $_GET['minus'] * 30 - 30; $buchungen = ''; $bu = db_query("SELECT * FROM ".$db_prefix."_buchungen WHERE uid=".$_GET['uid']." ORDER BY buchungszeit DESC LIMIT $start,30"); while($b = mysqli_fetch_assoc($bu)){ if($b['buchungsmenge'] < 0){ $style = 'class="alert alert-danger"';}else{ $style = 'class="alert alert-success"';} if($b['buchung_ok'] == 1){ $erfolg = '<span class="glyphicon glyphicon-ok" style="color:green;" aria-hidden="true"></span>'; }else{ $erfolg = '<span class="glyphicon glyphicon-remove" style="color:red" aria-hidden="true"></span>'; } $buchungen .= ' <tr '.$style.'> <td>'. date("d.m.Y H:i",$b['buchungszeit']) .'</td> <td>'. $b['buchungs_id'] .'</td> <td>'. number_format($b['buchungsmenge'],2,',','.') .'</td> <td>'. $b['verwendungszweck'] .'</td> <td>'. $b['buchungs_id'] .'</td> <td class="text-center">'. $erfolg .'</td> </tr> '; } define("MAX_EINTRAEGE","30"); define("NAV_LEISTE","6"); $seiteAktuell = $_GET['minus'] + 0; if(empty($seiteAktuell))$seiteAktuell = 1; $start = $seiteAktuell * MAX_EINTRAEGE - MAX_EINTRAEGE; $result = db_query("SELECT * FROM ". $db_prefix ."_buchungen LIMIT $start, ".MAX_EINTRAEGE); $resultGesamt = mysqli_fetch_array(db_query("SELECT COUNT(*) AS menge FROM ". $db_prefix ."_buchungen ")); $Eintraege = $resultGesamt['menge']; $contentWeb = '<div class="btn-group">'; $SitesComplete = ceil($Eintraege / MAX_EINTRAEGE); $extVariables = ''; $contentWeb .= navigationsLeiste($SitesComplete,$seiteAktuell,$extVariables,'minus',"?content=/konto/buchungen"); $contentWeb .= '</div>'; $nav_minus = '<center>'.$contentWeb.'</center>'; ?> <table class="table tabgle-striped"> <tr> <th>Zeit</th> <th>Buchung</th> <th><?php echo $waehrung;?></th> <th>Verwendungszweck</th> <th>TAN</th> <th>Kontobuchung erfolgreich</th> </tr> <?php echo $buchungen;?> </table> <?php echo $nav_minus;?>