<?php
$operator_id = $this->session->userdata("admin")['operator_id'];
?>
<?php $this->load->view('site/layout'); ?>
<?php $this->load->view('site/navbar'); ?>
<div class="kt-content  kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
    <!-- begin:: Content Head -->
    <div class="kt-subheader  kt-grid__item" id="kt_subheader">
        <div class="kt-container  kt-container--fluid ">
            <div class="kt-subheader__main">
                <h3 class="kt-subheader__title"><a href="<?php echo base_url() ?>Dashboard/"><?php echo $this->lang->line('dashboard'); ?></a></h3>
                <span class="kt-subheader__separator kt-subheader__separator--v"></span>
                <span class="kt-subheader__desc"><?php echo $this->lang->line('points'); ?></span>
            </div>

        </div>
    </div>
    <div class="kt-portlet kt-portlet--mobile">
        <div class="kt-portlet__head kt-portlet__head--lg">
            <div class="kt-portlet__head-label">
                <span class="kt-portlet__head-icon">
                    <i class="kt-font-brand flaticon2-line-chart"></i>
                </span>
                <h3 class="kt-portlet__head-title">
                    <?php echo $title ?>
                </h3>
            </div>
        </div>


        <div class="form_detail">

            <!--begin::Form-->
            <form class="m-form m-form--label-align-right" action="" method="post">
                <div class="m-portlet__body">
                    <div class="m-form__section m-form__section--first">


                        <div class="form-group m-form__group row">
                            <label class="col-lg-2 col-form-label">
                                <?php echo $this->lang->line('the_type'); ?>
                            </label>
                            <div class="col-lg-6">
                                <select class="form-control" name="user_type" required="">
                                    <option value=""><?php echo $this->lang->line('the_type'); ?></option>
                                    <option value="1" <?php echo $result->user_type == 1 ? "selected" : ""; ?> ><?php echo $this->lang->line('members'); ?></option>
                                    <option value="2" <?php echo $result->user_type == 2 ? "selected" : ""; ?> ><?php echo $this->lang->line('students'); ?></option>
                                </select>


                            </div>
                        </div>


                        <div class="form-group m-form__group row">
                            <label class="col-lg-2 col-form-label">
                                <?php echo $this->lang->line('tag'); ?>
                            </label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control m-input tag_name" placeholder="<?php echo $this->lang->line('name'); ?>" name="tag_name" value="<?php echo $result->tag_name; ?>" required="">

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

                    <div class="m-portlet__foot m-portlet__foot--fit">
                        <div class="m-form__actions m-form__actions">
                            <div class="row">
                                <div class="col-lg-3"></div>
                                <div class="col-lg-6">
                                    <button type="submit" class="btn btn-success">
                                        <?php echo $this->lang->line('submit'); ?>
                                    </button>

                                </div>
                            </div>
                        </div>
                    </div>
            </form>
            <!--end::Form-->
        </div>
        <!--end::Portlet-->
    </div>
</div>
</div>
</div>



<?php $this->load->view('site/footer_2'); ?>
<script type="text/javascript">
    $('#select_all').click(function () {

        if ($(this).prop("checked")) {

            $(".checkbox_class").prop("checked", true);

        } else {

            $(".checkbox_class").prop("checked", false);

        }

    });

    $(".checkbox_class, #select_all").prop("checked", true);

    $(".group_id").select2();


</script>
