html 편집기 드림위버 쓰는데요? 한글코드카 완전 깨져서 복원하지도 못하네요
코드보기 하면 물음표로 나오네요 인코딩 한국어로 설정해도 복원이 안됩니다
어케 해야 하나요? 미치겠네요
페이지도 오류가 생깁니다
아래와 같이 오류생김
Parse error: parse error, unexpected '?' in /web/home/hpis/html/shop/cart/orderreceipt.php on line 182
자꾸 한글이 물음표로 바뀌어서 다시편집해야 되고 미치것네요
아시는분 잇음 답변좀 부탁드립니다.
html 편집기 드림위버 쓰는데요?
<?
if (!defined("_GNUBOARD_")) exit; // ?? ??? ?? ??
define("_DOCTYPE_", "DESIGN3");
session_check();
// ????? ??????
if (get_cart_count($_SESSION[ss_on_uid]) == 0)
alert("????? ?? ????.", "./?doc=$cart_dir/cart.php");
$rimg = "<img src='$cfg[d_url]/$cart_skin/icon_nemo.gif' border=0 align=absmiddle>";
// ????? ?????
if ($default[de_hope_date_use])
{
ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})", $od_hope_date, $hope_date);
if ($od_hope_date == "") ; // ??
else if (checkdate($hope_date[2], $hope_date[3], $hope_date[1]) == false)
alert("?????? ???? ??? ????.");
else if ($od_hope_date < date("Y-m-d", time()+86400*$default[de_hope_date_after]))
alert("?????? ???? {$default[de_hope_date_after]}? ? ?? ??? ????.");
}
// ?? ??? ???? ??????? ???? ???
if ($_SESSION[ss_mb_id] != "")
$od_pwd = $mb[mb_pwd];
else
$od_pwd = sql_password($od_pwd);
$html_title = "????? 2??";
//echo get_navigation($html_title);
?><style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<img src="<? echo "$cfg[d_url]/$cart_skin" ?>/top_orderreceipt.gif" border="0"><p>
<?
$s_page = "";
$s_on_uid = $_SESSION[ss_on_uid];
include "$cart_dir/cartsub.inc.php";
$f_tot_amount = display_amount($tot_amount);
$f_tot_amount_len = strlen($f_tot_amount);
?>
<br>
<table width=620 cellpadding=0 cellspacing=0 align=center>
<tr><td height=30 class=t_order>????</font></td></tr>
<tr>
<td align=center>
<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F2F7FA>
<form name=frmorderreceipt method=post action='<?="./?doc=$cart_dir/orderupdate.php"?>' onsubmit="return frmorderreceipt_check(this)" autocomplete="off">
<input type=hidden name=od_settle_case value='<? echo $od_settle_case ?>'>
<input type=hidden name=od_amount value='<? echo $tot_sell_amount ?>'>
<input type=hidden name=od_send_cost value='<? echo (int)$od_send_cost ?>'>
<input type=hidden name=od_cpnumber1 value='<? echo $od_cpnumber1 ?>'>
<input type=hidden name=od_cpnumber2 value='<? echo $od_cpnumber2 ?>'>
<input type=hidden name=od_cpnumber3 value='<? echo $od_cpnumber3 ?>'>
<input type=hidden name=od_name value='<? echo $od_name ?>'>
<input type=hidden name=od_mbnumber value='<? echo $od_mbnumber?>'>
<input type=hidden name=od_mbjumin1 value='<? echo $od_mbjumin1 ?>'>
<input type=hidden name=od_mbjumin2 value='<? echo $od_mbjumin2 ?>'>
<input type=hidden name=od_appoption value='<? echo $od_appoption ?>' >
<input type=hidden name=od_pwd value='<? echo $od_pwd ?>'>
<input type=hidden name=od_tel value='<? echo $od_tel ?>'>
<input type=hidden name=od_hp value='<? echo $od_hp ?>'>
<input type=hidden name=od_zip1 value='<? echo $od_zip1 ?>'>
<input type=hidden name=od_zip2 value='<? echo $od_zip2 ?>'>
<input type=hidden name=od_addr1 value='<? echo $od_addr1 ?>'>
<input type=hidden name=od_addr2 value='<? echo $od_addr2 ?>'>
<input type=hidden name=od_email value='<? echo $od_email ?>'>
<input type=hidden name=od_customer value='<? echo $od_customer ?>'>
<input type=hidden name=od_hpcompany value='<? echo $od_hpcompany ?>'>
<input type=hidden name=od_bankmbname value='<? echo $od_bankmbname ?>'>
<input type=hidden name=od_bankname value='<? echo $od_bankname ?>'>
<input type=hidden name=od_banknumber value='<? echo $od_banknumber ?>'>
<input type=hidden name=od_service value='<? echo $od_service ?>'>
<input type=hidden name=od_hope_date value='<? echo $od_hope_date ?>'>
<input type=hidden name=od_memo value='<? echo htmlspecialchars2(stripslashes($od_memo)) ?>'>
<colgroup width=110>
<colgroup width=''>
<tr><td height=2 colspan=2 bgcolor=#D4E1EB></td></tr>
<tr>
<td><? echo $rimg ?> ????</td>
<td>
<input type=text name=od_settle_amount value='<? echo $f_tot_amount ?>'
size='<? echo $f_tot_amount_len ?>'
style="text-align:right; border-style:none; background-color:#F7F7FF;"
class=point readonly>
</td>
</tr>
<?
$f_tot_amount_len -= 2; // "?" ???? ??
$receipt_amount = number_format($tot_amount - $od_temp_point);
if ($od_temp_point != "") {
$temp_point = number_format($od_temp_point);
echo "<tr>";
echo "<td>$rimg ?????</td>";
echo "<td><input type=text name=od_temp_point value='$temp_point' size='$f_tot_amount_len' style='text-align:right;' class=edit onFocus='this.value = no_comma(this.value); this.select();' onBlur='compute_amount(this.form, this);'>? (".display_point($default[de_point_settle])." ?? ?? ??)</td>";
echo "</tr>";
}
if ($od_settle_case == "???") {
// ????? ??? ???
$str = explode("\n", $default[de_bank_account]);
$bank_account = "\n<select name=od_bank_account>\n";
$bank_account .= "<option value=''>--------------- ?????? ---------------\n";
for ($i=0; $i<count($str); $i++)
{
$str[$i] = str_replace("\r", "", $str[$i]);
$bank_account .= "<option value='$str[$i]'>$str[$i] \n";
}
$bank_account .= "</select> ";
echo "<tr>";
echo "<td>$rimg ??????</td>";
echo "<td><input type=text name=od_receipt_bank value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?</td>";
echo "</tr><tr>";
echo "<td>$rimg ????</td><td>$bank_account</td>";
echo "</tr><tr>";
echo "<td>$rimg ??? ??</td>";
echo "<td><input type=text name=od_deposit_name class=edit size=10 maxlength=20 value='$od_name'> (??????? ???? ?? ??)</td>";
echo "</tr>\n";
$receipt_amount = 0;
}
if ($od_settle_case == "??? ????") {
$border_style = "";
if ($od_receipt_bank == "") $border_style = " border-style:none;";
echo "<tr>";
echo "<input type=hidden name=od_bank_account value='??? ????'>";
echo "<input type=hidden name=od_deposit_name value='$od_name'>";
echo "<td>$rimg ??? ????</td>";
echo "<td><input type=text name=od_receipt_bank value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?";
echo "</tr>";
$receipt_amount = 0;
}
if ($od_settle_case == "????") {
$border_style = "";
if ($od_receipt_bank == "") $border_style = " border-style:none;";
echo "<tr>";
echo "<td>$rimg ????</td>";
echo "<td><input type=text name=od_receipt_card value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?";
echo "</tr>";
$receipt_amount = 0;
}
?>
<tr><td height=1 bgcolor=#AFAFAF colspan=2></td></tr>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</table><p>
</td>
</tr>
<tr>
<td height=30 class=t_order2>????? ?</td>
</tr>
<tr>
<td>
<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F8F7F2>
<colgroup width=150>
<colgroup width=''>
<!-- ??? ?? -->
<tr><td height=2 colspan=2 bgcolor=#DFDED9></td></tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td><? echo $od_cpnumber1 ?>-<? echo $od_cpnumber2 ?>-<? echo $od_cpnumber3 ?></td>
</tr>
<tr height=25 >
<td colspan=2> ?? ??</td>
</tr>
<tr><td colspan="2">
<? if ($od_appoption==??) {echo" <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption'disabled >
?? <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' checked disabled>
??";} ?>
</td></tr>
<tr height=25>
<td> <? echo $rimg ?> ??(???) </td>
<td><? echo $od_name ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ?????? </td>
<td><? echo $od_mbjumin1 ?>-<? echo $od_mbjumin2 ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???/?????? </td>
<td><? echo $od_mbnumber ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td><? echo $od_tel ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???</td>
<td><? echo $od_hp ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ??</td>
<td><? echo sprintf("(%s-%s) %s %s", $od_zip1, $od_zip2, $od_addr1, $od_addr2); ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> E-mail</td>
<td><? echo $od_email ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td>
<? if ($od_customer==??) {echo" <input type='checkbox' name='od_customer' checked disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==?????) {echo"
<input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' checked disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==?????) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' checked disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==????) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer'checked disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==??) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' checked disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==??) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' checked disabled>
??";}
?> </td>
</tr>
<tr height=25 >
<td colspan=2>?? ?? ??</td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???????</td>
<td><? if ($od_hpcompany==lgt) {echo" <input type='radio' name='od_appoption' checked disabled>
LGT <input type='radio' name='od_appoption' disabled>
SKT <input type='radio' name='od_appoption' disabled>
KTF";}
elseif($od_hpcompany==skt) {echo" <input type='radio' name='od_appoption' disabled>
LGT <input type='radio' name='od_appoption' checked disabled>
SKT <input type='radio' name='od_appoption' disabled>
KTF";}
elseif($od_hpcompany==ktf) {echo" <input type='radio' name='od_appoption' checked disabled>
LGT <input type='radio' name='od_appoption' disabled>
SKT <input type='radio' name='od_appoption' checked disabled>
KTF";}
?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>??? ??(???)</td>
<td><? echo $od_bankmbname ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>????(???)</td>
<td><? echo $od_bankname ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>????</td>
<td><? echo $od_banknumber ?></td>
</tr>
<tr height=25 >
<td colspan=2> ?????</td>
</tr>
<tr height=25>
<td colspan="2">
<? if ($od_service==1) {echo" <input type='checkbox' name='od_service' checked disabled>
40%????? (? 4,000?/VAT??) <input type='checkbox' name='od_service' disabled>
???? ???(? 50,000?/VAT??)";}
elseif ($od_service==2) {echo" <input type='checkbox' name='od_service' checked disabled>
40%????? (? 4,000?/VAT??) <input type='checkbox' name='od_service' disabled>
???? ???(? 50,000?/VAT??)";}
?> </td>
</tr>
<?
// ????? ?????
if ($default[de_hope_date_use]) {
echo "
<tr height=25>
<td> $rimg ?????</td>
<td>$od_hope_date (".get_yoil($od_hope_date).")</td>
</tr> ";
}
?>
<tr><td height=1 bgcolor=#AFAFAF colspan=2></td></tr>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</table><p>
</td>
</tr>
<tr>
<td>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</td>
</tr>
<tr><td colspan=2 align=center><br><a href="javascript:frmorderreceipt_check(document.frmorderreceipt);"><img src="<? echo "$cfg[d_url]/$cart_skin" ?>/btn_next2.gif" border=0 alt="??"></a> <a href="javascript:history.go(-1);"><img src="<? echo "$cfg[d_url]/$cart_skin" ?>/btn_back1.gif" border=0 alt="??"></td></tr>
</form>
</table><br>
<script language='javascript'>
function frmorderreceipt_check(f) {
errmsg = "";
errfld = "";
settle_amount = parseFloat(f.od_amount.value) + parseFloat(f.od_send_cost.value);
od_receipt_bank = 0;
od_receipt_card = 0;
od_temp_point = 0;
if (typeof(f.od_temp_point) != 'undefined')
{
od_temp_point = parseFloat(no_comma(f.od_temp_point.value));
if (od_temp_point > 0)
{
// ??? ?? ????
if (od_temp_point < <?=(int)$default[de_point_settle]?>)
{
alert("??? ???? <?=display_point($default[de_point_settle])?> ?? ?????.");
f.od_temp_point.focus();
return;
// ??? ?? ??? ?? ?? ?????
} else if (od_temp_point > <? echo (int)$od_temp_point ?>) {
alert("??? ???? <? echo display_point($od_temp_point) ?> ?? ?????.");
f.od_temp_point.focus();
return;
}
}
}
if (typeof(f.od_receipt_card) != 'undefined')
{
od_receipt_card = parseFloat(no_comma(f.od_receipt_card.value));
if (od_receipt_card < <?=(int)($default[de_card_max_amount])?>)
{
alert("???? ???? <?=display_amount($default[de_card_max_amount])?> ?? ?????.");
f.od_receipt_card.focus();
return;
}
}
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = parseFloat(no_comma(f.od_receipt_bank.value));
if (f.od_bank_account.value == "" && od_receipt_bank > 0)
{
alert("????? ???? ?? ????? ??? ????.");
f.od_bank_account.focus();
return;
}
if (f.od_deposit_name.value.length < 2)
{
alert("???? ??? ??? ????.");
f.od_deposit_name.focus();
return;
}
}
sum = od_receipt_bank + od_receipt_card + od_temp_point;
if (settle_amount != sum)
{
alert("???? ??? ??? ????? ?? ????.");
return;
}
// ??? ?? ??
if (od_temp_point < 0 || od_receipt_card < 0 || od_receipt_bank < 0)
{
alert("??? ??? ???? ? ????.");
return;
}
str_card = "";
str = "? ???? ?? " + f.od_settle_amount.value + " ???\n\n";
if (typeof(f.od_temp_point) != 'undefined')
str += "??? : " + f.od_temp_point.value + "?\n\n";
if (typeof(f.od_receipt_card) != 'undefined')
{
str += "???? : " + f.od_receipt_card.value + "?\n\n";
if (parseFloat(f.od_receipt_card.value) > 0)
{
/*
str_card = "\n\n"+
"---------------------------------------\n\n"+
"???? ??? ???????.\n\n"+
"??? ??? ????????(??)??\n\n"+
"?????? ???? ????? ??? ?????.";
*/
<?
// ????? ????? ??
if ($default[de_card_point] == false)
echo " str_card += '\\n\\n---------------------------------------\\n\\n????? ?? ???? ???? ????.'; ";
?>
}
}
if (typeof(f.od_receipt_bank) != 'undefined')
str += "<?=$od_settle_case?> : " + f.od_receipt_bank.value + "?\n\n";
str += "?? ?? ?????.\n\n"+
"??? ???? ??? ????."+str_card;
sw_submit = confirm(str);
if (sw_submit == false)
return;
f.submit();
}
function compute_amount(f, fld)
{
x = no_comma(fld.value);
if (isNaN(x))
{
alert("??? ????.");
fld.value = fld.defaultValue;
fld.focus();
return;
}
else if (x == "")
x = 0;
x = parseFloat(x);
// 100? ?? ??
if (fld.name == "od_temp_point") {
x = parseInt(x / 100) * 100;
}
fld.value = number_format(String(x));
settle_amount = parseFloat(f.od_amount.value) + parseFloat(f.od_send_cost.value);
od_receipt_bank = 0;
od_receipt_card = 0;
od_temp_point = 0;
if (typeof(f.od_receipt_bank) != 'undefined')
od_receipt_bank = parseFloat(no_comma(f.od_receipt_bank.value));
if (typeof(f.od_receipt_card) != 'undefined')
od_receipt_card = parseFloat(no_comma(f.od_receipt_card.value));
if (typeof(f.od_temp_point) != 'undefined')
od_temp_point = parseFloat(no_comma(f.od_temp_point.value));
sum = od_receipt_bank + od_receipt_card + od_temp_point;
// ??????? ????? ?? ???
if (sum != settle_amount)
{
if (fld.name == 'od_temp_point')
{
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = settle_amount - (od_temp_point + od_receipt_card);
f.od_receipt_bank.value = number_format(String(od_receipt_bank));
}
else if (typeof(f.od_receipt_card) != 'undefined')
{
od_receipt_card = settle_amount - (od_temp_point + od_receipt_bank);
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
else
{
f.od_temp_point.value = number_format(String(od_temp_point));
}
}
else if (fld.name == 'od_receipt_card')
{
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = settle_amount - (od_temp_point + od_receipt_card);
f.od_receipt_bank.value = number_format(String(od_receipt_bank));
}
else
{
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
}
else if (fld.name == 'od_receipt_bank')
{
if (typeof(f.od_temp_point) == 'undefined')
{
if (typeof(f.od_receipt_card) == 'undefined') {
;
} else {
od_receipt_card = settle_amount - od_receipt_bank;
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
}
}
return;
}
}
</script>
코드보기 하면 물음표로 나오네요 인코딩 한국어로 설정해도 복원이 안됩니다
어케 해야 하나요? 미치겠네요
페이지도 오류가 생깁니다
아래와 같이 오류생김
Parse error: parse error, unexpected '?' in /web/home/hpis/html/shop/cart/orderreceipt.php on line 182
자꾸 한글이 물음표로 바뀌어서 다시편집해야 되고 미치것네요
아시는분 잇음 답변좀 부탁드립니다.
html 편집기 드림위버 쓰는데요?
<?
if (!defined("_GNUBOARD_")) exit; // ?? ??? ?? ??
define("_DOCTYPE_", "DESIGN3");
session_check();
// ????? ??????
if (get_cart_count($_SESSION[ss_on_uid]) == 0)
alert("????? ?? ????.", "./?doc=$cart_dir/cart.php");
$rimg = "<img src='$cfg[d_url]/$cart_skin/icon_nemo.gif' border=0 align=absmiddle>";
// ????? ?????
if ($default[de_hope_date_use])
{
ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})", $od_hope_date, $hope_date);
if ($od_hope_date == "") ; // ??
else if (checkdate($hope_date[2], $hope_date[3], $hope_date[1]) == false)
alert("?????? ???? ??? ????.");
else if ($od_hope_date < date("Y-m-d", time()+86400*$default[de_hope_date_after]))
alert("?????? ???? {$default[de_hope_date_after]}? ? ?? ??? ????.");
}
// ?? ??? ???? ??????? ???? ???
if ($_SESSION[ss_mb_id] != "")
$od_pwd = $mb[mb_pwd];
else
$od_pwd = sql_password($od_pwd);
$html_title = "????? 2??";
//echo get_navigation($html_title);
?><style type="text/css">
<!--
body,td,th {
font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<img src="<? echo "$cfg[d_url]/$cart_skin" ?>/top_orderreceipt.gif" border="0"><p>
<?
$s_page = "";
$s_on_uid = $_SESSION[ss_on_uid];
include "$cart_dir/cartsub.inc.php";
$f_tot_amount = display_amount($tot_amount);
$f_tot_amount_len = strlen($f_tot_amount);
?>
<br>
<table width=620 cellpadding=0 cellspacing=0 align=center>
<tr><td height=30 class=t_order>????</font></td></tr>
<tr>
<td align=center>
<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F2F7FA>
<form name=frmorderreceipt method=post action='<?="./?doc=$cart_dir/orderupdate.php"?>' onsubmit="return frmorderreceipt_check(this)" autocomplete="off">
<input type=hidden name=od_settle_case value='<? echo $od_settle_case ?>'>
<input type=hidden name=od_amount value='<? echo $tot_sell_amount ?>'>
<input type=hidden name=od_send_cost value='<? echo (int)$od_send_cost ?>'>
<input type=hidden name=od_cpnumber1 value='<? echo $od_cpnumber1 ?>'>
<input type=hidden name=od_cpnumber2 value='<? echo $od_cpnumber2 ?>'>
<input type=hidden name=od_cpnumber3 value='<? echo $od_cpnumber3 ?>'>
<input type=hidden name=od_name value='<? echo $od_name ?>'>
<input type=hidden name=od_mbnumber value='<? echo $od_mbnumber?>'>
<input type=hidden name=od_mbjumin1 value='<? echo $od_mbjumin1 ?>'>
<input type=hidden name=od_mbjumin2 value='<? echo $od_mbjumin2 ?>'>
<input type=hidden name=od_appoption value='<? echo $od_appoption ?>' >
<input type=hidden name=od_pwd value='<? echo $od_pwd ?>'>
<input type=hidden name=od_tel value='<? echo $od_tel ?>'>
<input type=hidden name=od_hp value='<? echo $od_hp ?>'>
<input type=hidden name=od_zip1 value='<? echo $od_zip1 ?>'>
<input type=hidden name=od_zip2 value='<? echo $od_zip2 ?>'>
<input type=hidden name=od_addr1 value='<? echo $od_addr1 ?>'>
<input type=hidden name=od_addr2 value='<? echo $od_addr2 ?>'>
<input type=hidden name=od_email value='<? echo $od_email ?>'>
<input type=hidden name=od_customer value='<? echo $od_customer ?>'>
<input type=hidden name=od_hpcompany value='<? echo $od_hpcompany ?>'>
<input type=hidden name=od_bankmbname value='<? echo $od_bankmbname ?>'>
<input type=hidden name=od_bankname value='<? echo $od_bankname ?>'>
<input type=hidden name=od_banknumber value='<? echo $od_banknumber ?>'>
<input type=hidden name=od_service value='<? echo $od_service ?>'>
<input type=hidden name=od_hope_date value='<? echo $od_hope_date ?>'>
<input type=hidden name=od_memo value='<? echo htmlspecialchars2(stripslashes($od_memo)) ?>'>
<colgroup width=110>
<colgroup width=''>
<tr><td height=2 colspan=2 bgcolor=#D4E1EB></td></tr>
<tr>
<td><? echo $rimg ?> ????</td>
<td>
<input type=text name=od_settle_amount value='<? echo $f_tot_amount ?>'
size='<? echo $f_tot_amount_len ?>'
style="text-align:right; border-style:none; background-color:#F7F7FF;"
class=point readonly>
</td>
</tr>
<?
$f_tot_amount_len -= 2; // "?" ???? ??
$receipt_amount = number_format($tot_amount - $od_temp_point);
if ($od_temp_point != "") {
$temp_point = number_format($od_temp_point);
echo "<tr>";
echo "<td>$rimg ?????</td>";
echo "<td><input type=text name=od_temp_point value='$temp_point' size='$f_tot_amount_len' style='text-align:right;' class=edit onFocus='this.value = no_comma(this.value); this.select();' onBlur='compute_amount(this.form, this);'>? (".display_point($default[de_point_settle])." ?? ?? ??)</td>";
echo "</tr>";
}
if ($od_settle_case == "???") {
// ????? ??? ???
$str = explode("\n", $default[de_bank_account]);
$bank_account = "\n<select name=od_bank_account>\n";
$bank_account .= "<option value=''>--------------- ?????? ---------------\n";
for ($i=0; $i<count($str); $i++)
{
$str[$i] = str_replace("\r", "", $str[$i]);
$bank_account .= "<option value='$str[$i]'>$str[$i] \n";
}
$bank_account .= "</select> ";
echo "<tr>";
echo "<td>$rimg ??????</td>";
echo "<td><input type=text name=od_receipt_bank value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?</td>";
echo "</tr><tr>";
echo "<td>$rimg ????</td><td>$bank_account</td>";
echo "</tr><tr>";
echo "<td>$rimg ??? ??</td>";
echo "<td><input type=text name=od_deposit_name class=edit size=10 maxlength=20 value='$od_name'> (??????? ???? ?? ??)</td>";
echo "</tr>\n";
$receipt_amount = 0;
}
if ($od_settle_case == "??? ????") {
$border_style = "";
if ($od_receipt_bank == "") $border_style = " border-style:none;";
echo "<tr>";
echo "<input type=hidden name=od_bank_account value='??? ????'>";
echo "<input type=hidden name=od_deposit_name value='$od_name'>";
echo "<td>$rimg ??? ????</td>";
echo "<td><input type=text name=od_receipt_bank value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?";
echo "</tr>";
$receipt_amount = 0;
}
if ($od_settle_case == "????") {
$border_style = "";
if ($od_receipt_bank == "") $border_style = " border-style:none;";
echo "<tr>";
echo "<td>$rimg ????</td>";
echo "<td><input type=text name=od_receipt_card value='$receipt_amount' size='$f_tot_amount_len' style='text-align:right; border-style:none; background-color:#F7F7FF;' class=point readonly>?";
echo "</tr>";
$receipt_amount = 0;
}
?>
<tr><td height=1 bgcolor=#AFAFAF colspan=2></td></tr>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</table><p>
</td>
</tr>
<tr>
<td height=30 class=t_order2>????? ?</td>
</tr>
<tr>
<td>
<table width=100% cellpadding=4 cellspacing=1 bgcolor=#F8F7F2>
<colgroup width=150>
<colgroup width=''>
<!-- ??? ?? -->
<tr><td height=2 colspan=2 bgcolor=#DFDED9></td></tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td><? echo $od_cpnumber1 ?>-<? echo $od_cpnumber2 ?>-<? echo $od_cpnumber3 ?></td>
</tr>
<tr height=25 >
<td colspan=2> ?? ??</td>
</tr>
<tr><td colspan="2">
<? if ($od_appoption==??) {echo" <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption'disabled >
?? <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption' checked disabled>
?? <input type='checkbox' name='od_appoption' disabled>
??";}
else if($od_appoption==??) {echo" <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption'disabled>
?? <input type='checkbox' name='od_appoption' disabled>
?? <input type='checkbox' name='od_appoption' checked disabled>
??";} ?>
</td></tr>
<tr height=25>
<td> <? echo $rimg ?> ??(???) </td>
<td><? echo $od_name ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ?????? </td>
<td><? echo $od_mbjumin1 ?>-<? echo $od_mbjumin2 ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???/?????? </td>
<td><? echo $od_mbnumber ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td><? echo $od_tel ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???</td>
<td><? echo $od_hp ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ??</td>
<td><? echo sprintf("(%s-%s) %s %s", $od_zip1, $od_zip2, $od_addr1, $od_addr2); ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> E-mail</td>
<td><? echo $od_email ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ????</td>
<td>
<? if ($od_customer==??) {echo" <input type='checkbox' name='od_customer' checked disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==?????) {echo"
<input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' checked disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==?????) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' checked disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==????) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer'checked disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==??) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' checked disabled>
?? <input type='checkbox' name='od_customer' disabled>
??";}
elseif ($od_customer==??) {echo" <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
????? <input type='checkbox' name='od_customer' disabled>
???? <input type='checkbox' name='od_customer' disabled>
?? <input type='checkbox' name='od_customer' checked disabled>
??";}
?> </td>
</tr>
<tr height=25 >
<td colspan=2>?? ?? ??</td>
</tr>
<tr height=25>
<td> <? echo $rimg ?> ???????</td>
<td><? if ($od_hpcompany==lgt) {echo" <input type='radio' name='od_appoption' checked disabled>
LGT <input type='radio' name='od_appoption' disabled>
SKT <input type='radio' name='od_appoption' disabled>
KTF";}
elseif($od_hpcompany==skt) {echo" <input type='radio' name='od_appoption' disabled>
LGT <input type='radio' name='od_appoption' checked disabled>
SKT <input type='radio' name='od_appoption' disabled>
KTF";}
elseif($od_hpcompany==ktf) {echo" <input type='radio' name='od_appoption' checked disabled>
LGT <input type='radio' name='od_appoption' disabled>
SKT <input type='radio' name='od_appoption' checked disabled>
KTF";}
?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>??? ??(???)</td>
<td><? echo $od_bankmbname ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>????(???)</td>
<td><? echo $od_bankname ?></td>
</tr>
<tr height=25>
<td> <? echo $rimg ?>????</td>
<td><? echo $od_banknumber ?></td>
</tr>
<tr height=25 >
<td colspan=2> ?????</td>
</tr>
<tr height=25>
<td colspan="2">
<? if ($od_service==1) {echo" <input type='checkbox' name='od_service' checked disabled>
40%????? (? 4,000?/VAT??) <input type='checkbox' name='od_service' disabled>
???? ???(? 50,000?/VAT??)";}
elseif ($od_service==2) {echo" <input type='checkbox' name='od_service' checked disabled>
40%????? (? 4,000?/VAT??) <input type='checkbox' name='od_service' disabled>
???? ???(? 50,000?/VAT??)";}
?> </td>
</tr>
<?
// ????? ?????
if ($default[de_hope_date_use]) {
echo "
<tr height=25>
<td> $rimg ?????</td>
<td>$od_hope_date (".get_yoil($od_hope_date).")</td>
</tr> ";
}
?>
<tr><td height=1 bgcolor=#AFAFAF colspan=2></td></tr>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</table><p>
</td>
</tr>
<tr>
<td>
<tr><td height=2 bgcolor=#EDEDED colspan=2></td></tr>
</td>
</tr>
<tr><td colspan=2 align=center><br><a href="javascript:frmorderreceipt_check(document.frmorderreceipt);"><img src="<? echo "$cfg[d_url]/$cart_skin" ?>/btn_next2.gif" border=0 alt="??"></a> <a href="javascript:history.go(-1);"><img src="<? echo "$cfg[d_url]/$cart_skin" ?>/btn_back1.gif" border=0 alt="??"></td></tr>
</form>
</table><br>
<script language='javascript'>
function frmorderreceipt_check(f) {
errmsg = "";
errfld = "";
settle_amount = parseFloat(f.od_amount.value) + parseFloat(f.od_send_cost.value);
od_receipt_bank = 0;
od_receipt_card = 0;
od_temp_point = 0;
if (typeof(f.od_temp_point) != 'undefined')
{
od_temp_point = parseFloat(no_comma(f.od_temp_point.value));
if (od_temp_point > 0)
{
// ??? ?? ????
if (od_temp_point < <?=(int)$default[de_point_settle]?>)
{
alert("??? ???? <?=display_point($default[de_point_settle])?> ?? ?????.");
f.od_temp_point.focus();
return;
// ??? ?? ??? ?? ?? ?????
} else if (od_temp_point > <? echo (int)$od_temp_point ?>) {
alert("??? ???? <? echo display_point($od_temp_point) ?> ?? ?????.");
f.od_temp_point.focus();
return;
}
}
}
if (typeof(f.od_receipt_card) != 'undefined')
{
od_receipt_card = parseFloat(no_comma(f.od_receipt_card.value));
if (od_receipt_card < <?=(int)($default[de_card_max_amount])?>)
{
alert("???? ???? <?=display_amount($default[de_card_max_amount])?> ?? ?????.");
f.od_receipt_card.focus();
return;
}
}
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = parseFloat(no_comma(f.od_receipt_bank.value));
if (f.od_bank_account.value == "" && od_receipt_bank > 0)
{
alert("????? ???? ?? ????? ??? ????.");
f.od_bank_account.focus();
return;
}
if (f.od_deposit_name.value.length < 2)
{
alert("???? ??? ??? ????.");
f.od_deposit_name.focus();
return;
}
}
sum = od_receipt_bank + od_receipt_card + od_temp_point;
if (settle_amount != sum)
{
alert("???? ??? ??? ????? ?? ????.");
return;
}
// ??? ?? ??
if (od_temp_point < 0 || od_receipt_card < 0 || od_receipt_bank < 0)
{
alert("??? ??? ???? ? ????.");
return;
}
str_card = "";
str = "? ???? ?? " + f.od_settle_amount.value + " ???\n\n";
if (typeof(f.od_temp_point) != 'undefined')
str += "??? : " + f.od_temp_point.value + "?\n\n";
if (typeof(f.od_receipt_card) != 'undefined')
{
str += "???? : " + f.od_receipt_card.value + "?\n\n";
if (parseFloat(f.od_receipt_card.value) > 0)
{
/*
str_card = "\n\n"+
"---------------------------------------\n\n"+
"???? ??? ???????.\n\n"+
"??? ??? ????????(??)??\n\n"+
"?????? ???? ????? ??? ?????.";
*/
<?
// ????? ????? ??
if ($default[de_card_point] == false)
echo " str_card += '\\n\\n---------------------------------------\\n\\n????? ?? ???? ???? ????.'; ";
?>
}
}
if (typeof(f.od_receipt_bank) != 'undefined')
str += "<?=$od_settle_case?> : " + f.od_receipt_bank.value + "?\n\n";
str += "?? ?? ?????.\n\n"+
"??? ???? ??? ????."+str_card;
sw_submit = confirm(str);
if (sw_submit == false)
return;
f.submit();
}
function compute_amount(f, fld)
{
x = no_comma(fld.value);
if (isNaN(x))
{
alert("??? ????.");
fld.value = fld.defaultValue;
fld.focus();
return;
}
else if (x == "")
x = 0;
x = parseFloat(x);
// 100? ?? ??
if (fld.name == "od_temp_point") {
x = parseInt(x / 100) * 100;
}
fld.value = number_format(String(x));
settle_amount = parseFloat(f.od_amount.value) + parseFloat(f.od_send_cost.value);
od_receipt_bank = 0;
od_receipt_card = 0;
od_temp_point = 0;
if (typeof(f.od_receipt_bank) != 'undefined')
od_receipt_bank = parseFloat(no_comma(f.od_receipt_bank.value));
if (typeof(f.od_receipt_card) != 'undefined')
od_receipt_card = parseFloat(no_comma(f.od_receipt_card.value));
if (typeof(f.od_temp_point) != 'undefined')
od_temp_point = parseFloat(no_comma(f.od_temp_point.value));
sum = od_receipt_bank + od_receipt_card + od_temp_point;
// ??????? ????? ?? ???
if (sum != settle_amount)
{
if (fld.name == 'od_temp_point')
{
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = settle_amount - (od_temp_point + od_receipt_card);
f.od_receipt_bank.value = number_format(String(od_receipt_bank));
}
else if (typeof(f.od_receipt_card) != 'undefined')
{
od_receipt_card = settle_amount - (od_temp_point + od_receipt_bank);
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
else
{
f.od_temp_point.value = number_format(String(od_temp_point));
}
}
else if (fld.name == 'od_receipt_card')
{
if (typeof(f.od_receipt_bank) != 'undefined')
{
od_receipt_bank = settle_amount - (od_temp_point + od_receipt_card);
f.od_receipt_bank.value = number_format(String(od_receipt_bank));
}
else
{
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
}
else if (fld.name == 'od_receipt_bank')
{
if (typeof(f.od_temp_point) == 'undefined')
{
if (typeof(f.od_receipt_card) == 'undefined') {
;
} else {
od_receipt_card = settle_amount - od_receipt_bank;
f.od_receipt_card.value = number_format(String(od_receipt_card));
}
}
}
return;
}
}
</script>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 2개
거기서 왼쪽에 세번째 메뉴이던가..
인코딩메뉸가..그쪽에 보시면 언어가 영어로 되어있을 것입니다.
아마 이것을 한글로 바꿔주고 그 바로 옆에있는 버튼을 눌러주시고 확인을 눌러주시면 한글 표현이 됩니다.
저도 드림위버를 사용하는데 한글깨짐 현상이 종종 일어나더라구요
인코딩 환경을 항상 한글(koeran)으로 설정하거든요
복원도 안됩니다
한번 깨지면 절대 복원 안됨