fbaee16f by sayhoChun

project finished

1 parent fd91b0e8
...@@ -13,23 +13,17 @@ ...@@ -13,23 +13,17 @@
13 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminEtc.php" ; ?> 13 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminEtc.php" ; ?>
14 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/php/AnyGo.php" ;?> 14 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/php/AnyGo.php" ;?>
15 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiStatic.php" ;?> 15 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/ApiStatic.php" ;?>
16 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminProductionSpec.php" ; ?>
16 <? 17 <?
17
18 $cmd = $_REQUEST[cmd] ; 18 $cmd = $_REQUEST[cmd] ;
19 19
20 // Ajax , ToO , ToS , ToPbyRef , ToOandClose , ReOandClose , ReOandToS , 20 // Ajax , ToO , ToS , ToPbyRef , ToOandClose , ReOandClose , ReOandToS ,
21 // Close , ToP , RePa , None 21 // Close , ToP , RePa , None
22
23 // $url = pack("H*",$_REQUEST[rurl]); 22 // $url = pack("H*",$_REQUEST[rurl]);
24 // echo $url ; 23 // echo $url ;
25
26 // echo $cmd . " ////////////// "; 24 // echo $cmd . " ////////////// ";
27
28
29 $nextDisable = false ; // 디버깅용 25 $nextDisable = false ; // 디버깅용
30
31 $arr = explode(".", $cmd) ; 26 $arr = explode(".", $cmd) ;
32
33 if( sizeof($arr) != 2 ) 27 if( sizeof($arr) != 2 )
34 echo "[ControlException ] Cmd 형식이 맞지 않습니다." ; 28 echo "[ControlException ] Cmd 형식이 맞지 않습니다." ;
35 else 29 else
...@@ -39,11 +33,8 @@ ...@@ -39,11 +33,8 @@
39 //var_dump(); 33 //var_dump();
40 $obj = new ReflectionClass($clsNm) ; 34 $obj = new ReflectionClass($clsNm) ;
41 $obj= $obj->newInstance($_REQUEST) ; 35 $obj= $obj->newInstance($_REQUEST) ;
42
43 $method = new ReflectionMethod($clsNm,$mtdNm) ; 36 $method = new ReflectionMethod($clsNm,$mtdNm) ;
44
45 $flow = $_REQUEST[flow] ; 37 $flow = $_REQUEST[flow] ;
46
47 if( $flow == "Ajax" || $flow == "" ) // JSON 이나 AJAX 일경우 38 if( $flow == "Ajax" || $flow == "" ) // JSON 이나 AJAX 일경우
48 echo $method->invoke($obj) ; 39 echo $method->invoke($obj) ;
49 else 40 else
...@@ -54,18 +45,13 @@ ...@@ -54,18 +45,13 @@
54 $rurl = $_REQUEST[rurl] ; 45 $rurl = $_REQUEST[rurl] ;
55 $msg = $_REQUEST[msg] ; 46 $msg = $_REQUEST[msg] ;
56 $flow = $_REQUEST[flow] ; 47 $flow = $_REQUEST[flow] ;
57
58 if( $flow == "" ) 48 if( $flow == "" )
59 echo "[ControlException ] flow 형식이 맞지 않습니다." ; 49 echo "[ControlException ] flow 형식이 맞지 않습니다." ;
60 else 50 else
61 { 51 {
62 go("NORMAL",$flow,$msg,$rurl) ; 52 go("NORMAL",$flow,$msg,$rurl) ;
63 } 53 }
64
65 } 54 }
66
67 } 55 }
68
69 } 56 }
70
71 ?> 57 ?>
...\ 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/AdminBoard.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/leftBoardManage.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
4 <? 4 <?
5 $obj = new AdminUser($_REQUEST) ; 5 $obj = new AdminBoard($_REQUEST) ;
6 6
7 //$list = $obj->getListOfUser() ; 7 $list = $obj->getListOfProductionPortrait() ;
8 $boardType=$_REQUEST["boardType"]; 8 $boardType=$_REQUEST["boardType"];
9 $vnum = $obj->virtualNum ; 9 $vnum = $obj->virtualNum ;
10 ?> 10 ?>
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
73 73
74 74
75 // 단체 삭제 75 // 단체 삭제
76 $(".jDelUserMulti").click2(function(){ 76 $(".jDelMulti").click2(function(){
77 77
78 78
79 var noArr = new Array(); 79 var noArr = new Array();
80 var noCount = $(".jUserNo:checked").length; 80 var noCount = $(".jNo:checked").length;
81 81
82 if(noCount == 0) 82 if(noCount == 0)
83 { 83 {
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
90 { 90 {
91 for(var i = 0; i < noCount; i++ ) 91 for(var i = 0; i < noCount; i++ )
92 { 92 {
93 noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); 93 noArr[i] = $(".jNo:checked:eq(" + i + ")").val();
94 } 94 }
95 95
96 deleteUser(noArr); 96 deleteAction(noArr);
97 } 97 }
98 98
99 }); 99 });
...@@ -130,10 +130,10 @@ ...@@ -130,10 +130,10 @@
130 130
131 131
132 132
133 function deleteUser(noArr) 133 function deleteAction(noArr)
134 { 134 {
135 $.ajax({ 135 $.ajax({
136 url : "/action_front.php?cmd=AdminUser.deleteUser", 136 url : "/action_front.php?cmd=AdminBoard.deleteProductionPortrait",
137 async : false, 137 async : false,
138 cache : false, 138 cache : false,
139 dataType : "json", 139 dataType : "json",
...@@ -184,16 +184,16 @@ ...@@ -184,16 +184,16 @@
184 <?=$vnum--?> 184 <?=$vnum--?>
185 </td> 185 </td>
186 <td class="center"> 186 <td class="center">
187 <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > 187 <input type="checkbox" class="jNo" value="<?=$list[$i]["ppNo"] ?>" >
188 </td> 188 </td>
189 <td class="center"> 189 <td class="center">
190 190 <?=$list[$i]["title"]?>
191 </td> 191 </td>
192 <td class="center"> 192 <td class="center">
193 193 <?=$list[$i]["regDate"]?>
194 </td> 194 </td>
195 <td class="center"> 195 <td class="center">
196 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> 196 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["ppNo"]?>" />
197 </td> 197 </td>
198 198
199 </tr> 199 </tr>
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> 1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBoard.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/leftBoardManage.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftBoardManage.php" ?>
4 <? 4 <?
5 $obj = new AdminOperate($_REQUEST, ""); 5 $obj = new AdminBoard($_REQUEST, "");
6 //$info = $obj->getInfoOfShop(); 6 $info = $obj->getInfoOfProductionPortrait();
7 7
8 //$cateCodeList = $obj->getShopCategoryCodeList(); 8 //$cateCodeList = $obj->getShopCategoryCodeList();
9 //$shopImgList = $obj->getShopImgList($info["no"]); 9 //$shopImgList = $obj->getShopImgList($info["no"]);
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
17 <script type="text/javascript"> 17 <script type="text/javascript">
18 var _rurl = "<?=$rurl?>"; 18 var _rurl = "<?=$rurl?>";
19 var _no = "<?=$_REQUEST[no]?>"; 19 var _no = "<?=$_REQUEST[no]?>";
20 var total = 10;
20 21
21 function MultiArticle(sTitle, sC, sCt, sImg){ 22 function MultiArticle(sTitle, sC, sCt, sImg){
22 this.title = sTitle; 23 this.title = sTitle;
...@@ -29,10 +30,26 @@ ...@@ -29,10 +30,26 @@
29 30
30 var multiArray = new Array(); 31 var multiArray = new Array();
31 32
32 for(var i = 1; i <= 10; i++){ 33 for(var i = 1; i <= total; i++){
33 multiArray[i] = new MultiArticle("", i, "", 0); 34 multiArray[i] = new MultiArticle("", i, "", 0);
34 } 35 }
35 36
37
38 $.ajax({
39 url : "/action_front.php?cmd=AdminBoard.getInfoOfProductionPortraitForJson",
40 dataType : "json",
41 data : {no : $("#articleNum").val()},
42 success : function(data){
43 for(var i = 1; i <= total; i++){
44 multiArray[i] = new MultiArticle(data['title'], i, data['content' + i], 0);
45 }
46 $("#mContent").val(multiArray[1].contents);
47 },
48 error : function(param1, param2, param3){
49 alert(param1 + "<br>" + param2 + "<br>" + param3);
50 }
51 });
52
36 init(); 53 init();
37 54
38 <?if($admin_type == 3) { ?> 55 <?if($admin_type == 3) { ?>
...@@ -74,13 +91,11 @@ ...@@ -74,13 +91,11 @@
74 91
75 $("#category").click(function(){ 92 $("#category").click(function(){
76 var currentNum = $(this).val(); 93 var currentNum = $(this).val();
77 multiArray[currentNum].title = $("#mTitle").val();
78 multiArray[currentNum].contents = $("#mContent").val(); 94 multiArray[currentNum].contents = $("#mContent").val();
79 }); 95 });
80 96
81 $("#category").change(function(){ 97 $("#category").change(function(){
82 var currentNum = $(this).val(); 98 var currentNum = $(this).val();
83 $("#mTitle").val(multiArray[currentNum].title);
84 $("#mContent").val(multiArray[currentNum].contents); 99 $("#mContent").val(multiArray[currentNum].contents);
85 toggleHide(currentNum); 100 toggleHide(currentNum);
86 101
...@@ -93,10 +108,22 @@ ...@@ -93,10 +108,22 @@
93 } 108 }
94 } 109 }
95 110
96 $(".jSave").click2(function(){ 111 function pickupRows(){
112 var noArr = new Array();
113
114 multiArray[$("#category").val()].contents=$("#mContent").val();
97 115
116 for(var i = 1; i <= 10; i++ ){
117 $("#content" + (i)).val(multiArray[i]["contents"]);
118 }
119
120 }
121
122
123 $(".jSave").click2(function(){
124 pickupRows();
98 $("#jData").ajaxSubmit({ 125 $("#jData").ajaxSubmit({
99 url:"/action_front.php?cmd=AdminOperate.saveShop", 126 url:"/action_front.php?cmd=AdminBoard.saveProductionPortrait",
100 type : "post", 127 type : "post",
101 forceSync : true, 128 forceSync : true,
102 dataType : "json", 129 dataType : "json",
...@@ -172,7 +199,20 @@ ...@@ -172,7 +199,20 @@
172 <div class="data" style="width:80%;"> 199 <div class="data" style="width:80%;">
173 200
174 <form id="jData" method="post" enctype="multipart/form-data"> 201 <form id="jData" method="post" enctype="multipart/form-data">
175 <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> 202
203
204 <input type="hidden" name="no" id="articleNum" value="<?=$_REQUEST[no]?>" />
205 <input type="hidden" id="content1" name="content1" value="" />
206 <input type="hidden" id="content2" name="content2" value="" />
207 <input type="hidden" id="content3" name="content3" value="" />
208 <input type="hidden" id="content4" name="content4" value="" />
209 <input type="hidden" id="content5" name="content5" value="" />
210 <input type="hidden" id="content6" name="content6" value="" />
211 <input type="hidden" id="content7" name="content7" value="" />
212 <input type="hidden" id="content8" name="content8" value="" />
213 <input type="hidden" id="content9" name="content9" value="" />
214 <input type="hidden" id="content10" name="content10" value="" />
215
176 <table class="datav" style="width:100%;"> 216 <table class="datav" style="width:100%;">
177 <colgroup> 217 <colgroup>
178 <col width="10%" /> 218 <col width="10%" />
...@@ -181,7 +221,7 @@ ...@@ -181,7 +221,7 @@
181 <tr> 221 <tr>
182 <th style="height:25px;">제목</th> 222 <th style="height:25px;">제목</th>
183 <td class="l"> 223 <td class="l">
184 <input type="text" id="mTitle" class="wl" style="width:70%;" value="" /> 224 <input type="text" name="title" id="mTitle" class="wl" style="width:70%;" value="<?=$info["title"]?>" />
185 </td> 225 </td>
186 </tr> 226 </tr>
187 <tr> 227 <tr>
...@@ -204,7 +244,7 @@ ...@@ -204,7 +244,7 @@
204 <tr> 244 <tr>
205 <th style="height:25px;">내용</th> 245 <th style="height:25px;">내용</th>
206 <td class="l"> 246 <td class="l">
207 <textarea name="special_contract" rows="7" id="mContent" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea> 247 <textarea rows="7" id="mContent" style="width:90%;resize:vertical;"><?=$info["special_contract"]?></textarea>
208 </td> 248 </td>
209 </tr> 249 </tr>
210 250
...@@ -214,91 +254,101 @@ ...@@ -214,91 +254,101 @@
214 <? 254 <?
215 $fileIndex = "101"; 255 $fileIndex = "101";
216 $fileName = "img01"; 256 $fileName = "img01";
217 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 257 $filePath = ($info["imgPathPP1"] == "" ? "" : $info["imgPathPP1"]);
218 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 258 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
219 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 259 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
220 ?> 260 ?>
261 <input type="hidden" name="imgPathPP1" value="<?=$info["imgPathPP1"]?>" />
221 </td> 262 </td>
222 <td class="imgFiles" no=2> 263 <td class="imgFiles" no=2>
223 <? 264 <?
224 $fileIndex = "102"; 265 $fileIndex = "102";
225 $fileName = "img02"; 266 $fileName = "img02";
226 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 267 $filePath = ($info["imgPathPP2"] == "" ? "" : $info["imgPathPP2"]);
227 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 268 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
228 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 269 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
229 ?> 270 ?>
271 <input type="hidden" name="imgPathPP2" value="<?=$info["imgPathPP2"]?>" />
230 </td> 272 </td>
231 <td class="imgFiles" no=3> 273 <td class="imgFiles" no=3>
232 <? 274 <?
233 $fileIndex = "103"; 275 $fileIndex = "103";
234 $fileName = "img03"; 276 $fileName = "img03";
235 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 277 $filePath = ($info["imgPathPP3"] == "" ? "" : $info["imgPathPP3"]);
236 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 278 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
237 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 279 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
238 ?> 280 ?>
281 <input type="hidden" name="imgPathPP3" value="<?=$info["imgPathPP3"]?>" />
239 </td> 282 </td>
240 <td class="imgFiles" no=4> 283 <td class="imgFiles" no=4>
241 <? 284 <?
242 $fileIndex = "104"; 285 $fileIndex = "104";
243 $fileName = "img04"; 286 $fileName = "img04";
244 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 287 $filePath = ($info["imgPathPP4"] == "" ? "" : $info["imgPathPP4"]);
245 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 288 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
246 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 289 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
247 ?> 290 ?>
291 <input type="hidden" name="imgPathPP4" value="<?=$info["imgPathPP4"]?>" />
248 </td> 292 </td>
249 <td class="imgFiles" no=5> 293 <td class="imgFiles" no=5>
250 <? 294 <?
251 $fileIndex = "105"; 295 $fileIndex = "105";
252 $fileName = "img05"; 296 $fileName = "img05";
253 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 297 $filePath = ($info["imgPathPP5"] == "" ? "" : $info["imgPathPP5"]);
254 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 298 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
255 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 299 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
256 ?> 300 ?>
301 <input type="hidden" name="imgPathPP5" value="<?=$info["imgPathPP5"]?>" />
257 </td> 302 </td>
258 <td class="imgFiles" no=6> 303 <td class="imgFiles" no=6>
259 <? 304 <?
260 $fileIndex = "106"; 305 $fileIndex = "106";
261 $fileName = "img06"; 306 $fileName = "img06";
262 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 307 $filePath = ($info["imgPathPP6"] == "" ? "" : $info["imgPathPP6"]);
263 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 308 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
264 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 309 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
265 ?> 310 ?>
311 <input type="hidden" name="imgPathPP6" value="<?=$info["imgPathPP6"]?>" />
266 </td> 312 </td>
267 <td class="imgFiles" no=7> 313 <td class="imgFiles" no=7>
268 <? 314 <?
269 $fileIndex = "107"; 315 $fileIndex = "107";
270 $fileName = "img07"; 316 $fileName = "img07";
271 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 317 $filePath = ($info["imgPathPP7"] == "" ? "" : $info["imgPathPP7"]);
272 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 318 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
273 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 319 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
274 ?> 320 ?>
321 <input type="hidden" name="imgPathPP7" value="<?=$info["imgPathPP7"]?>" />
275 </td> 322 </td>
276 <td class="imgFiles" no=8> 323 <td class="imgFiles" no=8>
277 <? 324 <?
278 $fileIndex = "108"; 325 $fileIndex = "108";
279 $fileName = "img08"; 326 $fileName = "img08";
280 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 327 $filePath = ($info["imgPathPP8"] == "" ? "" : $info["imgPathPP8"]);
281 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 328 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
282 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 329 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
283 ?> 330 ?>
331 <input type="hidden" name="imgPathPP8" value="<?=$info["imgPathPP8"]?>" />
284 </td> 332 </td>
285 <td class="imgFiles" no=9> 333 <td class="imgFiles" no=9>
286 <? 334 <?
287 $fileIndex = "109"; 335 $fileIndex = "109";
288 $fileName = "img09"; 336 $fileName = "img09";
289 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 337 $filePath = ($info["imgPathPP9"] == "" ? "" : $info["imgPathPP9"]);
290 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 338 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
291 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 339 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
292 ?> 340 ?>
341 <input type="hidden" name="imgPathPP9" value="<?=$info["imgPathPP9"]?>" />
293 </td> 342 </td>
294 <td class="imgFiles" no=10> 343 <td class="imgFiles" no=10>
295 <? 344 <?
296 $fileIndex = "110"; 345 $fileIndex = "110";
297 $fileName = "img10"; 346 $fileName = "img10";
298 $filePath = ($shopImgList[0]["file_vir_name"] == "" ? "" : $shopImgList[0]["file_vir_name"]); 347 $filePath = ($info["imgPathPP10"] == "" ? "" : $info["imgPathPP10"]);
299 $fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]); 348 //$fileNumber = ($shopImgList[0]["no"] == "" ? "0" : $shopImgList[0]["no"]);
300 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php"; 349 include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/fileUpload/fileUpload.php";
301 ?> 350 ?>
351 <input type="hidden" name="imgPathPP10" value="<?=$info["imgPathPP10"]?>" />
302 </td> 352 </td>
303 353
304 </tr> 354 </tr>
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminUser.php" ?> 1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBoard.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/leftCustomerService.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?>
4 <? 4 <?
5 $obj = new AdminUser($_REQUEST) ; 5 $obj = new AdminBoard($_REQUEST) ;
6 6
7 //$list = $obj->getListOfUser() ; 7 $list = $obj->getListOfCS() ;
8 $boardType=$_REQUEST["boardType"];
9 $vnum = $obj->virtualNum ; 8 $vnum = $obj->virtualNum ;
10 ?> 9 ?>
11 <script> 10 <script>
...@@ -73,11 +72,11 @@ ...@@ -73,11 +72,11 @@
73 72
74 73
75 // 단체 삭제 74 // 단체 삭제
76 $(".jDelUserMulti").click2(function(){ 75 $(".jDelMulti").click2(function(){
77 76
78 77
79 var noArr = new Array(); 78 var noArr = new Array();
80 var noCount = $(".jUserNo:checked").length; 79 var noCount = $(".jNo:checked").length;
81 80
82 if(noCount == 0) 81 if(noCount == 0)
83 { 82 {
...@@ -90,7 +89,7 @@ ...@@ -90,7 +89,7 @@
90 { 89 {
91 for(var i = 0; i < noCount; i++ ) 90 for(var i = 0; i < noCount; i++ )
92 { 91 {
93 noArr[i] = $(".jUserNo:checked:eq(" + i + ")").val(); 92 noArr[i] = $(".jNo:checked:eq(" + i + ")").val();
94 } 93 }
95 94
96 deleteUser(noArr); 95 deleteUser(noArr);
...@@ -121,9 +120,9 @@ ...@@ -121,9 +120,9 @@
121 120
122 $("#jCheckAll").change(function(){ 121 $("#jCheckAll").change(function(){
123 if($(this).is(":checked")) 122 if($(this).is(":checked"))
124 $(".jUserNo").prop("checked", true); 123 $(".jNo").prop("checked", true);
125 else 124 else
126 $(".jUserNo").prop("checked", false); 125 $(".jNo").prop("checked", false);
127 }); 126 });
128 127
129 }) ; 128 }) ;
...@@ -133,7 +132,7 @@ ...@@ -133,7 +132,7 @@
133 function deleteUser(noArr) 132 function deleteUser(noArr)
134 { 133 {
135 $.ajax({ 134 $.ajax({
136 url : "/action_front.php?cmd=AdminUser.deleteUser", 135 url : "/action_front.php?cmd=AdminBoard.deleteCS",
137 async : false, 136 async : false,
138 cache : false, 137 cache : false,
139 dataType : "json", 138 dataType : "json",
...@@ -184,16 +183,19 @@ ...@@ -184,16 +183,19 @@
184 <?=$vnum--?> 183 <?=$vnum--?>
185 </td> 184 </td>
186 <td class="center"> 185 <td class="center">
187 <input type="checkbox" class="jUserNo" value="<?=$list[$i]["no"] ?>" > 186 <input type="checkbox" class="jNo" value="<?=$list[$i]["csNo"] ?>" >
188 </td> 187 </td>
189 <td class="center"> 188 <td class="center">
190 189 <?=$list[$i]["userName"]?>
191 </td> 190 </td>
192 <td class="center"> 191 <td class="center">
193 192 <?=$list[$i]["title"]?>
193 </td>
194 <td>
195 <?=$list[$i]["regDate"]?>
194 </td> 196 </td>
195 <td class="center"> 197 <td class="center">
196 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> 198 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["csNo"]?>" />
197 </td> 199 </td>
198 200
199 </tr> 201 </tr>
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminPush.php" ?> 1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBoard.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/leftCustomerService.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftCustomerService.php" ?>
4 <? 4 <?
5 $obj = new AdminPush($_REQUEST, "") ; 5 $obj = new AdminBoard($_REQUEST, "") ;
6 6
7 //$list = $obj->getListOfAdminPush() ; 7 $info = $obj->getInfoOfCS() ;
8 $commentList = $obj->getListOfCSComment();
8 $vnum = $obj->virtualNum ; 9 $vnum = $obj->virtualNum ;
10 $rurl = pack("H*", $_REQUEST["rurl"]) ;
9 ?> 11 ?>
10 <script> 12 <script>
11 13
12 $(document).ready(function(){ 14 $(document).ready(function(){
13 15 var _rurl = "<?=$rurl?>";
14 //=====프레입웤 변수들==================================================================================// 16 //=====프레입웤 변수들==================================================================================//
15 var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 17 var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
16 var FORM_NAME = "nf" ; // 폼이름 18 var FORM_NAME = "nf" ; // 폼이름
...@@ -36,230 +38,28 @@ ...@@ -36,230 +38,28 @@
36 jForm.submit() ; 38 jForm.submit() ;
37 }); 39 });
38 40
41 $(".jSave").click2(function(){
39 42
40 $(".jSearch").click2(function(){ 43 $("#jData").ajaxSubmit({
41 jForm.ci() ; 44 url:"/action_front.php?cmd=AdminBoard.saveCS",
42 jForm.submit() ; 45 type : "post",
43 }); 46 forceSync : true,
44 47 dataType : "json",
45 $(".jSearchGroup").click2(function(){ 48 success : function(data){
46 49 alert(data.returnMessage);
47 var title = "그룹 검색"; 50 location.href = _rurl;
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 } 51 }
161 });
162 52
163 }); 53 });
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 }); 54 });
187 55
56 $(".jCancel").click2(function(){
57 location.href = _rurl;
188 }); 58 });
189 59
190 60
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 }) ; 61 }) ;
248 62
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 63
264 64
265 65
...@@ -274,7 +74,8 @@ ...@@ -274,7 +74,8 @@
274 74
275 </h2> 75 </h2>
276 <div class="data"> 76 <div class="data">
277 77 <form id="jData" method="post" enctype="multipart/form-data">
78 <input type="hidden" name="csNo" value="<?=$_REQUEST[no]?>" />
278 <table class="datav" style="width:100%;"> 79 <table class="datav" style="width:100%;">
279 <colgroup> 80 <colgroup>
280 <col width="30%" /> 81 <col width="30%" />
...@@ -283,7 +84,7 @@ ...@@ -283,7 +84,7 @@
283 <tr> 84 <tr>
284 <th style="height:25px;">내용</th> 85 <th style="height:25px;">내용</th>
285 <td class="l"> 86 <td class="l">
286 <textarea rows="5" style="width:95%;" id="push_msg"></textarea> 87 <textarea name="content" rows="5" style="width:95%;" ></textarea>
287 </td> 88 </td>
288 </tr> 89 </tr>
289 </table> 90 </table>
...@@ -291,7 +92,7 @@ ...@@ -291,7 +92,7 @@
291 <div class="btngroupright" style="width:100%;"> 92 <div class="btngroupright" style="width:100%;">
292 <span class="button bigrounded blue jSave" >등록</span> 93 <span class="button bigrounded blue jSave" >등록</span>
293 </div> 94 </div>
294 95 </form>
295 <h3>히스토리</h3> 96 <h3>히스토리</h3>
296 <table class="datacList"> 97 <table class="datacList">
297 <thead> 98 <thead>
...@@ -301,72 +102,51 @@ ...@@ -301,72 +102,51 @@
301 </tr> 102 </tr>
302 </thead> 103 </thead>
303 <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 --> 104 <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
304 <? for($i=0; $i<sizeof($list); $i++){ ?> 105 <? for($i=0; $i<sizeof($commentList); $i++){ ?>
305 <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>"> 106 <tr class="<?=(sizeof($commentList)-1 == $i) ? "last" : "datacLists"?>">
306 107
307 <td class="center"> 108 <td class="center">
308 109 <?=$commentList[$i]["userName"]?>
309 </td> 110 </td>
310 <td class="center"> 111 <td class="center">
311 <?=$list[$i]["push_msg"]?> 112 <?=$commentList[$i]["content"]?>
312 </td> 113 </td>
313 114
314 </tr> 115 </tr>
315 <? } ?> 116 <? } ?>
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 117
328 </div>
329 118
330 <div id="jDialogArea" style="display:none;"> 119 <?if(sizeof(info)>0){?>
331 <table class="datacList" style="width:100%;"> 120 <tr class="last">
332 <thead> 121 <td class="center">
333 <tr> 122 <?=$info["userName"]?>
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> 123 </td>
338 </tr> 124 <td class="center">
339 </thead> 125 <?=$info["content"]?>
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> 126 </td>
359 </tr> 127 </tr>
360 </thead> 128 <?}?>
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> 129 </tbody>
369 </table> 130 </table>
131 <center>
132 <div class="data">
133 <?if($info["imgPathCS1"] != ""){?>
134 <img alt="" src="/720/<?=$info["imgPathCS1"]?>" style="width:15%; height:600%;">
135 <?}?>
136 <?if($info["imgPathCS2"] != ""){?>
137 <img alt="" src="/720/<?=$info["imgPathCS2"]?>" style="width:15%; height:600%;">
138 <?}?>
139 <?if($info["imgPathCS3"] != ""){?>
140 <img alt="" src="/720/<?=$info["imgPathCS3"]?>" style="width:15%; height:600%;">
141 <?}?>
142 <?if($info["imgPathCS4"] != ""){?>
143 <img alt="" src="/720/<?=$info["imgPathCS4"]?>" style="width:15%; height:600%;">
144 <?}?>
145 <?if($info["imgPathCS5"] != ""){?>
146 <img alt="" src="/720/<?=$info["imgPathCS5"]?>" style="width:15%; height:600%;">
147 <?}?>
148 </div>
149 </center>
370 </div> 150 </div>
371 151
372 </div> 152 </div>
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminOperate.php" ?> 1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminProductionSpec.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/leftProductionSpecManage.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftProductionSpecManage.php" ?>
4 <? 4 <?
5 $obj = new AdminOperate($_REQUEST, "") ; 5 $obj = new AdminProductionSpec($_REQUEST) ;
6 //$list = $obj->getListOfRoomForPayment(); 6 $list=$obj->getListOfProductionSpec();
7
8 $vnum = $obj->virtualNum ; 7 $vnum = $obj->virtualNum ;
9 ?> 8 ?>
10 <script> 9 <script>
...@@ -90,7 +89,6 @@ ...@@ -90,7 +89,6 @@
90 }); 89 });
91 90
92 91
93 // 단체 삭제
94 $(".jDelMulti").click2(function(){ 92 $(".jDelMulti").click2(function(){
95 93
96 94
...@@ -133,7 +131,7 @@ ...@@ -133,7 +131,7 @@
133 function deleteAction(noArr) 131 function deleteAction(noArr)
134 { 132 {
135 $.ajax({ 133 $.ajax({
136 url : "/action_front.php?cmd=AdminRent.delBuilding", 134 url : "/action_front.php?cmd=AdminProductionSpec.deleteProductionSpec",
137 async : false, 135 async : false,
138 cache : false, 136 cache : false,
139 dataType : "json", 137 dataType : "json",
...@@ -141,7 +139,11 @@ ...@@ -141,7 +139,11 @@
141 "no" : noArr 139 "no" : noArr
142 }, 140 },
143 success : function(data){ 141 success : function(data){
142 alert("삭제되었습니다");
144 location.reload(); 143 location.reload();
144 },
145 error : function(a, b, c){
146 alert(a+b+c);
145 } 147 }
146 }); 148 });
147 } 149 }
...@@ -163,13 +165,16 @@ ...@@ -163,13 +165,16 @@
163 <label> 165 <label>
164 <span>조회 조건</span> 166 <span>조회 조건</span>
165 167
166 <select value="asda" style="margin-right:20px;"> 168 <select name="searchType" style="margin-right:20px;">
167 <option>asdasd</option> 169 <option value="">전체</option>
170 <option value="CN" <?=$_REQUEST[searchType] == "CN" ? "SELECTED" : ""?>>상호명</option>
171 <option value="PN" <?=$_REQUEST[searchType] == "PN" ? "SELECTED" : ""?>>제품명</option>
172 <option value="MN" <?=$_REQUEST[searchType] == "MN" ? "SELECTED" : ""?>>담당자</option>
168 </select> 173 </select>
169 174
170 </label> 175 </label>
171 <label> 176 <label>
172 <input type="text" id="search_room" name="search_room" class="wm" value="<?=$_REQUEST['search_room']?>" /> 177 <input type="text" id="searchText" name="searchText" class="wm" value="<?=$_REQUEST['searchText']?>" />
173 </label> 178 </label>
174 179
175 180
...@@ -181,9 +186,9 @@ ...@@ -181,9 +186,9 @@
181 <label> 186 <label>
182 <span>기간 설정</span> 187 <span>기간 설정</span>
183 188
184 <input type="text" value="<?=$_REQUEST['rent_date_former']?>" id="rent_date_former" name="rent_date_former" class="jRsvDate" /> 189 <input type="text" value="<?=$_REQUEST['dateFormer']?>" id="dateFormer" name="dateFormer" class="jRsvDate" />
185 &nbsp;~&nbsp; 190 &nbsp;~&nbsp;
186 <input type="text" value="<?=$_REQUEST['rent_date_latter']?>" id="rent_date_latter" name="rent_date_latter" class="jRsvDate" /> 191 <input type="text" value="<?=$_REQUEST['dateLatter']?>" id="dateLatter" name="dateLatter" class="jRsvDate" />
187 192
188 </label> 193 </label>
189 194
...@@ -215,56 +220,29 @@ ...@@ -215,56 +220,29 @@
215 <?=$vnum--?> 220 <?=$vnum--?>
216 </td> 221 </td>
217 <td class="center"> 222 <td class="center">
218 <input type="checkbox" class="jNo" value="<?=$list[$i]["no"] ?>" > 223 <input type="checkbox" class="jNo" value="<?=$list[$i]["productionNo"] ?>" >
219 </td>
220 <!--//건물이름-->
221 <td class="center">
222 <?=$list[$i]["Bname"]?>
223 </td> 224 </td>
224 225
225 <!--//호실 -->
226 <td class="center"> 226 <td class="center">
227 <?=$list[$i]["Rname"]?> 227 <?=$list[$i]["regDate"]?>
228 </td> 228 </td>
229 <!--//지난달 월세 -->
230 229
231 <td class="center"> 230 <td class="center">
232 <? 231 <?=$list[$i]["companyName"]?>
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> 232 </td>
240 <!--//월 납입일 -->
241 233
242 <td class="center">
243 <?=$list[$i]["monthly_rent_date"]?>
244 </td>
245 234
246 <!--//지난달 공과금 -->
247 <td class="center"> 235 <td class="center">
248 <? 236 <?=$list[$i]["productName"]?>
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> 237 </td>
256 <!--//공과금 납입일 -->
257 238
258 <td class="center">
259 <?=$list[$i]["billing_date"]?>
260 </td>
261 239
262 <!--//퇴실예정일 -->
263 <td class="center"> 240 <td class="center">
264 <?=$list[$i]["leaving_due_date"]?> 241 <?=$list[$i]["userName"]?>
265 </td> 242 </td>
243
266 <td class="center"> 244 <td class="center">
267 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["no"]?>" /> 245 <input type="button" class="button searchsmall white jView" value="상세보기" no="<?=$list[$i]["productionNo"]?>" />
268 </td> 246 </td>
269 247
270 </tr> 248 </tr>
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminRent.php" ?> 1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminProductionSpec.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/leftProductionSpecManage.php" ?> 3 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftProductionSpecManage.php" ?>
4 4
5 <? 5 <?
6 $obj = new AdminRent($_REQUEST, ""); 6 $obj = new AdminProductionSpec($_REQUEST, "");
7 //$info = $obj->getInfoOfRoom(); 7 $info = $obj->getInfoOfProductionSpec();
8 //$user_list = $obj->getListOfUserForRoom();
9 //$bill_info = $obj->getInfoOfBill();
10 8
9 $managerList= $obj->getListOfManager();
10 $addCount = 0;
11 $rurl = pack("H*", $_REQUEST["rurl"]) ; 11 $rurl = pack("H*", $_REQUEST["rurl"]) ;
12 ?> 12 ?>
13 13
...@@ -46,14 +46,12 @@ ...@@ -46,14 +46,12 @@
46 } 46 }
47 }); 47 });
48 48
49
50 $(".jCancel").click2(function(){ 49 $(".jCancel").click2(function(){
51 location.href = _rurl; 50 location.href = _rurl;
52 }); 51 });
53 52
54 $(".jAdd").click(function(){ 53 $(".jAdd").click(function(){
55 if($("#addContent").val()=="") return; 54 if($("#addContent").val()=="") return;
56
57 if(addCounter == THRESHOLD) { 55 if(addCounter == THRESHOLD) {
58 alert("특수사항은 최대 " + THRESHOLD + "개까지 추가할 있습니다."); 56 alert("특수사항은 최대 " + THRESHOLD + "개까지 추가할 있습니다.");
59 return; 57 return;
...@@ -74,31 +72,23 @@ ...@@ -74,31 +72,23 @@
74 72
75 for(var i = 0; i < noCount; i++ ){ 73 for(var i = 0; i < noCount; i++ ){
76 noArr[i] = $(".added:eq(" + i + ")").val(); 74 noArr[i] = $(".added:eq(" + i + ")").val();
75 $("#specialAddition" + (i + 1)).val(noArr[i]);
77 } 76 }
78 77
79 alert(noArr);
80
81 } 78 }
82 79
83 $(".test").click(function(){
84 pickupRows();
85 });
86
87 $(document).on("click", ".adddel", function(){ 80 $(document).on("click", ".adddel", function(){
88 $(".dynamicRow[no="+$(this).attr("no")+"]").remove(); 81 $(".dynamicRow[no="+$(this).attr("no")+"]").remove();
89 addCounter--; 82 addCounter--;
90 }); 83 });
91 84
92 $(".jClose").click2(function(){
93 window.close();
94 });
95 85
96 $(".jMod").click2(function(){ 86 $(".jMod").click2(function(){
97 87 pickupRows();
98 var data = $("#jData").serialize(); 88 var data = $("#jData").serialize();
99 89
100 $.ajax({ 90 $.ajax({
101 url : "/action_front.php?cmd=AdminRent.saveRoom", 91 url : "/action_front.php?cmd=AdminProductionSpec.saveProductionSpec",
102 async : false, 92 async : false,
103 cache : false, 93 cache : false,
104 dataType : "json", 94 dataType : "json",
...@@ -128,9 +118,14 @@ ...@@ -128,9 +118,14 @@
128 <div class="data" style="width:100%;"> 118 <div class="data" style="width:100%;">
129 119
130 <form id="jData"> 120 <form id="jData">
131 <input type="hidden" name="no" value="<?=$_REQUEST[no]?>" /> 121
132 <input type="hidden" name="building_fk" value="<?=$_GET["Bno"]?>" /> 122 <input type="hidden" id="specialAddition1" name="specialAddition1" value="" />
133 <input type="hidden" name="current_contractor" value="<?=$info["user_fk"]?>" /> 123 <input type="hidden" id="specialAddition2" name="specialAddition2" value="" />
124 <input type="hidden" id="specialAddition3" name="specialAddition3" value="" />
125 <input type="hidden" id="specialAddition4" name="specialAddition4" value="" />
126 <input type="hidden" id="specialAddition5" name="specialAddition5" value="" />
127
128 <input type="hidden" name="productionNo" value="<?=$_REQUEST[no]?>" />
134 <table class="datav" style="width:100%;"> 129 <table class="datav" style="width:100%;">
135 <colgroup> 130 <colgroup>
136 <col width="10%" /> 131 <col width="10%" />
...@@ -146,22 +141,16 @@ ...@@ -146,22 +141,16 @@
146 <!-- 호실 --> 141 <!-- 호실 -->
147 <th style="height:25px;">작성 날짜</th> 142 <th style="height:25px;">작성 날짜</th>
148 <td class="center"> 143 <td class="center">
149 <?php 144 <input type="text" name="requestDate" value="<?=$info["requestDate"]?>" />
150 $formattedDate = date('Y-m-d', strtotime($info["move_in_date"]));
151 if($formattedDate == "1970-01-01") $formattedDate = "";
152 ?>
153 <input type="text" name="move_in_date" value="<?=$formattedDate?>" class="jRsvDate" />
154 </td> 145 </td>
155 146
156 <!-- 관리유형 --> 147 <!-- 관리유형 -->
157 <th style="height:25px;">담당자</th> 148 <th style="height:25px;">담당자</th>
158 <td class="center" colspan='3'> 149 <td class="center" colspan='3'>
159 <select name="manage_type" class="wm"> 150 <select name="managerFk" class="wm">
160 <option value="">선택</option> 151 <? for($i=0; $i<sizeof($managerList); $i++){ ?>
161 <option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_CONS ? "SELECTED" : ""?>>장기위탁</option> 152 <option value='<?=$managerList[$i]["userNo"]?>' <?=$managerList[$i]["userNo"] == $info["userFk"] ? "SELECTED" : ""?>><?=$managerList[$i]["userName"]?></option>
162 <option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_CONS?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_CONS ? "SELECTED" : ""?>>단기위탁</option> 153 <? } ?>
163 <option value="<?=$obj->BUILDING_MANAGE_TYPE_LONG_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_LONG_SELF ? "SELECTED" : ""?>>장기자기</option>
164 <option value="<?=$obj->BUILDING_MANAGE_TYPE_SHORT_SELF?>" <?=$info["manage_type"] == $obj->BUILDING_MANAGE_TYPE_SHORT_SELF ? "SELECTED" : ""?>>단기자기</option>
165 </select> 154 </select>
166 </td> 155 </td>
167 156
...@@ -184,35 +173,36 @@ ...@@ -184,35 +173,36 @@
184 <!-- 입주자 --> 173 <!-- 입주자 -->
185 <th style="height:25px;">성명</th> 174 <th style="height:25px;">성명</th>
186 <td class="center"> 175 <td class="center">
187 <input type="text" name="contractor_tel" class="wm" value="<?=$info["contractor_tel"]?>" /> 176 <input type="text" name="customerName" class="wm" value="<?=$info["customerName"]?>" />
188 </td> 177 </td>
189 178
190 <!-- 연락처 --> 179 <!-- 연락처 -->
191 <th style="height:25px;">상호</th> 180 <th style="height:25px;">상호</th>
192 <td class="center"> 181 <td class="center">
193 <input type="text" name="contractor_tel" class="wm" value="<?=$info["contractor_tel"]?>" /> 182 <input type="text" name="companyName" class="wm" value="<?=$info["companyName"]?>" />
194 </td> 183 </td>
195 184
196 <!-- 반환계좌 / 입금주 --> 185 <!-- 반환계좌 / 입금주 -->
197 <th style="height:25px;">연락처</th> 186 <th style="height:25px;">연락처</th>
198 <td class="center" colspan='3'> 187 <td class="center" colspan='3'>
199 <input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/>&nbsp; - &nbsp;<input type="text" style="width:50px"/> 188 <input type="text" name="telephone1" style="width:50px" value="<?=substr($info["telephone"], 0, 3)?>"/>&nbsp; - &nbsp;
189 <input type="text" name="telephone2" style="width:50px" value="<?=substr($info["telephone"], 3, 4)?>"/>&nbsp; - &nbsp;
190 <input type="text" name="telephone3" style="width:50px" value="<?=substr($info["telephone"], 7, 4)?>"/>
200 </td> 191 </td>
201 </tr> 192 </tr>
202 <tr> 193 <tr>
203 <!-- 계약일 --> 194 <!-- 계약일 -->
204 <th style="height:25px;">차종</th> 195 <th style="height:25px;">차종</th>
205 <td class="center" colspan='7'> 196 <td class="center" colspan='7'>
206 <input type="text" style="width:5%;" /> TON 197 <input type="text" name="vehicleTON" style="width:5%;" value="<?=$info["vehicleTON"]?>" /> TON
207 <input type="text" style="margin-right:50px;"/> 198 <input type="text" name="vehicleText" style="margin-right:50px;" value="<?=$info["vehicleText"]?>"/>
208 199
209 <input type="radio" name="chk_info" value="HTML">현대 200 <input type="radio" name="vehicleType" value="HY" <?=$info["vehicleType"] == "HY" ? "CHECKED" : "" ?>>현대
210 <input type="radio" name="chk_info" value="CSS">대우 201 <input type="radio" name="vehicleType" value="DW" <?=$info["vehicleType"] == "DW" ? "CHECKED" : "" ?>>대우
211 <input type="radio" name="chk_info" value="웹디자인">볼보 202 <input type="radio" name="vehicleType" value="VV" <?=$info["vehicleType"] == "VV" ? "CHECKED" : "" ?>>볼보
212 <input type="radio" name="chk_info" value="웹디자인">스카니아 203 <input type="radio" name="vehicleType" value="SC" <?=$info["vehicleType"] == "SC" ? "CHECKED" : "" ?>>스카니아
213 <input type="radio" name="chk_info" value="웹디자인">벤츠 204 <input type="radio" name="vehicleType" value="MB" <?=$info["vehicleType"] == "MB" ? "CHECKED" : "" ?>>벤츠
214 <input type="radio" name="chk_info" value="웹디자인">볼보 205 <input type="radio" name="vehicleType" value="MA" <?=$info["vehicleType"] == "MA" ? "CHECKED" : "" ?>>
215 <input type="radio" name="chk_info" value="웹디자인">
216 </td> 206 </td>
217 207
218 </tr> 208 </tr>
...@@ -234,7 +224,7 @@ ...@@ -234,7 +224,7 @@
234 <!-- 보증금 --> 224 <!-- 보증금 -->
235 <th style="height:25px;">제품명</th> 225 <th style="height:25px;">제품명</th>
236 <td class="center" colspan='7'> 226 <td class="center" colspan='7'>
237 <input type="text" name="deposit" class="wm" value="<?=$info["deposit"]?>" /> 227 <input type="text" name="productName" class="wm" value="<?=$info["productName"]?>" />
238 </td> 228 </td>
239 229
240 230
...@@ -243,33 +233,29 @@ ...@@ -243,33 +233,29 @@
243 <!-- 기본관리비 --> 233 <!-- 기본관리비 -->
244 <th style="height:25px;">TYPE</th> 234 <th style="height:25px;">TYPE</th>
245 <td class="center" colspan='7'> 235 <td class="center" colspan='7'>
246 <input type="radio" name="chk_info" value="HTML">R 236 <input type="radio" name="type" value="R" <?=$info["type"] == "R" ? "CHECKED" : "" ?>>R
247 <input type="radio" name="chk_info" value="CSS"> 237 <input type="radio" name="type" value="A" <?=$info["type"] == "A" ? "CHECKED" : "" ?>>
248 <input type="radio" name="chk_info" value="웹디자인">판넬 238 <input type="radio" name="type" value="P" <?=$info["type"] == "P" ? "CHECKED" : "" ?>>판넬
249 <input type="text" style="margin-left:50px;"/> 239 <input type="text" name="typeValue" style="margin-left:50px;" value="<?=$info["typeValue"]?>"/>
250 </td> 240 </td>
251 </tr> 241 </tr>
252 <tr> 242 <tr>
253 <!-- 렌트2 --> 243 <!-- 렌트2 -->
254 <th style="height:25px;">내장</th> 244 <th style="height:25px;">내장</th>
255 <td class="center"> 245 <td class="center">
256 <input type="text" name="rent_2" class="wm" value="<?=$info["rent_2"]?>" /> 246 <input type="text" name="internalLength" class="wm" value="<?=$info["internalLength"]?>" />
257 </td> 247 </td>
258 248
259 <!-- 기타 --> 249 <!-- 기타 -->
260 <th style="height:25px;">내고</th> 250 <th style="height:25px;">내고</th>
261 <td class="center"> 251 <td class="center">
262 <input type="text" name="etc" class="wm" value="<?=$info["etc"]?>" /> 252 <input type="text" name="internalHeight" class="wm" value="<?=$info["internalHeight"]?>" />
263 </td> 253 </td>
264 254
265 <!-- 월세입금일--> 255 <!-- 월세입금일-->
266 <th style="height:25px;">내폭</th> 256 <th style="height:25px;">내폭</th>
267 <td class="center" colspan='2'> 257 <td class="center" colspan='2'>
268 <select name="monthly_rent_date" class="wm"> 258 <input type="text" name="internalWidth" class="wm" value="<?=$info["internalWidth"]?>" />
269 <? for($i=1; $i<=31; $i++){ ?>
270 <option value='<?=$i?>' <?=$info["monthly_rent_date"] == $i ? "SELECTED" : ""?>><?=$i?></option>
271 <? } ?>
272 </select>
273 </td> 259 </td>
274 260
275 261
...@@ -278,50 +264,50 @@ ...@@ -278,50 +264,50 @@
278 <!-- 전기 검침일--> 264 <!-- 전기 검침일-->
279 <th style="height:25px;">AL코일</th> 265 <th style="height:25px;">AL코일</th>
280 <td class="center" colspan='7'> 266 <td class="center" colspan='7'>
281 <input type="radio" name="chk_info" value="HTML">GRP 267 <input type="radio" name="alCoil" value="G" <?=$info["alCoil"] == "G" ? "CHECKED" : "" ?>>GRP
282 <input type="radio" name="chk_info" value="CSS">AL 268 <input type="radio" name="alCoil" value="A" <?=$info["alCoil"] == "A" ? "CHECKED" : "" ?>>AL
283 <input type="text" style='margin-left:50px;'/> 269 <input type="text" name="alCoilValue" style='margin-left:50px;' value="<?=$info["alCoilValue"]?>"/>
284 </td> 270 </td>
285 </tr> 271 </tr>
286 <tr> 272 <tr>
287 <th style="height:25px;">내부바닥</th> 273 <th style="height:25px;">내부바닥</th>
288 <td class="center" colspan='7'> 274 <td class="center" colspan='7'>
289 <input type="radio" name="chk_info" value="HTML">체크 275 <input type="radio" name="floor" value="C" <?=$info["floor"] == "C" ? "CHECKED" : "" ?>>체크
290 <input type="radio" name="chk_info" value="CSS">민판 276 <input type="radio" name="floor" value="P" <?=$info["floor"] == "P" ? "CHECKED" : "" ?>>민판
291 <input type="text" style='width:5%;'/> T 277 <input type="text" name="floorValueT" style='width:5%;' value="<?=$info["floorValueT"]?>"/> T
292 <input type="text" style='margin-left:45px;'/> 278 <input type="text" name="floorValue" style='margin-left:45px;' value="<?=$info["floorValueText"]?>" />
293 </td> 279 </td>
294 </tr> 280 </tr>
295 <tr> 281 <tr>
296 <th style="height:25px;">누름천막</th> 282 <th style="height:25px;">누름천막</th>
297 <td class="center" colspan='7'> 283 <td class="center" colspan='7'>
298 <input type="radio" name="chk_info" value="HTML">없음 284 <input type="radio" name="tent" value="0" <?=$info["tent"] == "0" ? "CHECKED" : "" ?>>없음
299 <input type="radio" name="chk_info" value="CSS">고정식 285 <input type="radio" name="tent" value="1" <?=$info["tent"] == "1" ? "CHECKED" : "" ?>>고정식
300 <input type="radio" name="chk_info" value="CSS">이동식 286 <input type="radio" name="tent" value="2" <?=$info["tent"] == "2" ? "CHECKED" : "" ?>>이동식
301 </td> 287 </td>
302 </tr> 288 </tr>
303 <tr> 289 <tr>
304 <th style="height:25px;">내부옆판</th> 290 <th style="height:25px;">내부옆판</th>
305 <td class="center" colspan='7'> 291 <td class="center" colspan='7'>
306 <input type="radio" name="chk_info" value="HTML">있음 292 <input type="radio" name="sideBoard" value="1" <?=$info["sideBoard"] == "1" ? "CHECKED" : "" ?>>있음
307 <input type="radio" name="chk_info" value="CSS">없음 293 <input type="radio" name="sideBoard" value="0" <?=$info["sideBoard"] == "0" ? "CHECKED" : "" ?>>없음
308 <input type="text" style='margin-left:45px;'/> 294 <input type="text" name="sideBoardValue" style='margin-left:45px;' value="<?=$info["sideBoardValue"]?>"/>
309 </td> 295 </td>
310 </tr> 296 </tr>
311 <tr> 297 <tr>
312 <th style="height:25px;">바람막이</th> 298 <th style="height:25px;">바람막이</th>
313 <td class="center" colspan='7'> 299 <td class="center" colspan='7'>
314 <input type="radio" name="chk_info" value="HTML">있음 300 <input type="radio" name="windStopper" value="1" <?=$info["windStopper"] == "1" ? "CHECKED" : "" ?>>있음
315 <input type="radio" name="chk_info" value="CSS">없음 301 <input type="radio" name="windStopper" value="0" <?=$info["windStopper"] == "0" ? "CHECKED" : "" ?>>없음
316 <input type="text" style='margin-left:45px;'/> 302 <input type="text" name="windStopperValue" style='margin-left:45px;' value="<?=$info["windStopperValue"]?>"/>
317 </td> 303 </td>
318 </tr> 304 </tr>
319 <tr> 305 <tr>
320 <th style="height:25px;">냉동기</th> 306 <th style="height:25px;">냉동기</th>
321 <td class="center" colspan='7'> 307 <td class="center" colspan='7'>
322 <input type="radio" name="chk_info" value="HTML">있음 308 <input type="radio" name="freezer" value="1" <?=$info["freezer"] == "1" ? "CHECKED" : "" ?>>있음
323 <input type="radio" name="chk_info" value="CSS">없음 309 <input type="radio" name="freezer" value="0" <?=$info["freezer"] == "0" ? "CHECKED" : "" ?>>없음
324 <input type="text" style='margin-left:45px;'/> 310 <input type="text" name="freezerValue" style='margin-left:45px;' value="<?=$info["freezerValue"]?>"/>
325 </td> 311 </td>
326 </tr> 312 </tr>
327 <!-- 게이트 --> 313 <!-- 게이트 -->
...@@ -329,84 +315,84 @@ ...@@ -329,84 +315,84 @@
329 <th style="height:25px;" rowspan='2'>게이트</th> 315 <th style="height:25px;" rowspan='2'>게이트</th>
330 <td class="center" colspan='7'> 316 <td class="center" colspan='7'>
331 -형태 317 -형태
332 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>구형 318 <input type="radio" name="gateType" value="0" style='margin-left:50px;' <?=$info["gateType"] == "0" ? "CHECKED" : "" ?>>구형
333 <input type="radio" name="chk_info" value="CSS">신형 319 <input type="radio" name="gateType" value="1" <?=$info["gateType"] == "1" ? "CHECKED" : "" ?>>신형
334 <input type="text" style='margin-left:45px;'/> 320 <input type="text" name="gateValue" style='margin-left:45px;' value="<?=$info["gateValue"]?>" />
335 </td> 321 </td>
336 </tr> 322 </tr>
337 <tr> 323 <tr>
338 <td class="center" colspan='7'> 324 <td class="center" colspan='7'>
339 -사이즈 325 -사이즈
340 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>600 326 <input type="radio" name="gateSize" value="0" style='margin-left:50px;' <?=$info["gateSize"] == "0" ? "CHECKED" : "" ?>>600
341 <input type="radio" name="chk_info" value="CSS">700 327 <input type="radio" name="gateSize" value="1" <?=$info["gateSize"] == "1" ? "CHECKED" : "" ?>>700
342 <input type="radio" name="chk_info" value="CSS">800 328 <input type="radio" name="gateSize" value="2" <?=$info["gateSize"] == "2" ? "CHECKED" : "" ?>>800
343 </td> 329 </td>
344 </tr> 330 </tr>
345 <tr> 331 <tr>
346 <th style="height:25px;">L&LOAD</th> 332 <th style="height:25px;">L&LOAD</th>
347 <td class="center" colspan='3'> 333 <td class="center" colspan='3'>
348 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>SUS 334 <input type="radio" name="load" value="S" style='margin-left:50px;' <?=$info["load"] == "S" ? "CHECKED" : "" ?>>SUS
349 <input type="radio" name="chk_info" value="CSS">일반 335 <input type="radio" name="load" value="N" <?=$info["load"] == "N" ? "CHECKED" : "" ?>>일반
350 </td> 336 </td>
351 <th style="height:25px;">앞/뒤틀 형식</th> 337 <th style="height:25px;">앞/뒤틀 형식</th>
352 <td class="center" colspan='3'> 338 <td class="center" colspan='3'>
353 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>SUS 339 <input type="radio" name="frontBack" value="S" style='margin-left:50px;' <?=$info["frontBack"] == "S" ? "CHECKED" : "" ?>>SUS
354 <input type="radio" name="chk_info" value="CSS">일반 340 <input type="radio" name="frontBack" value="N" <?=$info["frontBack"] == "N" ? "CHECKED" : "" ?>>일반
355 </td> 341 </td>
356 </tr> 342 </tr>
357 <tr> 343 <tr>
358 <th style="height:25px;" rowspan='2'>E트랙</th> 344 <th style="height:25px;" rowspan='2'>E트랙</th>
359 <td class="center" colspan='7'> 345 <td class="center" colspan='7'>
360 -게이트 346 -게이트
361 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>있음 347 <input type="radio" name="eTrackGate" value="1" style='margin-left:50px;' <?=$info["eTrackGate"] == "1" ? "CHECKED" : "" ?>>있음
362 <input type="radio" name="chk_info" value="CSS">없음 348 <input type="radio" name="eTrackGate" value="0" <?=$info["eTrackGate"] == "0" ? "CHECKED" : "" ?>>없음
363 <input type="text" style='margin-left:45px;'/> 349 <input type="text" name="eTrackValue" style='margin-left:45px;' value="<?=$info["eTrackValue"]?>"/>
364 </td> 350 </td>
365 </tr> 351 </tr>
366 <tr> 352 <tr>
367 <td class="center" colspan='7'> 353 <td class="center" colspan='7'>
368 -날개 354 -날개
369 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>있을 355 <input type="radio" name="eTrackWing" value="1" style='margin-left:50px;' <?=$info["eTrackWing"] == "1" ? "CHECKED" : "" ?>>있을
370 <input type="radio" name="chk_info" value="CSS">없음 356 <input type="radio" name="eTrackWing" value="0" <?=$info["eTrackWing"] == "0" ? "CHECKED" : "" ?>>없음
371 </td> 357 </td>
372 </tr> 358 </tr>
373 359
374 <tr> 360 <tr>
375 <th style="height:25px;">공구통</th> 361 <th style="height:25px;">공구통</th>
376 <td class="center" colspan='7'> 362 <td class="center" colspan='7'>
377 <input type="radio" name="chk_info" value="HTML"> 363 <input type="radio" name="toolBucket" value="1" <?=$info["toolBucket"] == "1" ? "CHECKED" : "" ?>>
378 <input type="radio" name="chk_info" value="CSS"> 364 <input type="radio" name="toolBucket" value="2" <?=$info["toolBucket"] == "2" ? "CHECKED" : "" ?>>
379 <input type="radio" name="chk_info" value="CSS">없음 365 <input type="radio" name="toolBucket" value="0" <?=$info["toolBucket"] == "0" ? "CHECKED" : "" ?>>없음
380 <input type="text" style='margin-left:45px;'/> 366 <input type="text" name="toolBucketValue" style='margin-left:45px;' value="<?=$info["toolBucketValue"]?>"/>
381 </td> 367 </td>
382 </tr> 368 </tr>
383 369
384 <tr> 370 <tr>
385 <th style="height:25px;">범퍼발판</th> 371 <th style="height:25px;">범퍼발판</th>
386 <td class="center" colspan='3'> 372 <td class="center" colspan='3'>
387 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>1개 373 <input type="radio" name="bumperFootHold" value="1" style='margin-left:50px;' <?=$info["bumperFootHold"] == "1" ? "CHECKED" : "" ?>>1개
388 <input type="radio" name="chk_info" value="CSS">2개 374 <input type="radio" name="bumperFootHold" value="2" <?=$info["bumperFootHold"] == "2" ? "CHECKED" : "" ?>>2개
389 </td> 375 </td>
390 <th style="height:25px;">윙보호장치</th> 376 <th style="height:25px;">윙보호장치</th>
391 <td class="center" colspan='3'> 377 <td class="center" colspan='3'>
392 <input type="radio" name="chk_info" value="HTML" style='margin-left:50px;'>1개 378 <input type="radio" name="wingProtector" value="1" style='margin-left:50px;' <?=$info["wingProtector"] == "1" ? "CHECKED" : "" ?>>1개
393 <input type="radio" name="chk_info" value="CSS">2개 379 <input type="radio" name="wingProtector" value="2" <?=$info["wingProtector"] == "2" ? "CHECKED" : "" ?>>2개
394 </td> 380 </td>
395 </tr> 381 </tr>
396 382
397 <tr> 383 <tr>
398 <th style="height:25px;">축(장착여부)</th> 384 <th style="height:25px;">축(장착여부)</th>
399 <td class="center" colspan='7'> 385 <td class="center" colspan='7'>
400 <input type="radio" name="chk_info" value="HTML">있음 386 <input type="radio" name="axis" value="1" <?=$info["axis"] == "1" ? "CHECKED" : "" ?>>있음
401 <input type="radio" name="chk_info" value="CSS">없음 387 <input type="radio" name="axis" value="0" <?=$info["axis"] == "0" ? "CHECKED" : "" ?>>없음
402 <input type="text" style='margin-left:45px;'/> 388 <input type="text" name="axisValue" style='margin-left:45px;' value="<?=$info["axisValue"]?>"/>
403 </td> 389 </td>
404 </tr> 390 </tr>
405 391
406 <tr> 392 <tr>
407 <th style="height:25px;">견적금액</th> 393 <th style="height:25px;">견적금액</th>
408 <td class="center" colspan='7'> 394 <td class="center" colspan='7'>
409 <input type="text" /> 395 <input type="text" name="balance" value="<?=$info["balance"]?>" />
410 </td> 396 </td>
411 </tr> 397 </tr>
412 </table> 398 </table>
...@@ -426,13 +412,44 @@ ...@@ -426,13 +412,44 @@
426 </td> 412 </td>
427 </tr> 413 </tr>
428 414
415 <?if($info['specialAddition1'] != ""){?>
416 <tr no="<?=$addCount?>" class='dynamicRow'><td></td><td><input type='text' class='added' readonly value="<?=$info['specialAddition1']?>" />
417 <span class='button bigrounded gray adddel' no="<?=$addCount?>" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>
418 <?
419 $addCount++;
420 }?>
421 <?if($info['specialAddition2'] != ""){?>
422 <tr no="<?=$addCount?>" class='dynamicRow'><td></td><td><input type='text' class='added' readonly value="<?=$info['specialAddition2']?>" />
423 <span class='button bigrounded gray adddel' no="<?=$addCount?>" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>
424 <?
425 $addCount++;
426 }?>
427 <?if($info['specialAddition3'] != ""){?>
428 <tr no="<?=$addCount?>" class='dynamicRow'><td></td><td><input type='text' class='added' readonly value="<?=$info['specialAddition3']?>" />
429 <span class='button bigrounded gray adddel' no="<?=$addCount?>" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>
430 <?
431 $addCount++;
432 }?>
433 <?if($info['specialAddition4'] != ""){?>
434 <tr no="<?=$addCount?>" class='dynamicRow'><td></td><td><input type='text' class='added' readonly value="<?=$info['specialAddition4']?>" />
435 <span class='button bigrounded gray adddel' no="<?=$addCount?>" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>
436 <?
437 $addCount++;
438 }?>
439 <?if($info['specialAddition5'] != ""){?>
440 <tr no="<?=$addCount?>" class='dynamicRow'><td></td><td><input type='text' class='added' readonly value="<?=$info['specialAddition5']?>" />
441 <span class='button bigrounded gray adddel' no="<?=$addCount?>" style='color:white; width:70px'>&nbsp;X&nbsp;</span></td></tr>
442 <?
443 $addCount++;
444 }?>
445
446 <script>addCounter = <?=$addCount != "" ? $addCount : 0?>;</script>
447
429 </table> 448 </table>
430 </form> 449 </form>
431 450
432 <div class="btngroupcenter"> 451 <div class="btngroupcenter">
433 <span class="button bigrounded blue test btnleft_y"></span>
434 <span class="button bigrounded blue jCancel btnleft_y">목록으로 </span> 452 <span class="button bigrounded blue jCancel btnleft_y">목록으로 </span>
435 <span class="button bigrounded blue jClose btnleft_y">닫기 </span>
436 <span class="button bigrounded blue jMod btnright_y" >저장</span> 453 <span class="button bigrounded blue jMod btnright_y" >저장</span>
437 </div> 454 </div>
438 455
......
...@@ -6,11 +6,21 @@ ...@@ -6,11 +6,21 @@
6 6
7 //$list = $obj->getListOfAdminPush() ; 7 //$list = $obj->getListOfAdminPush() ;
8 $vnum = $obj->virtualNum ; 8 $vnum = $obj->virtualNum ;
9
10 $rurl = pack("H*", $_REQUEST["rurl"]) ;
9 ?> 11 ?>
10 <script> 12 <script>
13 var _rurl = "<?=$rurl?>";
11 14
12 $(document).ready(function(){ 15 $(document).ready(function(){
13 16
17 $.ajax({
18 url : "/setting/agree.txt",
19 dataType : "html",
20 success : function(data){
21 $("#content").val(data);
22 }});
23
14 //=====프레입웤 변수들==================================================================================// 24 //=====프레입웤 변수들==================================================================================//
15 var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름 25 var FORM_TARGET_CLS_NM = "DIV#Contents" ; // 폼을 동적 wrap 할 타겟 ID이름
16 var FORM_NAME = "nf" ; // 폼이름 26 var FORM_NAME = "nf" ; // 폼이름
...@@ -42,224 +52,48 @@ ...@@ -42,224 +52,48 @@
42 jForm.submit() ; 52 jForm.submit() ;
43 }); 53 });
44 54
45 $(".jSearchGroup").click2(function(){ 55 $("#type").change(function(){
46 56 if($("#type").val() == "PR"){
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({ 57 $.ajax({
151 url : ajax_url, 58 url : "/setting/privacy.txt",
152 data : { 59 dataType : "html",
153 "search_text" : search_text 60 success : function(data){
154 }, 61 $("#content").val(data);
155 dataType:"html",
156 success : function(data)
157 {
158 $("#jSearchResultArea").html(data);
159 setSearchAreaEventHandler();
160 } 62 }
161 }); 63 });
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 } 64 }
174 65 else{
175 $.ajax({ 66 $.ajax({
176 url : ajax_url, 67 url : "/setting/agree.txt",
177 data : { 68 dataType : "html",
178 "search_text" : search_text 69 success : function(data){
179 }, 70 $("#content").val(data);
180 dataType:"html",
181 success : function(data)
182 {
183 $("#jSearchResultAreaP").html(data);
184 setSearchAreaEventHandler();
185 } 71 }
186 }); 72 });
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 } 73 }
206 }); 74 });
207 75
208
209 $(".jSave").click2(function(){ 76 $(".jSave").click2(function(){
210 var push_msg = $("#push_msg").val(); 77 if(confirm("내용을 저장하시겠습니까?")){
211 var push_target_type = $("#push_target_type").val(); 78 $("#jData").ajaxSubmit({
212 var group_no = $("#group_no").val(); 79 url:"/action_front.php?cmd=AdminPush.saveAgreement",
213 80 type : "post",
214 if(push_target_type == "2" && group_no == "") 81 forceSync : true,
215 { 82 dataType : "json",
216 alert("그룹을 선택해주세요."); 83 success : function(data){
217 return false; 84 alert(data.returnMessage);
85 location.href = _rurl;
218 } 86 }
219 87
220 if(push_msg == "") 88 });
221 {
222 alert("푸시 내용을 입력해주세요.");
223 return false;
224 } 89 }
225 90
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 }); 91 });
242 92
243 93
244
245 });
246
247 }) ; 94 }) ;
248 95
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 96
258 function resetTargetData()
259 {
260 $("#group_no").val("");
261 $("#group_name").val("");
262 }
263 97
264 98
265 99
...@@ -271,28 +105,31 @@ ...@@ -271,28 +105,31 @@
271 <h1>약관 관리</h1> 105 <h1>약관 관리</h1>
272 <h2>푸시관리 > <span>약관관리</span></h2> 106 <h2>푸시관리 > <span>약관관리</span></h2>
273 <div class="data"> 107 <div class="data">
274 108 <form id="jData" method="post" enctype="multipart/form-data">
275 <table class="datav" style="width:100%;"> 109 <table class="datav" style="width:100%;">
276 <colgroup> 110 <colgroup>
277 <col width="20%" /> 111 <col width="20%" />
278 <col width="80%" /> 112 <col width="80%" />
279 </colgroup> 113 </colgroup>
280 <tr> 114 <tr>
281 <th style="height:25px;">제목</th> 115 <th style="height:25px;">약관 종류</th>
282 <td class="l"> 116 <td>
283 <input type="text" style="width:95%"/> 117 <select id="type" name="type">
118 <option value="AG">이용약관</option>
119 <option value="PR">개인정보처리방침</option>
120 </select>
284 </td> 121 </td>
285 </tr> 122 </tr>
286 <tr> 123 <tr>
287 <th style="height:25px;">내용</th> 124 <th style="height:25px;">내용</th>
288 <td class="l"> 125 <td class="l">
289 <textarea rows="25" style="width:95%;" id="push_msg"></textarea> 126 <textarea rows="25" style="width:95%;" id="content" name="content"><?=$info?></textarea>
290 </td> 127 </td>
291 </tr> 128 </tr>
292 </table> 129 </table>
293 130 </form>
294 <div class="btngroupcenter" style="width:100%;"> 131 <div class="btngroupcenter" style="width:100%;">
295 <span class="button bigrounded blue jSave" >전송</span> 132 <span class="button bigrounded blue jSave" >등록</span>
296 </div> 133 </div>
297 134
298 135
......
...@@ -23,189 +23,12 @@ ...@@ -23,189 +23,12 @@
23 23
24 var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ; 24 var jForm = $(FORM_TARGET_CLS_NM).mf({ "name" : FORM_NAME , "method" : FORM_METHOD , "action" : FORM_ACTION , "useFile" : FORM_USE_FILE }) ;
25 25
26 // 페이징
27 $(".jPage").click2(function(){
28 jForm.ci() ;
29 jForm.mi("page",$(this).attr("page")) ;
30 jForm.submit() ;
31 }) ;
32
33 26
34 $(".jAutoSearch").change(function(){ 27 $(".jAutoSearch").change(function(){
35 jForm.ci() ; 28 jForm.ci() ;
36 jForm.submit() ; 29 jForm.submit() ;
37 }); 30 });
38 31
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(){ 32 $(".jSave").click2(function(){
210 var push_msg = $("#push_msg").val(); 33 var push_msg = $("#push_msg").val();
211 var push_target_type = $("#push_target_type").val(); 34 var push_target_type = $("#push_target_type").val();
...@@ -230,8 +53,7 @@ ...@@ -230,8 +53,7 @@
230 dataType : "json", 53 dataType : "json",
231 data : { 54 data : {
232 "push_msg" : push_msg, 55 "push_msg" : push_msg,
233 "push_target_type" : push_target_type, 56 "push_target_type" : push_target_type
234 "group_no" : group_no
235 }, success : function(data) { 57 }, success : function(data) {
236 alert(data.returnMessage) ; 58 alert(data.returnMessage) ;
237 if(data.returnCode == 1) { 59 if(data.returnCode == 1) {
...@@ -245,24 +67,6 @@ ...@@ -245,24 +67,6 @@
245 }); 67 });
246 68
247 }) ; 69 }) ;
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> 70 </script>
267 71
268 72
...@@ -281,32 +85,14 @@ ...@@ -281,32 +85,14 @@
281 <tr> 85 <tr>
282 <th style="height:25px;">제목</th> 86 <th style="height:25px;">제목</th>
283 <td class="l"> 87 <td class="l">
284 <input type="text" style="width:95%"/> 88 <input type="text" name="title" style="width:95%"/>
285 </td>
286 </tr>
287
288 <tr id="jGroupArea" style="display:none;">
289 <th style="height:25px;">그룹</th>
290 <td class="l">
291 <input type="hidden" id="group_no" />
292 <input type="text" disabled="disabled" id="group_name"/>
293 <input type="button" class="button searchsmall white jSearchGroup" value="그룹검색" />
294 </td>
295 </tr>
296
297 <tr id="jPrivateArea" style="display:none;">
298 <th style="height:25px;">개인</th>
299 <td class="l">
300 <input type="hidden" id="group_no" />
301 <input type="text" disabled="disabled" id="group_name"/>
302 <input type="button" class="button searchsmall white jSearchPrivate" value="회원검색" />
303 </td> 89 </td>
304 </tr> 90 </tr>
305 91
306 <tr> 92 <tr>
307 <th style="height:25px;">내용</th> 93 <th style="height:25px;">내용</th>
308 <td class="l"> 94 <td class="l">
309 <textarea rows="3" style="width:95%;" id="push_msg"></textarea> 95 <textarea rows="5" name="pushMessage" style="width:95%;" id="pushMessage"></textarea>
310 </td> 96 </td>
311 </tr> 97 </tr>
312 </table> 98 </table>
...@@ -315,53 +101,7 @@ ...@@ -315,53 +101,7 @@
315 <span class="button bigrounded blue jSave" >전송</span> 101 <span class="button bigrounded blue jSave" >전송</span>
316 </div> 102 </div>
317 103
318 <h3>푸시 이력</h3>
319 <table class="datacList">
320 <thead>
321 <tr>
322 <th class="no" width="5%">No</th>
323 <th width="65%">메세지</th>
324 <th width="10%">전송시간</th>
325 </tr>
326 </thead>
327 <tbody><!-- 10줄 리스트// 마지막 tr에 class="last" 넣어주세요 -->
328 <? for($i=0; $i<sizeof($list); $i++){ ?>
329 <tr class="<?=(sizeof($list)-1 == $i) ? "last" : "datacLists"?>">
330 <td class="no center">
331 <?=$vnum--?>
332 </td>
333 <td class="center">
334 <?
335 if($list[$i]["push_target_type"] == "1")
336 echo "전체";
337 else if($list[$i]["push_target_type"] == "2")
338 echo "그룹";
339 else if($list[$i]["push_target_type"] == "3")
340 echo "개인";
341 ?>
342 </td>
343 <td class="center">
344 <?=$list[$i]["push_msg"]?>
345 </td>
346 <td class="center">
347 <?=$list[$i]["push_count"]?>
348 </td>
349 <td class="center">
350 <?=$list[$i]["push_dt"]?>
351 </td>
352 </tr>
353 <? } ?>
354 <?if(sizeof($list) == 0){?>
355 <tr class="last">
356 <td class="no center" colspan="11">No Data</td>
357 </tr>
358 <?}?>
359 </tbody>
360 </table>
361 104
362 <!-- Pagination -->
363 <? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/pageNavigation.php" ?>
364 <!--//Pagination -->
365 105
366 </div> 106 </div>
367 107
......
1 <? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminBase.php" ;?>
2 <?
3 if (! class_exists("AdminProductionSpec")){
4 class AdminProductionSpec extends AdminBase{
5
6 function __construct($req)
7 {
8 parent::__construct($req);
9 }
10
11 function getListOfProductionSpec(){
12 $searchType=$this->req["searchType"];
13 $searchText=$this->req["searchText"];
14 $dateFormer=$this->req["dateFormer"];
15 $dateLatter=$this->req["dateLatter"];
16
17 $where=" WHERE PS.status=1";
18
19 if($searchType=="CN")
20 $where.=" AND companyName LIKE '%{$searchText}%'";
21 else if($searchType=="PN")
22 $where.=" AND productName LIKE '%{$searchText}%'";
23 else if($searchType=="MN")
24 $where.=" AND userName LIKE '%{$searchText}%'";
25 else if($searchType=="")
26 $where.=" AND (companyName LIKE '%{$searchText}%' OR productName LIKE '%{$searchText}%' OR userName LIKE '%{$searchText}%')";
27
28 if($dateFormer != "")
29 $where.=" AND DATE_FORMAT(PS.regDate, '%Y%m%d') >= DATE_FORMAT('{$dateFormer}', '%Y%m%d')";
30 if($dateLatter != "")
31 $where.=" AND DATE_FORMAT(PS.regDate, '%Y%m%d') <= DATE_FORMAT('{$dateLatter}', '%Y%m%d')";
32
33
34 $sql="
35 SELECT COUNT(*) AS rn
36 FROM tblProductionSpec PS
37 JOIN tblUser U ON PS.userFk=U.userNo
38 {$where}
39 ORDER BY PS.regDate DESC
40 ";
41 $this->initPage();
42 $this->rownum=$this->getValue($sql, 'rn');
43 $this->setPage($this->rownum);
44 $limit=" LIMIT {$this->startNum}, {$this->endNum} ;";
45
46
47 $sql="
48 SELECT productionNo, DATE_FORMAT(PS.requestDate, '%Y-%m-%d') AS requestDate, PS.companyName, PS.productName, U.userName
49 FROM tblProductionSpec PS
50 JOIN tblUser U ON PS.userFk=U.userNo
51 {$where}
52 ORDER BY PS.productionNo DESC
53 {$limit}
54 ";
55
56 $result=$this->getArray($sql);
57 //echo json_encode($result);
58 return $result;
59 }
60
61 function getInfoOfProductionSpec(){
62 $productionNo=$this->req["no"];
63 $sql="
64 SELECT *
65 FROM tblProductionSpec
66 WHERE productionNo='{$productionNo}'
67 ";
68 $result=$this->getRow($sql);
69 //echo json_encode($result);
70 return $result;
71 }
72
73 function getListOfManager(){
74 $sql="
75 SELECT userNo, userName
76 FROM tblUser
77 WHERE userType=2 AND status=1
78 ORDER BY userNo ASC
79 ";
80 $result=$this->getArray($sql);
81 return $result;
82 }
83
84 function saveProductionSpec(){
85 $productionNo=$this->req["productionNo"];
86
87 $managerFk=$this->req["managerFk"];
88 $requestDate=$this->req["requestDate"];
89 $customerName=$this->req["customerName"];
90 $companyName=$this->req["companyName"];
91 $vehicleTON=$this->req["vehicleTON"];
92 $vehicleText=$this->req["vehicleText"];
93 $vehicleType=$this->req["vehicleType"];
94 $productName=$this->req["productName"];
95 $telephone=$this->req["telephone1"].$this->req["telephone2"].$this->req["telephone3"];
96 $type=$this->req["type"];
97 $typeValue=$this->req["typeValue"];
98 $internalLength=$this->req["internalLength"];
99 $internalHeight=$this->req["internalHeight"];
100 $internalWidth=$this->req["internalWidth"];
101 $alCoil=$this->req["alCoil"];
102 $alCoilValue=$this->req["alCoilValue"];
103 $floor=$this->req["floor"];
104 $floorValueT=$this->req["floorValueT"];
105 $floorValueText=$this->req["floorValueText"];
106 $tent=$this->req["tent"];
107 $sideBoard=$this->req["sideBoard"];
108 $sideBoardValue=$this->req["sideBoardValue"];
109 $windStopper=$this->req["windStopper"];
110 $windStopperValue=$this->req["windStopperValue"];
111 $freezer=$this->req["freezer"];
112 $freezerValue=$this->req["freezerValue"];
113 $gateType=$this->req["gateType"];
114 $gateSize=$this->req["gateSize"];
115 $gateValue=$this->req["gateValue"];
116 $load=$this->req["load"];
117 $frontBack=$this->req["frontBack"];
118 $eTrackGate=$this->req["eTrackGate"];
119 $eTrackWing=$this->req["eTrackWing"];
120 $eTrackValue=$this->req["eTrackValue"];
121 $toolBucket=$this->req["toolBucket"];
122 $toolBucketValue=$this->req["toolBucketValue"];
123 $bumperFootHold=$this->req["bumperFootHold"];
124 $wingProtector=$this->req["wingProtector"];
125 $axis=$this->req["axis"];
126 $axisValue=$this->req["axisValue"];
127 $balance=$this->req["balance"];
128 $specialAddition1=$this->req["specialAddition1"];
129 $specialAddition2=$this->req["specialAddition2"];
130 $specialAddition3=$this->req["specialAddition3"];
131 $specialAddition4=$this->req["specialAddition4"];
132 $specialAddition5=$this->req["specialAddition5"];
133 $sql = "
134 UPDATE `tblProductionSpec`
135 SET
136 `userFk` = '{$managerFk}',
137 `requestDate` = '{$requestDate}',
138 `customerName` = '{$customerName}',
139 `companyName` = '{$companyName}',
140 `vehicleTON` = '{$vehicleTON}',
141 `vehicleText` = '{$vehicleText}',
142 `vehicleType` = '{$vehicleType}',
143 `productName` = '{$productName}',
144 `telephone` = '{$telephone}',
145 `type` = '{$type}',
146 `typeValue` = '{$typeValue}',
147 `internalLength` = '{$internalLength}',
148 `internalHeight` = '{$internalHeight}',
149 `internalWidth` = '{$internalWidth}',
150 `alCoil` = '{$alCoil}',
151 `alCoilValue` = '{$alCoilValue}',
152 `floor` = '{$floor}',
153 `floorValueT` = '{$floorValueT}',
154 `floorValueText` = '{$floorValueText}',
155 `tent` = '{$tent}',
156 `sideBoard` = '{$sideBoard}',
157 `sideBoardValue` = '{$sideBoardValue}',
158 `windStopper` = '{$windStopper}',
159 `windStopperValue` = '{$windStopperValue}',
160 `freezer` = '{$freezer}',
161 `freezerValue` = '{$freezerValue}',
162 `gateType` = '{$gateType}',
163 `gateSize` = '{$gateSize}',
164 `gateValue` = '{$gateValue}',
165 `load` = '{$load}',
166 `frontBack` = '{$frontBack}',
167 `eTrackGate` = '{$eTrackGate}',
168 `eTrackWing` = '{$eTrackWing}',
169 `eTrackValue` = '{$eTrackValue}',
170 `toolBucket` = '{$toolBucket}',
171 `toolBucketValue` = '{$toolBucketValue}',
172 `bumperFootHold` = '{$bumperFootHold}',
173 `wingProtector` = '{$wingProtector}',
174 `axis` = '{$axis}',
175 `axisValue` = '{$axisValue}',
176 `balance` = '{$balance}',
177 `specialAddition1` = '{$specialAddition1}',
178 `specialAddition2` = '{$specialAddition2}',
179 `specialAddition3` = '{$specialAddition3}',
180 `specialAddition4` = '{$specialAddition4}',
181 `specialAddition5` = '{$specialAddition5}'
182 WHERE `productionNo` = '{$productionNo}';
183 ";
184 $this->update($sql);
185 return $this->makeResultJson(1, "저장되었습니다");
186 }
187
188 function deleteProductionSpec(){
189 $noArr = $this->req["no"];
190
191 $noStr = implode(',', $noArr);
192
193 $sql = "
194 UPDATE tblProductionSpec
195 SET status = 0
196 WHERE `productionNo` IN({$noStr})
197 ";
198 $this->update($sql);
199 }
200
201 }
202 }
203 ?>
...\ No newline at end of file ...\ No newline at end of file
...@@ -123,55 +123,28 @@ if(!class_exists("AdminPush")){ ...@@ -123,55 +123,28 @@ if(!class_exists("AdminPush")){
123 123
124 function sendAdminPush() 124 function sendAdminPush()
125 { 125 {
126 $push_msg = $this->req["push_msg"]; 126 $push_msg = $this->req["pushMessage"];
127 $group_no = $this->req["group_no"];
128 $push_target_type = $this->req["push_target_type"];
129 $push_code = $this->getBulkPushCode(); 127 $push_code = $this->getBulkPushCode();
130 $push_succeed=0; 128 $push_succeed=0;
131 129
132 if($push_target_type == "1"){
133 $sql = " 130 $sql = "
134 INSERT INTO tbl_push_target_bulk(push_code, registration_key, device_type_id, app_type) 131 INSERT INTO tbl_push_target_bulk(push_code, registration_key, device_type_id)
135 ( 132 (
136 SELECT '{$push_code}', registration_key, device_type_id, app_type 133 SELECT '{$push_code}', registrationKey, deviceTypeID
137 FROM tbl_user U 134 FROM tblUser U
138 WHERE U.status = 'Y' AND U.registration_key != '' AND is_push = 1 135 WHERE U.status = 1 AND U.registrationKey != '' AND push = 1
139 ) 136 )
140 "; 137 ";
141 $push_count = $this->update($sql); 138 $push_count = $this->update($sql);
142 139
143 $sql="SELECT count(*) as rn 140 $sql="SELECT count(*) as rn
144 FROM tbl_user U 141 FROM tblUser U
145 WHERE U.status = 'Y' AND U.registration_key != '' AND is_push = 1"; 142 WHERE U.status = 1 AND U.registrationKey != '' AND push = 1";
146 $result=$this->getRow($sql);
147 $push_succeed = $result["rn"];
148 }
149 else
150 {
151 $sql = "
152 INSERT INTO tbl_push_target_bulk(push_code, registration_key, device_type_id, app_type)
153 (
154 SELECT '{$push_code}', registration_key, device_type_id, app_type
155 FROM tbl_user U
156 WHERE U.group_fk = '{$group_no}' AND U.status = 'Y' AND U.registration_key != '' AND is_push = 1
157 )
158 ";
159 $push_count = $this->update($sql);
160 $sql="SELECT count(*) as rn
161 FROM tbl_user U
162 WHERE U.status = 'Y' AND U.registration_key != '' AND is_push = 1";
163 $result=$this->getRow($sql); 143 $result=$this->getRow($sql);
164 $push_succeed = $result["rn"]; 144 $push_succeed = $result["rn"];
165 }
166 145
167 $sql = " 146
168 INSERT INTO tbl_push_log(push_target_type, group_fk, push_msg, push_count, push_dt) 147 $push_msg = $this->req["pushMessage"];
169 VALUES('{$push_target_type}', '{$group_no}', '{$push_msg}', '{$push_succeed}', NOW())
170 ";
171 $this->update($sql);
172 $push_msg = $this->req["push_msg"];
173 $group_no = $this->req["group_no"];
174 $push_target_type = $this->req["push_target_type"];
175 148
176 // 푸시 전송 149 // 푸시 전송
177 $params = Array( 150 $params = Array(
...@@ -224,6 +197,29 @@ if(!class_exists("AdminPush")){ ...@@ -224,6 +197,29 @@ if(!class_exists("AdminPush")){
224 return $result; 197 return $result;
225 } 198 }
226 199
200 function saveAgreement(){
201 $type=$this->req["type"];
202 $content=$this->req["content"];
203
204 if($type == "AG"){
205 $filePath = $this->agreeInfoPath;
206 $files = fopen($filePath, "w");
207
208 fwrite($files, $content);
209 fclose($files);
210 return $this->makeResultJson(1, "약관이 저장되었습니다");
211 }
212 else if($type == "PR"){
213 $filePath = $this->privacyInfoPath;
214 $files = fopen($filePath, "w");
215 fwrite($files, $content);
216 fclose($files);
217 return $this->makeResultJson(1, "개인정보처리방침이 저장되었습니다");
218 }
219
220
221 }
222
227 } // class end 223 } // class end
228 } 224 }
229 ?> 225 ?>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -316,6 +316,283 @@ if (! class_exists("AdminBoard")){ ...@@ -316,6 +316,283 @@ if (! class_exists("AdminBoard")){
316 $this->update($sql); 316 $this->update($sql);
317 } 317 }
318 318
319 function getListOfCS(){
320 $sql="
321 SELECT COUNT(*) AS rn
322 FROM tblCustomerService CS
323 JOIN tblUser U ON CS.userFk=U.userNo
324 WHERE CS.status=1 AND U.status=1
325 ";
326 $this->initPage();
327 $this->rownum=$this->getValue($sql, 'rn');
328 $this->setPage($this->rownum);
329 $limit=" LIMIT {$this->startNum}, {$this->endNum} ;";
330
331 $sql="
332 SELECT CS.*, U.userName
333 FROM tblCustomerService CS
334 JOIN tblUser U ON CS.userFk=U.userNo
335 WHERE CS.status=1 AND U.status=1
336 ORDER BY CS.regDate DESC
337 {$limit}
338 ";
339 $result=$this->getArray($sql);
340 return $result;
341 }
342
343 function getInfoOfCS(){
344 $csNo=$this->req["no"];
345
346 $sql="
347 SELECT CS.*, U.userName
348 FROM tblCustomerService CS
349 JOIN tblUser U ON CS.userFk=U.userNo
350 WHERE CS.csNo='{$csNo}'
351 ";
352 $result=$this->getRow($sql);
353 return $result;
354 }
355
356 function saveCS(){
357 $targetFk=$this->req["csNo"];
358 $content=$this->req["content"];
359
360 $sql="
361 INSERT INTO tblComment(userFk, targetFk, commentGroup, gOrder, depth, content, commentType, status, regDate)
362 VALUES
363 (
364 0,
365 '{$targetFk}',
366 0,
367 1,
368 1,
369 '{$content}',
370 'CS',
371 1,
372 NOW()
373 )
374 ";
375 $this->update($sql);
376
377 $currentNo=$this->mysql_insert_id();
378 $sql="
379 UPDATE tblComment
380 SET commentGroup='{$currentNo}'
381 WHERE commentNo='{$currentNo}'
382 ";
383 $this->update($sql);
384
385 return $this->makeResultJson("1", "저장되었습니다");
386 }
387
388 function deleteCS(){
389 $noArr = $this->req["no"];
390
391 $noStr = implode(',', $noArr);
392
393 $sql = "
394 UPDATE tblCustomerService
395 SET status = 0
396 WHERE `csNo` IN({$noStr})
397 ";
398 $this->update($sql);
399 }
400
401 function getListOfCSComment(){
402 $no=$this->req["no"];
403 if($no != ""){
404 $sql="
405 SELECT C.*, IFNULL(U.userName, '관리자') AS userName
406 FROM tblComment C
407 LEFT JOIN tblUser U ON C.userFk=U.userNo
408 WHERE C.commentType='CS' AND C.targetFk='{$no}' AND C.status=1
409 ORDER BY commentGroup DESC, gOrder ASC
410 ";
411 $result=$this->getArray($sql);
412 //echo json_encode($result);
413 return $result;
414 }
415
416 }
417
418 function getListOfProductionPortrait(){
419 $sql="
420 SELECT COUNT(*) AS rn
421 FROM tblProductionPortrait
422 WHERE status=1
423 ";
424 $this->initPage();
425 $this->rownum=$this->getValue($sql, 'rn');
426 $this->setPage($this->rownum);
427 $limit=" LIMIT {$this->startNum}, {$this->endNum} ;";
428
429
430 $sql="
431 SELECT ppNo, title, regDate
432 FROM tblProductionPortrait
433 WHERE status=1
434 ORDER BY ppNo DESC
435 {$limit}
436 ";
437 $result=$this->getArray($sql);
438 return $result;
439 }
440
441 function getInfoOfProductionPortrait(){
442 $ppNo=$this->req["no"];
443
444 $sql="
445 SELECT *
446 FROM tblProductionPortrait
447 WHERE ppNo='{$ppNo}'
448 ";
449 $result=$this->getRow($sql);
450
451 return $result;
452 }
453
454 function getInfoOfProductionPortraitForJson(){
455 $ppNo=$this->req["no"];
456
457 $sql="
458 SELECT *
459 FROM tblProductionPortrait
460 WHERE ppNo='{$ppNo}'
461 ";
462 $result=$this->getRow($sql);
463
464 return json_encode($result);
465 }
466
467 function saveProductionPortrait(){
468 $ppNo=$this->req["no"];
469 $title=$this->req["title"];
470 $content1=$this->req["content1"];
471 $content2=$this->req["content2"];
472 $content3=$this->req["content3"];
473 $content4=$this->req["content4"];
474 $content5=$this->req["content5"];
475 $content6=$this->req["content6"];
476 $content7=$this->req["content7"];
477 $content8=$this->req["content8"];
478 $content9=$this->req["content9"];
479 $content10=$this->req["content10"];
480
481 $imgResult = $this->inFn_Common_fileSave($_FILES);
482
483 $imgPathPP1 = $imgResult["img01"]["saveURL"] != "" ? $imgResult["img01"]["saveURL"] : $this->req["imgPathPP1"];
484 $imgPathPP2 = $imgResult["img02"]["saveURL"] != "" ? $imgResult["img02"]["saveURL"] : $this->req["imgPathPP2"];
485 $imgPathPP3 = $imgResult["img03"]["saveURL"] != "" ? $imgResult["img03"]["saveURL"] : $this->req["imgPathPP3"];
486 $imgPathPP4 = $imgResult["img04"]["saveURL"] != "" ? $imgResult["img04"]["saveURL"] : $this->req["imgPathPP4"];
487 $imgPathPP5 = $imgResult["img05"]["saveURL"] != "" ? $imgResult["img05"]["saveURL"] : $this->req["imgPathPP5"];
488 $imgPathPP6 = $imgResult["img06"]["saveURL"] != "" ? $imgResult["img06"]["saveURL"] : $this->req["imgPathPP6"];
489 $imgPathPP7 = $imgResult["img07"]["saveURL"] != "" ? $imgResult["img07"]["saveURL"] : $this->req["imgPathPP7"];
490 $imgPathPP8 = $imgResult["img08"]["saveURL"] != "" ? $imgResult["img08"]["saveURL"] : $this->req["imgPathPP8"];
491 $imgPathPP9 = $imgResult["img09"]["saveURL"] != "" ? $imgResult["img09"]["saveURL"] : $this->req["imgPathPP9"];
492 $imgPathPP10 = $imgResult["img10"]["saveURL"] != "" ? $imgResult["img10"]["saveURL"] : $this->req["imgPathPP10"];
493
494 if($ppNo==""){
495 $sql="
496 INSERT INTO `tblProductionPortrait`
497 (
498 `title`,
499 `content1`,
500 `content2`,
501 `content3`,
502 `content4`,
503 `content5`,
504 `content6`,
505 `content7`,
506 `content8`,
507 `content9`,
508 `content10`,
509 `imgPathPP1`,
510 `imgPathPP2`,
511 `imgPathPP3`,
512 `imgPathPP4`,
513 `imgPathPP5`,
514 `imgPathPP6`,
515 `imgPathPP7`,
516 `imgPathPP8`,
517 `imgPathPP9`,
518 `imgPathPP10`,
519 `status`,
520 `regDate`
521 )
522 VALUES
523 (
524 '{$title}',
525 '{$content1}',
526 '{$content2}',
527 '{$content3}',
528 '{$content4}',
529 '{$content5}',
530 '{$content6}',
531 '{$content7}',
532 '{$content8}',
533 '{$content9}',
534 '{$content10}',
535 '{$imgPathPP1}',
536 '{$imgPathPP2}',
537 '{$imgPathPP3}',
538 '{$imgPathPP4}',
539 '{$imgPathPP5}',
540 '{$imgPathPP6}',
541 '{$imgPathPP7}',
542 '{$imgPathPP8}',
543 '{$imgPathPP9}',
544 '{$imgPathPP10}',
545 1,
546 NOW()
547 );
548 ";
549 $this->update($sql);
550 return $this->makeResultJson(1, "등록되었습니다");
551 }
552 else{
553 $sql="
554 UPDATE `tblProductionPortrait`
555 SET
556 `title` = '{$title}',
557 `content1` = '{$content1}',
558 `content2` = '{$content2}',
559 `content3` = '{$content3}',
560 `content4` = '{$content4}',
561 `content5` = '{$content5}',
562 `content6` = '{$content6}',
563 `content7` = '{$content7}',
564 `content8` = '{$content8}',
565 `content9` = '{$content9}',
566 `content10` = '{$content10}',
567 `imgPathPP1` = '{$imgPathPP1}',
568 `imgPathPP2` = '{$imgPathPP2}',
569 `imgPathPP3` = '{$imgPathPP3}',
570 `imgPathPP4` = '{$imgPathPP4}',
571 `imgPathPP5` = '{$imgPathPP5}',
572 `imgPathPP6` = '{$imgPathPP6}',
573 `imgPathPP7` = '{$imgPathPP7}',
574 `imgPathPP8` = '{$imgPathPP8}',
575 `imgPathPP9` = '{$imgPathPP9}',
576 `imgPathPP10` = '{$imgPathPP10}'
577 WHERE `ppNo` = '{$ppNo}';
578 ";
579 $this->update($sql);
580 return $this->makeResultJson(1, "수정되었습니다");
581 }
582 }
583
584 function deleteProductionPortrait(){
585 $noArr = $this->req["no"];
586
587 $noStr = implode(',', $noArr);
588
589 $sql = "
590 UPDATE tblProductionPortrait
591 SET status = 0
592 WHERE `ppNo` IN({$noStr})
593 ";
594 $this->update($sql);
595 }
319 } 596 }
320 597
321 } 598 }
......
...@@ -55,13 +55,8 @@ if(! class_exists("Push") ) { ...@@ -55,13 +55,8 @@ if(! class_exists("Push") ) {
55 foreach($pushKeyArr as $key => $pushKey){ 55 foreach($pushKeyArr as $key => $pushKey){
56 56
57 if($pushKey["device_type_id"] != "2" && strlen($pushKey["registration_key"]) > 32){ 57 if($pushKey["device_type_id"] != "2" && strlen($pushKey["registration_key"]) > 32){
58 if($pushKey["app_type"] == 1){
59 array_push($gcmKeyArr, $pushKey["registration_key"]); 58 array_push($gcmKeyArr, $pushKey["registration_key"]);
60 } 59 }
61 else{
62 array_push($gcmKeyArr2, $pushKey["registration_key"]);
63 }
64 }
65 60
66 if($pushKey["device_type_id"] == "2" && strlen($pushKey["registration_key"]) > 32){ 61 if($pushKey["device_type_id"] == "2" && strlen($pushKey["registration_key"]) > 32){
67 array_push($apnsKeyArr, $pushKey["registration_key"]); 62 array_push($apnsKeyArr, $pushKey["registration_key"]);
......
...@@ -21,8 +21,7 @@ ...@@ -21,8 +21,7 @@
21 { 21 {
22 $targetData = Array( 22 $targetData = Array(
23 "registration_key" => $pushTargetList[$i]["registration_key"], 23 "registration_key" => $pushTargetList[$i]["registration_key"],
24 "device_type_id" => $pushTargetList[$i]["device_type_id"], 24 "device_type_id" => $pushTargetList[$i]["device_type_id"]
25 "app_type" => $pushTargetList[$i]["app_type"]
26 ); 25 );
27 $paramsStr = urlencode(json_encode($targetData)); 26 $paramsStr = urlencode(json_encode($targetData));
28 $paramsArr[floor($i/$push_send_size)] .= "&targetList[]={$paramsStr}"; 27 $paramsArr[floor($i/$push_send_size)] .= "&targetList[]={$paramsStr}";
......