/home/mjc1/public_html/html/millennium/mypagebuild_non.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>

<?
    $currentDay 
date('Y-m-d',Time());
    
//24.05.20 ³²»óº¹ ¼öÁ¤, È«Àç¿øÆÀÀå´Ô ¿äû
    //customerbuild.php ÆäÀÌÁö¸¦ ÅëÇØ Á¢¼Ó°¡´ÉÇÔ
    //ºñ·Î±×ÀΠ»óÅÂÀ϶§, ±Û¾²±â¹öưÀ» Å¬¸¯ÇßÀ»¶§ ÇØ´ç ÆäÀÌÁö·Î À̵¿ÇÔ(ºñȸ¿ø Àü¿ë ÀÛ¼ºÈ­¸é)
    //·Î±×ÀΠ»óÅÂÀÏ °æ¿ì, ±âÁ¸ mypagebuild.php ÆÄÀϷΠÀ̵¿ÇÔ(ȸ¿øÀü¿ë ÀÛ¼ºÈ­¸é)

    //¼öÁ¤½Ã Âü°í»çÇ×
    //ºñ·Î±×ÀλóÅÂÀÏ °æ¿ì, È¸»ç¸í,À̸§,¿¬¶ôó Á¤º¸°¡ Ãß°¡ÀԷµǵµ·Ï ¼öÁ¤µÊ
    //ȸ»ç¸í,À̸§Àº ±âÁ¸ÀÇ ·Î±×ÀÎÈÄ ÀÛ¼º¾ç½Ä°ú ³Ñ¾î°¡´Â °ªÀ» µ¿ÀÏÇϰÔ
    //ºñ·Î±×ÀÎÀÇ °æ¿ì, ¿¬¶ôóÁ¤º¸°¡ Ãß°¡·Î º¸À̵µ·Ï(ÇöÀç ºñ·Î±×ÀΠ°Ô½ÃÀڴ º»ÀαÛÀ» È®ÀÎÇÒ ¼ö ¾øÀ½)
    //ÇöÀç µ¥ÀÌÅÍó¸®,°ü¸®ÀÚÈ­¸é¿¡ ´äº¯¸ÞÀÏ¿©ºÎ¿¡ °üÇÑ phpº¯¼ö°¡ ºó°ªÀ¸·Î ³Ñ¾î°¨
?>

<script>

