golden hour
/home/doctorbruno/public_html/doctorbruno.info/taeionline/support/include/staff
⬆️ Go Up
Upload
File/Folder
Size
Actions
apikey.inc.php
4.69 KB
Del
OK
apikeys.inc.php
7.6 KB
Del
OK
banlist.inc.php
8.71 KB
Del
OK
banrule.inc.php
2.96 KB
Del
OK
cannedresponse.inc.php
6.09 KB
Del
OK
cannedresponses.inc.php
8.47 KB
Del
OK
categories.inc.php
7.03 KB
Del
OK
category.inc.php
6.51 KB
Del
OK
dashboard.inc.php
6.35 KB
Del
OK
department.inc.php
22.78 KB
Del
OK
departments.inc.php
10.42 KB
Del
OK
directory.inc.php
5.95 KB
Del
OK
dynamic-form.inc.php
15.2 KB
Del
OK
dynamic-forms.inc.php
5.26 KB
Del
OK
dynamic-list.inc.php
11.12 KB
Del
OK
dynamic-lists.inc.php
4.62 KB
Del
OK
email.inc.php
10.47 KB
Del
OK
emails.inc.php
7.03 KB
Del
OK
faq-categories.inc.php
7.13 KB
Del
OK
faq-category.inc.php
3.52 KB
Del
OK
faq-view.inc.php
3.52 KB
Del
OK
faq.inc.php
10.31 KB
Del
OK
filter.inc.php
18.98 KB
Del
OK
filters.inc.php
9.47 KB
Del
OK
footer.inc.php
3.87 KB
Del
OK
header.inc.php
6.02 KB
Del
OK
helptopic.inc.php
20.78 KB
Del
OK
helptopics.inc.php
9.93 KB
Del
OK
index.php
37 B
Del
OK
login.header.php
1.37 KB
Del
OK
login.tpl.php
6.76 KB
Del
OK
org-view.inc.php
4.45 KB
Del
OK
orgs.inc.php
8.57 KB
Del
OK
page.inc.php
7.87 KB
Del
OK
pages.inc.php
7.64 KB
Del
OK
plugin-add.inc.php
1.84 KB
Del
OK
plugin-instance.inc.php
1.31 KB
Del
OK
plugin.inc.php
4.67 KB
Del
OK
plugins.inc.php
5.81 KB
Del
OK
profile.inc.php
20.72 KB
Del
OK
pwreset.login.php
1.77 KB
Del
OK
pwreset.php
1.7 KB
Del
OK
pwreset.sent.php
1.59 KB
Del
OK
queue.inc.php
15.59 KB
Del
OK
queues-ticket.inc.php
4.56 KB
Del
OK
role.inc.php
4.91 KB
Del
OK
roles.inc.php
5.5 KB
Del
OK
schedule.inc.php
4.53 KB
Del
OK
schedules.inc.php
5.34 KB
Del
OK
settings-agents.inc.php
13.15 KB
Del
OK
settings-alerts.inc.php
10.68 KB
Del
OK
settings-autoresp.inc.php
2.48 KB
Del
OK
settings-emails.inc.php
9.88 KB
Del
OK
settings-kb.inc.php
2.18 KB
Del
OK
settings-pages.inc.php
15.32 KB
Del
OK
settings-system.inc.php
22.99 KB
Del
OK
settings-tasks.inc.php
14.99 KB
Del
OK
settings-tickets.inc.php
13.7 KB
Del
OK
settings-users.inc.php
9.36 KB
Del
OK
slaplan.inc.php
5.96 KB
Del
OK
slaplans.inc.php
7.99 KB
Del
OK
staff.inc.php
21.42 KB
Del
OK
staffmembers.inc.php
12.63 KB
Del
OK
syslogs.inc.php
8.58 KB
Del
OK
system.inc.php
7.82 KB
Del
OK
task-view.inc.php
93 B
Del
OK
tasks.inc.php
17.99 KB
Del
OK
team.inc.php
8.76 KB
Del
OK
teams.inc.php
8.14 KB
Del
OK
template.inc.php
7.21 KB
Del
OK
templates
-
Del
OK
templates.inc.php
8.25 KB
Del
OK
ticket-edit.inc.php
8.62 KB
Del
OK
ticket-open.inc.php
23.7 KB
Del
OK
ticket-relations.inc.php
1.27 KB
Del
OK
ticket-tasks.inc.php
7.32 KB
Del
OK
ticket-view.inc.php
70.54 KB
Del
OK
tickets.inc.php
25.45 KB
Del
OK
tpl.inc.php
5.77 KB
Del
OK
user-view.inc.php
9.22 KB
Del
OK
users.inc.php
12.88 KB
Del
OK
Edit: faq-categories.inc.php
<?php if(!defined('OSTSTAFFINC') || !$thisstaff) die('Access Denied'); ?> <form id="kbSearch" action="kb.php" method="get"> <input type="hidden" name="a" value="search"> <input type="hidden" name="cid" value="<?php echo Format::htmlchars($_REQUEST['cid']); ?>"/> <input type="hidden" name="topicId" value="<?php echo Format::htmlchars($_REQUEST['topicId']); ?>"/> <div id="basic_search"> <div class="attached input"> <input id="query" type="text" size="20" name="q" autofocus value="<?php echo Format::htmlchars($_REQUEST['q']); ?>"> <button class="attached button" id="searchSubmit" type="submit"> <i class="icon icon-search"></i> </button> </div> <div class="pull-right"> <span class="action-button muted" data-dropdown="#category-dropdown"> <i class="icon-caret-down pull-right"></i> <span> <i class="icon-filter"></i> <?php echo __('Category'); ?> </span> </span> <span class="action-button muted" data-dropdown="#topic-dropdown"> <i class="icon-caret-down pull-right"></i> <span> <i class="icon-filter"></i> <?php echo __('Help Topic'); ?> </span> </span> </div> <div id="category-dropdown" class="action-dropdown anchor-right" onclick="javascript: var form = $(this).closest('form'); form.find('[name=cid]').val($(event.target).data('cid')); form.submit();"> <ul class="bleed-left"> <?php $total = FAQ::objects()->count(); $categories = Category::objects() ->annotate(array('faq_count' => SqlAggregate::COUNT('faqs'))) ->filter(array('faq_count__gt' => 0)) ->order_by('name') ->all(); array_unshift($categories, new Category(array('id' => 0, 'name' => __('All Categories'), 'faq_count' => $total))); foreach ($categories as $C) { $active = $_REQUEST['cid'] == $C->getId(); ?> <li <?php if ($active) echo 'class="active"'; ?>> <a href="#" data-cid="<?php echo $C->getId(); ?>"> <i class="icon-fixed-width <?php if ($active) echo 'icon-hand-right'; ?>"></i> <?php echo sprintf('%s (%d)', Format::htmlchars($C->getFullName()), $C->faq_count); ?></a> </li> <?php } ?> </ul> </div> <div id="topic-dropdown" class="action-dropdown anchor-right" onclick="javascript: var form = $(this).closest('form'); form.find('[name=topicId]').val($(event.target).data('topicId')); form.submit();"> <ul class="bleed-left"> <?php $topics = Topic::objects() ->annotate(array('faq_count'=>SqlAggregate::COUNT('faqs'))) ->filter(array('faq_count__gt'=>0)) ->all(); usort($topics, function($a, $b) { return strcmp($a->getFullName(), $b->getFullName()); }); array_unshift($topics, new Topic(array('id' => 0, 'topic' => __('All Topics'), 'faq_count' => $total))); if (!$thisstaff->hasPerm(Dept::PERM_DEPT)) $staffTopics = $thisstaff->getTopicNames(false); foreach ($topics as $T) { $active = $_REQUEST['topicId'] == $T->getId(); if (!$staffTopics || is_null($T->getId()) || ($staffTopics && array_key_exists($T->getId(), $staffTopics))) { ?> <li <?php if ($active) echo 'class="active"'; ?>> <a href="#" data-topic-id="<?php echo $T->getId(); ?>"> <i class="icon-fixed-width <?php if ($active) echo 'icon-hand-right'; ?>"></i> <?php echo sprintf('%s (%d)', Format::htmlchars($T->getFullName()), $T->faq_count); ?></a> </li> <?php } } ?> </ul> </div> </div> </form> <div class="has_bottom_border" style="margin-bottom:5px; padding-top:5px;"> <div class="pull-left"> <h2><?php echo __('Frequently Asked Questions');?></h2> </div> <div class="clear"></div> </div> <div> <?php if($_REQUEST['q'] || $_REQUEST['cid'] || $_REQUEST['topicId']) { //Search. $faqs = FAQ::objects() ->annotate(array( 'attachment_count'=>SqlAggregate::COUNT('attachments'), 'topic_count'=>SqlAggregate::COUNT('topics') )) ->order_by('question'); if ($_REQUEST['cid']) $faqs->filter(array('category_id'=>$_REQUEST['cid'])); if ($_REQUEST['topicId']) $faqs->filter(array('topics__topic_id'=>$_REQUEST['topicId'])); if ($_REQUEST['q']) $faqs->filter(Q::ANY(array( 'question__contains'=>$_REQUEST['q'], 'answer__contains'=>$_REQUEST['q'], 'keywords__contains'=>$_REQUEST['q'], 'category__name__contains'=>$_REQUEST['q'], 'category__description__contains'=>$_REQUEST['q'], ))); echo "<div><strong>".__('Search Results')."</strong></div><div class='clear'></div>"; if ($faqs->exists(true)) { echo '<div id="faq"> <ol>'; foreach ($faqs as $F) { echo sprintf( '<li><a href="faq.php?id=%d" class="previewfaq">%s</a> - <span>%s</span></li>', $F->getId(), $F->getLocalQuestion(), $F->getVisibilityDescription()); } echo ' </ol> </div>'; } else { echo '<strong class="faded">'.__('The search did not match any FAQs.').'</strong>'; } } else { //Category Listing. $categories = Category::objects() ->annotate(array('faq_count'=>SqlAggregate::COUNT('faqs'))) ->filter(array('category_pid__isnull' => true)); if (count($categories)) { $categories->sort(function($a) { return $a->getLocalName(); }); echo '<div>'.__('Click on the category to browse FAQs or manage its existing FAQs.').'</div> <ul id="kb">'; foreach ($categories as $C) { echo sprintf(' <li> <h4><a class="truncate" style="max-width:600px" href="kb.php?cid=%d">%s (%d)</a> - <span>%s</span></h4> %s ', $C->getId(),$C->getLocalName(),$C->getNumFAQs(), $C->getVisibilityDescription(), Format::safe_html($C->getLocalDescriptionWithImages()) ); if ($C->children) { echo '<p/><div>'; foreach ($C->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>'; } echo '</li>'; } echo '</ul>'; } else { echo __('NO FAQs found'); } } ?> </div>
Save