PATH:
home
/
letacommog
/
letaweb
/
admin
/
views
/
builder
/
ecommerce
/
dashboard
<?php $results = BCustomer_Activity::model()->findAll(); $activities = array(); foreach ($results as $result) { $comment = vsprintf(Language::term('text_customer_' . $result['key']), json_decode($result['data'], true)); $find = array( 'customer_id=', 'order_id=', ); $replace = array( '#/ecommerce/customer/customer/', '#/ecommerce/order/order/', ); $activities[] = array( 'comment' => str_replace($find, $replace, $comment), 'date_added' => date(cmm_settings::get('datetime_format', 'd/m/Y h:i:s'), strtotime($result['date_added'])) ); } ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-calendar"></i> <?php echo Language::term('text_activity', 'Activity'); ?></h3> </div> <ul class="list-group"> <?php if ($activities) { ?> <?php foreach ($activities as $activity) { ?> <li class="list-group-item"><?php echo $activity['comment']; ?><br /> <small class="text-muted"><i class="fa fa-clock-o"></i> <?php echo $activity['date_added']; ?></small></li> <?php } ?> <?php } else { ?> <li class="list-group-item text-center"><?php echo Language::term('text_no_results', 'No results'); ?></li> <?php } ?> </ul> </div>
[+]
..
[-] customer.php
[edit]
[-] recent.php
[edit]
[-] map.php
[edit]
[-] activity.php
[edit]
[-] chart.php
[edit]
[-] order.php
[edit]
[-] online.php
[edit]
[-] sale.php
[edit]