ACCORD5
Add a reply

ACCORD5 Company Forums » Trellis Desk » General Discussion

Could someone help me to create my pager in user side in ticket history??????

 
  • Started 2 years ago by kapanga
  • 1 post in this topic
  1. User has not uploaded an avatar

    kapanga

    offline
    Member

    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!

    Posted 2 years ago #

RSS feed for this topic

Reply to this topic

You must log in to post.