/home/mjc1/public_html/html/millennium/customeras_as_old01.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?php include_once("./_common2.php"); ?>
<? 
include("./Page/common/header.php"); ?>

<style>
    .faqTable td { font-size:11px; }
    .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;}
    .mt30{margin:0;}
    .sub_con_tit{font-size: 18px;font-weight: bold;color: #5a5b55;/* margin-top: 30px; */position: relative;top: 20px;height: 30px;}
    .mypageInfo th{    width: 150px;
    display: inline-block;}
    .mypageInfo td textarea {
    margin: 5px 0;
    border: 1px solid #e7e7e7;
    width: 720px;
}
</style>

    <div class="wrap">

        <div class="contents">
            <div class="asideMenu">
                <? include("./Page/customer/leftNavi.html"); ?>
            </div><!-- //leftNavi -->

            <div class="subContents">
                <h1>
                    <div class="sub_con_tit" style="font-size: 18px;font-weight: bold;color: #5a5b55;">AS¿äûÄÚ³Ê</div>
                    <p>
                        <span class="home"><a href="intro.php">Home</a></span>
                        <span class="depth">></span>
                        <span class="depth1">°í°´¼¾ÅÍ</span>
                        <span class="depth">></span>
                        <span class="depth2">AS¿äû</span>
                    </p>
                </h1>

                <div class="section">
                    <!--<h2><img src="./img/customer/as_top.jpg" alt="±âÁ¸ Å¸ÀÌÆ²"></h2>-->
                    <h2 style="margin-bottom:20px;"><img src="./img/customer/board_title/as_top_new.png" alt="Áú¹®°ú´äº¯ À̹ÌÁö" usemap="#cu_as_top"/></h2>                
<form name="asinsertFrm" method="post" action='' enctype='multipart/form-data'>    
    <input type="hidden" name="mode" value="insert">
    <input type="hidden" name="page_mode" value="as">
    <input type='hidden' name='uid' value='<?php echo $_COOKIE['USERID'];?>'>
                    <!-- ¹®ÀÇÇϱâ -->
                    <table class="mypageInfo mt30">
                        <!--<caption><img src="./img/mypage/qna_txt_02.jpg" alt="¹®ÀÇÇϱâ"></caption>-->
                        <tr> 
                            <th>ÀÛ¼ºÀÚ</th>
                            <td><input name="company" id='shop' type="text" size="36" maxlength="70"></td>
                            <th style="width:100px;">»óÈ£</th>
                            <td><input name="homepage" id='name' type="text" size="36" maxlength="70"></td>
                        </tr>
                        <tr> 
                            <th>´äº¯¼ö½Å¹æ½Ä</th>
                            <td><input type='radio' name='as_rep_type' style="position:relative;top:3px;margin-right:5px;" value="tel">ÀüÈ­<input name="tel1" type="text" size="7" maxlength="4" style="margin-left:15px;"> -
                                <input name="tel2" type="text" size="7" maxlength="4"> -
                                <input name="tel3" type="text" size="7" maxlength="4"></td>
                            <td colspan="2" style="border-left: 1px solid #e7e7e7;"><input type='radio' name='as_rep_type' style="position: relative;top:3px;margin-right:5px;" value="email">À̸ÞÀÏ<input name="s_email" type="text" size="28" maxlength="70" style="margin-left:15px;"> (µÑ Áß Çϳª ¼±ÅÃ)</td>
                        </tr>
                        <tr> 
                            <th>»ç¿ëÇÁ·Î±×·¥</th>
                            <td>    
                                <select name='Msw1' style="width: 250px;">
                                    <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 ";
    
$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 name="subject" type="text" size="50" maxlength="70"></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> ´äº¯À» ¸ÞÀϷΠ¹Þ¾Æº¸°Ú½À´Ï´Ù.
                            </td>
                        </tr>-->
                        <tr> 
                            <th style="height: 167px;line-height: 167px;">¹®Àdz»¿ë</th>
                            <td colspan="3"><textarea name="content" cols="75" rows="10"></textarea></td>
                        </tr>
                    </table>
                    <div class="tieupAgree">
                        <h2>°³ÀÎÁ¤º¸ ¼öÁý ¹× À̿뵿ÀÇ <span>(ÀÚ¼¼ÇÑ ³»¿ëÀº '°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§'À» Âü°íÇØÁÖ¼¼¿ä.)</span></h2>
                        <? include("./privacy_text.html"); ?>
                        <p style="    padding-left: 380px;">
                            <input type="radio" id="formText1" name="formText" value="1"><label for="formText1">µ¿ÀÇÇÔ</label>
                            <input type="radio" id="formText2" name="formText" value="2" checked><label for="formText2">µ¿ÀǾÈÇÔ</label>
                        </p>
                        <div class="as_btn_ft as_on" style="margin-left: 340px;padding: 0px 50px;margin-top: 20px;"><a Onclick="javascript:FrmCh('<?=$filedir?>');">µî·ÏÇϱâ</a></div>
                    </div>
</form>
                    <!--<div class="qnaBtn">
                        <p><img src="./img/mypage/add_bt_as.png" Onclick="javascript:FrmCh('<?=$filedir?>');" style="cursor:pointer;" alt="as¿äû"></p>
                        <p><a href="./customeras.php"><img src="./img/mypage/list_bt.jpg" alt="±Û¸ñ·Ï"></a></p>
                    </div>-->

<style>
.as_btn_ft{width:120px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;float:left;margin-left:10px;background:#4a4c4e;}
.as_btn_ft a{color:#fff;font-weight:600;text-align:center;display: block;padding: 15px 0;}
.as_on{background:#0071e5;}
</style>
                    <div style="width: 530px;margin: 0 auto;margin-top:50px;">
                        <div class="as_btn_ft"><a href="#" target="_blank">AS¿äû</a></div>
                        <div class="as_btn_ft"><a href="#" style="cursor:pointer;" <?  if( isset($_COOKIE['USERID']) && $_COOKIE['USERID'] !== "" ){ echo "onClick=\"location.href = 'mypageqna.php'\"";} else{ echo "onClick=\"javascript:window.open('login_customeras.php?url=mypageqna.php','','width=440,height=350,menubar=no,location=no,toolbar=no,scrollbars=yes')\"";} ?>>Áú¹®µî·Ï</a></div>
                        <div class="as_btn_ft"><a href="./customerfaq.php" target="_blank">ÀÚÁÖÇÏ´ÂÁú¹®</a></div>
                        <div class="as_btn_ft"><a href="./customeras.php" target="_blank">±Û¸ñ·Ï</a></div>
                    </div>
            
                </div><!-- //section -->

            </div><!-- //subContents -->
        </div><!-- //contents -->
    </div><!-- //wrap -->
<script>
$(function(){
    $(".total_cnt_class span").html("<?php echo number_format($nTotalCount);?>");
});
 function FrmCh(filedir){
     
     var blank_pattern = /^\s+|\s+$/g;

     if($("#shop").val()==''){
            alert('ÀÛ¼ºÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
    }
    if($("#name").val()==''){
        alert('»óÈ£¸íÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
    }

     if($("input[name='as_rep_type']").eq(0).is(":checked")==false && $("input[name='as_rep_type']").eq(1).is(":checked")==false){
            alert('¼ö½Å¹æ½ÄÀ» ÀüÈ­³ª À̸ÞÀÏÁß¿¡ ÇѰ³À̻󠼱ÅÃÇØÁÖ¼¼¿ä.'); return;
        } else {
            if($("input[name='as_rep_type']").eq(0).is(":checked")==true){
                if($("input[name='tel1']").val()=='' || $("input[name='tel2']").val()=='' || $("input[name='tel3']").val()==''){
                    alert('ÀüÈ­¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä.'); return;
                }
            }
            if($("input[name='as_rep_type']").eq(1).is(":checked")==true){
                if($("input[name='s_email']").val()==''){
                    alert('À̸ÞÀÏÀ» ÀÔ·ÂÇϼ¼¿ä.'); return;
                }
            }
        }    

     if( asinsertFrm.subject.value == ""){
         alert("±ÛÁ¦¸ñÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
         asinsertFrm.subject.focus();
         return;
     }
     


    if (asinsertFrm.subject.value.replace(blank_pattern,'') == "")
    {
         alert("±ÛÁ¦¸ñ¿¡ °ø¹é¸¸ ÀԷµǾú½À´Ï´Ù.");
         asinsertFrm.subject.focus();
         return;
    }



     if( asinsertFrm.Msw1.value == ""){
         alert("ÇÁ·Î±×·¥¼±ÅÃÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
         asinsertFrm.Msw1.focus();
         return;
     
     } 
     
    if( asinsertFrm.content.value == ""){
         alert("¹®Àdz»¿ëÀº ÇʼöÇ׸ñÀÔ´Ï´Ù.");
         asinsertFrm.content.focus();
         return;
     } 
      
    if (asinsertFrm.content.value.replace(blank_pattern,'') =="")
    {
         alert("¹®Àdz»¿ë¿¡ °ø¹é¸¸ ÀԷµǾú½À´Ï´Ù.");
         asinsertFrm.content.focus();
         return;
    }

    if($("#formText1").is(":checked")==false){
         alert("°³ÀÎÁ¤º¸ ¼öÁý ¹× À̿뵿ÀÇ¿¡ µ¿ÀÇÇϽñ⠹ٶø´Ï´Ù.");
         return;
    }
      
  if( confirm("µî·ÏÇϽг»¿ëÀ¸·Î Á¢¼ö ÇϽðڽÀ´Ï±î?")){     
   asinsertFrm.action = "<?php if($MJSOFT_SSL_USE=='Y'){?>https://<?php echo $_SERVER['SERVER_NAME'];?>/html/millennium/asBoardProcess.php<?php } else {?>asBoardProcess.php<?php }?>?&filedir="+filedir;
   asinsertFrm.submit();
   }
   }
</script>
<? include("./Page/common/footer.php"); ?>