//ÅØ½ºÆ® Å¬¸¯½Ã ³»¿ë »èÁ¦
function clear_text(){ 
    if(document.getElementById("clicktime").value == "0"){    //ùŬ¸¯¸¸ »èÁ¦

        var str=""; 
        var bb=document.getElementById("content1"); 
        bb.innerHTML= str; 
        document.getElementById("clicktime").value = "1";
    }


//±Û¾²±â Ã¼Å©
 function FrmCh(filedir){
    if( asinsertFrm.company.value == ""){
     alert("ȸ»ç¸íÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.company.focus();
     return;
     } 

     if( asinsertFrm.name.value == ""){
     alert("À̸§Àº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.name.focus();
     return;
     } 

     if( asinsertFrm.tel1.value == "" || asinsertFrm.tel2.value == "" || asinsertFrm.tel3.value == ""){
     alert("¿¬¶ôó´Â ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.tel1.focus();
     return;
     } 

     if( asinsertFrm.subject.value == ""){
     alert("±ÛÁ¦¸ñÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.subject.focus();
     return;
     } 
     if( asinsertFrm.Msw1.value == ""){
     alert("ÇÁ·Î±×·¥¼±ÅÃÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.Msw1.focus();
     return;
     } 

     if( asinsertFrm.Memail.value.trim() == ""){ //24.05.17 ¼öÁ¤, ºñȸ¿øÀΠ°æ¿ì ¿¬¶ô¹æ¹ý ¹× º»ÀÎÈ®ÀÎÀÌ ¸ÞÀϹۿ¡ ¾øÀ½
     alert("´äº¯¸ÞÀÏÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.Memail.focus();
     return;
     } 

    if( asinsertFrm.clicktime.value == "0" || asinsertFrm.content1.value == ""){
     alert("±Û³»¿ëÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
     asinsertFrm.content1.focus();
     return;
     } 


  if( confirm("µî·ÏÇϽг»¿ëÀ¸·Î Á¢¼ö ÇϽðڽÀ´Ï±î?")){     
       asinsertFrm.action = "<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/buildBoardProcess.php<?php } else {?>buildBoardProcess.php<?php }?>?&filedir="+filedir;
       asinsertFrm.submit();
       }
   }
</script>
<style>
.subContents_mail{padding:17px 10px;font-weight:600;font-size:11pt;}
.mail_orange{color:#ff6600;font-weight:600;}
.mail_blue{color:#00429d;font-weight:600;}

.build_tit{position: relative;height: 320px;background: url('./img/customer/board_title/build_top03-2.png') center no-repeat;}
.build_tit_link{position: absolute;display: block;width: 124px;height: 38px;bottom: 34px;left: 50.2%;transform: translateX(-50%);border-bottom: 2px solid #3455AC !important;}

.mypageInfo th{height: 55px;line-height: 55px;font-size: 16px;font-weight: 600;text-align: left;border-bottom: 1px solid #acacac;border-right: 1px solid #acacac;padding-left: 20px;width: 160px;}
.mypageInfo td{width: calc(100% - 160px);border-bottom: 1px solid #acacac;}
.mypageInfo td input{border: 1px solid #b3b3b3 !important;height: 30px !important;line-height: 30px !important;vertical-align: middle;}
.mypageInfo td [type="file"]{border: 0px !important;}
.mypageInfo td textarea{resize: none;margin: 10px 0px;padding: 10px;width: 880px;border: 1px solid #b3b3b3 !important;}

.hypen_class{margin: 0px 10px;font-size: 20px;font-weight: bold;vertical-align: middle;}
.mypageInfo caption{width: 1100px;margin: 0 auto;margin-bottom:10px;font-size:16px;}
.tel_num input{width: 140px;}

.qnaBtn p{float: none;margin: 10px auto 30px !important;width: 254px !important;}
</style>

    <div class="build_tit"><a href="https://mjsoft.co/html/millennium/soft_cs.php" class="build_tit_link"></a></div>
    <div class="wrap">
        <div class="contents" style="margin: 0px;">
                
                <div class="section" style="width: 1100px;">
                    <form name="asinsertFrm" method=post action='' enctype='multipart/form-data'>    
                    <input type="hidden" name="mode" value="none_insert">
                    <input type="hidden" name="userid" value="none"><!--//À¯Àú¾ÆÀ̵ð¾øÀ½(ºñ·Î±×ÀλóÅÂ), ÇØ´ç °ªÀ¸·Î ºñ·Î±×ÀÎ,·Î±×ÀλóÅ ±¸ºÐ-->

                    <!-- ¹®ÀÇÇϱâ -->
                    <table class="mypageInfo mt30" style="width: 100%;">
                        <caption><span style="float: left;font-weight: bold;">ºñȸ¿ø Àü¿ë ¹®ÀÇÇϱâ</span><span style="float: right;">* Ç¥½Ã´Â <b style="color: #006cff;">Çʼö ÀÔ·Â</b> Ç׸ñÀÔ´Ï´Ù.</span></caption>
                        <tr>
                            <th>* È¸»ç¸í</th>
                            <td><input name="company" type="text" style="width: 240px;"></td>
                            <th style="border-left: 1px solid #acacac;">* À̸§</th>
                            <td><input name="name" type="text" style="width: 240px;"></td>
                        </tr>
                        <tr>
                            <th>* ¿¬¶ôó</th>
                            <td colspan="3" class="tel_num">
                                <input name="tel1" type="text" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"><span class="hypen_class">-</span>
                                <input name="tel2" type="text" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');"><span class="hypen_class">-</span>
                                <input name="tel3" type="text" maxlength="4" oninput="this.value = this.value.replace(/[^0-9]/g, '').replace(/(\..*)\./g, '$1');">
                            </td>
                        </tr>
                        <tr> 
                            <th>* Á¦¸ñ</th> <!--width="150" td:560-->
                            <td colspan="3">
                                <input name="subject" type="text" size="50" maxlength="70" style="width: 491px;">
                            </td>
                        </tr>
                        <tr> 
                            <th>* »ç¿ëÇÁ·Î±×·¥</th>
                            <td colspan="3">    
                                <select name='Msw1'>
                                    <option value='' >ÇÁ·Î±×·¥¼±ÅÃ</option>


<?
   
//ȸ¿øÅ×À̺í°ú ÇÁ·Î±×·¥ÀÏġȭ
    
$memberQry              =   " select Msw1 from member WHERE Mid = '{$_COOKIE['USERID']}' ";
    
$memberResult           =     mysql_query($memberQry);
    
$memberRow              =     mysql_fetch_array($memberResult);


    
//$qry              =   " select category_code,category_name from cate3 where category_code <= 100 order by sort desc, idx ";
    // 2023-08-29 È«Àç¿ø ¿äû / ÇÁ·Î±×·¥¼±Åÿ¡¼­ Ãµ³â°æ¿µ3, Ãµ³â°æ¿µ3C/S, Ãµ³â°æ¿µ3S ¸¸ ³ª¿Àµµ·Ï ¼öÁ¤
    
$qry                =   "select category_code,category_name from cate3 where category_code IN ('82','81','84','86') order by sort desc, idx";
    
$cateResult       =     mysql_query($qry);
    
      while( 
$cateRow =     mysql_fetch_array($cateResult) ){
        
      
$category_nameArr  explode"->"$cateRow[1] );
?>     
                                    <option <? if($memberRow[0] == $cateRow[0]){ echo "selected";}?> value='<?=$cateRow[0];?>'><?=$category_nameArr[1];?></option>
<?
    
}
?>    
                                </select> 
                            </td>
                        </tr>
                        <tr> 
                            <th>÷ºÎÆÄÀÏ</th>
                            <td colspan="3">
                                <input type="file" name="add_file" size="40" maxlength="40">
                                <!-- ½ºÅ©¸°¼¦ °æ·Î º¸À̱â -->
                                <? if ($filedir <> "") { ?>
                                <? $Rfiledir stripslashes($filedir); ?>
                                <br />
                                <font color="#3366FF">¾Æ·¡ °æ·ÎÀÇ "¿À·ùÈ­¸é.jpg" ÆÄÀÏÀ» "ã¾Æº¸±â" ¹öưÀ» ´­·¯ Ã·ºÎÇϼ¼¿ä.</font><br />
                                <font color="#FF0033"><? echo ($Rfiledir); ?></font>
                                <? ?>
                            </td>
                        </tr>
                        <tr> 
                            <th>* ´äº¯¸ÞÀÏ</th>
                            <td colspan="3">
                                <input type="text" name="Memail" size="30" value='<?php echo $mem_info['Memail'];?>'>&nbsp;&nbsp;
                                <input type='checkbox' name='mail_reply_yn' value='Y' checked onclick="return false"> ´äº¯À» ¸ÞÀϷΠ¹Þ¾Æº¸°Ú½À´Ï´Ù.
                            </td>
                        </tr>
                        <tr> 
                            <th>* ¹®Àdz»¿ë</th>
                            <td colspan="3">
                                <input type="hidden" name="clicktime" id="clicktime" value="0">
                                <textarea name="content1" cols="97" rows="10" onclick="clear_text()" id="content1">
Á¦¾ÈÇϴ Á¦Ç°¸í°ú °³¹ß/¾÷µ¥ÀÌÆ® ³»¿ëÀ» ÀÚ¼¼È÷ Àû¾îÁÖ¼¼¿ä.
µî·ÏµÈ ³»¿ëÀº °³¹ßÆÀ¿¡¼­ °ËÅä ÈÄ ÁøÇà¿©ºÎ°¡ °áÁ¤µË´Ï´Ù.
                                </textarea>
                            </td>
                        </tr>
                        </table>

                        <div class="qnaBtn">
                            <!--p><a href="./customerbuild.php"><img src="./img/mypage/list_bt.jpg" alt="±Û¸ñ·Ï"></a></p-->
                            <p><img src="./img/mypage/add_bt2.png"  Onclick="javascript:FrmCh('<?=$filedir?>');" style="cursor:pointer;" alt="Áú¹®µî·Ï"></p>
                        </div>
                    </form>
                </div><!-- //section -->

        </div><!-- //contents -->
    </div><!-- //wrap -->
<? include("./Page/common/footer.php"); ?>