Jump to content

Support Ticket Listing on Admin Homepage


Recommended Posts

Hey Everyone i am trying to use the support center section from supportcenter.php found in the sidebar.tpl on my homepage portion of the sidebar.tpl and for some reason i cant get the code to actually display the tickets as it does on the support link the brackets are all empty any help would be great

 

<span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span>
<ul class="menu">
   <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li>
   <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li>
   <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li>
   <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li>
   <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li>
   <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li>
   <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li>
   <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li>
   <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li>
</ul>

Link to comment
Share on other sites

You can take that code and put it just above in the sidebar.tpl

<span class="plain_header">System Information</span> 

 

or you can add

OR $sidebar eq "home"

to

{elseif $sidebar eq "support"} 

which is just above where you took that code from.

 

Or you can put

 

{if $sidebar eq "home"}

<span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span>
<ul class="menu">
   <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li>
   <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li>
   <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li>
   <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li>
   <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li>
   <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li>
   <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li>
   <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li>
   <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li>
</ul>
{/if}

Where you want it to appear.

Link to comment
Share on other sites

It show up but I think it will only work on the support page in this case I think you would need to query the database! Maybe someone that is alittle more experience can chime in.

 

 

 


{if $sidebar eq "home"}

<span class="header"><img src="images/icons/home.png" class="absmiddle" width="16" height="16" /> Shortcuts</span>
<ul class="menu">
   <li><a href="clientsadd.php">Add a New Client</a></li>
   <li><a href="ordersadd.php">Place New Order</a></li>
   <li><a href="quotes.php?action=manage">Create Quote</a></li>
   <li><a href="todolist.php">Create New To-Do Item</a></li>
   <li><a href="supporttickets.php?action=open">Create New Support Ticket</a></li>
   <li><a href="whois.php">WHOIS Lookup</a></li>
   <li><a href="#" onclick="generateInvoices();return false">Generate Due Invoices</a></li>
   <li><a href="index.php?attemptccpayments=true">Attempt CC Capture</a></li>
</ul>

<span class="plain_header">Income Projection</span>
<div class="smallfont">{$incomestats}</div>

<br />


<span class="header"><img src="images/icons/tickets.png" alt="Filter Tickets" width="16" height="16" class="absmiddle" /> Filter Tickets</span>
<ul class="menu">
   <li><a href="supporttickets.php">Awaiting Reply ({$ticketcounts.awaitingreply})</a></li>
   <li><a href="supporttickets.php?view=flagged">My Flagged Tickets ({$ticketcounts.myflagged})</a></li>
   <li><a href="supporttickets.php?view=active">All Active Tickets ({$ticketcounts.allactive})</a></li>
   <li><a href="supporttickets.php?view=Open">Open Tickets ({$ticketcounts.open})</a></li>
   <li><a href="supporttickets.php?view=Answered">Answered ({$ticketcounts.answered})</a></li>
   <li><a href="supporttickets.php?view=Customer-Reply">Customer-Reply ({$ticketcounts.customerreply})</a></li>
   <li><a href="supporttickets.php?view=On Hold">On Hold ({$ticketcounts.onhold})</a></li>
   <li><a href="supporttickets.php?view=In Progress">In Progress ({$ticketcounts.inprogress})</a></li>
   <li><a href="supporttickets.php?view=Closed">Closed Tickets ({$ticketcounts.closed})</a></li>
</ul>

<br>


Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated