Standardisation work, changed accnum() to refnum()
This commit is contained in:
17
application/views/account/list.php
Normal file
17
application/views/account/list.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- o = Array of Account -->
|
||||
<?php echo Table::factory()
|
||||
->data($o)
|
||||
->jssort('customer')
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'status'=>'Active',
|
||||
'refnum()'=>'Num',
|
||||
'name(TRUE)'=>'Account',
|
||||
'email'=>'Email',
|
||||
'invoices_due_total(NULL,TRUE)'=>'Invoices',
|
||||
'service->find_all()->count()'=>'Services',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('reseller','account/view/')),
|
||||
));
|
||||
?>
|
13
application/views/account/listlog.php
Normal file
13
application/views/account/listlog.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- o = Array of Model_Account_Log -->
|
||||
<?php echo Table::factory()
|
||||
->data($o)
|
||||
->page_items(25)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'account->refnum()'=>'Acc ID',
|
||||
'account->name()'=>'Acc Name',
|
||||
'ip'=>'IP Address',
|
||||
'details'=>'Details',
|
||||
));
|
||||
?>
|
@@ -1,15 +0,0 @@
|
||||
<?php $o = Auth::instance()->get_user();
|
||||
echo Block::factory()
|
||||
->title(_('Customer Login Activity'))
|
||||
->title_icon('fa fa-eye')
|
||||
->body(Table::factory()
|
||||
->data(ORM::factory('Account_Log')->where_authorised($o)->find_all())
|
||||
->page_items(25)
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date',
|
||||
'account->name()'=>'Account',
|
||||
'ip'=>'IP Address',
|
||||
'details'=>'Details',
|
||||
))
|
||||
);
|
@@ -1,6 +1,10 @@
|
||||
<!-- o = Model_Account -->
|
||||
<?php echo View::factory('service/user/list')->set('o',$o); ?>
|
||||
<?php echo View::factory('invoice/user/list/due')->set('o',$o); ?>
|
||||
<?php echo View::factory('service/user/list/expiring')->set('o',$o); ?>
|
||||
<?php echo View::factory('service/user/list/inactive')->set('o',$o); ?>
|
||||
<?php echo View::factory('welcome/user/view')->set('o',$o); ?>
|
||||
|
||||
<?php echo Block::factory()
|
||||
->title(sprintf('InActive Services for Account: %s',$o->refnum()))
|
||||
->title_icon('fa fa-barcode')
|
||||
->span(6)
|
||||
->body(View::factory('service/user/list/inactive')->set('o',$o->service->where('status','!=',1)->or_where('status','IS',null)->find_all())); ?>
|
||||
|
||||
<?php echo View::factory('invoice/user/next')->set('o',$o); ?>
|
||||
|
Reference in New Issue
Block a user