}); $columns['ticket_staff'] = array('title' => 'Staff', 'callback' => function ($ticket) { echo module_user::link_open($ticket['assigned_user_id'], true); }); if (!isset($_REQUEST['customer_id']) && module_customer::can_i('view', 'Customers') && module_config::c('ticket_list_show_customer', 1)) { $columns['ticket_customer'] = array('title' => 'Customer', 'callback' => function ($ticket) { echo module_customer::link_open($ticket['customer_id'], true); }); } $columns['ticket_contact'] = array('title' => 'Contact', 'callback' => function ($ticket) { echo module_user::link_open($ticket['user_id'], true, array(), true); }); if (class_exists('module_faq', false) && module_config::c('ticket_show_product_list', 1)) { $columns['ticket_product'] = array('title' => 'Product', 'callback' => function ($ticket) { if ($ticket['faq_product_id']) { $faq_product = module_faq::get_faq_product($ticket['faq_product_id']); echo $faq_product && isset($faq_product['name']) ? htmlspecialchars($faq_product['name']) : ''; } }); } if (class_exists('module_envato', false)) { $columns['ticket_envato'] = array('title' => _l('Envato%s', module_config::c('envato_show_ticket_earning', 0) ? ' (' . dollar($envato_count * 0.7) . ')' : ''), 'callback' => function ($ticket) { $items = module_envato::get_items_by_ticket($ticket['ticket_id']); foreach ($items as $item) { echo '<a href="' . $item['url'] . '">' . htmlspecialchars($item['name']) . '</a> '; } }); } if (class_exists('module_group', false) && module_config::c('ticket_enable_groups', 1) && module_group::groups_enabled()) { $columns['ticket_group'] = array('title' => 'Group', 'callback' => function ($ticket) { // find the groups for this customer.
* Package Date: 2015-11-25 02:55:20 * IP Address: 67.79.165.254 */ if (!module_config::can_i('view', 'Settings') || !module_faq::can_i('edit', 'FAQ')) { redirect_browser(_BASE_HREF); } $faq_products = module_faq::get_faq_products(); $types = module_ticket::get_types(); if (class_exists('module_envato', false)) { $all_items_rel = module_envato::get_envato_items_rel(); } if (isset($_REQUEST['faq_product_id']) && $_REQUEST['faq_product_id']) { $show_other_settings = false; $faq_product_id = (int) $_REQUEST['faq_product_id']; if ($faq_product_id > 0) { $faq_product = module_faq::get_faq_product($faq_product_id); } else { $faq_product = array(); } if (!$faq_product) { $faq_product = array('name' => '', 'envato_item_ids' => '', 'default_type_id' => ''); } ?> <form action="" method="post"> <input type="hidden" name="_process" value="save_faq_product"> <input type="hidden" name="faq_product_id" value="<?php echo $faq_product_id; ?> " />