News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1270672511:v:use_geshi-1:v:type-php

Started by SleePy, Apr 07, 2010, 08:35 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

SleePy

   // Tickets awaiting response.
   $request = shd_db_query('
      SELECT COUNT(id_ticket)
      FROM {db_prefix}helpdesk_tickets AS hdt
      WHERE {query_see_ticket} AND status IN (0,1)', array());
   if ($smcFunc['db_num_rows']($request) > 0)
      list($context['helpdeskTickets']['waiting']) = $smcFunc['db_fetch_row']($request);
   $smcFunc['db_free_result']($request);
No siggy! :D

SleePy

   // Defaults.
   require_once($sourcedir . '/Subs-SimpleDesk.php');
   $context['helpdeskTickets'] = array(
      'open' => shd_count_helpdesk_tickets('open', true),
      'waiting' => shd_count_helpdesk_tickets('staff', false),
   );
No siggy! :D