PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
include
/
staff
<?php if(!defined('OSTSTAFFINC') || !$category || !$thisstaff) die('Access Denied'); ?> <div class="has_bottom_border" style="margin-bottom:5px; padding-top:5px;"> <div class="pull-left"> <h2><?php echo __('Frequently Asked Questions');?></h2> </div> <?php if ($thisstaff->hasPerm(FAQ::PERM_MANAGE)) { echo sprintf('<div class="pull-right flush-right"> <a class="green action-button" href="faq.php?cid=%d&a=add">'.__('Add New FAQ').'</a> <span class="action-button" data-dropdown="#action-dropdown-more" style="/*DELME*/ vertical-align:top; margin-bottom:0"> <i class="icon-caret-down pull-right"></i> <span ><i class="icon-cog"></i>'. __('More').'</span> </span> <div id="action-dropdown-more" class="action-dropdown anchor-right"> <ul> <li><a class="user-action" href="categories.php?id=%d"> <i class="icon-pencil icon-fixed-width"></i>' .__('Edit Category').'</a> </li> <li class="danger"> <a class="user-action" href="categories.php"> <i class="icon-trash icon-fixed-width"></i>' .__('Delete Category').'</a> </li> </ul> </div> </div>', $category->getId(), $category->getId()); } else { ?><?php } ?> <div class="clear"></div> </div> <div class="faq-category"> <div style="margin-bottom:10px;"> <div class="faq-title pull-left"><?php echo $category->getFullName() ?></div> <div class="faq-status inline">(<?php echo $category->isPublic()?__('Public'):__('Internal'); ?>)</div> <div class="clear"><time class="faq"> <?php echo __('Last Updated').' '. Format::daydatetime($category->getUpdateDate()); ?></time></div> </div> <div class="cat-desc has_bottom_border"> <?php echo Format::display($category->getDescription()); if ($category->children) { echo '<p/><div>'; foreach ($category->children as $c) { echo sprintf('<div><i class="icon-folder-open-alt"></i> <a href="kb.php?cid=%d">%s (%d)</a> - <span>%s</span></div>', $c->getId(), $c->getLocalName(), $c->getNumFAQs(), $c->getVisibilityDescription() ); } echo '</div>'; } ?> </div> <?php if (!$thisstaff->hasPerm(Dept::PERM_DEPT)) { $staffTopics = $thisstaff->getTopicNames(false); $filter = true; } $faqs = $category->faqs ->constrain(array('attachments__inline' => 0)) ->annotate(array('attachments' => SqlAggregate::COUNT('attachments'))); if ($faqs->exists(true)) { echo '<div id="faq"> <ol>'; foreach ($faqs as $faq) { if ($filter) { if ($faqTopics = $faq->getHelpTopicsIds()) { foreach ($faqTopics as $key => $value) { if (array_key_exists($value, $staffTopics)) $show = true; } } else $show = true; } else $show = true; if ($show) echo sprintf(' <li><strong><a href="faq.php?id=%d" class="previewfaq">%s <span>- %s</span></a> %s</strong></li>', $faq->getId(),$faq->getQuestion(),$faq->isPublished() ? __('Published'):__('Internal'), $faq->attachments ? '<i class="icon-paperclip"></i>' : '' ); } echo ' </ol> </div>'; } elseif (!$category->children) { echo '<strong>'.__('Category does not have FAQs').'</strong>'; } ?> </div>
[+]
..
[-] faq-categories.inc.php
[edit]
[-] settings-autoresp.inc.php
[edit]
[-] login.header.php
[edit]
[-] ticket-tasks.inc.php
[edit]
[-] task-view.inc.php
[edit]
[-] staff.inc.php
[edit]
[-] index.php
[edit]
[-] dynamic-list.inc.php
[edit]
[-] settings-tickets.inc.php
[edit]
[-] page.inc.php
[edit]
[-] emails.inc.php
[edit]
[-] dynamic-forms.inc.php
[edit]
[-] cannedresponses.inc.php
[edit]
[-] settings-system.inc.php
[edit]
[-] categories.inc.php
[edit]
[-] faq.inc.php
[edit]
[-] user-view.inc.php
[edit]
[-] plugin-instance.inc.php
[edit]
[-] plugin-add.inc.php
[edit]
[-] login.tpl.php
[edit]
[-] department.inc.php
[edit]
[-] syslogs.inc.php
[edit]
[-] template.inc.php
[edit]
[-] category.inc.php
[edit]
[-] ticket-relations.inc.php
[edit]
[-] header.inc.php
[edit]
[-] schedule.inc.php
[edit]
[-] faq-view.inc.php
[edit]
[-] settings-alerts.inc.php
[edit]
[-] settings-users.inc.php
[edit]
[-] pages.inc.php
[edit]
[-] slaplans.inc.php
[edit]
[-] team.inc.php
[edit]
[-] helptopics.inc.php
[edit]
[-] role.inc.php
[edit]
[-] settings-pages.inc.php
[edit]
[-] users.inc.php
[edit]
[-] faq-category.inc.php
[edit]
[-] orgs.inc.php
[edit]
[-] pwreset.sent.php
[edit]
[-] settings-agents.inc.php
[edit]
[-] settings-emails.inc.php
[edit]
[+]
osta
[-] templates.inc.php
[edit]
[-] theme.inc.php
[edit]
[-] helptopic.inc.php
[edit]
[-] profile.inc.php
[edit]
[-] email.inc.php
[edit]
[-] ticket-open.inc.php
[edit]
[-] roles.inc.php
[edit]
[-] ticket-view.inc.php
[edit]
[-] schedules.inc.php
[edit]
[-] departments.inc.php
[edit]
[-] pwreset.login.php
[edit]
[-] filter.inc.php
[edit]
[-] queues-ticket.inc.php
[edit]
[-] plugin.inc.php
[edit]
[-] slaplan.inc.php
[edit]
[-] filters.inc.php
[edit]
[-] dashboard.inc.php
[edit]
[-] pwreset.php
[edit]
[-] tpl.inc.php
[edit]
[-] cannedresponse.inc.php
[edit]
[-] dynamic-form.inc.php
[edit]
[-] teams.inc.php
[edit]
[-] dynamic-lists.inc.php
[edit]
[-] tasks.inc.php
[edit]
[-] banrule.inc.php
[edit]
[-] ticket-edit.inc.php
[edit]
[-] settings-kb.inc.php
[edit]
[-] plugins.inc.php
[edit]
[-] directory.inc.php
[edit]
[-] apikeys.inc.php
[edit]
[-] org-view.inc.php
[edit]
[-] system.inc.php
[edit]
[+]
templates
[-] staffmembers.inc.php
[edit]
[-] banlist.inc.php
[edit]
[-] footer.inc.php
[edit]
[-] settings-tasks.inc.php
[edit]
[-] apikey.inc.php
[edit]
[-] queue.inc.php
[edit]
[-] .htaccess.disabled
[edit]