WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.240
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/sura/templates/home_featured_stock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/sura/templates/home_featured_stock/_form.html.twig
{{ form_start(form) }}
<div class="row pages_form">
    <div class="col-lg-8">
        <div class="card payment_edit">
            <div class="form_row">

                <div class="form_col">
                    <div class="form_group">
                        <label class="form_label">Type</label>
                        <div class="styled-select" data-url="{{ path('get_stock_type', {id: 0}) }}">
                            {{ form_widget(form.type, {'attr': {'placeholder':'Type', 'required':'true' }}) }}
                        </div>
                    </div>
                </div>

                <div class="form_col">
                    <div class="form_group">
                        <label class="form_label">Contributor</label>
                        <div class="styled-select">
                            {{ form_widget(form.contributor, {'attr': {'placeholder':'Contributor'}}) }}
                        </div>
                    </div>
                </div>

                <div class="form_col">
                    <div class="form_group">
                        <label class="form_label">File</label>
                            {{ form_widget(form.file, {'attr': {'placeholder':'File', 'required':'true' }}) }}
                    </div>
                </div>




                <div class="form_col">
                    <div class="form_group">
                        <label class="form_label">&nbsp;</label>
                        <input type="submit" value="{{ button_label|default('Create') }}">
                    </div>
                </div>
            </div>
        </div>

    </div>

    {#<div class="col-xl-3">
        <div class="payment_instruction">
            <h4>What you need to know</h4>
            <p>Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for
                previewing
                layouts and visual mockups.</p>
            <p>Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for
                previewing
                layouts and visual mockups.</p>
        </div>
    </div>#}

</div>
{{ form_end(form) }}

<script>
    $(document).ready(function () {
        $("#home_featured_stock_type").change(function (e) {
            let file = $("#home_featured_stock_file");
            let value = $(this).val();

            let url = $(this).parent().data("url")
            url = url.replace("0", value)
            let fd= new FormData();
            //fd.append()
            $.ajax({
                url: url,
                method: "POST",
                data: null,
                contentType: false,
                processData:false,
                success: function (data, status) {
                    let stockType = data.data;
                    if (stockType === "video"){
                        file.attr("accept","video/mp4");
                    }else {
                        file.attr("accept","image/jpeg");
                    }
                }
            });
        });
    })
</script>


Youez - 2016 - github.com/yon3zu
LinuXploit