accounting date template fixes

This commit is contained in:
SJ 2013-08-18 13:59:55 +02:00
parent 4919e69e85
commit c72cb9bb08
7 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
# #
# Minimal Sphinx configuration sample (clean, simple, functional) # minimal sphinx configuration suited to piler
# #
source base source base

View File

@ -92,7 +92,7 @@ class ControllerAccountingAccounting extends Controller {
$this->data['accounting'][$id]['display'] = $row[$this->data['sort']]; $this->data['accounting'][$id]['display'] = $row[$this->data['sort']];
} }
if($this->data['sorttype'] == 1){ if($this->data['sorttype'] == 1){
$this->data['accounting'][$id]['display'] = date("d M Y",$row[$this->data['sort']]); $this->data['accounting'][$id]['display'] = date(DATE_TEMPLATE, $row[$this->data['sort']]);
} }
if($this->data['sorttype'] == 2){ if($this->data['sorttype'] == 2){
$this->data['accounting'][$id]['display'] = nice_size($row[$this->data['sort']]); $this->data['accounting'][$id]['display'] = nice_size($row[$this->data['sort']]);

View File

@ -85,7 +85,7 @@ class ModelAccountingAccounting extends Model
} }
if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("processed %s to %s: %d records deleted, %d records added",date("d M Y",$return['starttimestamp']),date("d M Y",$return['endtimestamp']),$return['deletedstats'],$return['addedstats'])); } if(ENABLE_SYSLOG == 1) { syslog(LOG_INFO, sprintf("processed %s to %s: %d records deleted, %d records added",date(DATE_TEMPLATE, $return['starttimestamp']),date(DATE_TEMPLATE, $return['endtimestamp']),$return['deletedstats'],$return['addedstats'])); }
return $return; return $return;
} }

View File

@ -56,8 +56,8 @@
<td><a href="index.php?route=accounting/accounting&amp;view=accounts&amp;domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></td> <td><a href="index.php?route=accounting/accounting&amp;view=accounts&amp;domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></td>
<?php } ?> <?php } ?>
<td><?php echo date("d M Y",$details['oldest']); ?></td> <td><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></td>
<td><?php echo date("d M Y",$details['newest']); ?></td> <td><?php echo date(DATE_TEMPLATE, $details['newest']); ?></td>
<td> <td>
<?php echo $details['sent']; ?> <?php echo $details['sent']; ?>
</td> </td>

View File

@ -17,8 +17,8 @@
<tr> <tr>
<td class="domaincell"><?php print $user['username']; ?></td> <td class="domaincell"><?php print $user['username']; ?></td>
<td class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></td> <td class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></td>
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></td> <td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['ts']); ?></td>
<td class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></td> <td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></td>
</tr> </tr>
<?php } ?> <?php } ?>

View File

@ -53,8 +53,8 @@
<div><a href="index.php?route=accounting/accounting&amp;view=accounts&amp;domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></div> <div><a href="index.php?route=accounting/accounting&amp;view=accounts&amp;domain=<?php echo $details['item']; ?>"><?php echo count($accounts[$details['item']]); ?></a></div>
<?php } ?> <?php } ?>
<div class="domaincell"><?php echo date("d M Y",$details['oldest']); ?></div> <div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></div>
<div class="domaincell"><?php echo date("d M Y",$details['newest']); ?></div> <div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['newest']); ?></div>
<div class="domaincell"> <div class="domaincell">
<?php echo $details['sent']; ?> <?php echo $details['sent']; ?>
</div> </div>

View File

@ -17,8 +17,8 @@
<div class="domainrow"> <div class="domainrow">
<div class="domaincell"><?php print $user['username']; ?></div> <div class="domaincell"><?php print $user['username']; ?></div>
<div class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></div> <div class="domaincell"><?php if(DEMO_MODE == 1) { print anonimize_ip_addr($user['ipaddr']); } else { print $user['ipaddr']; } ?></div>
<div class="domaincell"><?php print date("Y.m.d. G:i:s", $user['ts']); ?></div> <div class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['ts']); ?></div>
<div class="domaincell"><?php print date("Y.m.d. G:i:s", $user['last_activity']); ?></div> <div class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></div>
</div> </div>
<?php } ?> <?php } ?>