%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/pyxsoft/templates/settings/
Upload File :
Create Path :
Current File : //opt/pyxsoft/templates/settings/ftp_inspector.tmpl

{% extends "template-base/index.tmpl" %}
{% block HTMLTitle %}{{ HTMLTitle }}{% endblock %}
{% block PageTitle %}{{ PageTitle }}{% endblock %}

{% block contenido %}
    <div class="alertMsg" style="position: fixed; margin-left:30%;"></div>
    <form class="" method="post" id="idForm" action="/settingsftp" style="width: 90%; margin: 0 auto;">
        <fieldset class="form-group">
            <h2>{{Tr(Lang,"settings.ftp_inspector")}}</h2>
            <div class="row">
                <div class="col-md-9">
                    <div class="col-md-3">
                        <p>{{Tr(Lang,"settings.enable_ftp")}}</p>
                    </div>
                    <div class="col-md-2">
                        <label for="EnableFTP" class="switcher switcher-rounded switcher-info">
                            {% if configFTP.Enabled == true %}
                                <input id="EnableFTP" name="EnableFTP" checked type="checkbox">
                                <div class="switcher-indicator" style="margin: auto;">
                                    <div class="switcher-yes">YES</div>
                                    <div class="switcher-no">NO</div>
                                </div>
                            {% else %}
                                <input id="EnableFTP" name="EnableFTP" type="checkbox">
                                <div class="switcher-indicator" style="margin: auto;">
                                    <div class="switcher-yes">YES</div>
                                    <div class="switcher-no">NO</div>
                                </div>
                            {% endif %}
                        </label>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-9">
                    <div class="col-md-3">
                        <p>{{Tr(Lang,"settings.quarantine_malware")}}</p>
                    </div>
                    <div class="col-md-2">
                        <label for="QuarantineMalware" class="switcher switcher-rounded switcher-info">
                            {% if configFTP.QuarantineMalware == true %}
                                <input id="QuarantineMalware" name="QuarantineMalware" checked type="checkbox">
                                <div class="switcher-indicator" style="margin: auto;">
                                    <div class="switcher-yes">YES</div>
                                    <div class="switcher-no">NO</div>
                                </div>
                            {% else %}
                                <input id="QuarantineMalware" name="QuarantineMalware" type="checkbox">
                                <div class="switcher-indicator" style="margin: auto;">
                                    <div class="switcher-yes">YES</div>
                                    <div class="switcher-no">NO</div>
                                </div>
                            {% endif %}
                        </label>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row">
                <div class="pull-right">
                    <button type="submit" value="submit" class="btn btn-info" onclick="success('{{Tr(Lang,"settings.save_msg")}}')">{{Tr(Lang,"settings.btn_save")}}</button>
                </div>
            </div>
        </fieldset>
    </form>

{% endblock %}
{% block finalScripts %}
    <script>
        $("#idForm").submit(function(e) {
            var form = $(this);
            var url = form.attr('action');

            $.ajax({
                type: "POST",
                url: url,
                data: form.serialize(), // serializes the form's elements.
                success: function(data)
                {
                    //alert(data); // show response from the php script.
                }
            });

            e.preventDefault(); // avoid to execute the actual submit of the form.
        });

        window.success = function(msg) {
            var dom = '<div class="top-alert" style="margin-top: 3%; position: relative;"><div class="alert alert-success alert-dismissible fade in " role="alert"><i class="glyphicon glyphicon-ok"></i> ' + msg + '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div></div>';
            var jdom = $(dom);
            jdom.hide();
            $(".alertMsg").append(jdom);
            jdom.fadeIn();
            setTimeout(function() {
                jdom.fadeOut(function() {
                    jdom.remove();
                });
            }, 6000);
        }
    </script>
{% endblock %}



Zerion Mini Shell 1.0