Skip to content
Snippets Groups Projects
settings-kb.inc.php 1.66 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?php
    if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin() || !$config) die('Access Denied');
    ?>
    <h2>Knowledge Base Settings and Options</h2>
    
    Jared Hancock's avatar
    Jared Hancock committed
    <form action="settings.php?t=kb" method="post" id="save">
    
    <?php csrf_token(); ?>
    
    Jared Hancock's avatar
    Jared Hancock committed
    <input type="hidden" name="t" value="kb" >
    <table class="form_table settings_table" width="940" border="0" cellspacing="0" cellpadding="2">
        <thead>
            <tr>
                <th colspan="2">
    
                    <h4>Knowledge Base Settings</h4>
    
                    <em>Disabling knowledge base disables clients' interface.</em>
    
    Jared Hancock's avatar
    Jared Hancock committed
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
    
                <td width="180">Knowledge base status:</td>
    
    Jared Hancock's avatar
    Jared Hancock committed
                <td>
                  <input type="checkbox" name="enable_kb" value="1" <?php echo $config['enable_kb']?'checked="checked"':''; ?>>
    
                  Enable Knowledge base&nbsp;<em>(Client interface)</em>
    
    Jared Hancock's avatar
    Jared Hancock committed
                  &nbsp;<font class="error">&nbsp;<?php echo $errors['enable_kb']; ?></font>
                </td>
            </tr>
            <tr>
    
                <td width="180">Canned Responses:</td>
    
    Jared Hancock's avatar
    Jared Hancock committed
                <td>
                    <input type="checkbox" name="enable_premade" value="1" <?php echo $config['enable_premade']?'checked="checked"':''; ?> >
    
                    Enable canned responses&nbsp;<em>(Available on ticket reply)</em>
    
    Jared Hancock's avatar
    Jared Hancock committed
                    &nbsp;<font class="error">&nbsp;<?php echo $errors['enable_premade']; ?></font>
                </td>
            </tr>
        </tbody>
    </table>
    <p style="padding-left:210px;">
        <input class="button" type="submit" name="submit" value="Save Changes">
        <input class="button" type="reset" name="reset" value="Reset Changes">
    </p>
    </form>