Example #1
0
 function handler_admin_trusted($page, $action = 'list', $id = null)
 {
     $page->setTitle('Sites tiers de confiance');
     $page->assign('title', 'Sites tiers de confiance globaux pour OpenId');
     $table_editor = new PLTableEditor('admin/openid/trusted', 'account_auth_openid', 'id');
     $table_editor->set_where_clause('uid IS NULL');
     $table_editor->vars['uid']['display_list'] = false;
     $table_editor->vars['uid']['display_item'] = false;
     $table_editor->describe('url', 'site tiers', true);
     $page->assign('readonly', true);
     $table_editor->apply($page, $action, $id);
 }
Example #2
0
 function handler_adm_transactions($page, $payment_id = null, $action = "list", $id = null)
 {
     // show transactions. FIXME: should not be modifiable
     $page->setTitle('Administration - Paiements - Transactions');
     $page->assign('title', "Liste des transactions pour le paiement {$payment_id}");
     if ($payment_id == null) {
         $page->trigError("Aucun ID de paiement fourni.");
     }
     $table_editor = new PLTableEditor("admin/payments/transactions/{$payment_id}", 'payment_transactions', 'id', true);
     $table_editor->set_where_clause(XDB::format('ref = {?}', $payment_id));
     $table_editor->add_sort_field('id', true);
     $table_editor->describe('ts_initiated', 'ts_initiated', true, false);
     $table_editor->describe('commission', 'commission', true, false);
     $table_editor->describe('pkey', 'pkey', true, true);
     $table_editor->describe('comment', 'comment', true, true);
     $table_editor->describe('recon_id', 'recon_id', true, false);
     $table_editor->describe('display', 'display', true, true);
     $table_editor->apply($page, $action, $id);
     $page->assign('addonly', 'addonly');
     // don't show modification features, only add feature
 }