Ciao Ragazzi , sono nuovo del forum..
Complimenti forum ben fatto!
Vorrei chiedervi se qualcuno di voi ha mai usato Khoana ...
Sto finendo di realizzare un sito web che mi è stato appaltato, il problema è che il sito per la maggior parte del codice è stato già fatto!
Questo è il problema .. dovrei fare un array filtrato di questa pagina..
Aiuto please...
<?php
class Controller_Admin_authorized extends Controller_Admin {
public function action_index() {
$this->template->page_title = 'Vendite autorizzate';
$this->template->content_template = 'grid';
$this->template->grid_columns = array(
'user.username' => array('name' => 'Username', 'width' => '13%'),
'city.name' => array('name' => 'Città', 'width' => '13%'),
'pack.name' => array('name' => 'Pacchetto', 'width' => '10%'),
'price' => array('name' => 'Prezzo ?', 'width' => '8%'),
'requested' => array('name' => 'Richiesta', 'width' => '15%'),
'authorized' => array('name' => 'Autorizzata', 'width' => '15%'),
'gateway' => array('name' => 'Gateway', 'width' => '13%')
);
$this->template->grid_editable = false;
$this->template->grid_deletable = false;
/*
$this->template->actions = array(
array('url' => URL::site('admin/pages/edit'), 'class' => 'btn-primary', 'icon_class' => 'icon-plus icon-white', 'label' => 'Aggiungi nuovo')
);*/
$transactions = ORM::factory('Transaction');
$pagination = Pagination::factory(array(
'total_items' => $transactions->count_all()
)
);
$transactions = $transactions->offset($pagination->offset)->limit($pagination->items_per_page)->find_all();
$this->template->grid_objects = $transactions;
$this->template->pagination = $pagination;
}
}