working on html form
Showing
27 changed files
with
2654 additions
and
346 deletions
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> | 1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> |
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | 2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> |
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftUserManage.php" ?> | 3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?> |
4 | <? | 4 | <? |
5 | $obj = new AdminUser($_REQUEST, "") ; | 5 | $obj = new AdminUser($_REQUEST) ; |
6 | 6 | ||
7 | $list = $obj->getListOfUserForBoard("M", null) ; | 7 | //$list = $obj->getListOfUser() ; |
8 | $boardType=$_REQUEST["boardType"]; | ||
8 | $vnum = $obj->virtualNum ; | 9 | $vnum = $obj->virtualNum ; |
9 | ?> | 10 | ?> |
10 | <script> | 11 | <script> |
... | @@ -42,15 +43,16 @@ | ... | @@ -42,15 +43,16 @@ |
42 | jForm.submit() ; | 43 | jForm.submit() ; |
43 | }); | 44 | }); |
44 | 45 | ||
45 | $(".jViewUser").click2(function(){ | 46 | $(".jView").click2(function(){ |
46 | var no = $(this).attr("no"); | 47 | var no = $(this).attr("no"); |
47 | location.href = "/admin/userManage/userView.php?isMS=1&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL); | 48 | var type='<?=$boardType?>'; |
49 | location.href = "/admin/boardManage/boardView.php?no=" + no + "&boardType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
48 | }); | 50 | }); |
49 | 51 | ||
50 | 52 | ||
51 | $(".jAddUserExcel").click2(function(){ | 53 | $(".jAddUserExcel").click2(function(){ |
52 | var s=$("#search_text").val(); | 54 | var s=$("#search_text").val(); |
53 | location.href = "/admin/excel/groupUserExcelList.php?search_text="+s; | 55 | location.href = "/admin/excel/userListExcel.php?search_text="+s; |
54 | }); | 56 | }); |
55 | 57 | ||
56 | 58 | ||
... | @@ -65,7 +67,7 @@ | ... | @@ -65,7 +67,7 @@ |
65 | 67 | ||
66 | if(confirm("정말 삭제하시겠습니까?")) | 68 | if(confirm("정말 삭제하시겠습니까?")) |
67 | { | 69 | { |
68 | deleteAdmin(noArr); | 70 | deleteUser(noArr); |
69 | } | 71 | } |
70 | }) ; | 72 | }) ; |
71 | 73 | ||
... | @@ -91,7 +93,7 @@ | ... | @@ -91,7 +93,7 @@ |
91 | noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); | 93 | noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); |
92 | } | 94 | } |
93 | 95 | ||
94 | deleteAdmin(noArr); | 96 | deleteUser(noArr); |
95 | } | 97 | } |
96 | 98 | ||
97 | }); | 99 | }); |
... | @@ -128,7 +130,7 @@ | ... | @@ -128,7 +130,7 @@ |
128 | 130 | ||
129 | 131 | ||
130 | 132 | ||
131 | function deleteAdmin(noArr) | 133 | function deleteUser(noArr) |
132 | { | 134 | { |
133 | $.ajax({ | 135 | $.ajax({ |
134 | url : "/action_front.php?cmd=AdminUser.deleteUser", | 136 | url : "/action_front.php?cmd=AdminUser.deleteUser", |
... | @@ -152,45 +154,50 @@ | ... | @@ -152,45 +154,50 @@ |
152 | 154 | ||
153 | <div id="Contents" class="notice"> | 155 | <div id="Contents" class="notice"> |
154 | 156 | ||
155 | <h1>그룹 회원 리스트</h1> | 157 | <h1> |
156 | 158 | <? | |
157 | <div class="data"> | 159 | switch($boardType){ |
158 | 160 | case "NO": | |
159 | <fieldset class="search" style="margin-top:30px;"> | 161 | echo "공지사항"; |
160 | 162 | break; | |
161 | <div class="jSearchArea" > | 163 | case "EV": |
162 | 164 | echo "이벤트"; | |
163 | <label> | 165 | break; |
164 | <span># 이메일, 이름, 전화번호</span> | 166 | } |
165 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> | 167 | ?> |
166 | </label> | 168 | </h1> |
167 | 169 | <h2> | |
168 | <input type="button" class="button bigrounded blue jSearch" value="검색" /> | 170 | 게시물 관리 > |
169 | </div> | 171 | <span> |
172 | <? | ||
173 | switch($boardType){ | ||
174 | case "NO": | ||
175 | echo "공지사항"; | ||
176 | break; | ||
177 | case "EV": | ||
178 | echo "이벤트"; | ||
179 | break; | ||
180 | } | ||
181 | ?> | ||
182 | </span> | ||
170 | 183 | ||
171 | </fieldset> | 184 | </h2> |
185 | <div class="data" > | ||
172 | 186 | ||
173 | <?if($loginInfo["admin_type"] == "1"){ ?> | ||
174 | <div class="btngroupright"> | 187 | <div class="btngroupright"> |
175 | <input type="button" class="button bigrounded blue jAddUserExcel" value="회원EXCEL" /> | 188 | <input type="button" class="button smallrounded blue jView" no="" value="등록" /> |
176 | <input type="button" class="button bigrounded blue jDelUserMulti" value="삭제" /> | 189 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> |
177 | </div> | 190 | </div> |
178 | <?} ?> | 191 | |
179 | <table class="datacList"> | 192 | <table class="datacList"> |
180 | <thead> | 193 | <thead> |
181 | <tr> | 194 | <tr> |
182 | <th class="no" width="5%">No</th> | 195 | <th class="no" width="5%">No</th> |
183 | <?if($loginInfo["admin_type"] == "1"){ ?> | 196 | <th width="2%"><input type="checkbox" id="jCheckAll"></th> |
184 | <th width="5%"><input type="checkbox" id="jCheckAll"></th> | 197 | <th width="50%">제목</th> |
185 | <?} ?> | 198 | <th width="10%">등록일</th> |
186 | <th width="15%">이메일</th> | 199 | <th width="10%">-</th> |
187 | <th width="10%">이름</th> | 200 | |
188 | <th width="10%">전화번호</th> | ||
189 | <th width="15%">소속 그룹</th> | ||
190 | <th width="5%">멤버쉽<br>회원여부</th> | ||
191 | <th width="10%">승인 상태</th> | ||
192 | <th width="10%">가입 날짜</th> | ||
193 | <th width="15%">-</th> | ||
194 | </tr> | 201 | </tr> |
195 | </thead> | 202 | </thead> |
196 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | 203 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> |
... | @@ -199,55 +206,19 @@ | ... | @@ -199,55 +206,19 @@ |
199 | <td class="no center"> | 206 | <td class="no center"> |
200 | <?=$vnum--?> | 207 | <?=$vnum--?> |
201 | </td> | 208 | </td> |
202 | <?if($loginInfo["admin_type"] == "1"){ ?> | ||
203 | <td class="center"> | 209 | <td class="center"> |
204 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > | 210 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > |
205 | </td> | 211 | </td> |
206 | <?} ?> | ||
207 | <td class="center"> | 212 | <td class="center"> |
208 | <? | 213 | |
209 | if($list[$i]["regi_type"] == "E") | ||
210 | echo $list[$i]["id"]; | ||
211 | else if($list[$i]["regi_type"] == "K") | ||
212 | echo "카카오톡 가입"; | ||
213 | else if($list[$i]["regi_type"] == "F") | ||
214 | echo "페이스북 가입"; | ||
215 | ?> | ||
216 | </td> | ||
217 | <td class="center"> | ||
218 | <?=$list[$i]["name"]?> | ||
219 | </td> | 214 | </td> |
220 | <td class="center"> | 215 | <td class="center"> |
221 | <?=$list[$i]["tel"]?> | 216 | |
222 | </td> | 217 | </td> |
223 | <td class="center"> | 218 | <td class="center"> |
224 | <?=$list[$i]["group_name"]?> | 219 | <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> |
225 | </td> | 220 | </td> |
226 | <td class="center"> | 221 | |
227 | <?=($list[$i]["member_type"] == "M") ? "O" : "X"?> | ||
228 | </td> | ||
229 | <td class="center"> | ||
230 | <?if($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "H"){ ?> | ||
231 | <input type="button" class="button searchsmall white jBtnMS" value="승인" no="<?=$list[$i]["no"]?>" member_type="M"/> | ||
232 | <input type="button" class="button searchsmall white jBtnMS" value="거절" no="<?=$list[$i]["no"]?>" member_type="N" /> | ||
233 | <?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "M"){ ?> | ||
234 | 승인 | ||
235 | <?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "N"){ ?> | ||
236 | 거절 | ||
237 | <?} else { ?> | ||
238 | - | ||
239 | <?} ?> | ||
240 | </td> | ||
241 | <td class="center"> | ||
242 | <?=$list[$i]["reg_dt"]?> | ||
243 | </td> | ||
244 | <td class="center"> | ||
245 | <input type="button" class="button searchsmall white jViewUser" value="상세보기" no="<?=$list[$i]["no"]?>" /> | ||
246 | <?if($loginInfo["admin_type"] == "1"){ ?> | ||
247 | <input type="button" class="button searchsmall white jDelUser" value="삭제" no="<?=$list[$i]["no"]?>" /> | ||
248 | <?} ?> | ||
249 | </td> | ||
250 | |||
251 | </tr> | 222 | </tr> |
252 | <? } ?> | 223 | <? } ?> |
253 | <?if(sizeof($list) == 0){?> | 224 | <?if(sizeof($list) == 0){?> | ... | ... |
admin/boardManage/boardView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, ""); | ||
6 | //$info = $obj->getInfoOfShop(); | ||
7 | |||
8 | //$cateCodeList = $obj->getShopCategoryCodeList(); | ||
9 | //$shopImgList = $obj->getShopImgList($info["no"]); | ||
10 | |||
11 | $admin_type = $obj->admUser["admin_type"]; | ||
12 | |||
13 | |||
14 | $rurl = pack("H*", $_REQUEST["rurl"]) ; | ||
15 | ?> | ||
16 | <script src="/admin/inc/fileUpload/fileUploadJS.js"></script> | ||
17 | <script type="text/javascript"> | ||
18 | var _rurl = "<?=$rurl?>"; | ||
19 | var _no = "<?=$_REQUEST[no]?>"; | ||
20 | |||
21 | $(document).ready(function(){ | ||
22 | |||
23 | initFileUpload(101); | ||
24 | initFileUpload(102); | ||
25 | initFileUpload(103); | ||
26 | initFileUpload(104); | ||
27 | initFileUpload(105); | ||
28 | |||
29 | <?if($admin_type == 3) { ?> | ||
30 | setReadOnly(); | ||
31 | <?} ?> | ||
32 | //=====프레입웤 변수들==================================================================================// | ||
33 | var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
34 | var FORM_NAME = "alf" ; // 폼이름 | ||
35 | var FORM_METHOD = "POST" ; // 폼 메쏘드 | ||
36 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
37 | var FORM_ACTION = "/action_front.php" ; | ||
38 | |||
39 | |||
40 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
41 | //=====================================================================================================// | ||
42 | |||
43 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
44 | |||
45 | $(".jCancel").click2(function(){ | ||
46 | location.href = _rurl; | ||
47 | }); | ||
48 | |||
49 | |||
50 | $(".jSave").click2(function(){ | ||
51 | |||
52 | $("#jData").ajaxSubmit({ | ||
53 | url:"/action_front.php?cmd=AdminOperate.saveShop", | ||
54 | type : "post", | ||
55 | forceSync : true, | ||
56 | dataType : "json", | ||
57 | success : function(data){ | ||
58 | alert(data.returnMessage); | ||
59 | location.href = _rurl; | ||
60 | } | ||
61 | |||
62 | }); | ||
63 | }); | ||
64 | |||
65 | $("#jCategorCd").change(function(){ | ||
66 | setPromotion(); | ||
67 | }); | ||
68 | |||
69 | setPromotion(); | ||
70 | |||
71 | }) ; | ||
72 | |||
73 | |||
74 | function setPromotion() | ||
75 | { | ||
76 | if($("#jCategorCd").val() == "1") | ||
77 | { | ||
78 | $("#jPromotionSelect").val("1"); | ||
79 | $("#jPromotionSelect").prop("disabled", true); | ||
80 | $("#jPromotionHidden").prop("disabled", false); | ||
81 | } | ||
82 | else | ||
83 | { | ||
84 | $("#jPromotionSelect").prop("disabled", false); | ||
85 | $("#jPromotionHidden").prop("disabled", true); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | function setReadOnly(){ | ||
90 | $("[name=name]").attr("readonly", true); | ||
91 | $("[name=tel]").attr("readonly", true); | ||
92 | $("[name=addr_old]").attr("readonly", true); | ||
93 | $("[name=addr_new]").attr("readonly", true); | ||
94 | $("[name=discount_rate]").attr("readonly", true); | ||
95 | $("[name=discount_desc]").attr("readonly", true); | ||
96 | } | ||
97 | </script> | ||
98 | |||
99 | <div id="Contents" class="notice"> | ||
100 | |||
101 | <h1>게시판 관리 -등록</h1> | ||
102 | |||
103 | <!-- location area --> | ||
104 | <h2> | ||
105 | 업체 관리 > | ||
106 | <? | ||
107 | if($_REQUEST["boardType"] == "NO") | ||
108 | echo "공지사항"; | ||
109 | else | ||
110 | echo "이벤트" | ||
111 | ?> | ||
112 | > | ||
113 | <span><? | ||
114 | if($_REQUEST["no"]=="") | ||
115 | echo "등록"; | ||
116 | else | ||
117 | echo "상세보기"; | ||
118 | ?></span> | ||
119 | </h2> | ||
120 | <!-- location area --> | ||
121 | |||
122 | |||
123 | <div class="data" style="width:80%;"> | ||
124 | |||
125 | <form id="jData" method="post" enctype="multipart/form-data"> | ||
126 | <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> | ||
127 | <table class="datav" style="width:100%;"> | ||
128 | <colgroup> | ||
129 | <col width="10%" /> | ||
130 | <col width="90%" /> | ||
131 | </colgroup> | ||
132 | <tr> | ||
133 | <th style="height:25px;">제목</th> | ||
134 | <td class="l"> | ||
135 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="" /> | ||
136 | |||
137 | </td> | ||
138 | </tr> | ||
139 | <tr> | ||
140 | <th style="height:25px;">내용</th> | ||
141 | <td class="l"> | ||
142 | <textarea name="special_contract" rows="7" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea> | ||
143 | </td> | ||
144 | </tr> | ||
145 | |||
146 | <tr> | ||
147 | <th style="height:25px;">이미지 1</th> | ||
148 | <td class="l"> | ||
149 | <? | ||
150 | $fileIndex = "101"; | ||
151 | $fileName = "img1"; | ||
152 | $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); | ||
153 | $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); | ||
154 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
155 | ?> | ||
156 | </td> | ||
157 | </tr> | ||
158 | <tr> | ||
159 | <th style="height:25px;">이미지 2</th> | ||
160 | <td class="l"> | ||
161 | <? | ||
162 | $fileIndex = "102"; | ||
163 | $fileName = "img2"; | ||
164 | $filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]); | ||
165 | $fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]); | ||
166 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
167 | ?> | ||
168 | </td> | ||
169 | </tr> | ||
170 | <tr> | ||
171 | <th style="height:25px;">이미지 3</th> | ||
172 | <td class="l"> | ||
173 | <? | ||
174 | $fileIndex = "103"; | ||
175 | $fileName = "img3"; | ||
176 | $filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]); | ||
177 | $fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]); | ||
178 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
179 | ?> | ||
180 | </td> | ||
181 | </tr> | ||
182 | <tr> | ||
183 | <th style="height:25px;">이미지 4</th> | ||
184 | <td class="l"> | ||
185 | <? | ||
186 | $fileIndex = "104"; | ||
187 | $fileName = "img4"; | ||
188 | $filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]); | ||
189 | $fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]); | ||
190 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
191 | ?> | ||
192 | </td> | ||
193 | </tr> | ||
194 | <tr> | ||
195 | <th style="height:25px;">이미지 5</th> | ||
196 | <td class="l"> | ||
197 | <? | ||
198 | $fileIndex = "105"; | ||
199 | $fileName = "img5"; | ||
200 | $filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]); | ||
201 | $fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]); | ||
202 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
203 | ?> | ||
204 | </td> | ||
205 | </tr> | ||
206 | </table> | ||
207 | </form> | ||
208 | |||
209 | <div class="btngroupcenter"> | ||
210 | <span class="button bigrounded blue jCancel">취소 </span> | ||
211 | <span class="button bigrounded blue jSave" >저장</span> | ||
212 | </div> | ||
213 | |||
214 | </div> | ||
215 | </div> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/boardManage/certificateList.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, "") ; | ||
6 | |||
7 | //$list = $obj->getListOfPopup("2") ; | ||
8 | $vnum = $obj->virtualNum ; | ||
9 | ?> | ||
10 | <script src="/admin/inc/fileUpload/fileUploadJS.js"></script> | ||
11 | <script> | ||
12 | var _popup_type = "2"; | ||
13 | $(document).ready(function(){ | ||
14 | |||
15 | //=====프레입웤 변수들==================================================================================// | ||
16 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
17 | var FORM_NAME = "nf" ; // 폼이름 | ||
18 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
19 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
20 | var FORM_ACTION = document.URL ; | ||
21 | |||
22 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
23 | //=====================================================================================================// | ||
24 | |||
25 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
26 | |||
27 | // 페이징 | ||
28 | $(".jPage").click2(function(){ | ||
29 | jForm.ci() ; | ||
30 | jForm.mi("page",$(this).attr("page")) ; | ||
31 | jForm.submit() ; | ||
32 | }) ; | ||
33 | |||
34 | |||
35 | $(".jAutoSearch").change(function(){ | ||
36 | jForm.ci() ; | ||
37 | jForm.submit() ; | ||
38 | }); | ||
39 | |||
40 | |||
41 | $(".jView").click2(function(){ | ||
42 | var no = $(this).attr("no"); | ||
43 | location.href = "/admin/boardManage/certificateView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
44 | }); | ||
45 | |||
46 | |||
47 | $(".jDel").click2(function(){ | ||
48 | |||
49 | var no = $(this).attr("no"); | ||
50 | var noArr = new Array(no); | ||
51 | |||
52 | if(confirm("정말 삭제하시겠습니까?")) | ||
53 | { | ||
54 | deleteAction(noArr); | ||
55 | } | ||
56 | }) ; | ||
57 | |||
58 | |||
59 | // 단체 삭제 | ||
60 | $(".jDelMulti").click2(function(){ | ||
61 | |||
62 | |||
63 | var noArr = new Array(); | ||
64 | var noCount = $(".jNo:checked").length; | ||
65 | |||
66 | if(noCount == 0) | ||
67 | { | ||
68 | alert("삭제할 대상을 하나 이상 선택해주세요."); | ||
69 | return false; | ||
70 | } | ||
71 | |||
72 | |||
73 | if(confirm("정말 삭제하시겠습니까?")) | ||
74 | { | ||
75 | for(var i = 0; i < noCount; i++ ) | ||
76 | { | ||
77 | noArr[i] = $(".jNo:checked:eq(" + i + ")").val(); | ||
78 | } | ||
79 | |||
80 | deleteAction(noArr); | ||
81 | } | ||
82 | |||
83 | }); | ||
84 | |||
85 | |||
86 | $("#jCheckAll").change(function(){ | ||
87 | if($(this).is(":checked")) | ||
88 | $(".jNo").prop("checked", true); | ||
89 | else | ||
90 | $(".jNo").prop("checked", false); | ||
91 | }); | ||
92 | |||
93 | }) ; | ||
94 | |||
95 | |||
96 | |||
97 | function deleteAction(noArr) | ||
98 | { | ||
99 | $.ajax({ | ||
100 | url : "/action_front.php?cmd=AdminOperate.delPopup", | ||
101 | async : false, | ||
102 | cache : false, | ||
103 | dataType : "json", | ||
104 | data : { | ||
105 | "no" : noArr | ||
106 | }, | ||
107 | success : function(data){ | ||
108 | location.reload(); | ||
109 | } | ||
110 | }); | ||
111 | } | ||
112 | |||
113 | |||
114 | |||
115 | </script> | ||
116 | |||
117 | |||
118 | <div id="Contents" class="notice"> | ||
119 | |||
120 | <h1>기관인정서</h1> | ||
121 | |||
122 | <h2>게시물 관리 > <span>기관인정서</span></h2> | ||
123 | |||
124 | <div class="data" style="width:100%;"> | ||
125 | |||
126 | <div class="btngroupright"> | ||
127 | <input type="button" class="button smallrounded blue jView" no="" value="등록" /> | ||
128 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> | ||
129 | </div> | ||
130 | <table class="datacList" style="width:100%;"> | ||
131 | <thead> | ||
132 | <tr> | ||
133 | <th class="no" width="5%">No</th> | ||
134 | <th width="5%"><input type="checkbox" id="jCheckAll"></th> | ||
135 | <th width="40%">제목</th> | ||
136 | <th width="40%">이미지</th> | ||
137 | <th width="10%">-</th> | ||
138 | </tr> | ||
139 | </thead> | ||
140 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
141 | <? for($i=0; $i<sizeof($list); $i++){ ?> | ||
142 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | ||
143 | <td class="no center"> | ||
144 | <?=$vnum--?> | ||
145 | </td> | ||
146 | <td class="center"> | ||
147 | <input type="checkbox" class="jNo" value="<?=$list[$i]["no"] ?>" > | ||
148 | </td> | ||
149 | <td class="center"> | ||
150 | <?= ($list[$i]["status"] == "Y") ? "노출" : "미노출" ?> | ||
151 | </td> | ||
152 | <td class="center"> | ||
153 | <img alt="" src="/upload_img/<?=$list[$i]["img_path"]?>" style="width: 95%;"> | ||
154 | </td> | ||
155 | <td class="center"> | ||
156 | <?=$list[$i]["regist_dt"]?> | ||
157 | </td> | ||
158 | |||
159 | |||
160 | </tr> | ||
161 | <? } ?> | ||
162 | <?if(sizeof($list) == 0){?> | ||
163 | <tr class="last"> | ||
164 | <td class="no center" colspan="5">No Data</td> | ||
165 | </tr> | ||
166 | <?}?> | ||
167 | </tbody> | ||
168 | </table> | ||
169 | |||
170 | <!-- Pagination --> | ||
171 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?> | ||
172 | <!--//Pagination --> | ||
173 | |||
174 | </div> | ||
175 | |||
176 | |||
177 | <div id="jDialogArea"><form id="jLayerForm"></form></div> | ||
178 | |||
179 | </div> | ||
180 | |||
181 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/boardManage/certificateView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, ""); | ||
6 | //$info = $obj->getInfoOfShop(); | ||
7 | |||
8 | //$cateCodeList = $obj->getShopCategoryCodeList(); | ||
9 | //$shopImgList = $obj->getShopImgList($info["no"]); | ||
10 | |||
11 | $admin_type = $obj->admUser["admin_type"]; | ||
12 | |||
13 | |||
14 | $rurl = pack("H*", $_REQUEST["rurl"]) ; | ||
15 | ?> | ||
16 | <script src="/admin/inc/fileUpload/fileUploadJS.js"></script> | ||
17 | <script type="text/javascript"> | ||
18 | var _rurl = "<?=$rurl?>"; | ||
19 | var _no = "<?=$_REQUEST[no]?>"; | ||
20 | |||
21 | $(document).ready(function(){ | ||
22 | |||
23 | initFileUpload(101); | ||
24 | initFileUpload(102); | ||
25 | initFileUpload(103); | ||
26 | initFileUpload(104); | ||
27 | initFileUpload(105); | ||
28 | |||
29 | <?if($admin_type == 3) { ?> | ||
30 | setReadOnly(); | ||
31 | <?} ?> | ||
32 | //=====프레입웤 변수들==================================================================================// | ||
33 | var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
34 | var FORM_NAME = "alf" ; // 폼이름 | ||
35 | var FORM_METHOD = "POST" ; // 폼 메쏘드 | ||
36 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
37 | var FORM_ACTION = "/action_front.php" ; | ||
38 | |||
39 | |||
40 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
41 | //=====================================================================================================// | ||
42 | |||
43 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
44 | |||
45 | $(".jCancel").click2(function(){ | ||
46 | location.href = _rurl; | ||
47 | }); | ||
48 | |||
49 | |||
50 | $(".jSave").click2(function(){ | ||
51 | |||
52 | $("#jData").ajaxSubmit({ | ||
53 | url:"/action_front.php?cmd=AdminOperate.saveShop", | ||
54 | type : "post", | ||
55 | forceSync : true, | ||
56 | dataType : "json", | ||
57 | success : function(data){ | ||
58 | alert(data.returnMessage); | ||
59 | location.href = _rurl; | ||
60 | } | ||
61 | |||
62 | }); | ||
63 | }); | ||
64 | |||
65 | $("#jCategorCd").change(function(){ | ||
66 | setPromotion(); | ||
67 | }); | ||
68 | |||
69 | setPromotion(); | ||
70 | |||
71 | }) ; | ||
72 | |||
73 | |||
74 | function setPromotion() | ||
75 | { | ||
76 | if($("#jCategorCd").val() == "1") | ||
77 | { | ||
78 | $("#jPromotionSelect").val("1"); | ||
79 | $("#jPromotionSelect").prop("disabled", true); | ||
80 | $("#jPromotionHidden").prop("disabled", false); | ||
81 | } | ||
82 | else | ||
83 | { | ||
84 | $("#jPromotionSelect").prop("disabled", false); | ||
85 | $("#jPromotionHidden").prop("disabled", true); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | function setReadOnly(){ | ||
90 | $("[name=name]").attr("readonly", true); | ||
91 | $("[name=tel]").attr("readonly", true); | ||
92 | $("[name=addr_old]").attr("readonly", true); | ||
93 | $("[name=addr_new]").attr("readonly", true); | ||
94 | $("[name=discount_rate]").attr("readonly", true); | ||
95 | $("[name=discount_desc]").attr("readonly", true); | ||
96 | } | ||
97 | </script> | ||
98 | |||
99 | <div id="Contents" class="notice"> | ||
100 | |||
101 | <h1>게시물 관리 -등록</h1> | ||
102 | |||
103 | <!-- location area --> | ||
104 | <h2> | ||
105 | 게시물 관리 > 기관인정서 > | ||
106 | <span><? | ||
107 | if($_REQUEST["no"]=="") | ||
108 | echo "등록"; | ||
109 | else | ||
110 | echo "상세보기"; | ||
111 | ?></span> | ||
112 | </h2> | ||
113 | <!-- location area --> | ||
114 | |||
115 | |||
116 | <div class="data" style="width:80%;"> | ||
117 | |||
118 | <form id="jData" method="post" enctype="multipart/form-data"> | ||
119 | <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> | ||
120 | <table class="datav" style="width:100%;"> | ||
121 | <colgroup> | ||
122 | <col width="10%" /> | ||
123 | <col width="90%" /> | ||
124 | </colgroup> | ||
125 | <tr> | ||
126 | <th style="height:25px;">제목</th> | ||
127 | <td class="l"> | ||
128 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="" /> | ||
129 | |||
130 | </td> | ||
131 | </tr> | ||
132 | <tr> | ||
133 | <th style="height:25px;">이미지</th> | ||
134 | <td class="l"> | ||
135 | <? | ||
136 | $fileIndex = "101"; | ||
137 | $fileName = "img1"; | ||
138 | $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); | ||
139 | $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); | ||
140 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
141 | ?> | ||
142 | </td> | ||
143 | </tr> | ||
144 | |||
145 | </table> | ||
146 | </form> | ||
147 | |||
148 | <div class="btngroupcenter"> | ||
149 | <span class="button bigrounded blue jCancel">취소 </span> | ||
150 | <span class="button bigrounded blue jSave" >저장</span> | ||
151 | </div> | ||
152 | |||
153 | </div> | ||
154 | </div> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/companyManage/companyList.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCompanyManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminUser($_REQUEST) ; | ||
6 | |||
7 | //$list = $obj->getListOfUser() ; | ||
8 | $productCode=$_REQUEST["productCode"]; | ||
9 | $productType=$_REQUEST["productCode"]; | ||
10 | $vnum = $obj->virtualNum ; | ||
11 | ?> | ||
12 | <script> | ||
13 | |||
14 | $(document).ready(function(){ | ||
15 | |||
16 | //=====프레입웤 변수들==================================================================================// | ||
17 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
18 | var FORM_NAME = "nf" ; // 폼이름 | ||
19 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
20 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
21 | var FORM_ACTION = document.URL ; | ||
22 | |||
23 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
24 | //=====================================================================================================// | ||
25 | |||
26 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
27 | |||
28 | // 페이징 | ||
29 | $(".jPage").click2(function(){ | ||
30 | jForm.ci() ; | ||
31 | jForm.mi("page",$(this).attr("page")) ; | ||
32 | jForm.submit() ; | ||
33 | }) ; | ||
34 | |||
35 | |||
36 | $(".jAutoSearch").change(function(){ | ||
37 | jForm.ci() ; | ||
38 | jForm.submit() ; | ||
39 | }); | ||
40 | |||
41 | |||
42 | $(".jSearch").click2(function(){ | ||
43 | jForm.ci() ; | ||
44 | jForm.submit() ; | ||
45 | }); | ||
46 | |||
47 | $(".jView").click2(function(){ | ||
48 | var no = $(this).attr("no"); | ||
49 | var type='<?=$productType?>'; | ||
50 | location.href = "/admin/companyManage/companyView.php?no=" + no + "&productType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
51 | }); | ||
52 | |||
53 | |||
54 | $(".jAddUserExcel").click2(function(){ | ||
55 | var s=$("#search_text").val(); | ||
56 | location.href = "/admin/excel/userListExcel.php?search_text="+s; | ||
57 | }); | ||
58 | |||
59 | |||
60 | |||
61 | |||
62 | // 회원 탈퇴 | ||
63 | $(".jDelUser").click2(function(){ | ||
64 | |||
65 | var no = $(this).attr("no"); | ||
66 | |||
67 | var noArr = new Array(no); | ||
68 | |||
69 | if(confirm("정말 삭제하시겠습니까?")) | ||
70 | { | ||
71 | deleteUser(noArr); | ||
72 | } | ||
73 | }) ; | ||
74 | |||
75 | |||
76 | // 단체 삭제 | ||
77 | $(".jDelUserMulti").click2(function(){ | ||
78 | |||
79 | |||
80 | var noArr = new Array(); | ||
81 | var noCount = $(".jUserNo:checked").length; | ||
82 | |||
83 | if(noCount == 0) | ||
84 | { | ||
85 | alert("삭제할 관리자를 하나 이상 선택해주세요."); | ||
86 | return false; | ||
87 | } | ||
88 | |||
89 | |||
90 | if(confirm("정말 삭제하시겠습니까?")) | ||
91 | { | ||
92 | for(var i = 0; i < noCount; i++ ) | ||
93 | { | ||
94 | noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); | ||
95 | } | ||
96 | |||
97 | deleteUser(noArr); | ||
98 | } | ||
99 | |||
100 | }); | ||
101 | |||
102 | $(".jBtnMS").click2(function(){ | ||
103 | var no = $(this).attr("no"); | ||
104 | var member_type = $(this).attr("member_type"); | ||
105 | |||
106 | $.ajax({ | ||
107 | url : "/action_front.php?cmd=AdminUser.processRequestMemberShipUser", | ||
108 | async : false, | ||
109 | cache : false, | ||
110 | dataType : "json", | ||
111 | data : { | ||
112 | "no" : no | ||
113 | , "member_type" : member_type | ||
114 | }, | ||
115 | success : function(data){ | ||
116 | alert(data.returnMessage); | ||
117 | location.reload(); | ||
118 | } | ||
119 | }); | ||
120 | }); | ||
121 | |||
122 | |||
123 | $("#jCheckAll").change(function(){ | ||
124 | if($(this).is(":checked")) | ||
125 | $(".jUserNo").prop("checked", true); | ||
126 | else | ||
127 | $(".jUserNo").prop("checked", false); | ||
128 | }); | ||
129 | |||
130 | }) ; | ||
131 | |||
132 | |||
133 | |||
134 | function deleteUser(noArr) | ||
135 | { | ||
136 | $.ajax({ | ||
137 | url : "/action_front.php?cmd=AdminUser.deleteUser", | ||
138 | async : false, | ||
139 | cache : false, | ||
140 | dataType : "json", | ||
141 | data : { | ||
142 | "no" : noArr | ||
143 | }, | ||
144 | success : function(data){ | ||
145 | alert("삭제되었습니다"); | ||
146 | location.reload(); | ||
147 | } | ||
148 | }); | ||
149 | } | ||
150 | |||
151 | |||
152 | |||
153 | </script> | ||
154 | |||
155 | |||
156 | <div id="Contents" class="notice"> | ||
157 | |||
158 | <h1> | ||
159 | <? | ||
160 | switch($productCode){ | ||
161 | case "WB": | ||
162 | echo "윙바디"; | ||
163 | break; | ||
164 | case "AX": | ||
165 | echo "가변축"; | ||
166 | break; | ||
167 | } | ||
168 | ?> | ||
169 | </h1> | ||
170 | <h2> | ||
171 | 업체 관리 > | ||
172 | <? | ||
173 | switch($productCode){ | ||
174 | case "WB": | ||
175 | $productCode="윙바디"; | ||
176 | break; | ||
177 | case "AX": | ||
178 | $productCode="가변축"; | ||
179 | break; | ||
180 | } | ||
181 | ?> | ||
182 | <span><?echo $productCode;?></span> | ||
183 | </h2> | ||
184 | <div class="data" > | ||
185 | |||
186 | <div class="btngroupright"> | ||
187 | <input type="button" class="button smallrounded blue jView" no="" value="등록" /> | ||
188 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> | ||
189 | </div> | ||
190 | |||
191 | <table class="datacList"> | ||
192 | <thead> | ||
193 | <tr> | ||
194 | <th class="no" width="5%">No</th> | ||
195 | <th width="2%"><input type="checkbox" id="jCheckAll"></th> | ||
196 | <th width="20%">업체명</th> | ||
197 | <th width="10%">지역</th> | ||
198 | <th width="20%">상세 주소</th> | ||
199 | <th width="10%">전화번호</th> | ||
200 | <th width="10%">-</th> | ||
201 | |||
202 | </tr> | ||
203 | </thead> | ||
204 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
205 | <? for($i=0; $i<sizeof($list); $i++){ ?> | ||
206 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | ||
207 | <td class="no center"> | ||
208 | <?=$vnum--?> | ||
209 | </td> | ||
210 | <td class="center"> | ||
211 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > | ||
212 | </td> | ||
213 | <td class="center"> | ||
214 | |||
215 | </td> | ||
216 | <td class="center"> | ||
217 | <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> | ||
218 | </td> | ||
219 | |||
220 | </tr> | ||
221 | <? } ?> | ||
222 | <?if(sizeof($list) == 0){?> | ||
223 | <tr class="last"> | ||
224 | <td class="no center" colspan="11">No Data</td> | ||
225 | </tr> | ||
226 | <?}?> | ||
227 | </tbody> | ||
228 | </table> | ||
229 | |||
230 | <!-- Pagination --> | ||
231 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?> | ||
232 | <!--//Pagination --> | ||
233 | |||
234 | </div> | ||
235 | |||
236 | <div id="jDialogArea" style="display:none;"> | ||
237 | <table class="datav" style="width:100%;"> | ||
238 | <tr> | ||
239 | <th style="height:25px; width:70px;">포인트</th> | ||
240 | <td> | ||
241 | <input type="input" id="jAddHeartPoint" value="" style="width:100%;"/> | ||
242 | </td> | ||
243 | </tr> | ||
244 | </table> | ||
245 | </div> | ||
246 | |||
247 | </div> | ||
248 | |||
249 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/companyManage/companyView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCompanyManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, ""); | ||
6 | //$info = $obj->getInfoOfShop(); | ||
7 | |||
8 | //$cateCodeList = $obj->getShopCategoryCodeList(); | ||
9 | //$shopImgList = $obj->getShopImgList($info["no"]); | ||
10 | |||
11 | $admin_type = $obj->admUser["admin_type"]; | ||
12 | |||
13 | |||
14 | $rurl = pack("H*", $_REQUEST["rurl"]) ; | ||
15 | ?> | ||
16 | <script src="/admin/inc/fileUpload/fileUploadJS.js"></script> | ||
17 | <script type="text/javascript"> | ||
18 | var _rurl = "<?=$rurl?>"; | ||
19 | var _no = "<?=$_REQUEST[no]?>"; | ||
20 | |||
21 | $(document).ready(function(){ | ||
22 | |||
23 | initFileUpload(101); | ||
24 | initFileUpload(102); | ||
25 | initFileUpload(103); | ||
26 | initFileUpload(104); | ||
27 | initFileUpload(105); | ||
28 | |||
29 | <?if($admin_type == 3) { ?> | ||
30 | setReadOnly(); | ||
31 | <?} ?> | ||
32 | //=====프레입웤 변수들==================================================================================// | ||
33 | var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
34 | var FORM_NAME = "alf" ; // 폼이름 | ||
35 | var FORM_METHOD = "POST" ; // 폼 메쏘드 | ||
36 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
37 | var FORM_ACTION = "/action_front.php" ; | ||
38 | |||
39 | |||
40 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
41 | //=====================================================================================================// | ||
42 | |||
43 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
44 | |||
45 | $(".jCancel").click2(function(){ | ||
46 | location.href = _rurl; | ||
47 | }); | ||
48 | |||
49 | |||
50 | $(".jSave").click2(function(){ | ||
51 | |||
52 | $("#jData").ajaxSubmit({ | ||
53 | url:"/action_front.php?cmd=AdminOperate.saveShop", | ||
54 | type : "post", | ||
55 | forceSync : true, | ||
56 | dataType : "json", | ||
57 | success : function(data){ | ||
58 | alert(data.returnMessage); | ||
59 | location.href = _rurl; | ||
60 | } | ||
61 | |||
62 | }); | ||
63 | }); | ||
64 | |||
65 | $("#jCategorCd").change(function(){ | ||
66 | setPromotion(); | ||
67 | }); | ||
68 | |||
69 | setPromotion(); | ||
70 | |||
71 | }) ; | ||
72 | |||
73 | |||
74 | function setPromotion() | ||
75 | { | ||
76 | if($("#jCategorCd").val() == "1") | ||
77 | { | ||
78 | $("#jPromotionSelect").val("1"); | ||
79 | $("#jPromotionSelect").prop("disabled", true); | ||
80 | $("#jPromotionHidden").prop("disabled", false); | ||
81 | } | ||
82 | else | ||
83 | { | ||
84 | $("#jPromotionSelect").prop("disabled", false); | ||
85 | $("#jPromotionHidden").prop("disabled", true); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | function setReadOnly(){ | ||
90 | $("[name=name]").attr("readonly", true); | ||
91 | $("[name=tel]").attr("readonly", true); | ||
92 | $("[name=addr_old]").attr("readonly", true); | ||
93 | $("[name=addr_new]").attr("readonly", true); | ||
94 | $("[name=discount_rate]").attr("readonly", true); | ||
95 | $("[name=discount_desc]").attr("readonly", true); | ||
96 | } | ||
97 | </script> | ||
98 | |||
99 | <div id="Contents" class="notice"> | ||
100 | |||
101 | <h1>업체 관리 -등록</h1> | ||
102 | |||
103 | <!-- location area --> | ||
104 | <h2> | ||
105 | 업체 관리 > | ||
106 | <? | ||
107 | if($_REQUEST["productType"] == "WB") | ||
108 | echo "윙바디"; | ||
109 | else | ||
110 | echo "가변축" | ||
111 | ?> | ||
112 | > | ||
113 | <span><? | ||
114 | if($_REQUEST["no"]=="") | ||
115 | echo "등록"; | ||
116 | else | ||
117 | echo "상세보기"; | ||
118 | ?></span> | ||
119 | </h2> | ||
120 | <!-- location area --> | ||
121 | |||
122 | |||
123 | <div class="data" style="width:80%;"> | ||
124 | |||
125 | <form id="jData" method="post" enctype="multipart/form-data"> | ||
126 | <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> | ||
127 | <table class="datav" style="width:100%;"> | ||
128 | <colgroup> | ||
129 | <col width="10%" /> | ||
130 | <col width="90%" /> | ||
131 | </colgroup> | ||
132 | <tr> | ||
133 | <th style="height:25px;">업체명</th> | ||
134 | <td class="l"> | ||
135 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="" /> | ||
136 | |||
137 | </td> | ||
138 | </tr> | ||
139 | <tr> | ||
140 | <th style="height:25px;">지역</th> | ||
141 | <td class="l"> | ||
142 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="" /> | ||
143 | </td> | ||
144 | </tr> | ||
145 | |||
146 | |||
147 | <tr> | ||
148 | <th style="height:25px;">상세주소</th> | ||
149 | <td class="l"> | ||
150 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" /> | ||
151 | </td> | ||
152 | </tr> | ||
153 | |||
154 | <tr> | ||
155 | <th style="height:25px;">전화번호</th> | ||
156 | <td class="l"> | ||
157 | <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> | ||
158 | </td> | ||
159 | </tr> | ||
160 | <tr> | ||
161 | <th style="height:25px;">FAX</th> | ||
162 | <td class="l"> | ||
163 | <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> | ||
164 | </td> | ||
165 | </tr> | ||
166 | <tr> | ||
167 | <th style="height:25px;">E-mail</th> | ||
168 | <td class="l"> | ||
169 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" /> | ||
170 | </td> | ||
171 | </tr> | ||
172 | <tr> | ||
173 | <th style="height:25px;">주요 담당제품</th> | ||
174 | <td class="l"> | ||
175 | <input type="text" name="discount_rate" class="wl" style="width:70%;" value="<?=$info["discount_rate"] ?>" /> | ||
176 | </td> | ||
177 | </tr> | ||
178 | |||
179 | <tr> | ||
180 | <th style="height:25px;">이미지 1</th> | ||
181 | <td class="l"> | ||
182 | <? | ||
183 | $fileIndex = "101"; | ||
184 | $fileName = "img1"; | ||
185 | $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); | ||
186 | $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); | ||
187 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
188 | ?> | ||
189 | </td> | ||
190 | </tr> | ||
191 | <tr> | ||
192 | <th style="height:25px;">이미지 2</th> | ||
193 | <td class="l"> | ||
194 | <? | ||
195 | $fileIndex = "102"; | ||
196 | $fileName = "img2"; | ||
197 | $filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]); | ||
198 | $fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]); | ||
199 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
200 | ?> | ||
201 | </td> | ||
202 | </tr> | ||
203 | <tr> | ||
204 | <th style="height:25px;">이미지 3</th> | ||
205 | <td class="l"> | ||
206 | <? | ||
207 | $fileIndex = "103"; | ||
208 | $fileName = "img3"; | ||
209 | $filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]); | ||
210 | $fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]); | ||
211 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
212 | ?> | ||
213 | </td> | ||
214 | </tr> | ||
215 | <tr> | ||
216 | <th style="height:25px;">이미지 4</th> | ||
217 | <td class="l"> | ||
218 | <? | ||
219 | $fileIndex = "104"; | ||
220 | $fileName = "img4"; | ||
221 | $filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]); | ||
222 | $fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]); | ||
223 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
224 | ?> | ||
225 | </td> | ||
226 | </tr> | ||
227 | <tr> | ||
228 | <th style="height:25px;">이미지 5</th> | ||
229 | <td class="l"> | ||
230 | <? | ||
231 | $fileIndex = "105"; | ||
232 | $fileName = "img5"; | ||
233 | $filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]); | ||
234 | $fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]); | ||
235 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
236 | ?> | ||
237 | </td> | ||
238 | </tr> | ||
239 | </table> | ||
240 | </form> | ||
241 | |||
242 | <div class="btngroupcenter"> | ||
243 | <span class="button bigrounded blue jCancel">취소 </span> | ||
244 | <span class="button bigrounded blue jSave" >저장</span> | ||
245 | </div> | ||
246 | |||
247 | </div> | ||
248 | </div> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> | 1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> |
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | 2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> |
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftUserManage.php" ?> | 3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?> |
4 | <? | 4 | <? |
5 | $obj = new AdminUser($_REQUEST, "") ; | 5 | $obj = new AdminUser($_REQUEST) ; |
6 | 6 | ||
7 | $list = $obj->getListOfUserForBoard("V", null) ; | 7 | //$list = $obj->getListOfUser() ; |
8 | $boardType=$_REQUEST["boardType"]; | ||
8 | $vnum = $obj->virtualNum ; | 9 | $vnum = $obj->virtualNum ; |
9 | ?> | 10 | ?> |
10 | <script> | 11 | <script> |
... | @@ -42,15 +43,16 @@ | ... | @@ -42,15 +43,16 @@ |
42 | jForm.submit() ; | 43 | jForm.submit() ; |
43 | }); | 44 | }); |
44 | 45 | ||
45 | $(".jViewUser").click2(function(){ | 46 | $(".jView").click2(function(){ |
46 | var no = $(this).attr("no"); | 47 | var no = $(this).attr("no"); |
47 | location.href = "/admin/userManage/userView.php?isMS=2&no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL); | 48 | var type='<?=$boardType?>'; |
49 | location.href = "/admin/customerService/csView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
48 | }); | 50 | }); |
49 | 51 | ||
50 | 52 | ||
51 | $(".jAddUserExcel").click2(function(){ | 53 | $(".jAddUserExcel").click2(function(){ |
52 | var s=$("#search_text").val(); | 54 | var s=$("#search_text").val(); |
53 | location.href = "/admin/excel/vipUserExcelList.php?search_text="+s; | 55 | location.href = "/admin/excel/userListExcel.php?search_text="+s; |
54 | }); | 56 | }); |
55 | 57 | ||
56 | 58 | ||
... | @@ -96,7 +98,7 @@ | ... | @@ -96,7 +98,7 @@ |
96 | 98 | ||
97 | }); | 99 | }); |
98 | 100 | ||
99 | $(".jBtnV").click2(function(){ | 101 | $(".jBtnMS").click2(function(){ |
100 | var no = $(this).attr("no"); | 102 | var no = $(this).attr("no"); |
101 | var member_type = $(this).attr("member_type"); | 103 | var member_type = $(this).attr("member_type"); |
102 | 104 | ||
... | @@ -106,8 +108,8 @@ | ... | @@ -106,8 +108,8 @@ |
106 | cache : false, | 108 | cache : false, |
107 | dataType : "json", | 109 | dataType : "json", |
108 | data : { | 110 | data : { |
109 | "no" : no, | 111 | "no" : no |
110 | "member_type" : member_type | 112 | , "member_type" : member_type |
111 | }, | 113 | }, |
112 | success : function(data){ | 114 | success : function(data){ |
113 | alert(data.returnMessage); | 115 | alert(data.returnMessage); |
... | @@ -152,51 +154,31 @@ | ... | @@ -152,51 +154,31 @@ |
152 | 154 | ||
153 | <div id="Contents" class="notice"> | 155 | <div id="Contents" class="notice"> |
154 | 156 | ||
155 | <h1>VIP 회원 리스트</h1> | 157 | <h1>고객센터</h1> |
156 | 158 | <h2> | |
157 | <div class="data"> | 159 | <span>고객센터</span> |
158 | |||
159 | <fieldset class="search" style="margin-top:30px;"> | ||
160 | |||
161 | <div class="jSearchArea" > | ||
162 | |||
163 | <label> | ||
164 | <span># 이메일, 이름, 전화번호</span> | ||
165 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> | ||
166 | </label> | ||
167 | 160 | ||
168 | <input type="button" class="button bigrounded blue jSearch" value="검색" /> | 161 | </h2> |
169 | </div> | 162 | <div class="data" > |
170 | 163 | ||
171 | </fieldset> | ||
172 | |||
173 | <?if($loginInfo["admin_type"] == "1"){ ?> | ||
174 | <div class="btngroupright"> | 164 | <div class="btngroupright"> |
175 | <input type="button" class="button bigrounded blue jAddUserExcel" value="회원EXCEL" /> | 165 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> |
176 | <input type="button" class="button bigrounded blue jDelUserMulti" value="삭제" /> | ||
177 | </div> | 166 | </div> |
178 | <?} ?> | 167 | |
179 | <table class="datacList"> | 168 | <table class="datacList"> |
180 | <thead> | 169 | <thead> |
181 | <tr> | 170 | <tr> |
182 | <th class="no" width="5%">No</th> | 171 | <th class="no" width="5%">No</th> |
183 | <th width="3%"><input type="checkbox" id="jCheckAll"></th> | 172 | <th width="2%"><input type="checkbox" id="jCheckAll"></th> |
184 | <th width="13%">이메일</th> | 173 | <th width="10%">작성자</th> |
185 | <th width="6%">이름</th> | 174 | <th width="40%">제목</th> |
186 | <th width="8%">전화번호</th> | 175 | <th width="10%">등록일</th> |
187 | <th width="10%">소속그룹</th> | 176 | <th width="10%">-</th> |
188 | <th width="5%">VIP<br>회원여부</th> | 177 | |
189 | <th width="10%">승인 상태</th> | ||
190 | <th width="10%">가입 날짜</th> | ||
191 | <th width="15%">-</th> | ||
192 | </tr> | 178 | </tr> |
193 | </thead> | 179 | </thead> |
194 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | 180 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> |
195 | <? | 181 | <? for($i=0; $i<sizeof($list); $i++){ ?> |
196 | $recounter = 0; | ||
197 | for($i=0; $i<sizeof($list); $i++){ | ||
198 | |||
199 | ?> | ||
200 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | 182 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> |
201 | <td class="no center"> | 183 | <td class="no center"> |
202 | <?=$vnum--?> | 184 | <?=$vnum--?> |
... | @@ -205,58 +187,22 @@ | ... | @@ -205,58 +187,22 @@ |
205 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > | 187 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > |
206 | </td> | 188 | </td> |
207 | <td class="center"> | 189 | <td class="center"> |
208 | <? | 190 | |
209 | if($list[$i]["regi_type"] == "E") | ||
210 | echo $list[$i]["id"]; | ||
211 | else if($list[$i]["regi_type"] == "K") | ||
212 | echo "카카오톡 가입"; | ||
213 | else if($list[$i]["regi_type"] == "F") | ||
214 | echo "페이스북 가입"; | ||
215 | ?> | ||
216 | </td> | ||
217 | <td class="center"> | ||
218 | <?=$list[$i]["name"]?> | ||
219 | </td> | ||
220 | <td class="center"> | ||
221 | <?=$list[$i]["tel"]?> | ||
222 | </td> | ||
223 | <td class="center"> | ||
224 | <?=$list[$i]["group_name"]?> | ||
225 | </td> | ||
226 | <td class="center"> | ||
227 | <?=($list[$i]["member_type"] == "V") ? "O" : "X"?> | ||
228 | </td> | ||
229 | <td class="center"> | ||
230 | <?if($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "VH"){ ?> | ||
231 | <input type="button" class="button searchsmall white jBtnV" value="승인" no="<?=$list[$i]["no"]?>" member_type="V"/> | ||
232 | <input type="button" class="button searchsmall white jBtnV" value="거절" no="<?=$list[$i]["no"]?>" member_type="N" /> | ||
233 | <?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "V"){ ?> | ||
234 | 승인 | ||
235 | <?} elseif ($list[$i]["group_fk"] > 0 && $list[$i]["member_type"] == "N"){ ?> | ||
236 | 거절 | ||
237 | <?} else { ?> | ||
238 | - | ||
239 | <?} ?> | ||
240 | </td> | 191 | </td> |
241 | <td class="center"> | 192 | <td class="center"> |
242 | <?=$list[$i]["reg_dt"]?> | 193 | |
243 | </td> | 194 | </td> |
244 | <td class="center"> | 195 | <td class="center"> |
245 | <input type="button" class="button searchsmall white jViewUser" value="상세보기" no="<?=$list[$i]["no"]?>" /> | 196 | <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> |
246 | <?if($loginInfo["admin_type"] == "1"){ ?> | ||
247 | <input type="button" class="button searchsmall white jDelUser" value="삭제" no="<?=$list[$i]["no"]?>" /> | ||
248 | <?} ?> | ||
249 | </td> | 197 | </td> |
250 | 198 | ||
251 | </tr> | 199 | </tr> |
252 | <? } ?> | 200 | <? } ?> |
253 | <?if(sizeof($list) == 0){?> | 201 | <?if(sizeof($list) == 0){?> |
254 | <tr class="last"> | 202 | <tr class="last"> |
255 | <td class="no center" colspan="11">No Data</td> | 203 | <td class="no center" colspan="11">No Data</td> |
256 | </tr> | 204 | </tr> |
257 | <?} | 205 | <?}?> |
258 | //$obj->endBlock = $recounter/20 + 1; | ||
259 | ?> | ||
260 | </tbody> | 206 | </tbody> |
261 | </table> | 207 | </table> |
262 | 208 | ... | ... |
admin/customerService/csView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminPush($_REQUEST, "") ; | ||
6 | |||
7 | //$list = $obj->getListOfAdminPush() ; | ||
8 | $vnum = $obj->virtualNum ; | ||
9 | ?> | ||
10 | <script> | ||
11 | |||
12 | $(document).ready(function(){ | ||
13 | |||
14 | //=====프레입웤 변수들==================================================================================// | ||
15 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
16 | var FORM_NAME = "nf" ; // 폼이름 | ||
17 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
18 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
19 | var FORM_ACTION = document.URL ; | ||
20 | |||
21 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
22 | //=====================================================================================================// | ||
23 | |||
24 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
25 | |||
26 | // 페이징 | ||
27 | $(".jPage").click2(function(){ | ||
28 | jForm.ci() ; | ||
29 | jForm.mi("page",$(this).attr("page")) ; | ||
30 | jForm.submit() ; | ||
31 | }) ; | ||
32 | |||
33 | |||
34 | $(".jAutoSearch").change(function(){ | ||
35 | jForm.ci() ; | ||
36 | jForm.submit() ; | ||
37 | }); | ||
38 | |||
39 | |||
40 | $(".jSearch").click2(function(){ | ||
41 | jForm.ci() ; | ||
42 | jForm.submit() ; | ||
43 | }); | ||
44 | |||
45 | $(".jSearchGroup").click2(function(){ | ||
46 | |||
47 | var title = "그룹 검색"; | ||
48 | |||
49 | $('#jDialogArea').dialog({ | ||
50 | modal : true, | ||
51 | title : title, | ||
52 | open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }, | ||
53 | width : 400, | ||
54 | height : 500, | ||
55 | resizable : false, | ||
56 | buttons: [ | ||
57 | { | ||
58 | text: "확인", | ||
59 | click: function() { | ||
60 | var group_no = $(".jTargetNo:checked").val(); | ||
61 | var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data"); | ||
62 | |||
63 | if(group_no == undefined) | ||
64 | { | ||
65 | alert("대상을 선택해주세요."); | ||
66 | return false; | ||
67 | } | ||
68 | else | ||
69 | { | ||
70 | $("#group_no").val(group_no); | ||
71 | $("#group_name").val(group_name); | ||
72 | $( this ).dialog( "close" ); | ||
73 | |||
74 | $("#jTargetSearchText").val(""); | ||
75 | $("#jSearchResultArea").empty(); | ||
76 | } | ||
77 | } | ||
78 | }, | ||
79 | { | ||
80 | text: "닫기", | ||
81 | click: function() { | ||
82 | $("#jTargetSearchText").val(""); | ||
83 | $("#jSearchResultArea").empty(); | ||
84 | $( this ).dialog( "close" ); | ||
85 | } | ||
86 | } | ||
87 | ], | ||
88 | closeOnEscape: false | ||
89 | }); | ||
90 | }); | ||
91 | |||
92 | $(".jSearchPrivate").click2(function(){ | ||
93 | |||
94 | var title = "회원 검색"; | ||
95 | |||
96 | $('#jDialogAreaP').dialog({ | ||
97 | modal : true, | ||
98 | title : title, | ||
99 | open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }, | ||
100 | width : 400, | ||
101 | height : 500, | ||
102 | resizable : false, | ||
103 | buttons: [ | ||
104 | { | ||
105 | text: "확인", | ||
106 | click: function() { | ||
107 | var group_no = $(".jTargetNo:checked").val(); | ||
108 | var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data"); | ||
109 | |||
110 | if(group_no == undefined) | ||
111 | { | ||
112 | alert("대상을 선택해주세요."); | ||
113 | return false; | ||
114 | } | ||
115 | else | ||
116 | { | ||
117 | $("#group_no").val(group_no); | ||
118 | $("#group_name").val(group_name); | ||
119 | $( this ).dialog( "close" ); | ||
120 | |||
121 | $("#jTargetSearchText").val(""); | ||
122 | $("#jSearchResultArea").empty(); | ||
123 | } | ||
124 | } | ||
125 | }, | ||
126 | { | ||
127 | text: "닫기", | ||
128 | click: function() { | ||
129 | $("#jTargetSearchText").val(""); | ||
130 | $("#jSearchResultArea").empty(); | ||
131 | $( this ).dialog( "close" ); | ||
132 | } | ||
133 | } | ||
134 | ], | ||
135 | closeOnEscape: false | ||
136 | }); | ||
137 | }); | ||
138 | |||
139 | |||
140 | $(".jTargetSearchBtn").click2(function(){ | ||
141 | var search_text = $("#jTargetSearchText").val(); | ||
142 | var ajax_url = "/admin/entity/entityGroupSearch.php"; | ||
143 | |||
144 | if(search_text == "") | ||
145 | { | ||
146 | alert("검색어를 입력해주세요."); | ||
147 | return false; | ||
148 | } | ||
149 | |||
150 | $.ajax({ | ||
151 | url : ajax_url, | ||
152 | data : { | ||
153 | "search_text" : search_text | ||
154 | }, | ||
155 | dataType:"html", | ||
156 | success : function(data) | ||
157 | { | ||
158 | $("#jSearchResultArea").html(data); | ||
159 | setSearchAreaEventHandler(); | ||
160 | } | ||
161 | }); | ||
162 | |||
163 | }); | ||
164 | |||
165 | $(".jTargetSearchPBtn").click2(function(){ | ||
166 | var search_text = $("#jTargetSearchTextP").val(); | ||
167 | var ajax_url = "/admin/entity/entityPrivateSearch.php"; | ||
168 | |||
169 | if(search_text == "") | ||
170 | { | ||
171 | alert("검색어를 입력해주세요."); | ||
172 | return false; | ||
173 | } | ||
174 | |||
175 | $.ajax({ | ||
176 | url : ajax_url, | ||
177 | data : { | ||
178 | "search_text" : search_text | ||
179 | }, | ||
180 | dataType:"html", | ||
181 | success : function(data) | ||
182 | { | ||
183 | $("#jSearchResultAreaP").html(data); | ||
184 | setSearchAreaEventHandler(); | ||
185 | } | ||
186 | }); | ||
187 | |||
188 | }); | ||
189 | |||
190 | |||
191 | $("#push_target_type").change(function(){ | ||
192 | resetTargetData(); | ||
193 | if($(this).val() == "1") | ||
194 | { | ||
195 | $("#jGroupArea").hide(); | ||
196 | $("#jPrivateArea").hide(); | ||
197 | } | ||
198 | else if($(this).val() == "2") | ||
199 | { | ||
200 | $("#jGroupArea").show(); | ||
201 | $("#jPrivateArea").hide(); | ||
202 | }else{ | ||
203 | $("#jGroupArea").hide(); | ||
204 | $("#jPrivateArea").show(); | ||
205 | } | ||
206 | }); | ||
207 | |||
208 | |||
209 | $(".jSave").click2(function(){ | ||
210 | var push_msg = $("#push_msg").val(); | ||
211 | var push_target_type = $("#push_target_type").val(); | ||
212 | var group_no = $("#group_no").val(); | ||
213 | |||
214 | if(push_target_type == "2" && group_no == "") | ||
215 | { | ||
216 | alert("그룹을 선택해주세요."); | ||
217 | return false; | ||
218 | } | ||
219 | |||
220 | if(push_msg == "") | ||
221 | { | ||
222 | alert("푸시 내용을 입력해주세요."); | ||
223 | return false; | ||
224 | } | ||
225 | |||
226 | $.ajax({ | ||
227 | url : "/action_front.php?cmd=AdminPush.sendAdminPush", | ||
228 | async : true, | ||
229 | cache : false, | ||
230 | dataType : "json", | ||
231 | data : { | ||
232 | "push_msg" : push_msg, | ||
233 | "push_target_type" : push_target_type, | ||
234 | "group_no" : group_no | ||
235 | }, success : function(data) { | ||
236 | alert(data.returnMessage) ; | ||
237 | if(data.returnCode == 1) { | ||
238 | location.reload(); | ||
239 | } | ||
240 | } | ||
241 | }); | ||
242 | |||
243 | |||
244 | |||
245 | }); | ||
246 | |||
247 | }) ; | ||
248 | |||
249 | function setSearchAreaEventHandler() | ||
250 | { | ||
251 | $(".jTargetNo").unbind("change"); | ||
252 | $(".jTargetNo").change(function(){ | ||
253 | $(".jTargetNo").prop("checked", false); | ||
254 | $(this).prop("checked", true); | ||
255 | }); | ||
256 | } | ||
257 | |||
258 | function resetTargetData() | ||
259 | { | ||
260 | $("#group_no").val(""); | ||
261 | $("#group_name").val(""); | ||
262 | } | ||
263 | |||
264 | |||
265 | |||
266 | </script> | ||
267 | |||
268 | |||
269 | <div id="Contents" class="notice"> | ||
270 | |||
271 | <h1>고객센터</h1> | ||
272 | <h2> | ||
273 | 고객센터 > <span>상세</span> | ||
274 | |||
275 | </h2> | ||
276 | <div class="data"> | ||
277 | |||
278 | <table class="datav" style="width:100%;"> | ||
279 | <colgroup> | ||
280 | <col width="30%" /> | ||
281 | <col width="70%" /> | ||
282 | </colgroup> | ||
283 | <tr> | ||
284 | <th style="height:25px;">내용</th> | ||
285 | <td class="l"> | ||
286 | <textarea rows="5" style="width:95%;" id="push_msg"></textarea> | ||
287 | </td> | ||
288 | </tr> | ||
289 | </table> | ||
290 | |||
291 | <div class="btngroupright" style="width:100%;"> | ||
292 | <span class="button bigrounded blue jSave" >등록</span> | ||
293 | </div> | ||
294 | |||
295 | <h3>히스토리</h3> | ||
296 | <table class="datacList"> | ||
297 | <thead> | ||
298 | <tr> | ||
299 | <th width="10%">작성자</th> | ||
300 | <th width="65%">내용</th> | ||
301 | </tr> | ||
302 | </thead> | ||
303 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
304 | <? for($i=0; $i<sizeof($list); $i++){ ?> | ||
305 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | ||
306 | |||
307 | <td class="center"> | ||
308 | |||
309 | </td> | ||
310 | <td class="center"> | ||
311 | <?=$list[$i]["push_msg"]?> | ||
312 | </td> | ||
313 | |||
314 | </tr> | ||
315 | <? } ?> | ||
316 | <?if(sizeof($list) == 0){?> | ||
317 | <tr class="last"> | ||
318 | <td class="no center" colspan="11">No Data</td> | ||
319 | </tr> | ||
320 | <?}?> | ||
321 | </tbody> | ||
322 | </table> | ||
323 | |||
324 | <!-- Pagination --> | ||
325 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?> | ||
326 | <!--//Pagination --> | ||
327 | |||
328 | </div> | ||
329 | |||
330 | <div id="jDialogArea" style="display:none;"> | ||
331 | <table class="datacList" style="width:100%;"> | ||
332 | <thead> | ||
333 | <tr> | ||
334 | <td class="no" colspan="2" style="text-align:center; height:35px;"> | ||
335 | <input type="text" id="jTargetSearchText" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다."> | ||
336 | <input type="button" class="button searchsmall white jTargetSearchBtn" value="검색" /> | ||
337 | </td> | ||
338 | </tr> | ||
339 | </thead> | ||
340 | <thead> | ||
341 | <tr> | ||
342 | <th class="no" colspan="2">검색결과</th> | ||
343 | </tr> | ||
344 | </thead> | ||
345 | <tbody id="jSearchResultArea"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
346 | |||
347 | </tbody> | ||
348 | </table> | ||
349 | </div> | ||
350 | |||
351 | <div id="jDialogAreaP" style="display:none;"> | ||
352 | <table class="datacList" style="width:100%;"> | ||
353 | <thead> | ||
354 | <tr> | ||
355 | <td class="no" colspan="2" style="text-align:center; height:35px;"> | ||
356 | <input type="text" id="jTargetSearchTextP" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다."> | ||
357 | <input type="button" class="button searchsmall white jTargetSearchPBtn" value="검색" /> | ||
358 | </td> | ||
359 | </tr> | ||
360 | </thead> | ||
361 | <thead> | ||
362 | <tr> | ||
363 | <th class="no" colspan="2">검색결과</th> | ||
364 | </tr> | ||
365 | </thead> | ||
366 | <tbody id="jSearchResultAreaP"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
367 | |||
368 | </tbody> | ||
369 | </table> | ||
370 | </div> | ||
371 | |||
372 | </div> | ||
373 | |||
374 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | <? | ||
2 | header("Content-Type: text/html; charset=UTF-8"); | ||
3 | ?> | ||
4 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/Admin.php" ;?> | ||
5 | <? | ||
6 | $obj = new Admin($_REQUEST); | ||
7 | |||
8 | //$count = $obj->req["count"]; | ||
9 | $cnt = $obj->req["cnt"]; | ||
10 | $type = $obj->req["type"]; | ||
11 | |||
12 | $count = $obj->getMinShopNo(); | ||
13 | |||
14 | $list = $obj->getShopLocation($count); | ||
15 | |||
16 | //$result = $obj->reverseGeocode("서울시 강남구 논현동 57-18"); | ||
17 | // echo json_encode($list); | ||
18 | |||
19 | if(sizeof($list) == 0 || $cnt >= 40){ | ||
20 | exit; | ||
21 | } | ||
22 | if($type == 2){ | ||
23 | for($i = 0; $i < sizeof($list); $i++){ | ||
24 | |||
25 | $result = $obj->reverseGeocode2($list[$i]["addr_old"]); | ||
26 | |||
27 | if($result["latitude"] == 0 && $result["longitude"] == 0){ | ||
28 | $result2 = $obj->reverseGeocode2($list[$i]["addr_new"]); | ||
29 | |||
30 | if($result2["latitude"] == 0 && $result2["longitude"] == 0){ | ||
31 | $obj->updateShopLocation(-99, -99, $list[$i]["no"]); | ||
32 | } | ||
33 | else{ | ||
34 | $obj->updateShopLocation($result2["latitude"], $result2["longitude"], $list[$i]["no"]); | ||
35 | } | ||
36 | |||
37 | //echo json_encode($result2); | ||
38 | } | ||
39 | else{ | ||
40 | $obj->updateShopLocation($result["latitude"], $result["longitude"], $list[$i]["no"]); | ||
41 | //echo json_encode($result); | ||
42 | } | ||
43 | |||
44 | } | ||
45 | } | ||
46 | else{ | ||
47 | for($i = 0; $i < sizeof($list); $i++){ | ||
48 | |||
49 | $result = $obj->reverseGeocode($list[$i]["addr_old"]); | ||
50 | |||
51 | if($result["latitude"] == 0 && $result["longitude"] == 0){ | ||
52 | $result2 = $obj->reverseGeocode($list[$i]["addr_new"]); | ||
53 | |||
54 | if($result2["latitude"] == 0 && $result2["longitude"] == 0){ | ||
55 | $obj->updateShopLocation(-99, -99, $list[$i]["no"]); | ||
56 | } | ||
57 | else{ | ||
58 | $obj->updateShopLocation($result2["latitude"], $result2["longitude"], $list[$i]["no"]); | ||
59 | } | ||
60 | |||
61 | //echo json_encode($result2); | ||
62 | } | ||
63 | else{ | ||
64 | $obj->updateShopLocation($result["latitude"], $result["longitude"], $list[$i]["no"]); | ||
65 | //echo json_encode($result); | ||
66 | } | ||
67 | |||
68 | } | ||
69 | } | ||
70 | |||
71 | $cnt++; | ||
72 | echo "<script>location.replace('./renewShopLocation.php?cnt={$cnt}&type={$type}');</script>"; | ||
73 | |||
74 | ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -58,22 +58,22 @@ if($loginInfo == null) | ... | @@ -58,22 +58,22 @@ if($loginInfo == null) |
58 | <a matchUrl="/admin/userManage" href="/admin/userManage/userList.php">회원 관리</a> | 58 | <a matchUrl="/admin/userManage" href="/admin/userManage/userList.php">회원 관리</a> |
59 | </li> | 59 | </li> |
60 | <li> | 60 | <li> |
61 | <a matchUrl="" href="">제품 관리</a> | 61 | <a matchUrl="/admin/vehicleManage" href="/admin/vehicleManage/vehicleList.php?vehicleType=WB">제품 관리</a> |
62 | </li> | 62 | </li> |
63 | <li> | 63 | <li> |
64 | <a matchUrl="" href="">업체 관리</a> | 64 | <a matchUrl="/admin/companyManage" href="/admin/companyManage/companyList.php?productCode=WB">업체 관리</a> |
65 | </li> | 65 | </li> |
66 | <li> | 66 | <li> |
67 | <a matchUrl="" href="">게시물 관리</a> | 67 | <a matchUrl="/admin/boardManage" href="/admin/boardManage/boardList.php?boardType=NO">게시물 관리</a> |
68 | </li> | 68 | </li> |
69 | <li> | 69 | <li> |
70 | <a matchUrl="" href="">고객센터</a> | 70 | <a matchUrl="/admin/customerService" href="/admin/customerService/csList.php">고객센터</a> |
71 | </li> | 71 | </li> |
72 | <li> | 72 | <li> |
73 | <a matchUrl="/admin/pushManage" href="/admin/pushManage/pushView.php">푸시 관리</a> | 73 | <a matchUrl="/admin/pushManage" href="/admin/pushManage/pushView.php">푸시 관리</a> |
74 | </li> | 74 | </li> |
75 | <li> | 75 | <li> |
76 | <a matchUrl="" href="">사양서 관리</a> | 76 | <a matchUrl="/admin/productionSpecManage" href="/admin/productionSpecManage/psList.php">사양서 관리</a> |
77 | </li> | 77 | </li> |
78 | <li> | 78 | <li> |
79 | <a matchUrl="/admin/etcManage" href="/admin/etcManage/changePWD.php">계정 관리</a> | 79 | <a matchUrl="/admin/etcManage" href="/admin/etcManage/changePWD.php">계정 관리</a> | ... | ... |
... | @@ -8,7 +8,7 @@ $(document).ready(function(){ | ... | @@ -8,7 +8,7 @@ $(document).ready(function(){ |
8 | <!--<ul class="selected" >--> | 8 | <!--<ul class="selected" >--> |
9 | 9 | ||
10 | <ul class="sidemenu"> | 10 | <ul class="sidemenu"> |
11 | <a href="/admin/userManage/userList.php"> | 11 | <a href="/admin/boardManage/boardList.php?boardType=NO"> |
12 | <h1>게시물 관리</h1> | 12 | <h1>게시물 관리</h1> |
13 | </a> | 13 | </a> |
14 | 14 | ||
... | @@ -17,16 +17,16 @@ $(document).ready(function(){ | ... | @@ -17,16 +17,16 @@ $(document).ready(function(){ |
17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> | 17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> |
18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> | 18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> |
19 | </li>--> | 19 | </li>--> |
20 | <li matchUrl="/admin/userManage/userList.php"> | 20 | <li matchUrl="/admin/boardManage/boardList.php"> |
21 | <a href="/admin/userManage/userList.php">공지사항</a> | 21 | <a href="/admin/boardManage/boardList.php?boardType=NO">공지사항</a> |
22 | </li> | 22 | </li> |
23 | 23 | ||
24 | <li matchUrl="/admin/userManage/userManagerList.php"> | 24 | <li matchUrl="/admin/boardManage/boardList.php"> |
25 | <a href="/admin/userManage/userManagerList.php">이벤트</a> | 25 | <a href="/admin/boardManage/boardList.php?boardType=EV">이벤트</a> |
26 | </li> | 26 | </li> |
27 | 27 | ||
28 | <li matchUrl="/admin/userManage/userManagerList.php"> | 28 | <li matchUrl="/admin/boardManage/certificateList.php"> |
29 | <a href="/admin/userManage/userManagerList.php">기관인정서</a> | 29 | <a href="/admin/boardManage/certificateList.php">기관인정서</a> |
30 | </li> | 30 | </li> |
31 | 31 | ||
32 | </ul> | 32 | </ul> | ... | ... |
... | @@ -8,7 +8,7 @@ $(document).ready(function(){ | ... | @@ -8,7 +8,7 @@ $(document).ready(function(){ |
8 | <!--<ul class="selected" >--> | 8 | <!--<ul class="selected" >--> |
9 | 9 | ||
10 | <ul class="sidemenu"> | 10 | <ul class="sidemenu"> |
11 | <a href="/admin/userManage/userList.php"> | 11 | <a href="/admin/companyManage/companyList.php?productCode=WB"> |
12 | <h1>업체 관리</h1> | 12 | <h1>업체 관리</h1> |
13 | </a> | 13 | </a> |
14 | 14 | ||
... | @@ -17,12 +17,12 @@ $(document).ready(function(){ | ... | @@ -17,12 +17,12 @@ $(document).ready(function(){ |
17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> | 17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> |
18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> | 18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> |
19 | </li>--> | 19 | </li>--> |
20 | <li matchUrl="/admin/userManage/userList.php"> | 20 | <li matchUrl="/admin/companyManage/companyList.php?=productCode=WB"> |
21 | <a href="/admin/userManage/userList.php">윙바디</a> | 21 | <a href="/admin/companyManage/companyList.php?productCode=WB">윙바디</a> |
22 | </li> | 22 | </li> |
23 | 23 | ||
24 | <li matchUrl="/admin/userManage/userManagerList.php"> | 24 | <li matchUrl="/admin/companyManage/companyList.php"> |
25 | <a href="/admin/userManage/userManagerList.php">가변축</a> | 25 | <a href="/admin/companyManage/companyList.php?productCode=AX">가변축</a> |
26 | </li> | 26 | </li> |
27 | 27 | ||
28 | </ul> | 28 | </ul> | ... | ... |
... | @@ -8,7 +8,7 @@ $(document).ready(function(){ | ... | @@ -8,7 +8,7 @@ $(document).ready(function(){ |
8 | <!--<ul class="selected" >--> | 8 | <!--<ul class="selected" >--> |
9 | 9 | ||
10 | <ul class="sidemenu"> | 10 | <ul class="sidemenu"> |
11 | <a href="/admin/userManage/userList.php"> | 11 | <a href="/admin/customerService/csList.php"> |
12 | <h1>고객센터</h1> | 12 | <h1>고객센터</h1> |
13 | </a> | 13 | </a> |
14 | 14 | ||
... | @@ -17,12 +17,11 @@ $(document).ready(function(){ | ... | @@ -17,12 +17,11 @@ $(document).ready(function(){ |
17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> | 17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> |
18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> | 18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> |
19 | </li>--> | 19 | </li>--> |
20 | <li matchUrl="/admin/userManage/userList.php"> | 20 | <li matchUrl="/admin/customerService/csList.php"> |
21 | <a href="/admin/userManage/userList.php">고객센터</a> | 21 | <a href="/admin/customerService/csList.php">고객센터</a> |
22 | </li> | 22 | </li> |
23 | 23 | ||
24 | 24 | ||
25 | |||
26 | </ul> | 25 | </ul> |
27 | 26 | ||
28 | 27 | ... | ... |
... | @@ -8,12 +8,12 @@ $(document).ready(function(){ | ... | @@ -8,12 +8,12 @@ $(document).ready(function(){ |
8 | <!--<ul class="selected" >--> | 8 | <!--<ul class="selected" >--> |
9 | 9 | ||
10 | <ul class="sidemenu"> | 10 | <ul class="sidemenu"> |
11 | <a href="/admin/pushManage/pushView.php"> | 11 | <a href="/admin/productionSpecManage/psList.php"> |
12 | <h1>사양서관리</h1> | 12 | <h1>사양서관리</h1> |
13 | </a> | 13 | </a> |
14 | 14 | ||
15 | <li matchUrl="/admin/pushManage/pushView.php"> | 15 | <li matchUrl="/admin/productionSpecManage/psList.php"> |
16 | <a href="/admin/pushManage/pushView.php">사양서관리</a> | 16 | <a href="/admin/productionSpecManage/psList.php">사양서관리</a> |
17 | </li> | 17 | </li> |
18 | 18 | ||
19 | </ul> | 19 | </ul> | ... | ... |
... | @@ -16,8 +16,8 @@ $(document).ready(function(){ | ... | @@ -16,8 +16,8 @@ $(document).ready(function(){ |
16 | <a href="/admin/pushManage/pushView.php">푸시관리</a> | 16 | <a href="/admin/pushManage/pushView.php">푸시관리</a> |
17 | </li> | 17 | </li> |
18 | 18 | ||
19 | <li matchUrl="/admin/pushManage/pushView.php"> | 19 | <li matchUrl="/admin/pushManage/agreementView.php"> |
20 | <a href="/admin/pushManage/pushView.php">약관 관리</a> | 20 | <a href="/admin/pushManage/agreementView.php">약관 관리</a> |
21 | </li> | 21 | </li> |
22 | 22 | ||
23 | </ul> | 23 | </ul> | ... | ... |
... | @@ -8,7 +8,7 @@ $(document).ready(function(){ | ... | @@ -8,7 +8,7 @@ $(document).ready(function(){ |
8 | <!--<ul class="selected" >--> | 8 | <!--<ul class="selected" >--> |
9 | 9 | ||
10 | <ul class="sidemenu"> | 10 | <ul class="sidemenu"> |
11 | <a href="/admin/userManage/userList.php"> | 11 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=WB"> |
12 | <h1>제품 관리</h1> | 12 | <h1>제품 관리</h1> |
13 | </a> | 13 | </a> |
14 | 14 | ||
... | @@ -17,32 +17,32 @@ $(document).ready(function(){ | ... | @@ -17,32 +17,32 @@ $(document).ready(function(){ |
17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> | 17 | <!--<li matchUrl="/admin/userManage/adminUserList.php"> |
18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> | 18 | <a href="/admin/userManage/adminUserList.php">관리자 리스트</a> |
19 | </li>--> | 19 | </li>--> |
20 | <li matchUrl="/admin/userManage/userList.php"> | 20 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
21 | <a href="/admin/userManage/userList.php">윙바디</a> | 21 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=WB">윙바디</a> |
22 | </li> | 22 | </li> |
23 | 23 | ||
24 | <li matchUrl="/admin/userManage/userManagerList.php"> | 24 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
25 | <a href="/admin/userManage/userManagerList.php">가변축</a> | 25 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=AX">가변축</a> |
26 | </li> | 26 | </li> |
27 | 27 | ||
28 | <li matchUrl="/admin/userManage/userManagerList.php"> | 28 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
29 | <a href="/admin/userManage/userManagerList.php">내장탑차</a> | 29 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=BI">내장탑차</a> |
30 | </li> | 30 | </li> |
31 | 31 | ||
32 | <li matchUrl="/admin/userManage/userManagerList.php"> | 32 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
33 | <a href="/admin/userManage/userManagerList.php">냉동탑차</a> | 33 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=FR">냉동탑차</a> |
34 | </li> | 34 | </li> |
35 | 35 | ||
36 | <li matchUrl="/admin/userManage/userManagerList.php"> | 36 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
37 | <a href="/admin/userManage/userManagerList.php">냉동컨테이너</a> | 37 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=FC">냉동컨테이너</a> |
38 | </li> | 38 | </li> |
39 | 39 | ||
40 | <li matchUrl="/admin/userManage/userManagerList.php"> | 40 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
41 | <a href="/admin/userManage/userManagerList.php">파워게이트</a> | 41 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=PG">파워게이트</a> |
42 | </li> | 42 | </li> |
43 | 43 | ||
44 | <li matchUrl="/admin/userManage/userManagerList.php"> | 44 | <li matchUrl="/admin/vehicleManage/vehicleList.php"> |
45 | <a href="/admin/userManage/userManagerList.php">특수차량</a> | 45 | <a href="/admin/vehicleManage/vehicleList.php?vehicleType=SP">특수차량</a> |
46 | </li> | 46 | </li> |
47 | 47 | ||
48 | </ul> | 48 | </ul> | ... | ... |
admin/productionSpecManage/psList.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftProductionSpecManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, "") ; | ||
6 | //$list = $obj->getListOfRoomForPayment(); | ||
7 | |||
8 | $vnum = $obj->virtualNum ; | ||
9 | ?> | ||
10 | <script> | ||
11 | |||
12 | $(document).ready(function(){ | ||
13 | |||
14 | //=====프레입웤 변수들==================================================================================// | ||
15 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
16 | var FORM_NAME = "nf" ; // 폼이름 | ||
17 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
18 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
19 | var FORM_ACTION = document.URL ; | ||
20 | |||
21 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
22 | //=====================================================================================================// | ||
23 | |||
24 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
25 | |||
26 | var dates = $('.jRsvDate').datepicker({ | ||
27 | showMonthAfterYear:true, | ||
28 | inline: true, | ||
29 | changeMonth: true, | ||
30 | changeYear: true, | ||
31 | dateFormat : 'yy-mm-dd', | ||
32 | dayNamesMin:['일', '월', '화', '수', '목', '금', ' 토'], | ||
33 | monthNames:['1월','2월','3월','4월','5월','6월','7 월','8월','9월','10월','11월','12월'], | ||
34 | monthNamesShort:['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'], | ||
35 | showButtonPanel: true, currentText: '오늘 ' , closeText: '닫기', | ||
36 | onSelect: function(selectedDate) { | ||
37 | } | ||
38 | }); | ||
39 | // 페이징 | ||
40 | $(".jPage").click2(function(){ | ||
41 | jForm.ci() ; | ||
42 | jForm.mi("page",$(this).attr("page")) ; | ||
43 | jForm.submit() ; | ||
44 | }) ; | ||
45 | |||
46 | |||
47 | $(".jAutoSearch").change(function(){ | ||
48 | jForm.ci() ; | ||
49 | jForm.submit() ; | ||
50 | }); | ||
51 | |||
52 | |||
53 | $(".jSearch").click2(function(){ | ||
54 | jForm.ci() ; | ||
55 | jForm.submit() ; | ||
56 | }); | ||
57 | |||
58 | $(".jView").click2(function(){ | ||
59 | var no = $(this).attr("no"); | ||
60 | location.href = "/admin/productionSpecManage/psView.php?no=" + no + "&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
61 | }); | ||
62 | |||
63 | |||
64 | $(".jAdd").click2(function(){ | ||
65 | location.href = "/admin/rentManage/buildingView.php?rurl=" + jQuery.rich.bin2hex(document.URL); | ||
66 | }); | ||
67 | |||
68 | |||
69 | $(".jDel").click2(function(){ | ||
70 | |||
71 | var no = $(this).attr("no"); | ||
72 | var noArr = new Array(no); | ||
73 | |||
74 | if(confirm("정말 삭제하시겠습니까?")) | ||
75 | { | ||
76 | deleteAction(noArr); | ||
77 | } | ||
78 | }) ; | ||
79 | |||
80 | $(".jExcel").click2(function(){ | ||
81 | var b=$("#search_building").val(); | ||
82 | var r=$("#search_room").val(); | ||
83 | var rf=$("#rent_date_former").val(); | ||
84 | var rl=$("#rent_date_latter").val(); | ||
85 | var bf=$("#bill_date_former").val(); | ||
86 | var bl=$("#bill_date_latter").val(); | ||
87 | var lf=$("#leaving_due_date_former").val(); | ||
88 | var ll=$("#leaving_due_date_latter").val(); | ||
89 | location.href = "/admin/rentManage/excelDownBillList.php?search_building="+b+"&search_room="+r+"&rent_date_former="+rf+"&rent_date_latter="+rl+"&bill_date_former="+bf+"&bill_date_latter="+bl+"&leaving_due_date_former="+lf+"&leaving_due_date_latter"+ll; | ||
90 | }); | ||
91 | |||
92 | |||
93 | // 단체 삭제 | ||
94 | $(".jDelMulti").click2(function(){ | ||
95 | |||
96 | |||
97 | var noArr = new Array(); | ||
98 | var noCount = $(".jNo:checked").length; | ||
99 | |||
100 | if(noCount == 0) | ||
101 | { | ||
102 | alert("삭제할 대상을 하나 이상 선택해주세요."); | ||
103 | return false; | ||
104 | } | ||
105 | |||
106 | |||
107 | if(confirm("정말 삭제하시겠습니까?")) | ||
108 | { | ||
109 | for(var i = 0; i < noCount; i++ ) | ||
110 | { | ||
111 | noArr[i] = $(".jNo:checked:eq(" + i + ")").val(); | ||
112 | } | ||
113 | |||
114 | deleteAction(noArr); | ||
115 | } | ||
116 | |||
117 | }); | ||
118 | |||
119 | |||
120 | $("#jCheckAll").change(function(){ | ||
121 | if($(this).is(":checked")) | ||
122 | $(".jNo").prop("checked", true); | ||
123 | else | ||
124 | $(".jNo").prop("checked", false); | ||
125 | }); | ||
126 | |||
127 | }) ; | ||
128 | |||
129 | |||
130 | |||
131 | |||
132 | |||
133 | function deleteAction(noArr) | ||
134 | { | ||
135 | $.ajax({ | ||
136 | url : "/action_front.php?cmd=AdminRent.delBuilding", | ||
137 | async : false, | ||
138 | cache : false, | ||
139 | dataType : "json", | ||
140 | data : { | ||
141 | "no" : noArr | ||
142 | }, | ||
143 | success : function(data){ | ||
144 | location.reload(); | ||
145 | } | ||
146 | }); | ||
147 | } | ||
148 | |||
149 | |||
150 | |||
151 | </script> | ||
152 | |||
153 | |||
154 | <div id="Contents" class="notice"> | ||
155 | |||
156 | <h1>사양서 관리</h1> | ||
157 | |||
158 | <div class="data"> | ||
159 | |||
160 | <fieldset class="search" style="margin-top:30px;"> | ||
161 | |||
162 | <div class="jSearchArea" > | ||
163 | <label> | ||
164 | <span>조회 조건</span> | ||
165 | |||
166 | <select value="asda" style="margin-right:20px;"> | ||
167 | <option>asdasd</option> | ||
168 | </select> | ||
169 | |||
170 | </label> | ||
171 | <label> | ||
172 | <input type="text" id="search_room" name="search_room" class="wm" value="<?=$_REQUEST['search_room']?>" /> | ||
173 | </label> | ||
174 | |||
175 | |||
176 | <style> | ||
177 | .dateRangeWrap { background-color:white; display:inline-block; border: 1px solid #ddd; padding:2px; margin:3px 0 3px; } | ||
178 | .dateRangeWrap > .dateRange, .dateRangeWrap > .dateRangeSeparator { display:inline-block; } | ||
179 | </style> | ||
180 | |||
181 | <label> | ||
182 | <span>기간 설정</span> | ||
183 | |||
184 | <input type="text" value="<?=$_REQUEST['rent_date_former']?>" id="rent_date_former" name="rent_date_former" class="jRsvDate" /> | ||
185 | ~ | ||
186 | <input type="text" value="<?=$_REQUEST['rent_date_latter']?>" id="rent_date_latter" name="rent_date_latter" class="jRsvDate" /> | ||
187 | |||
188 | </label> | ||
189 | |||
190 | <input type="button" class="button smallrounded blue jSearch btnright_y" style="margin-left:30px;" value="검색" /> | ||
191 | </div> | ||
192 | |||
193 | </fieldset> | ||
194 | <div class="btngroupright"> | ||
195 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> | ||
196 | </div> | ||
197 | <table class="datacList"> | ||
198 | <thead> | ||
199 | <tr> | ||
200 | <th class="no" width="5%">No</th> | ||
201 | <th width="5%"><input type="checkbox" id="jCheckAll"></th> | ||
202 | <th width="15%">작성 날짜</th> | ||
203 | <th width="20%">상호명</th> | ||
204 | <th width="20%">제품명</th> | ||
205 | <th width="10%">담당자</th> | ||
206 | <th width="10%">-</th> | ||
207 | </tr> | ||
208 | </thead> | ||
209 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
210 | <? for($i=0; $i<sizeof($list); $i++){ ?> | ||
211 | |||
212 | |||
213 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | ||
214 | <td class="no center"> | ||
215 | <?=$vnum--?> | ||
216 | </td> | ||
217 | <td class="center"> | ||
218 | <input type="checkbox" class="jNo" value="<?=$list[$i]["no"] ?>" > | ||
219 | </td> | ||
220 | <!--//건물이름--> | ||
221 | <td class="center"> | ||
222 | <?=$list[$i]["Bname"]?> | ||
223 | </td> | ||
224 | |||
225 | <!--//호실 --> | ||
226 | <td class="center"> | ||
227 | <?=$list[$i]["Rname"]?> | ||
228 | </td> | ||
229 | <!--//지난달 월세 --> | ||
230 | |||
231 | <td class="center"> | ||
232 | <? | ||
233 | if($list[$i]["rent_paid"]==NULL) echo ""; | ||
234 | else if($list[$i]["rent_paid"]==0) echo "연체"; | ||
235 | else if($list[$i]["rent_paid"]==1) echo "납입"; | ||
236 | else echo "청구중"; | ||
237 | |||
238 | ?> | ||
239 | </td> | ||
240 | <!--//월 납입일 --> | ||
241 | |||
242 | <td class="center"> | ||
243 | <?=$list[$i]["monthly_rent_date"]?> | ||
244 | </td> | ||
245 | |||
246 | <!--//지난달 공과금 --> | ||
247 | <td class="center"> | ||
248 | <? | ||
249 | if($list[$i]["bill_paid"]==NULL) echo ""; | ||
250 | else if($list[$i]["bill_paid"]==0) echo "연체"; | ||
251 | else if($list[$i]["bill_paid"]==1) echo "납입"; | ||
252 | else echo "청구중"; | ||
253 | |||
254 | ?> | ||
255 | </td> | ||
256 | <!--//공과금 납입일 --> | ||
257 | |||
258 | <td class="center"> | ||
259 | <?=$list[$i]["billing_date"]?> | ||
260 | </td> | ||
261 | |||
262 | <!--//퇴실예정일 --> | ||
263 | <td class="center"> | ||
264 | <?=$list[$i]["leaving_due_date"]?> | ||
265 | </td> | ||
266 | <td class="center"> | ||
267 | <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> | ||
268 | </td> | ||
269 | |||
270 | </tr> | ||
271 | <? } ?> | ||
272 | <?if(sizeof($list) == 0){?> | ||
273 | <tr class="last"> | ||
274 | <td class="no center" colspan="11">No Data</td> | ||
275 | </tr> | ||
276 | <?}?> | ||
277 | </tbody> | ||
278 | </table> | ||
279 | |||
280 | <!-- Pagination --> | ||
281 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?> | ||
282 | <!--//Pagination --> | ||
283 | |||
284 | </div> | ||
285 | |||
286 | |||
287 | </div> | ||
288 | |||
289 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/productionSpecManage/psView.php
0 → 100644
This diff is collapsed.
Click to expand it.
admin/pushManage/agreementView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftPushManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminPush($_REQUEST, "") ; | ||
6 | |||
7 | //$list = $obj->getListOfAdminPush() ; | ||
8 | $vnum = $obj->virtualNum ; | ||
9 | ?> | ||
10 | <script> | ||
11 | |||
12 | $(document).ready(function(){ | ||
13 | |||
14 | //=====프레입웤 변수들==================================================================================// | ||
15 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
16 | var FORM_NAME = "nf" ; // 폼이름 | ||
17 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
18 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
19 | var FORM_ACTION = document.URL ; | ||
20 | |||
21 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
22 | //=====================================================================================================// | ||
23 | |||
24 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
25 | |||
26 | // 페이징 | ||
27 | $(".jPage").click2(function(){ | ||
28 | jForm.ci() ; | ||
29 | jForm.mi("page",$(this).attr("page")) ; | ||
30 | jForm.submit() ; | ||
31 | }) ; | ||
32 | |||
33 | |||
34 | $(".jAutoSearch").change(function(){ | ||
35 | jForm.ci() ; | ||
36 | jForm.submit() ; | ||
37 | }); | ||
38 | |||
39 | |||
40 | $(".jSearch").click2(function(){ | ||
41 | jForm.ci() ; | ||
42 | jForm.submit() ; | ||
43 | }); | ||
44 | |||
45 | $(".jSearchGroup").click2(function(){ | ||
46 | |||
47 | var title = "그룹 검색"; | ||
48 | |||
49 | $('#jDialogArea').dialog({ | ||
50 | modal : true, | ||
51 | title : title, | ||
52 | open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }, | ||
53 | width : 400, | ||
54 | height : 500, | ||
55 | resizable : false, | ||
56 | buttons: [ | ||
57 | { | ||
58 | text: "확인", | ||
59 | click: function() { | ||
60 | var group_no = $(".jTargetNo:checked").val(); | ||
61 | var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data"); | ||
62 | |||
63 | if(group_no == undefined) | ||
64 | { | ||
65 | alert("대상을 선택해주세요."); | ||
66 | return false; | ||
67 | } | ||
68 | else | ||
69 | { | ||
70 | $("#group_no").val(group_no); | ||
71 | $("#group_name").val(group_name); | ||
72 | $( this ).dialog( "close" ); | ||
73 | |||
74 | $("#jTargetSearchText").val(""); | ||
75 | $("#jSearchResultArea").empty(); | ||
76 | } | ||
77 | } | ||
78 | }, | ||
79 | { | ||
80 | text: "닫기", | ||
81 | click: function() { | ||
82 | $("#jTargetSearchText").val(""); | ||
83 | $("#jSearchResultArea").empty(); | ||
84 | $( this ).dialog( "close" ); | ||
85 | } | ||
86 | } | ||
87 | ], | ||
88 | closeOnEscape: false | ||
89 | }); | ||
90 | }); | ||
91 | |||
92 | $(".jSearchPrivate").click2(function(){ | ||
93 | |||
94 | var title = "회원 검색"; | ||
95 | |||
96 | $('#jDialogAreaP').dialog({ | ||
97 | modal : true, | ||
98 | title : title, | ||
99 | open : function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }, | ||
100 | width : 400, | ||
101 | height : 500, | ||
102 | resizable : false, | ||
103 | buttons: [ | ||
104 | { | ||
105 | text: "확인", | ||
106 | click: function() { | ||
107 | var group_no = $(".jTargetNo:checked").val(); | ||
108 | var group_name = $(".jTargetNo:checked").parents("tr").find(".jTargetName").attr("data"); | ||
109 | |||
110 | if(group_no == undefined) | ||
111 | { | ||
112 | alert("대상을 선택해주세요."); | ||
113 | return false; | ||
114 | } | ||
115 | else | ||
116 | { | ||
117 | $("#group_no").val(group_no); | ||
118 | $("#group_name").val(group_name); | ||
119 | $( this ).dialog( "close" ); | ||
120 | |||
121 | $("#jTargetSearchText").val(""); | ||
122 | $("#jSearchResultArea").empty(); | ||
123 | } | ||
124 | } | ||
125 | }, | ||
126 | { | ||
127 | text: "닫기", | ||
128 | click: function() { | ||
129 | $("#jTargetSearchText").val(""); | ||
130 | $("#jSearchResultArea").empty(); | ||
131 | $( this ).dialog( "close" ); | ||
132 | } | ||
133 | } | ||
134 | ], | ||
135 | closeOnEscape: false | ||
136 | }); | ||
137 | }); | ||
138 | |||
139 | |||
140 | $(".jTargetSearchBtn").click2(function(){ | ||
141 | var search_text = $("#jTargetSearchText").val(); | ||
142 | var ajax_url = "/admin/entity/entityGroupSearch.php"; | ||
143 | |||
144 | if(search_text == "") | ||
145 | { | ||
146 | alert("검색어를 입력해주세요."); | ||
147 | return false; | ||
148 | } | ||
149 | |||
150 | $.ajax({ | ||
151 | url : ajax_url, | ||
152 | data : { | ||
153 | "search_text" : search_text | ||
154 | }, | ||
155 | dataType:"html", | ||
156 | success : function(data) | ||
157 | { | ||
158 | $("#jSearchResultArea").html(data); | ||
159 | setSearchAreaEventHandler(); | ||
160 | } | ||
161 | }); | ||
162 | |||
163 | }); | ||
164 | |||
165 | $(".jTargetSearchPBtn").click2(function(){ | ||
166 | var search_text = $("#jTargetSearchTextP").val(); | ||
167 | var ajax_url = "/admin/entity/entityPrivateSearch.php"; | ||
168 | |||
169 | if(search_text == "") | ||
170 | { | ||
171 | alert("검색어를 입력해주세요."); | ||
172 | return false; | ||
173 | } | ||
174 | |||
175 | $.ajax({ | ||
176 | url : ajax_url, | ||
177 | data : { | ||
178 | "search_text" : search_text | ||
179 | }, | ||
180 | dataType:"html", | ||
181 | success : function(data) | ||
182 | { | ||
183 | $("#jSearchResultAreaP").html(data); | ||
184 | setSearchAreaEventHandler(); | ||
185 | } | ||
186 | }); | ||
187 | |||
188 | }); | ||
189 | |||
190 | |||
191 | $("#push_target_type").change(function(){ | ||
192 | resetTargetData(); | ||
193 | if($(this).val() == "1") | ||
194 | { | ||
195 | $("#jGroupArea").hide(); | ||
196 | $("#jPrivateArea").hide(); | ||
197 | } | ||
198 | else if($(this).val() == "2") | ||
199 | { | ||
200 | $("#jGroupArea").show(); | ||
201 | $("#jPrivateArea").hide(); | ||
202 | }else{ | ||
203 | $("#jGroupArea").hide(); | ||
204 | $("#jPrivateArea").show(); | ||
205 | } | ||
206 | }); | ||
207 | |||
208 | |||
209 | $(".jSave").click2(function(){ | ||
210 | var push_msg = $("#push_msg").val(); | ||
211 | var push_target_type = $("#push_target_type").val(); | ||
212 | var group_no = $("#group_no").val(); | ||
213 | |||
214 | if(push_target_type == "2" && group_no == "") | ||
215 | { | ||
216 | alert("그룹을 선택해주세요."); | ||
217 | return false; | ||
218 | } | ||
219 | |||
220 | if(push_msg == "") | ||
221 | { | ||
222 | alert("푸시 내용을 입력해주세요."); | ||
223 | return false; | ||
224 | } | ||
225 | |||
226 | $.ajax({ | ||
227 | url : "/action_front.php?cmd=AdminPush.sendAdminPush", | ||
228 | async : true, | ||
229 | cache : false, | ||
230 | dataType : "json", | ||
231 | data : { | ||
232 | "push_msg" : push_msg, | ||
233 | "push_target_type" : push_target_type, | ||
234 | "group_no" : group_no | ||
235 | }, success : function(data) { | ||
236 | alert(data.returnMessage) ; | ||
237 | if(data.returnCode == 1) { | ||
238 | location.reload(); | ||
239 | } | ||
240 | } | ||
241 | }); | ||
242 | |||
243 | |||
244 | |||
245 | }); | ||
246 | |||
247 | }) ; | ||
248 | |||
249 | function setSearchAreaEventHandler() | ||
250 | { | ||
251 | $(".jTargetNo").unbind("change"); | ||
252 | $(".jTargetNo").change(function(){ | ||
253 | $(".jTargetNo").prop("checked", false); | ||
254 | $(this).prop("checked", true); | ||
255 | }); | ||
256 | } | ||
257 | |||
258 | function resetTargetData() | ||
259 | { | ||
260 | $("#group_no").val(""); | ||
261 | $("#group_name").val(""); | ||
262 | } | ||
263 | |||
264 | |||
265 | |||
266 | </script> | ||
267 | |||
268 | |||
269 | <div id="Contents" class="notice"> | ||
270 | |||
271 | <h1>약관 관리</h1> | ||
272 | <h2>푸시관리 > <span>약관관리</span></h2> | ||
273 | <div class="data"> | ||
274 | |||
275 | <table class="datav" style="width:100%;"> | ||
276 | <colgroup> | ||
277 | <col width="20%" /> | ||
278 | <col width="80%" /> | ||
279 | </colgroup> | ||
280 | <tr> | ||
281 | <th style="height:25px;">제목</th> | ||
282 | <td class="l"> | ||
283 | <input type="text" style="width:95%"/> | ||
284 | </td> | ||
285 | </tr> | ||
286 | <tr> | ||
287 | <th style="height:25px;">내용</th> | ||
288 | <td class="l"> | ||
289 | <textarea rows="25" style="width:95%;" id="push_msg"></textarea> | ||
290 | </td> | ||
291 | </tr> | ||
292 | </table> | ||
293 | |||
294 | <div class="btngroupcenter" style="width:100%;"> | ||
295 | <span class="button bigrounded blue jSave" >전송</span> | ||
296 | </div> | ||
297 | |||
298 | |||
299 | |||
300 | </div> | ||
301 | |||
302 | |||
303 | |||
304 | </div> | ||
305 | |||
306 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -4,7 +4,7 @@ | ... | @@ -4,7 +4,7 @@ |
4 | <? | 4 | <? |
5 | $obj = new AdminPush($_REQUEST, "") ; | 5 | $obj = new AdminPush($_REQUEST, "") ; |
6 | 6 | ||
7 | $list = $obj->getListOfAdminPush() ; | 7 | //$list = $obj->getListOfAdminPush() ; |
8 | $vnum = $obj->virtualNum ; | 8 | $vnum = $obj->virtualNum ; |
9 | ?> | 9 | ?> |
10 | <script> | 10 | <script> |
... | @@ -268,23 +268,20 @@ | ... | @@ -268,23 +268,20 @@ |
268 | 268 | ||
269 | <div id="Contents" class="notice"> | 269 | <div id="Contents" class="notice"> |
270 | 270 | ||
271 | <h1>푸시 전송</h1> | 271 | <h1>푸시 관리</h1> |
272 | 272 | <h2><span>푸시관리</span></h2> | |
273 | <div class="data"> | 273 | <div class="data"> |
274 | 274 | ||
275 | <h3>푸시 전송</h3> | 275 | <h3>푸시 전송</h3> |
276 | <table class="datav" style="width:50%;"> | 276 | <table class="datav" style="width:100%;"> |
277 | <colgroup> | 277 | <colgroup> |
278 | <col width="30%" /> | 278 | <col width="20%" /> |
279 | <col width="70%" /> | 279 | <col width="80%" /> |
280 | </colgroup> | 280 | </colgroup> |
281 | <tr> | 281 | <tr> |
282 | <th style="height:25px;">대상</th> | 282 | <th style="height:25px;">제목</th> |
283 | <td class="l"> | 283 | <td class="l"> |
284 | <select id="push_target_type"> | 284 | <input type="text" style="width:95%"/> |
285 | <option value="1">전체</option> | ||
286 | <option value="2">그룹</option> | ||
287 | </select> | ||
288 | </td> | 285 | </td> |
289 | </tr> | 286 | </tr> |
290 | 287 | ||
... | @@ -309,12 +306,12 @@ | ... | @@ -309,12 +306,12 @@ |
309 | <tr> | 306 | <tr> |
310 | <th style="height:25px;">내용</th> | 307 | <th style="height:25px;">내용</th> |
311 | <td class="l"> | 308 | <td class="l"> |
312 | <textarea rows="2" style="width:95%;" id="push_msg"></textarea> | 309 | <textarea rows="3" style="width:95%;" id="push_msg"></textarea> |
313 | </td> | 310 | </td> |
314 | </tr> | 311 | </tr> |
315 | </table> | 312 | </table> |
316 | 313 | ||
317 | <div class="btngroupcenter" style="width:50%;"> | 314 | <div class="btngroupcenter" style="width:100%;"> |
318 | <span class="button bigrounded blue jSave" >전송</span> | 315 | <span class="button bigrounded blue jSave" >전송</span> |
319 | </div> | 316 | </div> |
320 | 317 | ||
... | @@ -323,9 +320,7 @@ | ... | @@ -323,9 +320,7 @@ |
323 | <thead> | 320 | <thead> |
324 | <tr> | 321 | <tr> |
325 | <th class="no" width="5%">No</th> | 322 | <th class="no" width="5%">No</th> |
326 | <th width="10%">구분</th> | ||
327 | <th width="65%">메세지</th> | 323 | <th width="65%">메세지</th> |
328 | <th width="10%">전송대상</th> | ||
329 | <th width="10%">전송시간</th> | 324 | <th width="10%">전송시간</th> |
330 | </tr> | 325 | </tr> |
331 | </thead> | 326 | </thead> |
... | @@ -370,47 +365,6 @@ | ... | @@ -370,47 +365,6 @@ |
370 | 365 | ||
371 | </div> | 366 | </div> |
372 | 367 | ||
373 | <div id="jDialogArea" style="display:none;"> | ||
374 | <table class="datacList" style="width:100%;"> | ||
375 | <thead> | ||
376 | <tr> | ||
377 | <td class="no" colspan="2" style="text-align:center; height:35px;"> | ||
378 | <input type="text" id="jTargetSearchText" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다."> | ||
379 | <input type="button" class="button searchsmall white jTargetSearchBtn" value="검색" /> | ||
380 | </td> | ||
381 | </tr> | ||
382 | </thead> | ||
383 | <thead> | ||
384 | <tr> | ||
385 | <th class="no" colspan="2">검색결과</th> | ||
386 | </tr> | ||
387 | </thead> | ||
388 | <tbody id="jSearchResultArea"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
389 | |||
390 | </tbody> | ||
391 | </table> | ||
392 | </div> | ||
393 | |||
394 | <div id="jDialogAreaP" style="display:none;"> | ||
395 | <table class="datacList" style="width:100%;"> | ||
396 | <thead> | ||
397 | <tr> | ||
398 | <td class="no" colspan="2" style="text-align:center; height:35px;"> | ||
399 | <input type="text" id="jTargetSearchTextP" style="width:50%;" placeholder="검색어를 입력해야 결과가 노출 됩니다."> | ||
400 | <input type="button" class="button searchsmall white jTargetSearchPBtn" value="검색" /> | ||
401 | </td> | ||
402 | </tr> | ||
403 | </thead> | ||
404 | <thead> | ||
405 | <tr> | ||
406 | <th class="no" colspan="2">검색결과</th> | ||
407 | </tr> | ||
408 | </thead> | ||
409 | <tbody id="jSearchResultAreaP"><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
410 | |||
411 | </tbody> | ||
412 | </table> | ||
413 | </div> | ||
414 | 368 | ||
415 | </div> | 369 | </div> |
416 | 370 | ... | ... |
... | @@ -164,7 +164,7 @@ | ... | @@ -164,7 +164,7 @@ |
164 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> | 164 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> |
165 | </label> | 165 | </label> |
166 | 166 | ||
167 | <input type="button" class="button smallgrounded blue jSearch" value="검색" /> | 167 | <input type="button" class="button smallgrounded blue jSearch btnright_y" value="검색" /> |
168 | </div> | 168 | </div> |
169 | 169 | ||
170 | </fieldset> | 170 | </fieldset> | ... | ... |
... | @@ -156,7 +156,7 @@ | ... | @@ -156,7 +156,7 @@ |
156 | <h1>직원</h1> | 156 | <h1>직원</h1> |
157 | 157 | ||
158 | <div class="data"> | 158 | <div class="data"> |
159 | <fieldset class="search" style="margin-top:30px;"> | 159 | <fieldset class="search"> |
160 | 160 | ||
161 | <div class="jSearchArea" > | 161 | <div class="jSearchArea" > |
162 | 162 | ||
... | @@ -165,7 +165,7 @@ | ... | @@ -165,7 +165,7 @@ |
165 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> | 165 | <input type="text" id="search_text" name="search_text" class="wm" value="<?=$_REQUEST['search_text']?>" /> |
166 | </label> | 166 | </label> |
167 | 167 | ||
168 | <input type="button" class="button smallgrounded blue jSearch" value="검색" /> | 168 | <input type="button" class="button smallgrounded blue jSearch btnright_y" value="검색" /> |
169 | </div> | 169 | </div> |
170 | 170 | ||
171 | </fieldset> | 171 | </fieldset> | ... | ... |
... | @@ -98,38 +98,40 @@ | ... | @@ -98,38 +98,40 @@ |
98 | <tr> | 98 | <tr> |
99 | <th style="height:25px;">아이디</th> | 99 | <th style="height:25px;">아이디</th> |
100 | <td > | 100 | <td > |
101 | <input type="text" /> | 101 | <input type="text" style="width:200px"/> |
102 | <span class="button bigrounded blue" style="color:white; width:70px"> 중복확인 </span> | ||
102 | </td> | 103 | </td> |
103 | </tr> | 104 | </tr> |
104 | <tr> | 105 | <tr> |
105 | <th style="height:25px;">비밀번호</th> | 106 | <th style="height:25px;">비밀번호</th> |
106 | <td > | 107 | <td > |
107 | <input type="text" /> | 108 | <input type="text" style="width:200px"/> |
108 | </td> | 109 | </td> |
109 | </tr> | 110 | </tr> |
110 | <tr> | 111 | <tr> |
111 | <th style="height:25px;">직원명</th> | 112 | <th style="height:25px;">직원명</th> |
112 | <td class="l"> | 113 | <td class="l"> |
113 | <input type="text" /> | 114 | <input type="text" style="width:200px" /> |
114 | </td> | 115 | </td> |
115 | </tr> | 116 | </tr> |
116 | <tr> | 117 | <tr> |
117 | <th style="height:25px;">닉네임</th> | 118 | <th style="height:25px;">닉네임</th> |
118 | <td class="l"> | 119 | <td class="l"> |
119 | <input type="text" /> | 120 | <input type="text" style="width:200px" /> |
121 | <span class="button bigrounded blue" style="color:white; width:70px"> 중복확인 </span> | ||
120 | </td> | 122 | </td> |
121 | </tr> | 123 | </tr> |
122 | <tr> | 124 | <tr> |
123 | <th style="height:25px;">전화번호</th> | 125 | <th style="height:25px;">전화번호</th> |
124 | <td class="l"> | 126 | <td class="l"> |
125 | <input type="text" /> | 127 | <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> - <input type="text" style="width:50px"/> |
126 | </td> | 128 | </td> |
127 | </tr> | 129 | </tr> |
128 | 130 | ||
129 | </table> | 131 | </table> |
130 | 132 | ||
131 | <div class="btngroupcenter"> | 133 | <div class="btngroupcenter"> |
132 | <span class="button bigrounded blue jCancel">목록으로 </span> | 134 | <span class="button bigrounded blue jCancel">등록</span> |
133 | <?if($loginInfo["admin_type"] == "1"){ ?> | 135 | <?if($loginInfo["admin_type"] == "1"){ ?> |
134 | <span class="button bigrounded blue jDelUser" >삭제</span> | 136 | <span class="button bigrounded blue jDelUser" >삭제</span> |
135 | <?} ?> | 137 | <?} ?> | ... | ... |
admin/vehicleManage/vehicleList.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftVehicleManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminUser($_REQUEST) ; | ||
6 | |||
7 | //$list = $obj->getListOfUser() ; | ||
8 | $vehicleType=$_REQUEST["vehicleType"]; | ||
9 | $vnum = $obj->virtualNum ; | ||
10 | ?> | ||
11 | <script> | ||
12 | |||
13 | $(document).ready(function(){ | ||
14 | |||
15 | //=====프레입웤 변수들==================================================================================// | ||
16 | var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
17 | var FORM_NAME = "nf" ; // 폼이름 | ||
18 | var FORM_METHOD = "GET" ; // 폼 메쏘드 | ||
19 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
20 | var FORM_ACTION = document.URL ; | ||
21 | |||
22 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
23 | //=====================================================================================================// | ||
24 | |||
25 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
26 | |||
27 | // 페이징 | ||
28 | $(".jPage").click2(function(){ | ||
29 | jForm.ci() ; | ||
30 | jForm.mi("page",$(this).attr("page")) ; | ||
31 | jForm.submit() ; | ||
32 | }) ; | ||
33 | |||
34 | |||
35 | $(".jAutoSearch").change(function(){ | ||
36 | jForm.ci() ; | ||
37 | jForm.submit() ; | ||
38 | }); | ||
39 | |||
40 | |||
41 | $(".jSearch").click2(function(){ | ||
42 | jForm.ci() ; | ||
43 | jForm.submit() ; | ||
44 | }); | ||
45 | |||
46 | $(".jViewVehicle").click2(function(){ | ||
47 | var no = $(this).attr("no"); | ||
48 | var type='<?=$vehicleType?>'; | ||
49 | location.href = "/admin/vehicleManage/vehicleView.php?no=" + no + "&vehicleType=" + type +"&rurl=" + jQuery.rich.bin2hex(document.URL); | ||
50 | }); | ||
51 | |||
52 | |||
53 | $(".jAddUserExcel").click2(function(){ | ||
54 | var s=$("#search_text").val(); | ||
55 | location.href = "/admin/excel/userListExcel.php?search_text="+s; | ||
56 | }); | ||
57 | |||
58 | |||
59 | |||
60 | |||
61 | // 회원 탈퇴 | ||
62 | $(".jDelUser").click2(function(){ | ||
63 | |||
64 | var no = $(this).attr("no"); | ||
65 | |||
66 | var noArr = new Array(no); | ||
67 | |||
68 | if(confirm("정말 삭제하시겠습니까?")) | ||
69 | { | ||
70 | deleteUser(noArr); | ||
71 | } | ||
72 | }) ; | ||
73 | |||
74 | |||
75 | // 단체 삭제 | ||
76 | $(".jDelUserMulti").click2(function(){ | ||
77 | |||
78 | |||
79 | var noArr = new Array(); | ||
80 | var noCount = $(".jUserNo:checked").length; | ||
81 | |||
82 | if(noCount == 0) | ||
83 | { | ||
84 | alert("삭제할 관리자를 하나 이상 선택해주세요."); | ||
85 | return false; | ||
86 | } | ||
87 | |||
88 | |||
89 | if(confirm("정말 삭제하시겠습니까?")) | ||
90 | { | ||
91 | for(var i = 0; i < noCount; i++ ) | ||
92 | { | ||
93 | noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); | ||
94 | } | ||
95 | |||
96 | deleteUser(noArr); | ||
97 | } | ||
98 | |||
99 | }); | ||
100 | |||
101 | $(".jBtnMS").click2(function(){ | ||
102 | var no = $(this).attr("no"); | ||
103 | var member_type = $(this).attr("member_type"); | ||
104 | |||
105 | $.ajax({ | ||
106 | url : "/action_front.php?cmd=AdminUser.processRequestMemberShipUser", | ||
107 | async : false, | ||
108 | cache : false, | ||
109 | dataType : "json", | ||
110 | data : { | ||
111 | "no" : no | ||
112 | , "member_type" : member_type | ||
113 | }, | ||
114 | success : function(data){ | ||
115 | alert(data.returnMessage); | ||
116 | location.reload(); | ||
117 | } | ||
118 | }); | ||
119 | }); | ||
120 | |||
121 | |||
122 | $("#jCheckAll").change(function(){ | ||
123 | if($(this).is(":checked")) | ||
124 | $(".jUserNo").prop("checked", true); | ||
125 | else | ||
126 | $(".jUserNo").prop("checked", false); | ||
127 | }); | ||
128 | |||
129 | }) ; | ||
130 | |||
131 | |||
132 | |||
133 | function deleteUser(noArr) | ||
134 | { | ||
135 | $.ajax({ | ||
136 | url : "/action_front.php?cmd=AdminUser.deleteUser", | ||
137 | async : false, | ||
138 | cache : false, | ||
139 | dataType : "json", | ||
140 | data : { | ||
141 | "no" : noArr | ||
142 | }, | ||
143 | success : function(data){ | ||
144 | alert("삭제되었습니다"); | ||
145 | location.reload(); | ||
146 | } | ||
147 | }); | ||
148 | } | ||
149 | |||
150 | |||
151 | |||
152 | </script> | ||
153 | |||
154 | |||
155 | <div id="Contents" class="notice"> | ||
156 | |||
157 | <h1> | ||
158 | <? | ||
159 | switch($vehicleType){ | ||
160 | case "WB": | ||
161 | echo "윙바디"; | ||
162 | break; | ||
163 | case "BI": | ||
164 | echo "내장탑차"; | ||
165 | break; | ||
166 | case "AX": | ||
167 | echo "가변축"; | ||
168 | break; | ||
169 | case "FR": | ||
170 | echo "냉동탑차"; | ||
171 | break; | ||
172 | case "FC": | ||
173 | echo "냉동컨테이너"; | ||
174 | break; | ||
175 | case "AX": | ||
176 | echo "가변축"; | ||
177 | break; | ||
178 | case "SP": | ||
179 | echo "특수차량"; | ||
180 | break; | ||
181 | case "PG": | ||
182 | echo "파워게이트"; | ||
183 | break; | ||
184 | |||
185 | } | ||
186 | ?> | ||
187 | </h1> | ||
188 | <h2> | ||
189 | 제품 관리 > | ||
190 | <span> | ||
191 | <? | ||
192 | switch($vehicleType){ | ||
193 | case "WB": | ||
194 | echo "윙바디"; | ||
195 | break; | ||
196 | case "BI": | ||
197 | echo "내장탑차"; | ||
198 | break; | ||
199 | case "AX": | ||
200 | echo "가변축"; | ||
201 | break; | ||
202 | case "FR": | ||
203 | echo "냉동탑차"; | ||
204 | break; | ||
205 | case "FC": | ||
206 | echo "냉동컨테이너"; | ||
207 | break; | ||
208 | case "AX": | ||
209 | echo "가변축"; | ||
210 | break; | ||
211 | case "SP": | ||
212 | echo "특수차량"; | ||
213 | break; | ||
214 | case "PG": | ||
215 | echo "파워게이트"; | ||
216 | break; | ||
217 | |||
218 | } | ||
219 | ?> | ||
220 | </span> | ||
221 | </h2> | ||
222 | <div class="data"> | ||
223 | |||
224 | <div class="btngroupright"> | ||
225 | <input type="button" class="button smallrounded blue jViewVehicle" no="" value="등록" /> | ||
226 | <input type="button" class="button smallrounded blue jDelMulti" value="삭제" /> | ||
227 | </div> | ||
228 | |||
229 | <table class="datacList"> | ||
230 | <thead> | ||
231 | <tr> | ||
232 | <th class="no" width="5%">No</th> | ||
233 | <th width="2%"><input type="checkbox" id="jCheckAll"></th> | ||
234 | <th width="50%">제품명</th> | ||
235 | <th width="10%">-</th> | ||
236 | |||
237 | </tr> | ||
238 | </thead> | ||
239 | <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> | ||
240 | <? for($i=0; $i<sizeof($list); $i++){ ?> | ||
241 | <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> | ||
242 | <td class="no center"> | ||
243 | <?=$vnum--?> | ||
244 | </td> | ||
245 | <td class="center"> | ||
246 | <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > | ||
247 | </td> | ||
248 | <td class="center"> | ||
249 | |||
250 | </td> | ||
251 | <td class="center"> | ||
252 | <input type="button" class="button searchsmall white jViewVehicle" value="상세보기" no="<?=$list[$i]["no"]?>" /> | ||
253 | </td> | ||
254 | |||
255 | </tr> | ||
256 | <? } ?> | ||
257 | <?if(sizeof($list) == 0){?> | ||
258 | <tr class="last"> | ||
259 | <td class="no center" colspan="11">No Data</td> | ||
260 | </tr> | ||
261 | <?}?> | ||
262 | </tbody> | ||
263 | </table> | ||
264 | |||
265 | <!-- Pagination --> | ||
266 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?> | ||
267 | <!--//Pagination --> | ||
268 | |||
269 | </div> | ||
270 | |||
271 | <div id="jDialogArea" style="display:none;"> | ||
272 | <table class="datav" style="width:100%;"> | ||
273 | <tr> | ||
274 | <th style="height:25px; width:70px;">포인트</th> | ||
275 | <td> | ||
276 | <input type="input" id="jAddHeartPoint" value="" style="width:100%;"/> | ||
277 | </td> | ||
278 | </tr> | ||
279 | </table> | ||
280 | </div> | ||
281 | |||
282 | </div> | ||
283 | |||
284 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/footer.php" ?> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
admin/vehicleManage/vehicleView.php
0 → 100644
1 | <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> | ||
2 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?> | ||
3 | <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftVehicleManage.php" ?> | ||
4 | <? | ||
5 | $obj = new AdminOperate($_REQUEST, ""); | ||
6 | //$info = $obj->getInfoOfShop(); | ||
7 | |||
8 | //$cateCodeList = $obj->getShopCategoryCodeList(); | ||
9 | //$shopImgList = $obj->getShopImgList($info["no"]); | ||
10 | |||
11 | $admin_type = $obj->admUser["admin_type"]; | ||
12 | |||
13 | |||
14 | $rurl = pack("H*", $_REQUEST["rurl"]) ; | ||
15 | ?> | ||
16 | <script src="/admin/inc/fileUpload/fileUploadJS.js"></script> | ||
17 | <script type="text/javascript"> | ||
18 | var _rurl = "<?=$rurl?>"; | ||
19 | var _no = "<?=$_REQUEST[no]?>"; | ||
20 | |||
21 | $(document).ready(function(){ | ||
22 | |||
23 | initFileUpload(101); | ||
24 | initFileUpload(102); | ||
25 | initFileUpload(103); | ||
26 | initFileUpload(104); | ||
27 | initFileUpload(105); | ||
28 | |||
29 | <?if($admin_type == 3) { ?> | ||
30 | setReadOnly(); | ||
31 | <?} ?> | ||
32 | //=====프레입웤 변수들==================================================================================// | ||
33 | var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름 | ||
34 | var FORM_NAME = "alf" ; // 폼이름 | ||
35 | var FORM_METHOD = "POST" ; // 폼 메쏘드 | ||
36 | var FORM_USE_FILE = false ; // 파일폼 사용 여부 | ||
37 | var FORM_ACTION = "/action_front.php" ; | ||
38 | |||
39 | |||
40 | var NEXT_CMD = "" ; // 다은 수행 할 cmd | ||
41 | //=====================================================================================================// | ||
42 | |||
43 | var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; | ||
44 | |||
45 | $(".jCancel").click2(function(){ | ||
46 | location.href = _rurl; | ||
47 | }); | ||
48 | |||
49 | |||
50 | $(".jSave").click2(function(){ | ||
51 | |||
52 | $("#jData").ajaxSubmit({ | ||
53 | url:"/action_front.php?cmd=AdminOperate.saveShop", | ||
54 | type : "post", | ||
55 | forceSync : true, | ||
56 | dataType : "json", | ||
57 | success : function(data){ | ||
58 | alert(data.returnMessage); | ||
59 | location.href = _rurl; | ||
60 | } | ||
61 | |||
62 | }); | ||
63 | }); | ||
64 | |||
65 | $("#jCategorCd").change(function(){ | ||
66 | setPromotion(); | ||
67 | }); | ||
68 | |||
69 | setPromotion(); | ||
70 | |||
71 | }) ; | ||
72 | |||
73 | |||
74 | function setPromotion() | ||
75 | { | ||
76 | if($("#jCategorCd").val() == "1") | ||
77 | { | ||
78 | $("#jPromotionSelect").val("1"); | ||
79 | $("#jPromotionSelect").prop("disabled", true); | ||
80 | $("#jPromotionHidden").prop("disabled", false); | ||
81 | } | ||
82 | else | ||
83 | { | ||
84 | $("#jPromotionSelect").prop("disabled", false); | ||
85 | $("#jPromotionHidden").prop("disabled", true); | ||
86 | } | ||
87 | } | ||
88 | |||
89 | function setReadOnly(){ | ||
90 | $("[name=name]").attr("readonly", true); | ||
91 | $("[name=tel]").attr("readonly", true); | ||
92 | $("[name=addr_old]").attr("readonly", true); | ||
93 | $("[name=addr_new]").attr("readonly", true); | ||
94 | $("[name=discount_rate]").attr("readonly", true); | ||
95 | $("[name=discount_desc]").attr("readonly", true); | ||
96 | } | ||
97 | </script> | ||
98 | |||
99 | <div id="Contents" class="notice"> | ||
100 | |||
101 | <h1>제품 관리 - 등록</h1> | ||
102 | |||
103 | <!-- location area --> | ||
104 | <h2> | ||
105 | 재품 관리 > <span><?=$_REQUEST["vehicleType"]?></span> | ||
106 | </h2> | ||
107 | <!-- location area --> | ||
108 | |||
109 | |||
110 | <div class="data" style="width:80%;"> | ||
111 | |||
112 | <form id="jData" method="post" enctype="multipart/form-data"> | ||
113 | <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> | ||
114 | <table class="datav" style="width:100%;"> | ||
115 | <colgroup> | ||
116 | <col width="10%" /> | ||
117 | <col width="90%" /> | ||
118 | </colgroup> | ||
119 | <tr> | ||
120 | <th style="height:25px;">제품명</th> | ||
121 | <td class="l"> | ||
122 | <input type="text" name="discount_rate" class="wl" style="width:90%;" value="" /> | ||
123 | |||
124 | </td> | ||
125 | </tr> | ||
126 | <tr> | ||
127 | <th style="height:25px;">제품소개</th> | ||
128 | <td class="l"> | ||
129 | <textarea name="special_contract" rows="7" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea> | ||
130 | </td> | ||
131 | </tr> | ||
132 | |||
133 | |||
134 | <tr> | ||
135 | <th style="height:25px;">이동 URL</th> | ||
136 | <td class="l"> | ||
137 | <input type="text" name="discount_rate" class="wl" style="width:90%;" value="<?=$info["discount_rate"] ?>" /> | ||
138 | </td> | ||
139 | </tr> | ||
140 | |||
141 | <tr> | ||
142 | <th style="height:25px;">이미지 1</th> | ||
143 | <td class="l"> | ||
144 | <? | ||
145 | $fileIndex = "101"; | ||
146 | $fileName = "img1"; | ||
147 | $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); | ||
148 | $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); | ||
149 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
150 | ?> | ||
151 | </td> | ||
152 | </tr> | ||
153 | <tr> | ||
154 | <th style="height:25px;">이미지 2</th> | ||
155 | <td class="l"> | ||
156 | <? | ||
157 | $fileIndex = "102"; | ||
158 | $fileName = "img2"; | ||
159 | $filePath = ($shopImgList[1]["file_vir_name"] == "" ? "" : $shopImgList[1]["file_vir_name"]); | ||
160 | $fileNumber = ($shopImgList[1]["no"] == "" ? "0" : $shopImgList[1]["no"]); | ||
161 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
162 | ?> | ||
163 | </td> | ||
164 | </tr> | ||
165 | <tr> | ||
166 | <th style="height:25px;">이미지 3</th> | ||
167 | <td class="l"> | ||
168 | <? | ||
169 | $fileIndex = "103"; | ||
170 | $fileName = "img3"; | ||
171 | $filePath = ($shopImgList[2]["file_vir_name"] == "" ? "" : $shopImgList[2]["file_vir_name"]); | ||
172 | $fileNumber = ($shopImgList[2]["no"] == "" ? "0" : $shopImgList[2]["no"]); | ||
173 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
174 | ?> | ||
175 | </td> | ||
176 | </tr> | ||
177 | <tr> | ||
178 | <th style="height:25px;">이미지 4</th> | ||
179 | <td class="l"> | ||
180 | <? | ||
181 | $fileIndex = "104"; | ||
182 | $fileName = "img4"; | ||
183 | $filePath = ($shopImgList[3]["file_vir_name"] == "" ? "" : $shopImgList[3]["file_vir_name"]); | ||
184 | $fileNumber = ($shopImgList[3]["no"] == "" ? "0" : $shopImgList[3]["no"]); | ||
185 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
186 | ?> | ||
187 | </td> | ||
188 | </tr> | ||
189 | <tr> | ||
190 | <th style="height:25px;">이미지 5</th> | ||
191 | <td class="l"> | ||
192 | <? | ||
193 | $fileIndex = "105"; | ||
194 | $fileName = "img5"; | ||
195 | $filePath = ($shopImgList[4]["file_vir_name"] == "" ? "" : $shopImgList[4]["file_vir_name"]); | ||
196 | $fileNumber = ($shopImgList[4]["no"] == "" ? "0" : $shopImgList[4]["no"]); | ||
197 | include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; | ||
198 | ?> | ||
199 | </td> | ||
200 | </tr> | ||
201 | </table> | ||
202 | </form> | ||
203 | |||
204 | <div class="btngroupcenter"> | ||
205 | <span class="button bigrounded blue jCancel">취소 </span> | ||
206 | <span class="button bigrounded blue jSave" >저장</span> | ||
207 | </div> | ||
208 | |||
209 | </div> | ||
210 | </div> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment