Hi,
My question is simple, I need to create a pager for the ticket history in the user side, I’m using Trellis to deal with customers database, my problem is when a customer wants to see the ticket history, a hundred or more tickets are shown, and I would need that a certain number were shown and then a pager were generated, am I being clear????
What I need is a pager as found in:
dmin.php?section=manage&act=tickets&code=list
to be shown in:
/index.php?act=tickets&code=history
I know I have to work with archive sources/tickets.php, using
function generate_link(
and then have to use
$page_links = $this->ifthd->page_links( substr( $this->generate_link(), strpos( $this->generate_link(), '?' ) ), $ticket_count, 10, $start, 1 );{$page_links}
But have no idea how to use it in
function show_history()
{
The only thing I get is a limit
if ( $this->ifthd->member['id'] )
{
$this->ifthd->core->db->construct( array(
'select' => array( 'id', 'dname', 'subject', 'priority', 'date', 'status' ),
'from' => 'tickets',
'where' => array( 'mid', '=', $this->ifthd->member['id'] ),
'order' => array( 'date' => 'desc' ),
'limit' => array( 0, 10 ),) );
Could someone help me to create my pager in user side in ticket history??????
Thank you very much
Greeting!
