You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-09-05 13:42:32

nmy
Member
Registered: 2014-02-18
Posts: 13

Showlist() from query [Close]

Hello,

I try to write a plugin where I add an entry in the tools menu --> working now, thx, and where I need to display a table like User, Ticket, etc.

I put this in my front/page.php

$itemtype = 'User';
$p = [
   'start'      => 0,     
   'is_deleted' => 0,     
   'sort'       => 1,     
   'order'      => 'DESC'
];

Search::showList($itemtype, $p);

Html::footer();

Actually I put $itemtype = 'User' but I want to populate the table with a query result, how I can do that ? Do you have an example where I can look ?

Where itemtype 'User' is defined so I can look ? or a plugin ?

Regards,

Last edited by nmy (2024-09-06 09:07:36)

Offline

Board footer

Powered by FluxBB