https://t.me/RX1948
Server : Apache/2.4.58 (Ubuntu)
System : Linux yumsem00.cafe24.com 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User : root ( 0)
PHP Version : 8.2.14
Disable Function : NONE
Directory :  /var/www/html/wp-content/stores/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/wp-content/stores/import.php
<link type="text/css" rel="stylesheet" href="/wp-content/stores/js/waitMe/waitMe.min.css">

<form id="frmOrder" method="post" action="#" novalidate="novalidate">

<table class="form-table" role="presentation">
<tbody>
<tr>
	<th scope="row"><label for="blogname">상점 엑셀 파일</label></th>
	<td><input name="file" type="file" id="eFile" class="regular-text"></td>
</tr>
</tbody>
</table>



<p class="submit">
<a id="submit" class="button button-primary">엑셀파일 임포트하기</a>
</p>


</form>


<div>
1. <a href="/wp-content/stores/export.php">샘플파일</a> 에 맞게 작성된 엑셀파일이여야 합니다.<br/>
2. 삭제기능은 없으며 해당 제품의 비활성화(해당 컬럼에 N 입력) 처리해서 안보이게 처리 가능합니다.<br/>
3. 샘플파일은 기등록되어 있는 제품리스트이며 사용자 화면에 해당 순서대로 나열됩니다.<br/>
</div>

<script src="/wp-content/stores/js/waitMe/waitMe.min.js"></script>
<script>


jQuery('#submit').click(function(){
		
		if(!jQuery("#eFile")[0].files[0])
		{
			alert('임포트할 엑셀파일을 선택해주세요 [샘플파일 참조]');
			return;
		}

		if(confirm('임포팅 하시겠습니까? 같은 브랜드의 같은 상점명일 경우 갱신됩니다.'))
		{

			jQuery('#wpwrap').waitMe({
				effect : 'bounce',
				text : '',
				maxSize : '',
				waitTime : -1,
				textPos : 'vertical',
				fontSize : '',
				source : '',
				onClose : function() {}
			});

			var form = document.getElementById("frmOrder");


			var formData = new FormData(form);
			formData.append("file", jQuery("#eFile")[0].files[0]);

			var url = '/wp-content/stores/doImport.php';
			jQuery.ajax({
				   type: "POST",
				   url: url,
				   dataType:"json",
				   processData: false,
				   contentType: false,
				   data :  formData ,
				   success:function(data){
					   if(data.result)
					   {
							alert('정상적으로 임포팅되었습니다');
					   }
					   else
					   {
							alert('처리중 에러 발생. ' +  data.message);
					   }
						
  						jQuery('#wpwrap').waitMe("hide");
				   },
				   error:function (xhr, ajaxOptions, thrownError){
					   jQuery('#wpwrap').waitMe("hide");
					   alert("진행중 에러가 발생되었습니다. 나중에 다시 시도해 주세요.");
					   alert(xhr.status);
					   alert(thrownError);
				   }    
			});
		}
	});

</script>

https://t.me/RX1948 - 2025