primeidc/backoffice/pop_mailsms.php
2021-10-26 18:26:49 +09:00

96 lines
3.3 KiB
PHP

<?
session_start();
include $_SERVER[DOCUMENT_ROOT] . "/common/conf/config.inc.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta http-equiv="imagetoolbar" content="no" />
<title>문자/메일 충전</title>
<link href="/backoffice/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">
//window.document.oncontextmenu = new Function("return false");
//window.document.onselectstart = new Function("return false");
//window.document.ondragstart = new Function("return false");
</script>
<script language="javascript">
function frmCheck(frm){
if(frm.contents.value.length < 2 || frm.contents.value=='입금자명을 기입해 주시기 바랍니다. 기타요청사항을 기입하시면 됩니다.'){
alert('입금자명을 기입해 주세요.');
frm.contents.value="";
frm.contents.focus();
return false;
}
}
</script>
</head>
<body>
<div class="mailsms_pop">
<div class="head">
<h1><img src="/backoffice/images/pop_logo.gif" alt="website" /></h1>
</div>
<div class="content">
<div class="top">
고객님이 선택한 사항을 확인하시고 아래의 요청버튼을 클릭하시고 해당 금액을 송금해 주시면 10분이내로 충전이 됩니다. 감사합니다.
</div>
<div class="mailsms_form">
<form name="mailsmsFrm" action="http://intra.website.co.kr:9470/mailsms_evn.php" onsubmit="javascript:return frmCheck(this);">
<input type="hidden" name="evnMode" value="insert">
<input type="hidden" name="user_id" value="<?=$_SITE["POSTMAN_ID"]?>">
<div class="space-right">(VAT포함)</div>
<table>
<colgroup>
<col width="46%" />
<col width="27%" />
<col width="27%" />
</colgroup>
<thead>
<tr>
<td>발송종류</td>
<td>금액</td>
<td>건수</td>
</tr>
</thead>
<tbody>
<?
if(count($_REQUEST[mailsms]) > 0){
foreach($_REQUEST[mailsms] AS $key => $val){
$arrSend = explode("|", $val);
$total += $arrSend[1];
?>
<tr>
<input type="hidden" name="mailsms[]" value="<?=$val?>">
<th><strong><?=$arrSend[0]?> 충전</strong></th>
<td><?=number_format($arrSend[1])?>원</td>
<td><?=number_format($arrSend[2])?>건</td>
</tr>
<?
}
}
?>
</tbody>
</table>
<div class="total">
<strong>총 충전금액 : <?=number_format($total)?>원(VAT포함)</strong>
</div>
<dl class="info">
<dt><strong>입금계좌</strong></dt>
<dd>&lt;<span class="bank"><strong>국민은행 465101-01-164345 전경훈(웹사이트)</strong></span>&gt;</dd>
</dl>
<dl class="memo">
<dt><strong>비고(요청사항)</strong></dt>
<dd><textarea name="contents" id="contents" cols="30" rows="10" style="width:99%;height:110px;" onclick="document.mailsmsFrm.contents.value=''">입금자명을 기입해 주시기 바랍니다. 기타요청사항을 기입하시면 됩니다.</textarea></dd>
</dl>
<div class="btn">
<input type="submit" value="요청하기" />
</div>
</form>
</div>
</div>
</div>
</body>
</html>