<?php
/**
 * Intranet
 *
 * PHP version 5
 *
 * @category  PHP
 * @package   Rocket_form
 * @author    Softdiscover <info@softdiscover.com>
 * @copyright 2015 Softdiscover
 * @license   http://www.php.net/license/3_01.txt  PHP License 3.01
 * @link      https://softdiscover.com/zigaform/wordpress-form-builder/
 */
if ( ! defined('BASEPATH')) {
    exit('No direct script access allowed');
}
?>
<div id="uiform-container" data-uiform-page="" class="sfdc-wrap uiform-wrap">
        <div class="sfdc-col-md-12">
            <div class="space20"></div>
            <div class="uifm-settings-response"></div>

            <div class="uiform-settings-inner-box">
                <div class="sfdc-row">
        <div class="col-lg-12">
        <div class="widget widget-padding span12">
            <div class="widget-header">
                <i class="fa fa-list-alt"></i>
                <h5>
                <?php echo __('Global Settings', 'FRocket_admin'); ?>
                </h5>

            </div>
            <div class="widget-body">
               <div class="widget-forms sfdc-clearfix">
                   <form
                       id="uifrm-setting-form"
                       chartset="utf-8"
                       name="frmform"
                       class="sfdc-form-horizontal">
                       <div id="uiform-settings-inner-body">
                       <!--<div class="sfdc-col-md-12">
                                <div class="sfdc-form-group">

                                    <div class="sfdc-col-sm-4">
                                         <label for=""><?php echo __('LANGUAGE', 'FRocket_admin'); ?></label>  <a href="javascript:void(0);"
                                           data-toggle="tooltip" data-placement="right"
                                           data-original-title="<?php echo __('it allows to change the language', 'FRocket_admin'); ?>"
                                           ><span class="fa fa-question-circle"></span></a>
                                     </div>

                                    <div class="sfdc-col-sm-8">
                                       <select class="sfdc-form-control input-sm" name="language"  id="language" data-placeholder="Select here.." >
                                    <?php
                                    foreach ( $lang_list as $frow) :
                                        ?>
                                        <?php $sel = ( $frow['val'] == $language ) ? ' selected="selected"' : ''; ?>
                                        <option value="<?php echo $frow['val']; ?>" <?php echo $sel; ?>>
                                            <?php echo $frow['label']; ?>
                                        </option>
                                        <?php
                                    endforeach;
                                    ?>
                                    <?php unset($frow); ?>
                                    </select>

                                    </div>
                                </div>
                            </div>
                            <div class="space10 zgfm-opt-divider-stl1"></div> -->
                            <div class="space10 zgfm-opt-divider-stl1"></div>
                            <div class="sfdc-col-md-12">
                                <div class="sfdc-form-group">

                                    <div class="sfdc-col-sm-4">
                                        <label for=""><?php echo __('Disable Fast Load for Fields', 'FRocket_admin'); ?><span style="color:red;"></span></label> <a href="javascript:void(0);"
                                           data-toggle="tooltip" data-placement="right"
                                           data-original-title="<?php echo __('it allows to disable fast loading field.', 'FRocket_admin'); ?>"
                                           ><span class="fa fa-question-circle"></span></a>


                                     </div>

                                    <div class="sfdc-col-sm-8">
                                        <input class="switch-field"
                                                       id="uifm_frm_fields_fastload"
                                                       name="uifm_frm_fields_fastload"
                                                       type="checkbox"/>

                                    </div>

                                </div>

                            </div>
                         <div class="space10 zgfm-opt-divider-stl1"></div>
                         <div class="sfdc-col-md-12">
                           <div class="sfdc-form-group">

                             <div class="sfdc-col-sm-4">
                               <label for=""><?php echo __('Hide forms from frontend', 'FRocket_admin'); ?><span style="color:red;"></span></label> <a href="javascript:void(0);"
                                                                                                                                                       data-toggle="tooltip" data-placement="right"
                                                                                                                                                       data-original-title="<?php echo __('it will hide all forms from public site.', 'FRocket_admin'); ?>"
                               ><span class="fa fa-question-circle"></span></a>


                             </div>

                             <div class="sfdc-col-sm-8">
                               <input class="switch-field"
                                      id="uifm_frm_forms_front_hide"
                                      name="uifm_frm_forms_front_hide"
                                      type="checkbox"/>

                             </div>

                           </div>

                         </div>
                            <div class="space10 zgfm-opt-divider-stl1"></div>
                            <div class="sfdc-col-md-12">
                                <div class="sfdc-form-group">

                                    <div class="sfdc-col-sm-4">
                                        <label for=""><?php echo __('Regenerate cache fields', 'FRocket_admin'); ?><span style="color:red;"></span></label> <a href="javascript:void(0);"
                                           data-toggle="tooltip" data-placement="right"
                                           data-original-title="<?php echo __('Generate cache field', 'FRocket_admin'); ?>"
                                           ><span class="fa fa-question-circle"></span></a>


                                     </div>

                                    <div class="sfdc-col-sm-8">
                                    <a class="sfdc-btn sfdc-btn-sm sfdc-btn-warning" href="javascript:void(0);" onclick="javascript:zgfm_back_fld_options.generate_field_htmldata();">
                            <i class="fa fa-floppy-o"></i>
                            <?php echo __('Regeneate cache fields', 'FRocket_admin'); ?>                  </a>

                                    </div>

                                </div>

                            </div>
                            <div class="space10 zgfm-opt-divider-stl1"></div>
                            <div class="sfdc-col-md-12">
                                                    <div class="sfdc-form-group">

                                                        <div class="sfdc-col-sm-4">
                                                            <label for=""><?php echo __('Custom delimiter for multiple options when exporting records', 'FRocket_admin'); ?><span style="color:red;"></span></label>
                                                            <a href="javascript:void(0);" data-toggle="tooltip" data-placement="right" data-original-title="<?php echo __('Custome delimiter', 'FRocket_admin'); ?>">
                                                            <span class="fa fa-question-circle"></span></a>
                                                        </div>
                                                        <div class="sfdc-col-sm-8">
                                                            <input class="sfdc-form-control" value="<?php echo esc_attr($zgfm_frm_main_recexpdelimiter); ?>" id="uifm_frm_main_recordexpsetting" name="uifm_frm_main_recordexpsetting" type="text" placeholder="<?php echo __('Add your delimiter', 'FRocket_admin'); ?>">
                                                        </div>
                                                    </div>

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

                <div class="clear"></div>
            </div>
            <div class="widget-footer">
                <?php if ( UIFORM_DEMO === 1) { ?>
                  <a class="sfdc-btn sfdc-btn-sm sfdc-btn-primary"
                            href="javascript:void(0);"
                            onclick="alert('this feature disabled on this demo');"
                            >
                            <i class="fa fa-floppy-o"></i>
                        <?php echo __('Save changes', 'FRocket_admin'); ?>
                        </a>
                <?php } else { ?>
                  <a class="sfdc-btn sfdc-btn-sm sfdc-btn-primary"
                            href="javascript:void(0);"
                            onclick="rocketform.globalsettings_saveOptions();"
                            >
                            <i class="fa fa-floppy-o"></i>
                        <?php echo __('Save changes', 'FRocket_admin'); ?>
                        </a>
                <?php } ?>
        </div>
        </div>
    </div>
    </div>
            </div>
        </div>

</div>
<script type="text/javascript">
//<![CDATA[
$uifm(document).ready(function ($) {
       var set_modalmode=(parseInt(<?php echo $fields_fastload; ?>)===1)?true:false;
    $('#uifm_frm_fields_fastload').bootstrapSwitchZgpb('state',set_modalmode);
  var uifm_frm_forms_front_hide=(parseInt(<?php echo $uifm_frm_forms_front_hide; ?>)===1)?true:false;
  $('#uifm_frm_forms_front_hide').bootstrapSwitchZgpb('state',uifm_frm_forms_front_hide);
});
//]]>
</script>
