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

View File

@ -92,7 +92,7 @@ class ControllerAccountingAccounting extends Controller {
$this->data['accounting'][$id]['display'] = $row[$this->data['sort']];
}
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){
$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;
}

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>
<?php } ?>
<td><?php echo date("d M Y",$details['oldest']); ?></td>
<td><?php echo date("d M Y",$details['newest']); ?></td>
<td><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></td>
<td><?php echo date(DATE_TEMPLATE, $details['newest']); ?></td>
<td>
<?php echo $details['sent']; ?>
</td>

View File

@ -17,8 +17,8 @@
<tr>
<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 print date("Y.m.d. G: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['ts']); ?></td>
<td class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></td>
</tr>
<?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>
<?php } ?>
<div class="domaincell"><?php echo date("d M Y",$details['oldest']); ?></div>
<div class="domaincell"><?php echo date("d M Y",$details['newest']); ?></div>
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['oldest']); ?></div>
<div class="domaincell"><?php echo date(DATE_TEMPLATE, $details['newest']); ?></div>
<div class="domaincell">
<?php echo $details['sent']; ?>
</div>

View File

@ -17,8 +17,8 @@
<div class="domainrow">
<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 print date("Y.m.d. G: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['ts']); ?></div>
<div class="domaincell"><?php print date(DATE_TEMPLATE . " H:i:s", $user['last_activity']); ?></div>
</div>
<?php } ?>