TRUE, ); /** * Show a list of emails */ public function action_list() { $this->meta->title = 'Emails Sent'; Block::factory() ->title(_('Emails Sent')) ->title_icon('fa fa-envelope') ->body(Table::factory() ->page_items(25) ->data(ORM::factory('Email_Log')->where_authorised($this->ao)->find_all()) ->columns(array( 'id'=>'ID', 'date_orig'=>'Date', 'email'=>'To', 'resolve("subject")'=>'Subject', 'account->accnum()'=>'Cust ID', 'account->name()'=>'Customer', )) ->prepend(array( 'id'=>array('url'=>URL::link('user','email/view/')), )) ->postproc(array( 'resolve("subject")'=>array('trim'=>60), )) ); } } ?>