uawdijnntqw1x1x1
IP : 18.216.212.52
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
public_html
/
0d544
/
..
/
..
/
.trash
/
admin.1
/
view
/
template
/
.
/
tool
/
.
/
notification.twig
/
/
{{ header }}{{ column_left }} <div id="content"> <div class="page-header"> <div class="container-fluid"> <div class="float-end"><button type="button" id="button-delete" data-bs-toggle="tooltip" title="{{ button_delete }}" class="btn btn-danger"><i class="fas fa-trash-alt"></i></button></div> <h1>{{ heading_title }}</h1> <ol class="breadcrumb"> {% for breadcrumb in breadcrumbs %} <li class="breadcrumb-item"><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> {% endfor %} </ol> </div> </div> <div class="container-fluid"> <div class="card"> <div class="card-header"><i class="far fa-bell"></i> {{ text_list }}</div> <div class="card-body"> <div id="notification">{{ list }}</div> </div> </div> </div> </div> <script type="text/javascript"><!-- $('#notification').on('click', '.pagination a', function(e) { e.preventDefault(); $('#notification').load(this.href); }); // View $('#notification').on('click', 'table a', function(e) { e.preventDefault(); var element = this; $('#modal-notification').remove(); $.ajax({ url: $(element).attr('href'), dataType: 'html', success: function(html) { $('body').append(html); $('#modal-notification').modal('show'); $(element).parent().parent().removeClass('table-primary'); $(element).parent().parent().find('.fa-bell').removeClass('fas').addClass('far'); $(element).removeClass('font-weight-bold'); $(element).parent().parent().find('.btn-primary').removeClass('btn-primary').addClass('btn-outline-primary'); }, error: function(xhr, ajaxOptions, thrownError) { console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); $('#notification').on('click', '.btn', function(e) { var element = this; $('#modal-notification').remove(); $.ajax({ url: $(element).attr('value'), dataType: 'html', beforeSend: function() { $(element).prop('disabled', true).addClass('loading'); }, complete: function() { $(element).prop('disabled', false).removeClass('loading'); }, success: function(html) { $('body').append(html); $('#modal-notification').modal('show'); $(element).parent().parent().removeClass('table-primary'); $(element).parent().parent().find('.fa-bell').removeClass('fas').addClass('far'); $(element).parent().parent().find('a').removeClass('font-weight-bold'); $(element).removeClass('btn-primary').addClass('btn-outline-primary'); }, error: function(xhr, ajaxOptions, thrownError) { console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); // Delete $('#button-delete').on('click', function(e) { e.preventDefault(); var element = this; if (confirm('{{ text_confirm }}')) { $.ajax({ url: 'index.php?route=tool/notification|delete&user_token={{ user_token }}', type: 'post', data: $('#notification input[name^=\'selected\']:checked').serialize(), dataType: 'json', beforeSend: function() { $(element).prop('disabled', true).addClass('loading'); }, complete: function() { $(element).prop('disabled', false).removeClass('loading'); }, success: function(json) { $('.alert-dismissible').remove(); if (json['error']) { $('#alert').prepend('<div class="alert alert-danger alert-dismissible"><i class="fas fa-exclamation-circle"></i> ' + json['error'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button</div>'); } if (json['success']) { $('#alert').prepend('<div class="alert alert-success alert-dismissible"><i class="fas fa-check-circle"></i> ' + json['success'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button</div>'); $('#notification').load('index.php?route=tool/notification|list&user_token={{ user_token }}'); } }, error: function(xhr, ajaxOptions, thrownError) { console.log(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }); //--></script> {{ footer }}
/home/sudancam/public_html/0d544/../../.trash/admin.1/view/template/./tool/./notification.twig