/home/mjc1/public_html/html/ProgramRegist/jasan_rgst.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
<?
    header
("Content-type:text/html;charset=euckr");
    @
extract($_REQUEST);
    
//$_POST['parm_app_code'] = '046';
    //$_POST['parm_pc_name'] = "¹Ú¼º¿ø";
    
if(mb_detect_encoding($_POST['parm_pc_name'])=='UTF-8'){
        
$_POST['parm_pc_name'] = iconv("utf-8","euckr",$_POST['parm_pc_name']);
    }
?>
<html>
<head>
<title>ÀÚ»ê°ü¸® Á¤Ç°µî·Ï</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<script>
    function cdkeyProcess(){
    var cdkey = document.getElementById("sCDKey");
    if(cdkey.value == ""){
        alert("Á¤Ç°¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
        cdkey.focus();
        return;
    }

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


function nonkr() {
  tvalue = document.getElementById("sCDKey");
  onvalue = tvalue.value;
  
  count=0
  for (i=0;i<onvalue.length;i++){
    ls_one_char = onvalue.charAt(i);
 
    if(ls_one_char.search(/[0-9|a-z|A-Z|]/) == -1) {
   count++
    }
  }
  if(count!=0) {
    alert("ÀԷ½à¼ýÀÚ, ¿µ¹®¸¸ »ç¿ë °¡´ÉÇÕ´Ï´Ù.") 
    tvalue.value = "";
    tvalue.focus();
    return false;
  }
  else {
//    alert(onvalue + "¸¦ ÀԷ Çß½À´Ï´Ù.");
    return false;
  }
}


</script>



<body topmargin="0" leftmargin="0" >

<iframe name='rgst_ifm' width=0 height=0 style="border:0px;"></iframe>

<table width="406" height="273" border="0" cellspacing="0" cellpadding="0" background="./img/rgst_bg.png" align="center" style="border:1px solid #efefef;">
<form name='rgstFrm' method='post' target='rgst_ifm' action='rgstProcess.php' >
    <tr>
        <td height="35" colspan="4">
<!--        <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ÁÖ¼Ò-->
        </td>
    </tr>
    <tr>
        <td width="25" height="55">
        </td>
        <td width="355">
            <table border="0" cellpadding="0" cellspacing="0" height="55">
                <tr>
                    <td width="285">
                        Á¤Ç°¹øÈ£ : <input type="text" name="sCDKey" id="sCDKey" style="width:190px;height:20px;font-size:11px;font-weight:bold;"  maxlength="12" onkeyup="return nonkr()">
                    </td>
                    <td><img src="./img/rgst_bt.jpg" border="0" style="cursor:pointer;" onclick="cdkeyProcess();"></td>
                </tr>
                <tr>
                    <td rowspan="2" width="285">
                        »ç¿ëÀÚ¸í : <input type="text" name="sName" id="sName" style="width:190px;height:20px;font-size:11px;font-weight:bold;"  maxlength="12" value="<?=$_POST['parm_pc_name']?>" >
                    </td>
                    <td width="70"><a href="http://www.mijinsoft.co.kr/html/millennium/product.php" target="_blank"><img src="./img/buy_bt.jpg" border="0" style="cursor:pointer;"></a></td>
                </tr>
            </table>
        </td>
        <td width="26">
        </td>
    </tr>
    <tr>
        <td colspan="4" height="14">
        </td>
    </tr>
    <tr>
        <td></td>
        <td colspan="2" height="26" align="center">
        <font size="2">¿¥Á¦À̼ÒÇÁÆ® Á¦Ç°À» ÀÌ¿ëÇØ Áּż­ °¨»çÇÕ´Ï´Ù.</font>
        </td>
        <td></td>
    </tr>    
    <tr>
        <td colspan="4" height="143">
        </td>
    </tr>    
  </form>
</table>
</body>
</html>