Server IP : 192.185.129.71 / Your IP : 3.15.143.206 Web Server : Apache System : Linux bh-ht-3.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : svymadmin ( 4072) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home4/svymadmin/public_html/vivekaexcel.edu.in/bkp/application/views/admin/knowledge_base/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <?php init_head(); ?> <div id="wrapper"> <div class="content"> <div class="row"> <div class="col-md-7"> <h4 class="tw-mt-0 tw-text-lg tw-font-semibold tw-text-neutral-700"> <?php echo $article->subject; ?> </h4> <div class="panel_s"> <div class="panel-body tc-content"> <div class="kb-article"> <?php echo $article->description; ?> </div> <hr class="hr-panel-separator" /> <h4 class="tw-mb-0 tw-font-medium tw-text-base"> <?php echo _l('clients_knowledge_base_find_useful'); ?> </h4> <div class="answer_response tw-mt-3"></div> <input type="hidden" name="articleid" value="<?php echo $article->articleid; ?>"> <div class="btn-group mtop15 article_useful_buttons" role="group"> <button type="button" data-answer="1" class="btn btn-success"> <?php echo _l('clients_knowledge_base_find_useful_yes'); ?> </button> <button type="button" data-answer="0" class="btn btn-danger"> <?php echo _l('clients_knowledge_base_find_useful_no'); ?> </button> </div> </div> </div> </div> <?php if (count($related_articles) > 0) { ?> <div class="col-md-5"> <div class="panel_s"> <div class="panel-body"> <h4 class="bold no-margin"><?php echo _l('related_knowledgebase_articles'); ?></h4> <hr class="hr-panel-separator" /> <ul class="mtop10 articles_list"> <?php foreach ($related_articles as $rel_article_article) { ?> <li> <i class="fa-regular fa-file-lines"></i> <a href="<?php echo admin_url('knowledge_base/view/' . $rel_article_article['slug']); ?>" class="article-heading"><?php echo $rel_article_article['subject']; ?></a> <div class="text-muted mtop10"> <?php echo strip_tags(mb_substr($rel_article_article['description'], 0, 100)); ?>... </div> </li> <hr /> <?php } ?> </ul> </div> </div> </div> <?php } ?> </div> </div> </div> <?php init_tail(); ?> <script> $(function() { // Lightbox for knowledge base images $.each($('.kb-article').find('img'), function() { if (!$(this).parent().is('a')) { $(this).wrap('<a href="' + $(this).attr('src') + '" data-lightbox="kb-attachment"></a>'); } }); $('.article_useful_buttons button').on('click', function(e) { e.preventDefault(); var data = {}; data.answer = $(this).data('answer'); data.articleid = '<?php echo $article->articleid; ?>'; $.post(admin_url + 'knowledge_base/add_kb_answer', data).done(function(response) { response = JSON.parse(response); if (response.success == true) { $(this).focusout(); } $('.answer_response').html(response.message); }); }); }); </script> </body> </html>