@ -38,6 +38,7 @@ require(HESK_PATH . 'hesk_settings.inc.php');
require(HESK_PATH . 'inc/common.inc.php');
require(HESK_PATH . 'inc/common.inc.php');
require(HESK_PATH . 'inc/admin_functions.inc.php');
require(HESK_PATH . 'inc/admin_functions.inc.php');
require(HESK_PATH . 'inc/view_attachment_functions.inc.php');
require(HESK_PATH . 'inc/view_attachment_functions.inc.php');
require(HESK_PATH . 'inc/mail_functions.inc.php');
hesk_load_database_functions();
hesk_load_database_functions();
// Check for POST requests larger than what the server can handle
// Check for POST requests larger than what the server can handle
@ -274,37 +275,50 @@ echo '';
if (!isset($_SESSION['hide']['treemenu']))
if (!isset($_SESSION['hide']['treemenu']))
{
{
?>
?>
< div class = "row" > < div class = "col-md-10 col-md-offset-1 ">
< section class = "content ">
< h3 > <?php echo $hesklang [ 'kb' ]; ?> < a href = "javascript:void(0)" onclick = "javascript:alert(' <?php echo hesk_makeJsString ( $hesklang [ 'kb_intro' ]); ?> ')" >< i class = "fa fa-question-circle settingsquestionmark font-size-20p" ></ i ></ a ></ h3 >
< h2 >
< div class = "footerWithBorder blankSpace" > < / div >
<?php echo $hesklang [ 'kb' ]; ? >
< a href = "javascript:void(0)" onclick = "javascript:alert(' <?php echo hesk_makeJsString ( $hesklang [ 'kb_intro' ]); ?> ')" >
<!-- SUB NAVIGATION -- >
< i class = "fa fa-question-circle settingsquestionmark" > < / i >
<?php show_subnav (); ? >
< / a >
<!-- SUB NAVIGATION -- >
< / h2 >
<?php
<?php
show_subnav();
// Show a notice if total public articles is less than 5
// Show a notice if total public articles is less than 5
if ($total_articles < 5 )
if ($total_articles < 5 )
{
{
hesk_show_notice($hesklang['nkba']);
hesk_show_notice($hesklang['nkba']);
}
}
?>
?>
< div class = "row" >
<!-- SHOW THE CATEGORY TREE -- >
< div class = "col-md-8" >
<?php show_treeMenu (); ?>
<?php show_treeMenu (); ?>
<!-- SHOW THE CATEGORY TREE -->
< / div >
< div class = "col-md-4" >
< h3 > <?php echo $hesklang [ 'ktool' ]; ?> </ h3 >
< div class = "box" >
< div class = "footerWithBorder blankSpace" > < / div >
< div class = "box-header with-border" >
< h1 class = "box-title" >
< p >
<?php echo $hesklang [ 'ktool' ]; ?>
< i class = "fa fa-search" ></ i > < a href = "manage_knowledgebase.php?a=list_private" > <?php echo $hesklang [ 'listp' ]; ?> </ a >< br >
< / h1 >
< i class = "fa fa-search" ></ i > < a href = "manage_knowledgebase.php?a=list_draft" > <?php echo $hesklang [ 'listd' ]; ?> </ a >< br />
< div class = "box-tools pull-right" >
< i class = "fa fa-gear font-size-16p gray" ></ i > < a href = "manage_knowledgebase.php?a=update_count" > <?php echo $hesklang [ 'uac' ]; ?> </ a >< br />
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-globe font-size-16p" ></ i > < a href = "http://support.mozilla.com/en-US/kb/how-to-write-knowledge-base-articles" rel = "nofollow" target = "_blank" > <?php echo $hesklang [ 'goodkb' ]; ?> </ a ></ p >
< i class = "fa fa-minus" > < / i >
< / button >
< br / >
< / div >
< / div >
< / div > < div class = "col-md-1" > < / div > < / div >
< div class = "box-body" >
< ul class = "list-unstyled" >
< li >< i class = "fa fa-search" ></ i > < a href = "manage_knowledgebase.php?a=list_private" > <?php echo $hesklang [ 'listp' ]; ?> </ a ></ li >
< li >< i class = "fa fa-search" ></ i > < a href = "manage_knowledgebase.php?a=list_draft" > <?php echo $hesklang [ 'listd' ]; ?> </ a ></ li >
< li >< i class = "fa fa-gear font-size-16p gray" ></ i > < a href = "manage_knowledgebase.php?a=update_count" > <?php echo $hesklang [ 'uac' ]; ?> </ a ></ li >
< li >< i class = "fa fa-globe font-size-16p" ></ i > < a href = "http://support.mozilla.com/en-US/kb/how-to-write-knowledge-base-articles" rel = "nofollow" target = "_blank" > <?php echo $hesklang [ 'goodkb' ]; ?> </ a ></ li >
< / ul >
< / div >
< / div >
< / div >
< / div >
< / section >
<?php
<?php
} // END hide treemenu
} // END hide treemenu
@ -330,10 +344,6 @@ if (!isset($_SESSION['hide']['new_article']))
< li class = "active" > <?php echo $hesklang [ 'new_kb_art' ]; ?> </ li >
< li class = "active" > <?php echo $hesklang [ 'new_kb_art' ]; ?> </ li >
< / ol >
< / ol >
<!-- SUB NAVIGATION -->
<?php $catid = show_subnav ( 'newa' ); ?>
<!-- SUB NAVIGATION -->
<?php
<?php
if ($hesk_settings['kb_wysiwyg'])
if ($hesk_settings['kb_wysiwyg'])
{
{
@ -359,21 +369,63 @@ if (!isset($_SESSION['hide']['new_article']))
<?php
<?php
}
}
?>
?>
< h3 class = "move-right-10" >< a name = "new_article" ></ a > <?php echo $hesklang [ 'new_kb_art' ]; ?> </ h3 >
< section class = "content" >
< div class = "footerWithBorder blankSpace move-right-10 move-left-10" > < / div >
<?php
<?php
$catid = show_subnav('newa');
$onsubmit = '';
$onsubmit = '';
if ($hesk_settings['kb_wysiwyg']) {
if ($hesk_settings['kb_wysiwyg']) {
$onsubmit = 'onsubmit="return validateRichText(\'content-help-block\', \'content-group\', \'content\', \''.addslashes($hesklang['kb_e_cont']).'\')"';
$onsubmit = 'onsubmit="return validateRichText(\'content-help-block\', \'content-group\', \'content\', \''.addslashes($hesklang['kb_e_cont']).'\')"';
}
}
?>
?>
< form action = "manage_knowledgebase.php" role = "form" method = "post" name = "form1" enctype = "multipart/form-data" data-toggle = "validator" <?php echo $onsubmit ; ?> >
< form action = "manage_knowledgebase.php" role = "form" method = "post" name = "form1" enctype = "multipart/form-data" data-toggle = "validator" <?php echo $onsubmit ; ?> >
< div class = "box" >
< div class = "box-header with-border" >
< h1 class = "box-title" >
< a name = "new_article" ></ a > <?php echo $hesklang [ 'new_kb_art' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
<?php
$displayType = $hesk_settings['kb_wysiwyg'] ? 'none' : 'block';
$displayWarn = 'none';
?>
< span id = "contentType" style = "display: <?php echo $displayType ; ?> " >
< label >< input type = "radio" name = "html" value = "0" <?php if ( ! isset ( $_SESSION [ 'new_article' ][ 'html' ]) || ( isset ( $_SESSION [ 'new_article' ][ 'html' ]) && $_SESSION [ 'new_article' ][ 'html' ] == 0 ) ) { echo 'checked="checked"' ;} ?> onclick = "javascript:document.getElementById('kblinks').style.display = 'none'" /> <?php echo $hesklang [ 'kb_dhtml' ]; ?> </ label >< br />
< label >< input type = "radio" name = "html" value = "1" <?php $display = 'none' ; if ( isset ( $_SESSION [ 'new_article' ][ 'html' ]) && $_SESSION [ 'new_article' ][ 'html' ] == 1 ) { echo 'checked="checked"' ; $displayWarn = 'block' ;} ?> onclick = "javascript:document.getElementById('kblinks').style.display = 'block'" /> <?php echo $hesklang [ 'kb_ehtml' ]; ?> </ label >< br />
< span id = "kblinks" style = "display: <?php echo $displayWarn ; ?> " >< i > <?php echo $hesklang [ 'kb_links' ]; ?> </ i ></ span >
< / span >
< div class = "form-group" >
< label for = "subject" class = "control-label" > <?php echo $hesklang [ 'kb_subject' ]; ?> </ label >
< input type = "text" class = "form-control" placeholder = " <?php echo htmlspecialchars ( $hesklang [ 'kb_subject' ]); ?> " data-error = " <?php echo htmlspecialchars ( $hesklang [ 'kb_e_subj' ]); ?> "
name="subject" size="70" maxlength="255" <?php if ( isset ( $_SESSION [ 'new_article' ][ 'subject' ])) { echo 'value="' . $_SESSION [ 'new_article' ][ 'subject' ] . '"' ;} ?> required>
< div class = "help-block with-errors" > < / div >
< / div >
< div class = "form-group" id = "content-group" >
< textarea class = "form-control" id = "content" name = "content" rows = "25" cols = "70" data-error = " <?php echo htmlspecialchars ( $hesklang [ 'kb_e_cont' ]); ?> " id = "content" required > <?php if ( isset ( $_SESSION [ 'new_article' ][ 'content' ])) { echo $_SESSION [ 'new_article' ][ 'content' ];} ?> </ textarea >
< div class = "help-block with-errors" id = "content-help-block" > < / div >
< / div >
< / div >
< / div >
< div class = "box" >
< div class = "box-header with-border" >
< h1 class = "box-title" >
<?php echo $hesklang [ 'information' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
< div class = "row" >
< div class = "row" >
< div class = "col-md-3" >
< div class = "col-md-6" >
< div class = "panel panel-default move-right-10" >
< div class = "panel-heading" > <?php echo $hesklang [ 'information' ]; ?> </ div >
< div class = "panel-body" >
< div class = "form-group" >
< div class = "form-group" >
< label for = "catid" class = "control-label" > <?php echo $hesklang [ 'kb_cat' ]; ?> </ label >
< label for = "catid" class = "control-label" > <?php echo $hesklang [ 'kb_cat' ]; ?> </ label >
< select name = "catid" class = "form-control" > <?php $listBox -> printMenu (); ?> </ select >
< select name = "catid" class = "form-control" > <?php $listBox -> printMenu (); ?> </ select >
@ -407,33 +459,7 @@ if (!isset($_SESSION['hide']['new_article']))
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "col-md-6" >
< div class = "col-md-6" >
<?php
$displayType = $hesk_settings['kb_wysiwyg'] ? 'none' : 'block';
$displayWarn = 'none';
?>
< span id = "contentType" style = "display: <?php echo $displayType ; ?> " >
< label >< input type = "radio" name = "html" value = "0" <?php if ( ! isset ( $_SESSION [ 'new_article' ][ 'html' ]) || ( isset ( $_SESSION [ 'new_article' ][ 'html' ]) && $_SESSION [ 'new_article' ][ 'html' ] == 0 ) ) { echo 'checked="checked"' ;} ?> onclick = "javascript:document.getElementById('kblinks').style.display = 'none'" /> <?php echo $hesklang [ 'kb_dhtml' ]; ?> </ label >< br />
< label >< input type = "radio" name = "html" value = "1" <?php $display = 'none' ; if ( isset ( $_SESSION [ 'new_article' ][ 'html' ]) && $_SESSION [ 'new_article' ][ 'html' ] == 1 ) { echo 'checked="checked"' ; $displayWarn = 'block' ;} ?> onclick = "javascript:document.getElementById('kblinks').style.display = 'block'" /> <?php echo $hesklang [ 'kb_ehtml' ]; ?> </ label >< br />
< span id = "kblinks" style = "display: <?php echo $displayWarn ; ?> " >< i > <?php echo $hesklang [ 'kb_links' ]; ?> </ i ></ span >
< / span >
< div class = "form-group" >
< label for = "subject" class = "control-label" > <?php echo $hesklang [ 'kb_subject' ]; ?> </ label >
< input type = "text" class = "form-control" placeholder = " <?php echo htmlspecialchars ( $hesklang [ 'kb_subject' ]); ?> " data-error = " <?php echo htmlspecialchars ( $hesklang [ 'kb_e_subj' ]); ?> "
name="subject" size="70" maxlength="255" <?php if ( isset ( $_SESSION [ 'new_article' ][ 'subject' ])) { echo 'value="' . $_SESSION [ 'new_article' ][ 'subject' ] . '"' ;} ?> required>
< div class = "help-block with-errors" > < / div >
< / div >
< div class = "form-group" id = "content-group" >
< textarea class = "form-control" id = "content" name = "content" rows = "25" cols = "70" data-error = " <?php echo htmlspecialchars ( $hesklang [ 'kb_e_cont' ]); ?> " id = "content" required > <?php if ( isset ( $_SESSION [ 'new_article' ][ 'content' ])) { echo $_SESSION [ 'new_article' ][ 'content' ];} ?> </ textarea >
< div class = "help-block with-errors" id = "content-help-block" > < / div >
< / div >
< / div >
< div class = "col-md-3" >
< div class = "panel panel-default move-left-10" >
< div class = "panel-body" >
< div class = "form-group" >
< div class = "form-group" >
< label for = "keywords" class = "control-label" > <?php echo $hesklang [ 'kw' ]; ?> </ label >
< label for = "keywords" class = "control-label" > <?php echo $hesklang [ 'kw' ]; ?> </ label >
< p class = "font-size-90 form-control-static" > <?php echo $hesklang [ 'kw1' ]; ?> </ p >< br />
< p class = "font-size-90 form-control-static" > <?php echo $hesklang [ 'kw1' ]; ?> </ p >< br />
@ -448,7 +474,10 @@ if (!isset($_SESSION['hide']['new_article']))
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
display_dropzone_field($hesk_settings['hesk_url'] . '/internal-api/admin/knowledgebase/upload-attachment.php');
endif; // End attachments
endif; // End attachments
?>
?>
< br >
< / div >
< / div >
< / div >
< div class = "box-footer" >
< div class = "form-group" >
< div class = "form-group" >
< input type = "hidden" name = "a" value = "new_article" / >
< input type = "hidden" name = "a" value = "new_article" / >
< input type = "hidden" name = "token" value = " <?php hesk_token_echo (); ?> " />
< input type = "hidden" name = "token" value = " <?php hesk_token_echo (); ?> " />
@ -460,37 +489,8 @@ if (!isset($_SESSION['hide']['new_article']))
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / form >
< / form >
< / section >
< table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
< td >
< div align = "center" >
< table border = "0" >
< tr >
< td >
< form action = "manage_knowledgebase.php" method = "post" name = "form1" enctype = "multipart/form-data" >
< p > < br / > < br / >
< br / >
< / p >
< p align = "center" > < / p >
< / form >
< / td >
< / tr >
< / table >
< / div >
< / td >
< / tr >
< / table >
<?php
<?php
} // END hide article
} // END hide article
@ -509,13 +509,10 @@ if (!isset($_SESSION['hide']['new_category']))
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_new' ]; ?> </ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_new' ]; ?> </ li >
< / ol >
< / ol >
< section class = "content" >
<!-- SUB NAVIGATION -->
<?php show_subnav ( 'newc' ); ?>
<?php show_subnav ( 'newc' ); ?>
<!-- SUB NAVIGATION -->
< div class = "row" >
< div class = "row" >
< div class = "col-md- 4 move-right-40 ">
< div class = "col-md-5" >
<?php
<?php
/* Show the treemenu? */
/* Show the treemenu? */
if (isset($_SESSION['hide']['cat_treemenu']))
if (isset($_SESSION['hide']['cat_treemenu']))
@ -524,11 +521,20 @@ if (!isset($_SESSION['hide']['new_category']))
}
}
?>
?>
< / div >
< / div >
< div class = "col-md-7 move-left-20 ">
< div class = "col-md-7 ">
< form action = "manage_knowledgebase.php" class = "form-horizontal" method = "post" role = "form" name = "form2" data-toggle = "validator" >
< form action = "manage_knowledgebase.php" class = "form-horizontal" method = "post" role = "form" name = "form2" data-toggle = "validator" >
< h3 >< a name = "new_category" ></ a > <?php echo $hesklang [ 'kb_cat_new' ]; ?> </ h3 >
< div class = "box" >
< div class = "footerWithBorder blankSpace" > < / div >
< div class = "box-header with-border" >
< h1 class = "box-title" >
< a name = "new_category" ></ a > <?php echo $hesklang [ 'kb_cat_new' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
< div class = "form-group" >
< div class = "form-group" >
< label for = "title" class = "col-sm-3 control-label" > <?php echo $hesklang [ 'kb_cat_title' ]; ?> </ label >
< label for = "title" class = "col-sm-3 control-label" > <?php echo $hesklang [ 'kb_cat_title' ]; ?> </ label >
< div class = "col-sm-9" >
< div class = "col-sm-9" >
@ -565,12 +571,14 @@ if (!isset($_SESSION['hide']['new_category']))
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / form >
< / form >
< / div >
< / div >
< / div >
< / div >
< / section >
<?php
<?php
} // END hide new category form
} // END hide new category form
/* Clean unneeded session variables */
/* Clean unneeded session variables */
@ -598,49 +606,47 @@ function list_draft() {
/* Print main manage users page */
/* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?>
?>
< / td >
< / tr >
< tr >
< td >
< ol class = "breadcrumb" >
< ol class = "breadcrumb" >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< / ol >
< / ol >
< section class = "content" >
<!-- SUB NAVIGATION -->
<?php show_subnav ( '' , $catid ); ?>
<!-- SUB NAVIGATION -->
<?php
<?php
show_subnav('',$catid);
$res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='2' ORDER BY `catid` ASC, `id` ASC");
$res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='2' ORDER BY `catid` ASC, `id` ASC");
$num = hesk_dbNumRows($res);
$num = hesk_dbNumRows($res);
?>
< div class = "box" >
< div class = "box-header with-border" >
< h1 class = "box-title" >
<?php echo $hesklang [ 'artd' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
<?php
if ($num == 0)
if ($num == 0)
{
{
echo '< p class = "move-right-40" > '.$hesklang['kb_no_dart'].' < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'&type=2" > < i class = "fa fa-plus" > < / i > < / a > < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'&type=2" > < b > '.$hesklang['kb_i_art2'].'< / b > < / a > < / p > ';
echo $hesklang['kb_no_dart'] ;
}
}
else
else
{
{
?>
?>
< div class = "nu-floatRight" >
< table class = "table table-striped" >
<?php echo '<a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '&type=2"><i class="fa fa-plus font-size-16p green"></i></a> <a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '&type=2"><b>' . $hesklang [ 'kb_i_art2' ] . '</b></a>' ; ?>
< thead >
< / div >
< h3 class = "pad-up-5" > » <?php echo $hesklang [ 'artd' ]; ?> </ h3 >
< div align = "center" >
< table border = "0" width = "100%" cellspacing = "1" cellpadding = "3" class = "white" >
< tr >
< tr >
< th class = "admin_white" > < / th >
< th > < / th >
< th class = "admin_white" >< b >< i > <?php echo $hesklang [ 'kb_subject' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'kb_subject' ]; ?> </ th >
< th class = "admin_white" >< b >< i > <?php echo $hesklang [ 'kb_cat' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'kb_cat' ]; ?> </ th >
< th class = "admin_white" style = "width:120px" >< b >< i > <?php echo $hesklang [ 'opt' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'opt' ]; ?> </ th >
< / tr >
< / tr >
< / thead >
<?php
<?php
$i=1;
$j=1;
$j=1;
while ($article = hesk_dbFetchAssoc($res))
while ($article = hesk_dbFetchAssoc($res))
@ -648,13 +654,8 @@ function list_draft() {
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
{
{
$color = 'admin_green';
unset($_SESSION['artord']);
unset($_SESSION['artord']);
}
}
else
{
$color = $i ? 'admin_white' : 'admin_gray';
}
// Check for articles with no existing parent category
// Check for articles with no existing parent category
if ( ! isset($kb_cat[$article['catid']]) )
if ( ! isset($kb_cat[$article['catid']]) )
@ -662,29 +663,35 @@ function list_draft() {
$article['catid'] = hesk_stray_article($article['id']);
$article['catid'] = hesk_stray_article($article['id']);
}
}
$tmp = $i ? 'White' : 'Blue';
$style = 'class="option'.$tmp.'OFF" onmouseover="this.className=\'option'.$tmp.'ON\'" onmouseout="this.className=\'option'.$tmp.'OFF\'"';
$i = $i ? 0 : 1;
$type = $hesklang['kb_draft'];
?>
?>
< tr >
< tr >
< td class = " <?php echo $color ; ?> " > <?php echo $j ; ?> .</ td >
< td > <?php echo $j ; ?> .</ td >
< td class = " <?php echo $color ; ?> " > <?php echo $article [ 'subject' ]; ?> </ td >
< td > <?php echo $article [ 'subject' ]; ?> </ td >
< td class = " <?php echo $color ; ?> " > <?php echo $kb_cat [ $article [ 'catid' ]]; ?> </ td >
< td > <?php echo $kb_cat [ $article [ 'catid' ]]; ?> </ td >
< td class = " <?php echo $color ; ?> text-center" style = "white-space:nowrap;" >
< td style = "white-space:nowrap;" >
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i mg src = "../img/article_text.png" width = "16" height = "16" alt = " <?php echo $hesklang [ 'viewart' ]; ?> " title = " <?php echo $hesklang [ 'viewart' ]; ?> " <?php echo $style ; ?> / ></a >
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i class = "fa fa-file-o" data-toggle = "tooltip " title = " <?php echo $hesklang [ 'viewart' ]; ?> " ></ i ></a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil icon-link orange "></ i ></ a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil icon-link orange " data-toggle = "tooltip" title = " <?php echo $hesklang [ 'edit' ]; ?> "></ i ></ a >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i mg src = "../img/delete.png" width = "16" height = "16" alt = " <?php echo $hesklang [ 'delete' ]; ?> " title = " <?php echo $hesklang [ 'delete' ]; ?> " <?php echo $style ; ?> /></ a > </td >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i class = "fa fa-times icon-link red" data-toggle = "tooltip " title = " <?php echo $hesklang [ 'delete' ]; ?> " ></ i ></ a > </td >
< / tr >
< / tr >
<?php
<?php
$j++;
$j++;
} // End while
} // End while
?>
?>
< / table >
< / table >
< / div >
<?php
<?php
}
}
?>
< / div >
< div class = "box-footer" >
< a class = "btn btn-success" href = "manage_knowledgebase.php?a=add_article&catid= <?php echo $catid ; ?> &type=2" >
< i class = "fa fa-plus" > < / i >
<?php echo $hesklang [ 'kb_i_art2' ]; ?>
< / a >
< / div >
< / div >
< / section >
<?php
echo ' < br / > ';
echo ' < br / > ';
@ -722,56 +729,55 @@ function list_private() {
/* Print main manage users page */
/* Print main manage users page */
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?>
< / td >
$res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='1' " . (count($private_categories) ? " OR `catid` IN('" . implode("','", $private_categories) . "') " : '') . " ORDER BY `catid` ASC, `id` ASC");
< / tr >
$num = hesk_dbNumRows($res);
< tr >
?>
< td >
< ol class = "breadcrumb" >
< ol class = "breadcrumb" >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< / ol >
< / ol >
< section class = "content" >
<!-- SUB NAVIGATION -->
<?php show_subnav ( '' , $catid ); ?>
<?php show_subnav ( '' , $catid ); ?>
<!-- SUB NAVIGATION -->
< div class = "box" >
< div class = "box-header with-border" >
< h1 class = "box-title" >
<?php echo $hesklang [ 'artp' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
<?php
<?php
$res = hesk_dbQuery("SELECT * FROM `". hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `type`='1' " . (count($private_categories) ? " OR `catid` IN('" . implode("','", $private_categories) . "') " : '') . " ORDER BY `catid` ASC, `id` ASC");
$num = hesk_dbNumRows($res);
if ($num == 0)
if ($num == 0)
{
{
echo '< p class = "move-right-40" > '.$hesklang['kb_no_part'].' < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'&type=1" > < i class = "fa fa-plus" > < / i > < / a > < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'&type=1" > < b > '.$hesklang['kb_i_art2'].'< / b > < / a > < / p > ';
echo '< p > '.$hesklang['kb_no_part'].'< / p > ';
}
}
else
else
{
{
?>
?>
< div class = "nu-floatRight" >
< table class = "table table-striped" >
<?php echo '<a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '&type=1"><i class="fa fa-plus icon-link green"></i></a> <a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '&type=1"><b>' . $hesklang [ 'kb_i_art2' ] . '</b></a>' ; ?>
< thead >
< / div >
< h3 style = "padding-bottom:5px;" > » <?php echo $hesklang [ 'artp' ]; ?> </ h3 >
< div align = "center" >
< table border = "0" width = "100%" cellspacing = "1" cellpadding = "3" class = "white" >
< tr >
< tr >
< th class = "admin_white" > < / th >
< th > < / th >
< th class = "admin_white" >< b >< i > <?php echo $hesklang [ 'kb_subject' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'kb_subject' ]; ?> </ th >
< th class = "admin_white" >< b >< i > <?php echo $hesklang [ 'kb_cat' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'kb_cat' ]; ?> </ th >
< th class = "admin_white" >< b >< i > <?php echo $hesklang [ 'views' ]; ?> </i ></ b > </th >
< th > <?php echo $hesklang [ 'views' ]; ?> </ th >
<?php
<?php
if ($hesk_settings['kb_rating'])
if ($hesk_settings['kb_rating'])
{
{
?>
?>
< th class = "admin_white" style = "white-space:nowrap" nowrap = "nowrap" width = "130" > <b >< i > <?php echo $hesklang [ 'rating' ] . ' (' . $hesklang [ 'votes' ] . ')' ; ?> </i ></ b > </th >
< th style = "white-space:nowrap" nowrap = "nowrap" width = "130" > <?php echo $hesklang [ 'rating' ] . ' (' . $hesklang [ 'votes' ] . ')' ; ?> </th >
<?php
<?php
}
}
?>
?>
< th class= "admin_white" style= "width:120px" > <b >< i > <?php echo $hesklang [ 'opt' ]; ?> </i ></ b > </th >
< th style= "width:120px" > <?php echo $hesklang [ 'opt' ]; ?> </th >
< / tr >
< / tr >
< / thead >
<?php
<?php
$i=1;
$i=1;
@ -782,13 +788,8 @@ function list_private() {
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
{
{
$color = 'admin_green';
unset($_SESSION['artord']);
unset($_SESSION['artord']);
}
}
else
{
$color = $i ? 'admin_white' : 'admin_gray';
}
// Check for articles with no existing parent category
// Check for articles with no existing parent category
if ( ! isset($kb_cat[$article['catid']]) )
if ( ! isset($kb_cat[$article['catid']]) )
@ -797,15 +798,13 @@ function list_private() {
}
}
$tmp = $i ? 'White' : 'Blue';
$tmp = $i ? 'White' : 'Blue';
$style = 'class="option'.$tmp.'OFF" onmouseover="this.className=\'option'.$tmp.'ON\'" onmouseout="this.className=\'option'.$tmp.'OFF\'"';
$i = $i ? 0 : 1;
$i = $i ? 0 : 1;
$type = $hesklang['kb_private'];
if ($hesk_settings['kb_rating'])
if ($hesk_settings['kb_rating'])
{
{
$alt = $article['rating'] ? sprintf($hesklang['kb_rated'], sprintf("%01.1f", $article['rating'])) : $hesklang['kb_not_rated'];
$alt = $article['rating'] ? sprintf($hesklang['kb_rated'], sprintf("%01.1f", $article['rating'])) : $hesklang['kb_not_rated'];
$rat = '< td class = "'.$color.'" style = "white-space:nowrap;" > < img src = "../img/star_'.(hesk_round_to_half($article['rating'])*10).'.png" width = "85" height = "16" alt = "'.$alt.'" title = "'.$alt.'" border = "0" style = "vertical-align:text-bottom" / > ('.$article['votes'].') < / td > ';
$rat = '< td > < span data-toggle = "tooltip" title = "' . $alt . '" > ' . mfh_get_stars(hesk_round_to_half($article['rating'])) . '< / span > (' . $article['votes'] . ') < / td > ';
}
}
else
else
{
{
@ -814,24 +813,35 @@ function list_private() {
?>
?>
< tr >
< tr >
< td class = " <?php echo $color ; ?> " > <?php echo $j ; ?> .</ td >
< td > <?php echo $j ; ?> .</ td >
< td class = " <?php echo $color ; ?> " > <?php echo $article [ 'subject' ]; ?> </ td >
< td > <?php echo $article [ 'subject' ]; ?> </ td >
< td class = " <?php echo $color ; ?> " > <?php echo $kb_cat [ $article [ 'catid' ]]; ?> </ td >
< td > <?php echo $kb_cat [ $article [ 'catid' ]]; ?> </ td >
< td class = " <?php echo $color ; ?> " > <?php echo $article [ 'views' ]; ?> </ td >
< td > <?php echo $article [ 'views' ]; ?> </ td >
<?php echo $rat ; ?>
<?php echo $rat ; ?>
< td class = " <?php echo $color ; ?> text-center">
< td class = " text-center">
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i mg src = "../img/article_text.png" width = "16" height = "16" alt = " <?php echo $hesklang [ 'viewart' ]; ?> " title = " <?php echo $hesklang [ 'viewart' ]; ?> " <?php echo $style ; ?> / ></a >
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i class = "fa fa-file-o icon-link" data-toggle = "tooltip " title = " <?php echo $hesklang [ 'viewart' ]; ?> " ></ i ></a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil icon-link orange "></ i ></ a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil icon-link orange " data-toggle = "tooltip" title = " <?php echo $hesklang [ 'edit' ]; ?> "></ i ></ a >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i mg src = "../img/delete.png" width = "16" height = "16" alt = " <?php echo $hesklang [ 'delete' ]; ?> " title = " <?php echo $hesklang [ 'delete' ]; ?> " <?php echo $style ; ?> / ></a > </ td >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i class = "fa fa-times red icon-link" data-toggle = "tooltip " title = " <?php echo $hesklang [ 'delete' ]; ?> " ></ i ></a > </ td >
< / tr >
< / tr >
<?php
<?php
$j++;
$j++;
} // End while
} // End while
?>
?>
< / table >
< / table >
< / div >
<?php
<?php
}
}
?>
< / div >
< div class = "box-footer" >
< a class = "btn btn-success" href = "manage_knowledgebase.php?a=add_article&catid= <?php echo $catid ; ?> &type=1" >
< i class = "fa fa-plus" > < / i >
<?php echo $hesklang [ 'kb_i_art2' ]; ?>
< / a >
< / div >
< / div >
< / section >
<?php
echo ' < br / > ';
echo ' < br / > ';
@ -1635,41 +1645,34 @@ function manage_category() {
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?>
?>
< / td >
< / tr >
< ol class = "breadcrumb" >
< ol class = "breadcrumb" >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li >< a href = "manage_knowledgebase.php" > <?php echo $hesklang [ 'kb' ]; ?> </ a ></ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< li class = "active" > <?php echo $hesklang [ 'kb_cat_man' ]; ?> </ li >
< / ol >
< / ol >
< section class = "content" >
<!-- SUB NAVIGATION -->
<?php show_subnav ( '' , $catid ); ?>
<!-- SUB NAVIGATION -->
<?php
if ( ! isset($_SESSION['hide']['article_list']))
{
?>
< h3 class = "move-right-40" > <?php echo $hesklang [ 'category' ]; ?> : < span class = "black" > <?php echo $this_cat [ 'name' ]; ?> </ span ></ h3 >
< br / >
<?php
<?php
show_subnav('',$catid);
$result = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `catid`='{$catid}' ORDER BY `sticky` DESC, `art_order` ASC");
$result = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."kb_articles` WHERE `catid`='{$catid}' ORDER BY `sticky` DESC, `art_order` ASC");
$num = hesk_dbNumRows($result);
$num = hesk_dbNumRows($result);
$secondCol = $catid == 1 ? 'col-md-12' : 'col-md-8';
$secondCol = $catid == 1 ? 'col-md-12' : 'col-md-8';
$secondStyle = $catid == 1 ? 'margin-left: 25px' : 'padding-right: 40px';
if ( ! isset($_SESSION['hide']['article_list'])):
?>
?>
< div class = "row" >
< div class = "row" >
<?php if ( $catid != 1 ) : ?>
<?php if ( $catid != 1 ) : ?>
< div class = "col-md-4" >
< div class = "col-md-4" >
< div class = "move-right-25" >
< div class = "box" >
< div class = "panel panel-default" >
< div class = "box-header with-border" >
< div class = "panel-heading" > <?php echo $hesklang [ 'catset' ]; ?> </ div >
< h1 class = "box-title" >
< div class = "panel-body" >
<?php echo $hesklang [ 'catset' ]; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
< form action = "manage_knowledgebase.php" method = "post" role = "form" name = "form1" data-toggle = "validator"
< form action = "manage_knowledgebase.php" method = "post" role = "form" name = "form1" data-toggle = "validator"
onsubmit="Javascript:return hesk_deleteIfSelected('dodelete','<?php echo hesk_makeJsString ( $hesklang [ 'kb_delcat' ]); ?> ')">
onsubmit="Javascript:return hesk_deleteIfSelected('dodelete','<?php echo hesk_makeJsString ( $hesklang [ 'kb_delcat' ]); ?> ')">
< div class = "form-group" >
< div class = "form-group" >
@ -1722,13 +1725,24 @@ function manage_category() {
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
<?php endif ; ?>
<?php endif ; ?>
< div class = " <?php echo $secondCol ; ?> " style = " <?php echo $secondStyle ; ?> " >
< div class = " <?php echo $secondCol ; ?> " >
< div class = "box" >
< div class = "box-header with-border" >
< h1 class = "box-title" >
<?php echo sprintf ( $hesklang [ 'articles_in_category_x' ], '<strong>' . $this_cat [ 'name' ]) . '</strong>' ; ?>
< / h1 >
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
<?php
<?php
if ($num == 0)
if ($num == 0)
{
{
echo '< p > '.$hesklang['kb_no_art'].' < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'" > < i class = "fa fa-plus icon-link green" > < / i > < / a > < a href = "manage_knowledgebase.php?a=add_article&catid='.$catid.'" > < b > '.$hesklang['kb_i_art2'].'< / b > < / a > < / p > ';
echo '< p > '.$hesklang['kb_no_art'].' < / p > ';
}
}
else
else
{
{
@ -1739,10 +1753,8 @@ function manage_category() {
$num_nosticky = $num - $num_sticky;
$num_nosticky = $num - $num_sticky;
?>
?>
< h3 > <?php echo $hesklang [ 'kb_cat_art' ]; ?> < small class = "nu-floatRight" > <?php echo '<a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '"><i class="fa fa-plus"></i></a> <a href="manage_knowledgebase.php?a=add_article&catid=' . $catid . '"><b>' . $hesklang [ 'kb_i_art2' ] . '</b></a>' ; ?> </ small ></ h3 >
< div class = "footerWithBorder blankSpace" > < / div >
< table class = "table table-striped" >
< table class = "table table-striped" >
< thead >
< tr >
< tr >
< th > < / th >
< th > < / th >
< th > <?php echo $hesklang [ 'kb_subject' ]; ?> </ th >
< th > <?php echo $hesklang [ 'kb_subject' ]; ?> </ th >
@ -1758,6 +1770,7 @@ function manage_category() {
?>
?>
< th > <?php echo $hesklang [ 'opt' ]; ?> </ th >
< th > <?php echo $hesklang [ 'opt' ]; ?> </ th >
< / tr >
< / tr >
< / thead >
<?php
<?php
$i=1;
$i=1;
@ -1778,20 +1791,10 @@ function manage_category() {
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
if (isset($_SESSION['artord']) & & $article['id'] == $_SESSION['artord'])
{
{
$color = 'admin_green';
unset($_SESSION['artord']);
unset($_SESSION['artord']);
}
}
elseif ($article['sticky'])
{
$color = 'admin_yellow';
}
else
{
$color = $i ? 'admin_white' : 'admin_gray';
}
$tmp = $i ? 'White' : 'Blue';
$tmp = $i ? 'White' : 'Blue';
$style = 'class="option'.$tmp.'OFF" onmouseover="this.className=\'option'.$tmp.'ON\'" onmouseout="this.className=\'option'.$tmp.'OFF\'"';
$i = $i ? 0 : 1;
$i = $i ? 0 : 1;
switch ($article['type'])
switch ($article['type'])
@ -1809,7 +1812,7 @@ function manage_category() {
if ($hesk_settings['kb_rating'])
if ($hesk_settings['kb_rating'])
{
{
$alt = $article['rating'] ? sprintf($hesklang['kb_rated'], sprintf("%01.1f", $article['rating'])) : $hesklang['kb_not_rated'];
$alt = $article['rating'] ? sprintf($hesklang['kb_rated'], sprintf("%01.1f", $article['rating'])) : $hesklang['kb_not_rated'];
$rat = '< td > < img src = "../img/star_'.(hesk_round_to_half($article['rating'])*10).'.png" width = "85" height = "16" alt = "'.$alt.'" title = "'.$alt.'" border = "0" style = "vertical-align:text-bottom" / > ('.$article['votes'].') < / td > ';
$rat = '< td > < span data-toggle = "tooltip" title = "' . $alt . '" > ' . mfh_get_stars(hesk_round_to_half($article['rating'])) . '< / span > (' . $article['votes'] . ') < / td > ';
}
}
else
else
{
{
@ -1854,7 +1857,7 @@ function manage_category() {
echo '< img src = "../img/blank.gif" width = "16" height = "16" alt = "" style = "padding:3px;border:none;vertical-align:text-bottom;" / > < img src = "../img/blank.gif" width = "16" height = "16" alt = "" style = "padding:3px;border:none;vertical-align:text-bottom;" / > ';
echo '< img src = "../img/blank.gif" width = "16" height = "16" alt = "" style = "padding:3px;border:none;vertical-align:text-bottom;" / > < img src = "../img/blank.gif" width = "16" height = "16" alt = "" style = "padding:3px;border:none;vertical-align:text-bottom;" / > ';
}
}
?>
?>
< a href = "manage_knowledgebase.php?a=sticky&s= <?php echo $article [ 'sticky' ] ? 0 : 1 ?> &id= <?php echo $article [ 'id' ]; ?> &catid= <?php echo $catid ; ?> &token= <?php hesk_token_echo (); ?> " >< i class = " fa fa-exclamation-triangle icon-link" style = "color: <?php if ( ! $article [ 'sticky' ]) { echo 'gray' ;} else { echo ' o rang e';} ?> " data-toggle = "tooltip" data-placement = "top" title = " <?php if ( ! $article [ 'sticky' ]) { echo $hesklang [ 'stickyon' ];} else { echo $hesklang [ 'stickyoff' ];} ?> " ></ i ></ a >
< a href = "manage_knowledgebase.php?a=sticky&s= <?php echo $article [ 'sticky' ] ? 0 : 1 ?> &id= <?php echo $article [ 'id' ]; ?> &catid= <?php echo $catid ; ?> &token= <?php hesk_token_echo (); ?> " >< i class = " glyphicon glyphicon-pushpin icon-link" style = "color: <?php if ( ! $article [ 'sticky' ]) { echo 'gray' ;} else { echo ' red ';} ?> " data-toggle = "tooltip" data-placement = "top" title = " <?php if ( ! $article [ 'sticky' ]) { echo $hesklang [ 'stickyon' ];} else { echo $hesklang [ 'stickyoff' ];} ?> " ></ i ></ a >
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i class = "fa fa-file-o icon-link" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'viewart' ] ?> " ></ i ></ a >
< a href = "knowledgebase_private.php?article= <?php echo $article [ 'id' ]; ?> &back=1 <?php if ( $article [ 'type' ] == 2 ) { echo '&draft=1' ;} ?> " target = "_blank" >< i class = "fa fa-file-o icon-link" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'viewart' ] ?> " ></ i ></ a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil" style = "color:orange;font-size:16px" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'edit' ] ?> " ></ i ></ a >
< a href = "manage_knowledgebase.php?a=edit_article&id= <?php echo $article [ 'id' ]; ?> " >< i class = "fa fa-pencil" style = "color:orange;font-size:16px" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'edit' ] ?> " ></ i ></ a >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i class = "fa fa-times icon-link red" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'delete' ] ?> " ></ i ></ a > </ td >
< a href = "manage_knowledgebase.php?a=remove_article&id= <?php echo $article [ 'id' ]; ?> &token= <?php hesk_token_echo (); ?> " onclick = "return hesk_confirmExecute(' <?php echo hesk_makeJsString ( $hesklang [ 'del_art' ]); ?> ');" >< i class = "fa fa-times icon-link red" data-toggle = "tooltip" data-placement = "top" title = " <?php echo $hesklang [ 'delete' ] ?> " ></ i ></ a > </ td >
@ -1868,15 +1871,20 @@ function manage_category() {
<?php
<?php
} ?>
} ?>
< / div >
< / div >
< div class = "box-footer" >
< a href = "manage_knowledgebase.php?a=add_article&catid= <?php echo $catid ; ?> " class = "btn btn-success" >
< i class = "fa fa-plus" > < / i >
<?php echo $hesklang [ 'kb_i_art2' ]; ?>
< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
<?php endif ; ?>
< / section >
<?php } // END if hide article list
<?php
echo ' < br / > ';
/* Clean unneeded session variables */
/* Clean unneeded session variables */
hesk_cleanSessionVars(array('hide','manage_cat','edit_article'));
hesk_cleanSessionVars(array('hide','manage_cat','edit_article'));
@ -2209,19 +2217,28 @@ function show_treeMenu() {
?>
?>
< script src = " <?php echo HESK_PATH ; ?> inc/treemenu/TreeMenu_v25.js" language = "JavaScript" type = "text/javascript" ></ script >
< script src = " <?php echo HESK_PATH ; ?> inc/treemenu/TreeMenu_v25.js" language = "JavaScript" type = "text/javascript" ></ script >
< h3 > <?php echo $hesklang [ 'kbstruct' ]; ?> </ h3 >
< div class = "box" >
< div class = "footerWithBorder blankSpace" > < / div >
< div class = "box-header with-border" >
< h1 class = "box-title" >
<?php
<?php echo $hesklang [ 'kbstruct' ]; ?>
$treeMenu->printMenu();
< / h1 >
?>
< div class = "box-tools pull-right" >
< button type = "button" class = "btn btn-box-tool" data-widget = "collapse" >
< br / >
< i class = "fa fa-minus" > < / i >
< / button >
< / div >
< / div >
< div class = "box-body" >
<?php $treeMenu -> printMenu (); ?>
< i class = "fa fa-plus icon-link green" ></ i > = <?php echo $hesklang [ 'kb_p_art2' ]; ?> < br />
< i class = "fa fa-plus icon-link green" ></ i > = <?php echo $hesklang [ 'kb_p_art2' ]; ?> < br />
< i class = "fa fa-caret-right blue" style = "font-size:18px" ></ i > = <?php echo $hesklang [ 'kb_p_cat2' ]; ?> < br />
< i class = "fa fa-caret-right blue" style = "font-size:18px" ></ i > = <?php echo $hesklang [ 'kb_p_cat2' ]; ?> < br />
< i class = "fa fa-gear icon-link gray" ></ i > = <?php echo $hesklang [ 'kb_p_man2' ]; ?> < br />
< i class = "fa fa-gear icon-link gray" ></ i > = <?php echo $hesklang [ 'kb_p_man2' ]; ?> < br />
< img src = "../img/blank.gif" width = "1" height = "16" alt = "" style = "padding:1px" class = "optionWhiteNbOFF" /> (< span class = "kb_published" > 1</ span > , < span class = "kb_private" > 2</ span > , < span class = "kb_draft" > 3</ span > ) = <?php echo $hesklang [ 'xyz' ]; ?> < br />
< img src = "../img/blank.gif" width = "1" height = "16" alt = "" style = "padding:1px" class = "optionWhiteNbOFF" /> (< span class = "kb_published" > 1</ span > , < span class = "kb_private" > 2</ span > , < span class = "kb_draft" > 3</ span > ) = <?php echo $hesklang [ 'xyz' ]; ?> < br />
< / div >
< / div >
<?php
<?php
}
}