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
|
<?php include_once("./_common2.php"); ?>
<? if (!isset($_REQUEST['pcver'])) { //모바일 접속시 해당 페이지로 이동 // iPad 처리 및 다른 기종 몇개로 수정(기존 체크 로직 주석 처리) 2013.12.23 by.jyh if($_SERVER['HTTP_USER_AGENT'] && preg_match('/(Mobile|UP.Browser|Android|BlackBerry|Windows CE|Nokia|webOS|Opera Mini|SonyEricsson|opera mobi|Windows Phone|IEMobile|POLARIS)/i',$_SERVER['HTTP_USER_AGENT']) ) { echo "<script>top.location.href = 'http://mjsoft.co/html/m/right_install.php';</script>"; exit; } } //모바일 접속 끝 ?>
<style> .cs_buy_tit{height:210px;} .cs_buy_tit { background: url('./img/customer/board_title/customer_buy_tit02.png') center no-repeat; background-position: bottom; background-position-y: -43px; } .cs_buy_txt{text-align:right; width: 1100px;margin: 0 auto;margin-bottom:10px;font-size:16px;} .cs_buy_layout{text-align:center;padding:30px 0 40px;} .cs_buy_table table{margin-bottom:20px;} .cs_buy_table{width:1100px;margin:0 auto;border-top:3px solid #0071e4;} .cs_buy_table .edc_table_tit{background:#dae9ff;font-weight:600;font-size:16px;text-align:center;padding-left:0;} .cs_buy_table table tbody tr th{color:#3d3d3d;text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:16px;font-weight:600;background:#f1f0f0;} .cs_buy_table table tbody tr td{text-align:left;vertical-align:middle;height:45px;padding-left:20px;font-size:14px;font-weight:600;} .cs_buy_table table th, .cs_buy_table table td{height:45px;line-height:45px;/*padding:3px 0;*/border-right:2px solid #acacac;border-bottom:2px solid #acacac;} .cs_buy_table table tbody tr td input{border: 1px solid #b3b3b3;height:32px;border-radius:5px;padding:0 10px;margin-right:10px;margin:10px 0;} .cs_buy_table .edc_tel td input{width:60px;margin-right:0;} .cs_buy_table .edc_tel td span{margin:0 10px;} .cs_buy_table .edc_date td input{width:60px;margin-right:0;} .cs_buy_table .edc_date td span{margin:0 10px;} .cs_buy_table textarea{width:95%;height:150px;border:1px solid #ccc;margin-top:10px;padding:10px;} .tieupAgree{width:1100px;margin:0 auto;border-top:0;position:relative;display:inline-block;} .tieupAgree h2{text-align:left;font-size:16px;color:#000;} .tieupAgree h2 span{font-size:12px;font-weight:400;} .tieupAgree p{float:right;text-align: right;} .tieupAgree textarea {width:1075px;margin:0 auto;margin-top:10px;} .buy_cs_btn{padding:15px 0px;width:150px;background:#0071e5;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;} .price_cs_btn{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;} .price_cs_btn a{color:#fff;font-weight:600;} .cs_buy_layout .show_correct_class{padding:15px 0;width:150px;margin-left:10px;background:#4a4c4e;color:#fff;display:inline-block;font-size:15px;font-weight:600;border-radius:5px;cursor:pointer;} .cs_buy_table .edc_tel td input.edc_chk{width: 25px;height: 25px;position: relative;top: 7px;margin-right: 10px;border: 0;padding: 0;} #modal_member_box{padding-top: 15px !important;} </style>
<div class="wrap"> <div class="cs_buy_tit"></div> <div class="cs_buy_layout"> <p class="cs_buy_txt">※ 업무시간외 요청은 <b style="color: #006cff;">업무시작</b> 후 전화드립니다.</p> <div class="cs_buy_table"> <form name='install_form' method='post' action='?' onsubmit='return false;'> <input type="hidden" name="iw" value=""> <input type="hidden" name="clicktime" id="clicktime" value="0"> <input type='hidden' name='contact_time' value='1'> <input type='hidden' name='smtitle' value='PC'> <input type='hidden' name='ismobile' value='2'> <!--<input type='hidden' name='ismode' value='1'>--> <input type='hidden' name='come_from' value='<?php echo $_GET['come_from'];?>'> <table style="width:100%;"> <tbody> <tr> <th width="160">* 상호</th> <td width="260"><input name="smname" id="shop" type="text" style="width:225px;"></td> <th width="160">* 담당자</th> <td width="260" ><input name="telname" id="name" type="text" style="width:225px;"></td> </tr> <tr class="edc_tel"> <th>* 수신방식선택</th> <td colspan="3"> <div style="float:left;"> <input type="checkbox" name="edc_tel" value='1' class="edc_chk">전화 <input name="smtel1" type="text" maxlength="4" style="margin-left:5px;"><span>-</span> <input name="smtel2" type="smtel2" maxlength="4"><span>-</span> <input name="smtel3" type="smtel3" maxlength="4"> </div> <div style="float:left;border-left:2px solid #979797;margin-left:15px;padding-left:15px;"> <input type="checkbox" name="edc_email" value='1' class="edc_chk">이메일 <input name="s_email" type="text" style="width:300px;margin-left:5px;"> </div> </td> </tr> <tr> <th>* 상담내용</th> <td colspan="3"><textarea name="smdetail" onclick="clear_text()" id="smdetail">천년경영(유통업무) 및 외부 업무관리 스마트폰, PDA영업관리 도입과 관련하여 상담하고자 합니다. 저희 회사 업무관리 프로그램 개발 상담을 희망합니다. 연락주세요.</textarea> </td> </tr> </tbody> </table> </form> <div class="tieupAgree"> <h2>개인정보 수집 및 이용동의 <span>(자세한 내용은 '개인정보취급방침'을 참고해주세요.)</span></h2> <? include("./privacy_text_utf8.html"); ?> <p> <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> <div class="buy_cs_btn install_btn">구매상담 요청하기</div> </div> </div><!-- //contents --> </div><!-- //wrap --> <script> function clear_text(){ if(document.getElementById("clicktime").value == "0"){ //첫클릭만 삭제 var str=""; var bb=document.getElementById("smdetail"); bb.innerHTML= str; document.getElementById("clicktime").value = "1"; } } </script> <script> $(function(){ $(".install_btn").click(function(){
if($("#shop").val()==''){ alert('상호명을 입력하세요.'); return; } if($("#name").val()==''){ alert('담당자명을 입력하세요.'); return; }
if($("input[name='edc_tel']").is(":checked")==false && $("input[name='edc_email']").is(":checked")==false){ alert('수신방식을 전화나 이메일중에 한개이상 선택해주세요.'); return; } else { if($("input[name='edc_tel']").is(":checked")==true){ if($("input[name='smtel1']").val()=='' || $("input[name='smtel2']").val()=='' || $("input[name='smtel3']").val()==''){ alert('전화번호를 입력하세요.'); return; } } if($("input[name='edc_email']").is(":checked")==true){ if($("input[name='s_email']").val()==''){ alert('이메일을 입력하세요.'); return; } } } if($("#clicktime").val()=='0' || $("#smdetail").val()==''){ alert('상담내용을 입력하세요.'); return; } /*if($("input[name='contact_time']").eq(1).is(":checked")==true){ if($("#ct_date").val()==''){ alert('일자를 선택해주세요.'); return; } if($("#ct_hour option:selected").val()==''){ alert('시간을 선택해주세요.'); return; } if($("#ct_minute option:selected").val()==''){ alert('분을 선택해주세요.'); return; } }*/ if($("#formText1").is(":checked")==false){ alert('개인정보 수집에 동의함 체크를 하시기 바랍니다.'); return; }
var iw = "<?php echo $iw; ?>";
if (iw == 'mail_way'){ $("input[name='iw']").val(iw); } form_data = $("form[name='install_form']").serialize(); $.ajax({type:"post", url:"../millennium/ajax.install_req.process.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_msg = $(xml).find("msg").text(); var v_pt = $(xml).find("pt").text(); var v_contact_time = $(xml).find("contact_time").text();
if(v_mode_ok=='Y'){ alert('구매상담요청 되었습니다., '+v_contact_time+'드리겠습니다.'); document.location.reload(); } else { alert(v_msg); } }, error:function(rtn,status,error){ alert(error); } }); }); }); </script>
|