/home/mjc1/public_html/adm/shop_admin/personalpaycopy.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
$sub_menu 
'270250';
include_once(
'./_common.php');

auth_check($auth[$sub_menu], 'w');

$g5['title'] = '개인결제 복사';
include_once(
G5_PATH.'/head.sub.php');

$sql " select * from {$g5['g5_shop_personalpay_table']} where pp_id = '$pp_id' ";
$row sql_fetch($sql);

if(!
$row['pp_id'])
    
alert_close('복사하시려는 개인결제 정보가 존재하지 않습니다.');
?>

<div class="new_win">
    <h1>개인결제 복사</h1>

    <form name="fpersonalpaycopy" method="post" action="./personalpaycopyupdate.php" onsubmit="return form_check(this);">
    <input type="hidden" name="pp_id" value="<?php echo $pp_id?>">

     <div class="tbl_frm01 tbl_wrap">
        <table>
        <caption><?php echo $g5['title']; ?></caption>
        <tbody>
        <tr>
            <th scope="row"><label for="pp_name">이름</label></th>
            <td><input type="text" name="pp_name" value="<?php echo $row['pp_name']; ?>" id="pp_name" required class="required frm_input"></td>
        </tr>
        <tr>
            <th scope="row"><label for="od_id">주문번호</label></th>
            <td><input type="text" name="od_id" value="<?php echo $row['od_id']; ?>" id="od_id" class="frm_input"></td>
        </tr>
        <tr>
            <th scope="row"><label for="pp_price">주문금액</label></th>
            <td><input type="text" name="pp_price" value="" id="pp_price" required class="required frm_input" size="20"> 원</td>
        </tr>
        </tbody>
        </table>
    </div>

    <div class="btn_confirm01 btn_confirm">
        <input type="submit" value="복사하기" class="btn_submit">
        <button type="button" onclick="self.close();">창닫기</button>
    </div>

    </form>

</div>

<script>
// <![CDATA[
function form_check(f)
{
    if(f.pp_price.value.replace(/[0-9]/g, "").length > 0) {
        alert("주문금액은 숫자만 입력해 주십시오");
        return false;
    }

    return true;
}
// ]]>
</script>

<?php
include_once(G5_PATH.'/tail.sub.php');
?>