/home/mjc1/public_html/html/ProgramRegist/pda_rgst3.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?php
header
("Content-type:text/html;charset=euc-kr");
@
extract($_REQUEST);
?>
<html>
<head>
<title>ÀÚ»ê°ü¸® Á¤Ç°µî·Ï</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<script src='/js/jquery-1.8.3.min.js'></script>
<script charset="euc-kr">
    function test(){
    parent.alert("qweqet");
}


    function nameFocus(){
        if(rgstFrm.sName.value == "ex)±è´ë¸®"){
            rgstFrm.sName.value = "";
        }else{
            rgstFrm.sName.style.fontcolor = "#cccccc";
        }
        
    }

    function nameReturn(){
        if(rgstFrm.sName.value == ""){
            rgstFrm.sName.value = "ex)±è´ë¸®";
        }
        
    }

    function cdkeyProcess(){
        if(rgstFrm.sCDKey.value == ""){
            alert("Á¤Ç°¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            cdkey.focus();
            return;
        }

        if(rgstFrm.sName.value == "" || rgstFrm.sName.value == "ex)±è´ë¸®"){
            alert("»ç¿ëÀÚ¸íÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            name.focus();
            return;
        }

        if(rgstFrm.sCDKey.value.length !== 12){
            alert("Á¤Ç°¹øÈ£ 12ÀÚ¸®¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
            rgstFrm.sCDKey.focus();
            return;
        }

        if($("#pda_lcs").val()=='Y'){
            if($("input[name='typeCheck_tmp']").eq(0).is(":checked")==false && $("input[name='typeCheck_tmp']").eq(1).is(":checked")==false){
                alert("±â´ÉÀ» ¼±ÅÃÇØÁÖ¼¼¿ä.");
                return;
            }
            $val = 0;
            $("input[name='typeCheck_tmp']").each(function(){
                if($(this).is(":checked")){
                    $val = $(this).val();
                }
            });
            $("input[name='typeCheck']").val($val);
        } else {
            $("input[name='typeCheck']").val('0')
        }

        rgstFrm.submit();
}

$(function(){
    $("#sCDKey").blur(function(){
        $v = $(this)    .val();
        form_data = "sCDKey="+$v;
        $.ajax({type:"post", url:"ajax.pda_rgst_ck.php", data:form_data, async:false, dataType : "xml", 
            success:function(xml){    
                var v_mode = $(xml).find("mode").text();
                var v_mode_ok = $(xml).find("mode_ok").text();
                var v_radio_box = $(xml).find("radio_box").text();

                $("#pda_lcs").val(v_mode_ok);
                if(v_mode_ok=='Y'){
                    $("#span_radio_box").html("<input type=\"radio\" name=\"typeCheck_tmp\" id=\"typeCheck2\" value=\"0\"><label for=\"typeCheck2\"><font size=\"2%\" color=\"white\"> Àüü±â´É</font></label>&nbsp;&nbsp;<input type=\"radio\" name=\"typeCheck_tmp\" id=\"typeCheck1\" value=\"1\"><label for=\"typeCheck1\"><font size=\"2%\" color=\"white\"> Á¶È¸±â´É</font></label>");
                } else {
                    $("#span_radio_box").html('');
                }
                
            },
            error:function(rtn,status,error){    alert(error);        }
        });
    })
});

</script>



<body topmargin="0" leftmargin="0" style="background: url('./img/smart_bg1.png') no-repeat center center fixed; -webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;">

<iframe name='rgst_ifm' width="0" height="0" border="0"></iframe>

<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<form name='rgstFrm' method='post' action='pdargstProcess.php' >
    <tr>
        <td height="20%" colspan="4" align="center" valign="top">
            <img src="./img/smart_logo1.png" width="65%" border="0">
<!--            <input type="hidden" name="sCDKey" id="sCDKey" value="<?/*=$_POST[sCDKey]*/?>">
            <input type="hidden" name="sAppCode" id="sAppCode" value="<?/*=$_POST[sAppCode]*/?>">
-->
            <input type="hidden" name="parm_app_code" id="parm_app_code" value="<?=$_POST['parm_app_code']?>"><!-- ÇÁ·Î±×·¥ÄÚµå-->
            <input type="hidden" name="parm_pc_name" id="parm_pc_name" value="<?=$_POST['parm_pc_name']?>"><!-- PC¸í-->
            <input type="hidden" name="parm_os_type" id="parm_os_type" value="<?=$_POST['parm_os_type']?>"><!-- OS-->
            <input type="hidden" name="parm_screen_w" id="parm_screen_w" value="<?=$_POST['parm_screen_w']?>"><!-- ½ºÅ©¸°³ÐÀÌ-->
            <input type="hidden" name="parm_screen_h" id="parm_screen_h" value="<?=$_POST['parm_screen_h']?>"><!-- ½ºÅ©¸°³ôÀÌ-->
            <input type="hidden" name="parm_user_mac" id="parm_user_mac" value="<?=$_POST['parm_user_mac']?>"><!-- MACÁÖ¼Ò-->
            <input type="hidden" name="pda_lcs" id="pda_lcs" value="N"><!-- Á¶È¸±â´É ¼±Åÿ©ºÎ -->
        </td>
    </tr>

    <tr>
        <td height="10%" align="center"><font size="2%" color="#91d1ff">¾Æ·¡³»¿ëÀ» ÀԷ ÈÄ <span style="font-weight:bold;">[µî·Ï]</span> ¹öưÀ» ´©¸£¼¼¿ä.<br>Á¤Ç°¹øÈ£ ÀԷ ÈÄ Á¤½Ä »ç¿ë °¡´ÉÇÕ´Ï´Ù.</font></td>
    </tr>
                               
    <tr>
        <td width="70%" align="center" valign="top">
        <table>
            <tr>
                <td width="30%" align="right">
                    <font size="2%" color="white"><b>&nbsp;&nbsp;&nbsp;Á¤Ç°¹øÈ£&nbsp;</b></font>
                </td>
                <td>
                    <input type="number" name="sCDKey" id="sCDKey" style="width:80%; height:130%; font-size:13pt;" maxlength="12">
                </td>
            </tr>

            </br></br>

            <tr>
                <td width="30%" align="right">
                    <font size="2%" color="white"><b>&nbsp;&nbsp;&nbsp;»ç¿ëÀÚ¸í&nbsp;</b></font>
                </td>
                <td>
                    <input type="text" name="sName" id="sName" style="width:60%; height:130%; font-size:13pt;margin:5px 0;"  maxlength="20"><font size="1%" color="white"> ex)±è´ë¸®</font>
                </td>
            </tr>
        </table>
        </td>
    </tr>

    <tr>
        <td align="center" valign="middle">
            <input type="hidden" name="typeCheck" value="0">
            <span id='span_radio_box'>
                <!--<input type="radio" name="typeCheck" id="typeCheck2" value="0"><label for="typeCheck2"><font size="2%" color="white"> Àüü±â´É</font></label>
                &nbsp;&nbsp;
                <input type="radio" name="typeCheck" id="typeCheck1" value="1"><label for="typeCheck1"><font size="2%" color="white"> Á¶È¸±â´É</font></label>-->
            </span>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="./img/smart_send1.png" width="25%" border="0" style='cursor:hand;' onclick="javascript:cdkeyProcess();">
        </td>
    </tr>
    <tr>
        <td height="30%" align="center" valign="middle" >
        <a href="tel:02-401-5121"><img src="./img/smart_ad1.png" width="75%" border="0" style="margin-bottom:10px;"></a><br>
        <span style="color:#fff;font-size:10pt;font-weight:600;">¿¥Á¦À̼ÒÇÁÆ® Á¦Ç°À» ÀÌ¿ëÇØ Áּż­ °¨»çÇÕ´Ï´Ù.</span>
    </tr>    
  </form>
</table>
</body>
</html>