#218 Add settings area for quick help sections
This commit is contained in:
parent
c3c1f2a43c
commit
5c3fca0682
@ -954,6 +954,32 @@ if ( defined('HESK_DEMO') )
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="quick_help_sections[]" class="col-sm-6 control-label">
|
||||||
|
<span class="label label-primary"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="<?php echo $hesklang['added_in_mods_for_hesk']; ?>"><?php echo $hesklang['mods_for_hesk_acronym']; ?></span>
|
||||||
|
<?php echo $hesklang['quick_help_sections']; ?>
|
||||||
|
<i class="fa fa-question-circle settingsquestionmark" data-toggle="htmlpopover"
|
||||||
|
title="<?php echo $hesklang['quick_help_sections']; ?>"
|
||||||
|
data-content="<?php echo htmlspecialchars($hesklang['quick_help_sections_help']); ?>"></i>
|
||||||
|
</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<?php
|
||||||
|
$quickHelpRs = hesk_dbQuery("SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections`");
|
||||||
|
while ($row = hesk_dbFetchAssoc($quickHelpRs)): ?>
|
||||||
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
|
<input type="checkbox" name="quick_help_sections[]"
|
||||||
|
value="<?php echo $row['id']; ?>" <?php if ($row['show']) { echo 'checked'; } ?>>
|
||||||
|
<?php echo $hesklang[$row['location']]; ?>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endwhile;
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -496,6 +496,14 @@ for ($i=1;$i<=20;$i++)
|
|||||||
|
|
||||||
$set['hesk_version'] = $hesk_settings['hesk_version'];
|
$set['hesk_version'] = $hesk_settings['hesk_version'];
|
||||||
|
|
||||||
|
// Process quick help sections
|
||||||
|
hesk_dbConnect();
|
||||||
|
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections` SET `show` = '0'");
|
||||||
|
$postArray = hesk_POST_array('quick_help_sections');
|
||||||
|
foreach ($postArray as $value) {
|
||||||
|
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."quick_help_sections` SET `show` = '1' WHERE `id` = '".intval($value)."'");
|
||||||
|
}
|
||||||
|
|
||||||
// Save the modsForHesk_settings.inc.php file
|
// Save the modsForHesk_settings.inc.php file
|
||||||
$set['rtl'] = empty($_POST['rtl']) ? 0 : 1;
|
$set['rtl'] = empty($_POST['rtl']) ? 0 : 1;
|
||||||
$set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1;
|
$set['show-icons'] = empty($_POST['show-icons']) ? 0 : 1;
|
||||||
|
@ -27,6 +27,11 @@ $hesklang['sort_alphabetically'] = 'Sort alphabetically';
|
|||||||
$hesklang['category_sort'] = 'Category Sorting';
|
$hesklang['category_sort'] = 'Category Sorting';
|
||||||
$hesklang['category_sort_help'] = 'Determines if categories shown on the manage categories page and all dropdowns are sorted by the user-defined order (default), or
|
$hesklang['category_sort_help'] = 'Determines if categories shown on the manage categories page and all dropdowns are sorted by the user-defined order (default), or
|
||||||
sorted alphabetically.';
|
sorted alphabetically.';
|
||||||
|
$hesklang['quick_help_sections'] = 'Quick Help Sections';
|
||||||
|
$hesklang['quick_help_sections_help'] = 'Check the checkbox to show the "Quick Help" sections on the left-hand side, or uncheck to not show.';
|
||||||
|
$hesklang['create_ticket'] = 'Create ticket';
|
||||||
|
$hesklang['view_ticket_form'] = 'View ticket form';
|
||||||
|
$hesklang['knowledgebase'] = 'Knowledgebase section';
|
||||||
|
|
||||||
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
// ADDED OR MODIFIED IN Mods for HESK 2.3.0
|
||||||
$hesklang['sm_icon'] = 'Icon';
|
$hesklang['sm_icon'] = 'Icon';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user