쇼핑몰: #143 상품 관련 메일 발송, 결제/배송내역 메일발송 표준화 및 스타일

This commit is contained in:
whitedot
2013-05-08 18:10:45 +09:00
parent db55b22268
commit 4d2a21a84e
3 changed files with 145 additions and 148 deletions

View File

@ -120,7 +120,7 @@ if ($od_send_mail)
$content = ob_get_contents();
ob_end_clean();
$title = "{$od['od_name']}님께서 주문하신 내역을 다음과 같이 처리하였습니다.";
$title = $config['cf_title'].' - '.$od['od_name'].'님 주문 처리 내역 안내';
$email = $od['od_email'];
// 메일 보낸 내역 상점메모에 update

View File

@ -1,154 +1,151 @@
<html>
<!doctype html>
<html lang="ko">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>주문내역 처리 현황</title>
<meta charset="utf-8">
<title><?php echo $config['cf_title'];?> 주문내역 처리 안내</title>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="25" height="25">&nbsp;</td>
<td height="25">&nbsp;</td>
<td width="25" height="25">&nbsp;</td>
</tr>
<tr>
<td width="25" valign="top"><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_left.gif" width="25" height="281"></td>
<td class="line" >
<table width="548" border="0" cellspacing="0" cellpadding="0">
<body>
<div style="margin:30px auto;width:600px;border:10px solid #f7f7f7">
<div style="border:1px solid #dedede">
<h1 style="margin:0 0 20px;padding:30px 30px 20px;background:#f7f7f7;color:#555;font-size:1.4em">
<?php echo $config['cf_title'];?> 주문내역 처리 안내
</h1>
<?php if (count($cart_list)) { ?>
<table style="margin:0 auto 20px;width:94%;border:0;border-collapse:collapse">
<caption style="padding:0 0 5px;font-weight:bold">주문상품 확인</caption>
<colgroup>
<col>
<col style="width:100px">
<col style="width:70px">
<col style="width:50px">
</colgroup>
<thead>
<tr>
<td height="59" background="<?php echo G4_SHOP_URL; ?>/mail/img/mail_bg2.gif">
<table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td height="16"><div align="right"><strong><font color="#02253A">주문내역 처리 현황</font></strong></div></td>
</tr>
</table>
</td>
<th scope="col" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">품명</th>
<th scope="col" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">옵션</th>
<th scope="col" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">상태</th>
<th scope="col" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">수량</th>
</tr>
</table>
<p>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1">
<thead>
<tbody>
<?php for ($i=0; $i<count($cart_list); $i++) { ?>
<tr>
<td>
<?php if (count($cart_list)) { ?>
<table width="500" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="250" height="25" background="<?php echo G4_SHOP_URL; ?>/mail/img/mail_bg1.gif"> <div align="center">품 명</div></td>
<td width="100" height="25" background="<?php echo G4_SHOP_URL; ?>/mail/img/mail_bg1.gif"> <div align="center">선택옵션</div></td>
<td width="100" height="25" background="<?php echo G4_SHOP_URL; ?>/mail/img/mail_bg1.gif"> <div align="center">처리상태</div></td>
<td width="50" height="25" background="<?php echo G4_SHOP_URL; ?>/mail/img/mail_bg1.gif"> <div align="center">수 량</div></td>
</tr>
<?php for ($i=0; $i<count($cart_list); $i++) { ?>
<tr>
<td width="250" height="25"><a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $cart_list[$i]['it_id']; ?>" target="_blank"><?php echo $cart_list[$i]['it_name']; ?></a></td>
<td width="100" height="25"><div align="center"><?php echo $cart_list[$i]['it_opt']; ?></div></td>
<td width="100" height="25"><div align="center"><?php echo $cart_list[$i]['ct_status']; ?></div></td>
<td width="50" height="25"><div align="center"><?php echo $cart_list[$i]['ct_qty']; ?></div></td>
</tr>
<tr>
<td colspan=4 height=1 bgcolor=#EEEEEE></td>
</tr>
<?php } // end for ?>
</table>
<?php } // end if ?>
<?php if (count($card_list)) { ?>
<p><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_icon1.gif" width="13" height="11"> 신용카드 입금을 확인하였습니다</p>
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;승인일시</td>
<td width="370">&nbsp;<?php echo $card_list['od_card_time']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;승인금액</td>
<td width="370">&nbsp;<?php echo $card_list['od_receipt_card']; ?></td>
</tr>
</table>
<?php } ?>
<?php if (count($bank_list)) { ?>
<br />
<p><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_icon1.gif" width="13" height="11"> 무통장 입금을 확인하였습니다</p>
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;확인일시</td>
<td width="370">&nbsp;<?php echo $bank_list['od_bank_time']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;입금액</td>
<td width="370">&nbsp;<?php echo $bank_list['od_receipt_bank']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height=25>&nbsp;&nbsp;&nbsp;입금자명</td>
<td>&nbsp;<?php echo $bank_list['od_deposit_name']; ?></td>
</tr>
</table>
<?php } ?>
<?php if (count($point_list)) { ?>
<br />
<p><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_icon1.gif" width="13" height="11"> 포인트 입금을 확인하였습니다</p>
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;확인일시</td>
<td width="370">&nbsp;<?php echo $point_list['od_time']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;포인트</td>
<td width="370">&nbsp;<?php echo $point_list['od_receipt_point']; ?></td>
</tr>
</table>
<?php } ?>
<?php if (count($delivery_list)) { ?>
<br />
<p><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_icon1.gif" width="13" height="11"> 다음과 같이 배송 하였습니다</p>
<table width="500" border="0" cellpadding="3" cellspacing="1" bgcolor="#868F98">
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;배송회사</td>
<td width="370">&nbsp;<a href='<?php echo $delivery_list['dl_url']; ?>' target=_blank><?php echo $delivery_list['dl_company']; ?></a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="130" height=25>&nbsp;&nbsp;&nbsp;운송장번호</td>
<td width="370">&nbsp;<?php echo $delivery_list['od_invoice']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height=25>&nbsp;&nbsp;&nbsp;배송일시</td>
<td>&nbsp;<?php echo $delivery_list['od_invoice_time']; ?></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height=25>&nbsp;&nbsp;&nbsp;대표전화</td>
<td>&nbsp;<?php echo $delivery_list['dl_tel']; ?></td>
</tr>
</table>
<?php } ?>
<p><?php echo $addmemo; ?>
<br>
<table width="500" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25" bgcolor="#ECF1F6">
<div align="center">[<a href="<?php echo G4_URL; ?>" target="_blank"><?php echo $config['cf_title']; ?></a>] 에서 드리는 메일입니다.</div></td>
</tr>
</table>
</td>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><a href="<?php echo G4_SHOP_URL; ?>/item.php?it_id=<?php echo $cart_list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><?php echo $cart_list[$i]['it_name']; ?></a></td>
<td style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;text-align:center"><?php echo $cart_list[$i]['it_opt']; ?></td>
<td style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;text-align:center"><?php echo $cart_list[$i]['ct_status']; ?></td>
<td style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;text-align:center"><?php echo $cart_list[$i]['ct_qty']; ?></td>
</tr>
<?php } // end for ?>
</tbody>
</table>
<br>
<?php } // end if ?>
</td>
<td width="25" valign="top"><img src="<?php echo G4_SHOP_URL; ?>/mail/img/mail_right.gif" width="25" height="281"></td>
</tr>
</table>
<?php if (count($card_list)) { ?>
<table style="margin:0 auto 20px;width:94%;border:0;border-collapse:collapse">
<caption style="padding:0 0 5px;font-weight:bold">신용카드 결제 확인</caption>
<colgroup>
<col style="width:130px">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">승인일시</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $card_list['od_card_time']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">승인금액</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $card_list['od_receipt_card']; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
<?php if (count($bank_list)) { ?>
<table style="margin:0 auto 20px;width:94%;border:0;border-collapse:collapse">
<caption style="padding:0 0 5px;font-weight:bold">무통장 입금 확인 완료</caption>
<colgroup>
<col style="width:130px">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">확인일시</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $bank_list['od_bank_time']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">입금액</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $bank_list['od_receipt_bank']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">입금자명</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $bank_list['od_deposit_name']; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
<?php if (count($point_list)) { ?>
<table style="margin:0 auto 20px;width:94%;border:0;border-collapse:collapse">
<caption style="padding:0 0 5px;font-weight:bold">포인트 결제 확인</caption>
<colgroup>
<col style="width:130px">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">확인일시</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $point_list['od_time']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">포인트</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $point_list['od_receipt_point']; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
<?php if (count($delivery_list)) { ?>
<table style="margin:0 auto 20px;width:94%;border:0;border-collapse:collapse">
<caption style="padding:0 0 5px;font-weight:bold">배송 안내</caption>
<colgroup>
<col style="width:130px">
<col>
</colgroup>
<tbody>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">배송회사</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><a href="<?php echo $delivery_list['dl_url']; ?>" target="_blank" style="text-decoration:none"><?php echo $delivery_list['dl_company']; ?></a></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">운송장번호</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $delivery_list['od_invoice']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">배송일시</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $delivery_list['od_invoice_time']; ?></td>
</tr>
<tr>
<th scope="row" style="padding:5px 0;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;background:#f5f6fa">대표전화</th>
<td style="padding:5px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9"><?php echo $delivery_list['dl_tel']; ?></td>
</tr>
</tbody>
</table>
<?php } ?>
<?php if ($addmemo) { ?>
<p style="margin:0 auto 20px;width:94%">
<strong>전달사항</strong>
<?php echo $addmemo; ?>
</p>
<?php } ?>
<a href="<?php echo G4_SHOP_URL ?>" target="_blank" style="display:block;padding:30px 0;background:#484848;color:#fff;text-decoration:none;text-align:center"><?php echo $config['cf_title'] ?></a>
</div>
</div>
</body>
</html>

View File

@ -8,9 +8,9 @@ $admin = get_admin('super');
//------------------------------------------------------------------------------
// 운영자에게 메일보내기
//------------------------------------------------------------------------------
$subject = "{$config['cf_title']}에서 주문이 들어 왔습니다. ($od_name)";
$subject = $config['cf_title'].' - 주문 알림 메일 ('.$od_name.')';
ob_start();
include "./mail/orderupdate1.mail.php";
include './mail/orderupdate1.mail.php;';
$content = ob_get_contents();
ob_end_clean();
@ -20,9 +20,9 @@ mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
//------------------------------------------------------------------------------
// 주문자에게 메일보내기
//------------------------------------------------------------------------------
$subject = "{$config['cf_title']}에서 다음과 같이 주문하셨습니다.";
$subject = $config['cf_title'].' - 주문 내역 안내 메일';
ob_start();
include "./mail/orderupdate2.mail.php";
include './mail/orderupdate2.mail.php';
$content = ob_get_contents();
ob_end_clean();
@ -59,7 +59,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$list['it_opt'] = print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
$list['ct_qty'] = $row['ct_qty'];
$subject = "{$config['cf_title']}에서 다음과 같이 주문서가 접수 되었습니다. (주문자 {$od_name}님)";
$subject = $config['cf_title'].' - 주문 알림 메일 (주문자 '.$od_name.'님)';
ob_start();
include "./mail/orderupdate3.mail.php";
$content = ob_get_contents();