<div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 bodyitem">
        <div class="row no-padding">
            <?php echo form_open('gkpos/online/save_pagesetup', array('id' => 'pageSetupForm', 'enctype' => 'multipart/form-data', 'class' => 'form-horizontal')); ?>
            <fieldset>
                <div class="form-group form-group-sm">  
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Website Style </label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="website_style" id="website_style1" value="singlepage" <?php ($this->config->item('website_style') == "singlepage") ? print "checked" : '' ?> >Single Page</label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="website_style" id="website_style2" value="multipage"  <?php ($this->config->item('website_style') == "multipage") ? print "checked" : '' ?> >Multi Page</label>
                    </div>
                </div> 
                <div class="form-group form-group-sm">  
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Slider</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_slider" id="page_home1" value="yes" <?php ($this->config->item('page_slider') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_slider" id="page_home2" value="no"  <?php ($this->config->item('page_slider') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div> 

                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Home</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_home" id="page_home1" value="yes" <?php ($this->config->item('page_home') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_home" id="page_home2" value="no" <?php ($this->config->item('page_home') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">About</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_about" id="page_about1" value="yes" <?php ($this->config->item('page_about') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_about" id="page_about2" value="no" <?php ($this->config->item('page_about') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Contact</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_contact" id="page_contact1" value="yes" <?php ($this->config->item('page_contact') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_contact" id="page_contact2" value="no" <?php ($this->config->item('page_contact') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Gallery</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_gallery" id="page_gallery1" value="yes" <?php ($this->config->item('page_gallery') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_gallery" id="page_gallery2" value="no" <?php ($this->config->item('page_gallery') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Menu/Order online</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_menu" id="page_menu1" value="yes" <?php ($this->config->item('page_menu') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_menu" id="page_menu2" value="no" <?php ($this->config->item('page_menu') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Reservation</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_reservation" id="page_reservation1" value="yes" <?php ($this->config->item('page_reservation') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_reservation" id="page_reservation2" value="no" <?php ($this->config->item('page_reservation') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Review</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_review" id="page_review1" value="yes" <?php ($this->config->item('page_review') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_review" id="page_review2" value="no" <?php ($this->config->item('page_review') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Login</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_login" id="page_login1" value="yes" <?php ($this->config->item('page_login') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_login" id="page_login2" value="no" <?php ($this->config->item('page_login') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>
                <div class="form-group form-group-sm">	
                    <label for="radio-inline" class="col-lg-5 col-md-5 col-sm-5 col-xs-5 control-label text-uppercase">Register</label>
                    <div class="col-lg-7 col-md-7 col-sm-7 col-xs-7">
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_register" id="page_register1" value="yes" <?php ($this->config->item('page_register') == "yes") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_yes') ?></label>
                        <label class="radio-inline text-uppercase required"><input type="radio" name="page_register" id="page_register2" value="no" <?php ($this->config->item('page_register') == "no") ? print "checked" : '' ?> ><?php echo $this->lang->line('gkpos_no') ?></label>
                    </div>
                </div>

                <div class="form-group form-group-md">	
                    <div class="col-md-offset-2 col-md-7">
                        <ul id="restaurantSetupFormError" 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>
            <?php echo form_close(); ?>
    
        <script type='text/javascript'>
            $(document).ready(function () {
                $('#pageSetupForm').validate({
                    submitHandler: function () {
                        var myform = document.getElementById('pageSetupForm');
                        var formdata = new FormData(myform);
                        $.ajax({
                            url: $('#pageSetupForm').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: "#restaurantSetupFormError",
                    wrapper: "li",
                    highlight: function (e) {
                        $(e).closest('.form-group').addClass('has-error');
                    },
                    unhighlight: function (e) {
                        $(e).closest('.form-group').removeClass('has-error');
                    },
                    rules: {
                        page_home: "required",
                    },
                    messages: {
                        page_home: "Home page is required"
                    }
                });
            });
        </script>
    </div>
</div>