쇼핑몰관리자: #203 상품엑셀일괄등록 마크업 및 스타일 완료
This commit is contained in:
@ -4,31 +4,39 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "w");
|
||||
|
||||
$g4['titile'] = '상품 엑셀일괄등록';
|
||||
$g4['title'] = '엑셀파일로 상품 일괄 등록';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<p>
|
||||
엑셀파일을 이용하여 상품을 일괄등록할 수 있습니다. 상품일괄등록용 엑셀파일을 다운로드 후 상품 정보를 입력합니다.
|
||||
수정이 완료된 엑셀파일을 업로드하시면 상품이 일괄등록됩니다. 엑셀파일을 저장하실 때는 Excel 97 - 2003 통합문서 (*.xls) 로 저장하셔야 합니다.
|
||||
</p>
|
||||
<p>
|
||||
<a href="<?php echo G4_URL; ?>/<?php echo G4_LIB_DIR; ?>/Excel/itemexcel.xls">엑세파일 다운로드</a>
|
||||
</p>
|
||||
<form name="fitemexcel" method="post" action="./itemexcelupdate.php" enctype="MULTIPART/FORM-DATA" autocomplete="off">
|
||||
<table>
|
||||
<tr>
|
||||
<td>파일선택</td>
|
||||
<td><input type="file" name="excelfile"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="상품등록">
|
||||
<div class="new_win">
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<p class="new_win_desc">
|
||||
엑셀파일을 이용하여 상품을 일괄등록할 수 있습니다.<br>
|
||||
형식은 <strong>상품일괄등록용 엑셀파일</strong>을 다운로드하여 상품 정보를 입력하시면 됩니다.<br>
|
||||
수정 완료 후 엑셀파일을 업로드하시면 상품이 일괄등록됩니다.<br>
|
||||
엑셀파일을 저장하실 때는 Excel 97 - 2003 통합문서 (*.xls) 로 저장하셔야 합니다.
|
||||
</p>
|
||||
|
||||
<p class="new_win_desc">
|
||||
<a href="<?php echo G4_URL; ?>/<?php echo G4_LIB_DIR; ?>/Excel/itemexcel.xls">상품일괄등록용 엑셀파일 다운로드</a>
|
||||
</p>
|
||||
|
||||
<form name="fitemexcel" method="post" action="./itemexcelupdate.php" enctype="MULTIPART/FORM-DATA" autocomplete="off">
|
||||
|
||||
<div id="excelfile_upload">
|
||||
<label for="excelfile">파일선택</label>
|
||||
<input type="file" name="excelfile" id="excelfile">
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="상품 엑셀파일 등록" class="btn_submit">
|
||||
<button type="button" onclick="window.close();">닫기</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
|
||||
@ -143,33 +143,35 @@ if($_FILES['excelfile']['tmp_name']) {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
$g4['title'] = '상품 엑셀일괄등록';
|
||||
$g4['title'] = '상품 엑셀일괄등록 결과';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
?>
|
||||
|
||||
<p>
|
||||
상품등록을 완료했습니다.
|
||||
</p>
|
||||
<p>
|
||||
총상품수 : <?php echo number_format($total_count); ?>
|
||||
</p>
|
||||
<p>
|
||||
완료건수 : <?php echo number_format($succ_count); ?>
|
||||
</p>
|
||||
<p>
|
||||
실패건수 : <?php echo number_format($fail_count); ?>
|
||||
</p>
|
||||
<?php if($dup_count > 0) { ?>
|
||||
<p>
|
||||
상품코드중복건수 : <?php echo number_format($dup_count); ?>
|
||||
</p>
|
||||
<p>
|
||||
중복상품코드 : <?php echo implode(', ', $dup_it_id); ?>
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" onclick="window.close();">닫기</button>
|
||||
</p>
|
||||
<?php } ?>
|
||||
<div class="new_win">
|
||||
<h1><?php echo $g4['title']; ?></h1>
|
||||
|
||||
<p class="new_win_desc">상품등록을 완료했습니다.</p>
|
||||
|
||||
<dl id="excelfile_result">
|
||||
<dt>총상품수</dt>
|
||||
<dd><?php echo number_format($total_count); ?></dd>
|
||||
<dt>완료건수</dt>
|
||||
<dd><?php echo number_format($succ_count); ?></dd>
|
||||
<dt>실패건수</dt>
|
||||
<dd><?php echo number_format($fail_count); ?></dd>
|
||||
<?php if($dup_count > 0) { ?>
|
||||
<dt>상품코드중복건수</dt>
|
||||
<dd><?php echo number_format($dup_count); ?></dd>
|
||||
<dt>중복상품코드</dt>
|
||||
<dd><?php echo implode(', ', $dup_it_id); ?></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
|
||||
<div class="btn_win">
|
||||
<button type="button" onclick="window.close();">창닫기</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
|
||||
@ -191,6 +191,14 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
#sit_option_addfrm fieldset {padding:10px;border:1px solid #e9e9e9;background:#f7f7f7;text-align:center}
|
||||
#sit_option_addfrm fieldset .frm_input {margin:0 10px 0 5px;background:#fff !important;color:#000}
|
||||
|
||||
/* 상품 일괄 등록 */
|
||||
#excelfile_upload {margin:10px auto 20px;padding:20px;width:86%;border:1px solid #e9e9e9;background:#fff}
|
||||
#excelfile_upload label {font-weight:bold}
|
||||
#excelfile_result {margin:0 auto 20px;padding:20px;width:86%;border:1px solid #e9e9e9;background:#fff;zoom:1}
|
||||
#excelfile_result:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
#excelfile_result dt {clear:both;float:left;padding:10px 0;width:40%}
|
||||
#excelfile_result dd {float:left;margin:0;padding:10px 0;width:60%}
|
||||
|
||||
/* 상품문의 */
|
||||
.sit_qa_subject {width:300px}
|
||||
.sit_qa_answer {width:30px;text-align:center}
|
||||
@ -477,7 +485,6 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
|
||||
#session_del p, #cache_del p {margin-bottom:20px;padding:13px;border:1px solid #ced9de;background:#fff}
|
||||
#session_del p span, #cache_del p span {color:#ff3061}
|
||||
|
||||
|
||||
/* 새창 기본 스타일 */
|
||||
.new_win {}
|
||||
.new_win h1 {margin-bottom:20px;padding:0 20px;height:60px;border-top:2px solid #484848;border-bottom:1px solid #e9e9e9;background:#fff;font-size:1.2em;line-height:5em}
|
||||
|
||||
Reference in New Issue
Block a user