
                                    <?php


                                    echo form_open('user/saveRecord/'.$mem_id,'class="smart-form" id="saveRecord"');
                                    ?>

                                    <fieldset>
                                    <div class="row">
                                        <section class="col col-10">
                                            <label class="input">
                                                <?php
                                                $mem_champ='usa_prenom';
                                                echo form_label($label[$mem_champ]);
                                                ?>
                                            </label>
                                            <label class="input">
                                                <?php
                                                echo  $icon[$mem_champ];
                                                echo form_input($input[$mem_champ]);
                                                ?>

                                            </label>
                                        </section>

                                    </div>
                                    <div class="row">
                                        <section class="col col-10">
                                            <label class="input">
                                                <?php
                                                $mem_champ='usa_nom';
                                                echo form_label($label[$mem_champ]);
                                                ?>
                                            </label>
                                            <label class="input">
                                                <?php
                                                echo  $icon[$mem_champ];
                                                echo form_input($input[$mem_champ]);
                                                ?>

                                            </label>
                                        </section>

                                    </div>
                                        <div class="row">
                                            <section class="col col-10">
                                                <label class="input">
                                                    <?php
                                                    $mem_champ='usa_telephone';
                                                    echo form_label($label[$mem_champ]);
                                                    ?>
                                                </label>
                                                <label class="input">
                                                    <?php
                                                    echo  $icon[$mem_champ];
                                                    echo form_input($input[$mem_champ]);
                                                    ?>

                                                </label>
                                            </section>

                                        </div>
                                        <div class="row">
                                            <section class="col col-10">
                                                <label class="input">
                                                    <?php
                                                    $mem_champ='usa_login';
                                                    echo form_label($label[$mem_champ]);
                                                    ?>
                                                </label>
                                                <label class="input">
                                                    <?php
                                                    echo  $icon[$mem_champ];
                                                    echo form_input($input[$mem_champ]);
                                                    ?>

                                                </label>
                                            </section>

                                        </div>
                                        <div class="row">
                                            <section class="col col-10">
                                                <label class="input">
                                                    <?php
                                                    $mem_champ='usa_password';
                                                    echo form_label($label[$mem_champ]);
                                                    ?>
                                                </label>
                                                <label class="password">
                                                    <?php
                                                    echo  $icon[$mem_champ];
                                                    echo form_password($input[$mem_champ]);
                                                    ?>

                                                </label>
                                            </section>

                                        </div>
                                        </fieldset>



                                        <section class="col col-2">

                                            <?php
                                            $mem_champ='usa_representant';
                                            echo form_label($label[$mem_champ],'',array('class' => 'input',
                                                'style' => 'text-align: right'));

                                            ?>

                                            <label  class="toggle">
                                                <?php


                                                echo form_checkbox($checkbox[$mem_champ]);
                                                ?>  <i   data-swchon-text="Oui" data-swchoff-text="Non"></i>
                                            </label>

                                        </section>

                                    </div>
                                    </fieldset>


                                    <footer>


                                        <button id="submit_btn" type="submit" class="btn btn-primary">
                                            Sauvegarde
                                        </button>


                                    </footer>

                                    <script>

                                        $(document).ready(function() {
                                            var errorClass = 'invalid';
                                            var errorElement = 'em';

                                            var $checkoutForm = $('#saveRecord').validate({
                                                errorClass		: errorClass,
                                                errorElement	: errorElement,
                                                highlight: function(element) {
                                                    $(element).parent().removeClass('state-success').addClass("state-error");
                                                    $(element).removeClass('valid');
                                                },
                                                unhighlight: function(element) {
                                                    $(element).parent().removeClass("state-error").addClass('state-success');
                                                    $(element).addClass('valid');
                                                },

                                                // Rules for form validation
                                                rules : { des_nom_fr : { required : true }, des_nom_en : { required : true } },

                                                // Messages for form validation

                                                messages : { des_nom_fr : { required : 'Champ obligatoire' },des_nom_en : { required : 'Champ obligatoire' }  },
                                                // Do not change code below
                                                errorPlacement : function(error, element) {
                                                    error.insertAfter(element.parent());
                                                }
                                            });

                                        });
                                    </script>