<div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bodyitem">
    <div class="row no-padding">
        <div class="buttons">
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/general') ?>', '<?php echo $this->lang->line('gkpos_general_info') ?>')" class="btn btn-primary gradient text-center" style="font-size:90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_general_info') ?></div>
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/vatsetup') ?>', '<?php echo $this->lang->line('gkpos_general_vat_setup') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_general_vat_setup') ?></div>
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/discountsetup') ?>', '<?php echo $this->lang->line('gkpos_discount') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;"><?php echo $this->lang->line('gkpos_discount') ?></div>
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/delivery_time') ?>', '<?php echo $this->lang->line('gkpos_delivery_time') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 110px;"><?php echo $this->lang->line('gkpos_delivery_time') ?></div>
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/depliveryplan') ?>', '<?php echo $this->lang->line('gkpos_delivery_plan') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 110px;"><?php echo $this->lang->line('gkpos_delivery_plan') ?></div>
            <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/pagination') ?>', '<?php echo $this->lang->line('gkpos_pagination') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;" ><?php echo $this->lang->line('gkpos_pagination') ?></div>
            <?php if ($this->config->item('gk_only_online_admin') == 'no'): ?>
                <div onclick="getSettingPage('<?php echo site_url('gkpos/settings/add_cc_fee') ?>', '<?php echo $this->lang->line('gkpos_add_cce_fee') ?>')" class="btn btn-primary gradient text-center" style="font-size: 90%;min-width: 90px;" ><?php echo $this->lang->line('gkpos_add_cce_fee') ?></div>
            <?php endif; ?>
        </div>
    </div>
    <div class="row no-padding">
        <?php echo form_open('gkpos/settings/save_pagination/', array('id' => 'pagination_form', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal')); ?>
        <div id="config_wrapper">
            <fieldset id="config_info">
                <div class="form-group form-group-sm">	
                    <?php echo form_label($this->lang->line('gkpos_category_num_per_page'), 'gk_category_line_page', array('class' => 'control-label col-lg-4 col-md-4 col-sm-4 col-xs-4 text-capitalize')); ?>
                    <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                        <div class="input-group">
                            <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-table" aria-hidden="true"></i></a></span>

                            <input name="gk_category_line_page" class="form-control required"  type="text" id="gk_category_line_page" value="<?php echo $this->config->item('gk_category_line_page') ?>">

                        </div>
                    </div>
                </div>

                <div class="form-group form-group-sm">	
                    <?php echo form_label($this->lang->line('gkpos_menu_num_per_page'), 'gk_menu_line_page', array('class' => 'control-label col-lg-4 col-md-4 col-sm-4 col-xs-4 text-capitalize')); ?>
                    <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                        <div class="input-group">
                            <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-table" aria-hidden="true"></i></a></span>

                            <input name="gk_menu_line_page" class="form-control required"  type="text" id="gk_menu_line_page" value="<?php echo $this->config->item('gk_menu_line_page') ?>">


                        </div>
                    </div>
                </div>

                <div class="form-group form-group-sm">	
                    <?php echo form_label($this->lang->line('gkpos_report_num_per_page'), 'gk_report_line_page', array('class' => 'control-label col-lg-4 col-md-4 col-sm-4 col-xs-4 text-capitalize')); ?>
                    <div class="col-lg-8 col-md-8 col-sm-8 col-xs-8">
                        <div class="input-group">
                            <span class="input-group-addon" style="background-color: #FF0000;"><a href="#"><i class="fa fa-table" aria-hidden="true"></i></a></span>
                            <input name="gk_report_line_page" class="form-control required"  type="text" id="gk_report_line_page" value="<?php echo $this->config->item('gk_report_line_page') ?>">
                        </div>
                    </div>
                </div>

                <div class="form-group form-group-md">	
                    <div class="col-md-offset-4 col-md-8">
                        <ul id="pagination_error_message_box" class="error_message_box"></ul>
                        <?php
                        echo form_submit(array(
                            'name' => 'submit_form',
                            'id' => 'submit_form',
                            'value' => $this->lang->line('gkpos_numpad_key_enter'),
                            'class' => 'btn btn-block btn-danger round btn-sm'));
                        ?>
                    </div>
                </div>
            </fieldset>
        </div>
        <?php echo form_close(); ?>
        <script type='text/javascript'>
            $(document).ready(function () {
                $('#pagination_form').validate({
                    submitHandler: function () {
                        var myform = document.getElementById('pagination_form');
                        var formdata = new FormData(myform);
                        $.ajax({
                            url: $('#pagination_form').attr('action'),
                            data: formdata,
                            cache: false,
                            processData: false,
                            contentType: false,
                            type: 'POST',
                            dataType: 'json',
                            success: function (response) {
                                if (response.success) {
                                    ALERT_TITLE = "Success!";
                                    alert(response.message);
                                } else {
                                    ALERT_TITLE = "Error!";
                                    alert(response.message);
                                }
                            },
                        });
                    },
                    errorClass: "has-error",
                    errorLabelContainer: "#pagination_error_message_box",
                    wrapper: "li",
                    highlight: function (e) {
                        $(e).closest('.form-group').addClass('has-error');
                    },
                    unhighlight: function (e) {
                        $(e).closest('.form-group').removeClass('has-error');
                    },
                    rules: {
                        gk_category_line_page: {
                            min: 5,
                            number: true,
                            required: true
                        },
                        gk_menu_line_page: {
                            min: 6,
                            number: true,
                            required: true
                        },
                        gk_report_line_page: {
                            min: 3,
                            number: true,
                            required: true
                        }
                    },
                    messages: {
                        gk_category_line_page: "Category on paginiation min 5",
                        gk_menu_line_page: "Menu on paginiation min 6",
                        gk_report_line_page: "Report line on paginiation min 3"
                    }
                });
            });
        </script>
    </div>

</div>