sell_view_nomember.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. // include $_SERVER['DOCUMENT_ROOT'].'/common/auth_chk.php';
  4. ?>
  5. <!DOCTYPE html>
  6. <HTML lang="ko">
  7. <head>
  8. <meta charset="utf-8">
  9. <title>UPRO</title>
  10. <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, width=device-width">
  11. <meta name="format-detection" content="telephone=no">
  12. <link rel="stylesheet" type="text/css" href="/m/css/common.css">
  13. <link rel="stylesheet" type="text/css" href="/m/css/sub.css">
  14. <script type="text/javascript" charset="utf-8" src="/m/js/jquery-1.11.2.min.js"></script>
  15. <script type="text/javascript" charset="utf-8" src="/m/js/ui.js"></script>
  16. </head>
  17. <body>
  18. <!-- s : header -->
  19. <? include("../inc/inc_header.php"); ?>
  20. <!-- // e : header -->
  21. <!-- s : container -->
  22. <section id="container">
  23. <section id="visual" class="visual_mypage">
  24. <h2>마이페이지</h2>
  25. <p>쉽고 간편한 내차팔기, 견적산출,<br>최종 매각까지 어떤 수수료도 요구하지 않습니다.</p>
  26. </section>
  27. <section id="content">
  28. <ul class="tab">
  29. <li><a href="#" class="on">입찰정보</a></li>
  30. </ul>
  31. <?
  32. $mode = $_REQUEST["mode"];
  33. $p_nm_name = $_REQUEST["nm_name"];
  34. $p_nm_hp = $_REQUEST["nm_hp"];
  35. $p_nm_number = $_REQUEST["nm_number"];
  36. $sql ="SELECT
  37. a.*
  38. , b.nm_model
  39. , c.nm_grade
  40. , d.nm_brand
  41. , e.nm_model_sub
  42. , getCode('car_master','ds_type',a.ds_type) as nm_type
  43. , getCode('car_master','ds_year',a.ds_year) as nm_year
  44. , getCode('car_master','ds_open',a.ds_open) as nm_open
  45. , getCode('car_master','ds_sales',a.ds_sales) as nm_sales
  46. , getCode('car_master','ds_transmission',a.ds_transmission) as nm_transmission
  47. , getCode('car_master','ds_oil',a.ds_oil) as nm_oil
  48. , getCode('car_master','ds_accident',a.ds_accident) as nm_accident
  49. , getCode('sale_master','ds_usertype',s.ds_usertype) as nm_usertype
  50. , getCode('sale_master','ds_area',s.ds_area) as nm_area
  51. , getCode('sale_master','ds_status',s.ds_status) as nm_status
  52. , s.cd_sale
  53. , s.nm_name nm_name_sale
  54. , s.ds_status ds_status_sale
  55. , s.nm_hp nm_hp_sale
  56. , s.nm_email nm_email_sale
  57. , s.ds_area ds_area_sale
  58. , s.nm_recommend nm_recommend_sale
  59. , s.nm_cont_return nm_cont_return_sale
  60. , getRemainTimeByPhase(".LIMIT_TIME_TENDER.", ".LIMIT_TIME_SELL.", s.dt_approve, now()) as time_limit_sell
  61. FROM sale_master s
  62. inner join car_master a
  63. on (s.cd_car = a.cd_car)
  64. left outer join car_model b
  65. on (a.cd_model = b.cd_model)
  66. left outer join car_grade c
  67. on (a.cd_grade = c.cd_grade)
  68. left outer join car_brand d
  69. on (a.cd_brand = d.cd_brand)
  70. left outer join car_model_sub e
  71. on (a.cd_model_sub = e.cd_model_sub)
  72. WHERE s.nm_name='$nm_name'
  73. and s.nm_hp='$nm_hp'
  74. and a.nm_number='$nm_number'
  75. and s.ds_delind = 'N'
  76. and s.ds_status in ('B0','C0','D0','E0','F0','Z0','ZS')
  77. ORDER BY s.cd_sale desc LIMIT 0,1
  78. ";
  79. $col=mysql_fetch_array(mysql_query($sql));
  80. if (!empty($col[cd_car])){
  81. $cd_sale = $col[cd_sale];
  82. $cd_car = $col[cd_car];
  83. $cd_model = $col[cd_model];
  84. $cd_brand = $col[cd_brand];
  85. $ds_logo = $col[ds_logo];
  86. $cd_category = $col[cd_category];
  87. $cd_grade = $col[cd_grade];
  88. $ds_cate = $col[ds_cate];
  89. $ds_type = $col[ds_type];
  90. $ds_year = $col[ds_year];
  91. $nm_name = $col[nm_name];
  92. $nm_price = $col[nm_price];
  93. $nm_mileage = $col[nm_mileage];
  94. $ds_driving_system = $col[ds_driving_system];
  95. $ds_transmission = $col[ds_transmission];
  96. $nm_file_list = $col[nm_file_list];
  97. $nm_file_main = $col[nm_file_main];
  98. $nm_file_report = $col[nm_file_report];
  99. $nm_file_report_back = $col[nm_file_report_back];
  100. $nm_file_front = $col[nm_file_front];
  101. $nm_file_back = $col[nm_file_back];
  102. $nm_file_side1 = $col[nm_file_side1];
  103. $nm_file_side2 = $col[nm_file_side2];
  104. $nm_file_dashboard = $col[nm_file_dashboard];
  105. $ds_oil = $col[ds_oil];
  106. $nm_gearbox = $col[nm_gearbox];
  107. $nm_color = $col[nm_color];
  108. $nm_incolor = $col[nm_incolor];
  109. $ds_accident = $col[ds_accident];
  110. $nm_cont_accident = $col[nm_cont_accident];
  111. $nm_regdate = $col[nm_regdate];
  112. $ds_sales = $col[ds_sales];
  113. $nm_btitle = $col[nm_btitle];
  114. $nm_stitle = $col[nm_stitle];
  115. $nm_ltitle = $col[nm_ltitle];
  116. $nm_cont = $col[nm_cont];
  117. $nm_guide = $col[nm_guide];
  118. $ds_open = $col[ds_open];
  119. $ds_status = $col[ds_status];
  120. $dt_insert = $col[dt_insert];
  121. $nm_insert = $col[nm_insert];
  122. $dt_update = $col[dt_update];
  123. $nm_update = $col[nm_update];
  124. $ds_delind = $col[ds_delind];
  125. $nm_number = $col[nm_number];
  126. $nm_cc = $col[nm_cc];
  127. $ds_trade = $col[ds_trade];
  128. $ds_main = $col[ds_main];
  129. $nm_regdate_yyyy = $col[nm_regdate_yyyy];
  130. $nm_regdate_mm = $col[nm_regdate_mm];
  131. $nm_regdate_dd = $col[nm_regdate_dd];
  132. $nm_brand = $col[nm_brand];
  133. $nm_model = $col[nm_model];
  134. $nm_model_sub = $col[nm_model_sub];
  135. $nm_grade = $col[nm_grade];
  136. $nm_year = $col[nm_year];
  137. $nm_type = $col[nm_type];
  138. $nm_open = $col[nm_open];
  139. $nm_sales = $col[nm_sales];
  140. $nm_transmission = $col[nm_transmission];
  141. $nm_oil = $col[nm_oil];
  142. $nm_usertype = $col[nm_usertype];
  143. $nm_accident = $col[nm_accident];
  144. $nm_area = $col[nm_area];
  145. $nm_name_sale = $col[nm_name_sale];
  146. $ds_status_sale = $col[ds_status_sale];
  147. $nm_hp_sale = $col[nm_hp_sale];
  148. $nm_email_sale = $col[nm_email_sale];
  149. $ds_area_sale = $col[ds_area_sale];
  150. $nm_recommend_sale = $col[nm_recommend_sale];
  151. $nm_cont_return_sale = $col[nm_cont_return_sale];
  152. $time_limit_sell = $col[time_limit_sell];
  153. //보험처리
  154. $nm_act_chgno = $col[nm_act_chgno];
  155. $nm_act_chgnm = $col[nm_act_chgnm];
  156. $nm_act_s1 = $col[nm_act_s1];
  157. $nm_act_s2 = $col[nm_act_s2];
  158. $nm_act_s3 = $col[nm_act_s3];
  159. $nm_act_s4 = $col[nm_act_s4];
  160. $nm_act_my = $col[nm_act_my];
  161. $nm_act_my_amt = $col[nm_act_my_amt];
  162. $nm_act_other = $col[nm_act_other];
  163. $nm_act_other_amt = $col[nm_act_other_amt];
  164. $nm_act_searchdt = $col[nm_act_searchdt];
  165. $nm_act_cnt = $col[nm_act_cnt];
  166. $nm_act_general_spec = $col[nm_act_general_spec];
  167. $nm_act_use_record = $col[nm_act_use_record];
  168. $nm_act_use_record_lend = $col[nm_act_use_record_lend];
  169. $nm_act_use_record_biz = $col[nm_act_use_record_biz];
  170. $nm_act_use_record_official = $col[nm_act_use_record_official];
  171. $nm_act_ins_loss = $col[nm_act_ins_loss];
  172. $nm_act_ins_wet = $col[nm_act_ins_wet];
  173. $nm_act_ins_robbery = $col[nm_act_ins_robbery];
  174. $nm_file_act = $col[nm_file_act];
  175. $nm_act_yn = $col[nm_act_yn];
  176. $ds_g1_01 = $col[ds_g1_01];
  177. $ds_g1_02 = $col[ds_g1_02];
  178. $ds_g1_03 = $col[ds_g1_03];
  179. $ds_g1_04 = $col[ds_g1_04];
  180. $ds_g1_05 = $col[ds_g1_05];
  181. $ds_g2_01 = $col[ds_g2_01];
  182. $ds_g2_02 = $col[ds_g2_02];
  183. $ds_g2_03 = $col[ds_g2_03];
  184. $ds_g2_04 = $col[ds_g2_04];
  185. $ds_g2_05 = $col[ds_g2_05];
  186. $ds_g3_01 = $col[ds_g3_01];
  187. $ds_g3_02 = $col[ds_g3_02];
  188. $ds_g3_03 = $col[ds_g3_03];
  189. $ds_g3_04 = $col[ds_g3_04];
  190. $ds_g3_05 = $col[ds_g3_05];
  191. $ds_g4_01 = $col[ds_g4_01];
  192. $ds_g4_02 = $col[ds_g4_02];
  193. $ds_g4_03 = $col[ds_g4_03];
  194. $ds_g4_04 = $col[ds_g4_04];
  195. $ds_g4_05 = $col[ds_g4_05];
  196. /*
  197. $arr_nm_info1 = explode("-",$nm_info1);
  198. if(count($arr_nm_info1) == 3){
  199. $nm_info11 = $arr_nm_info1[0];
  200. $nm_info12 = $arr_nm_info1[1];
  201. $nm_info13 = $arr_nm_info1[2];
  202. }else{
  203. $nm_info11 = "";
  204. $nm_info12 = "";
  205. $nm_info13 = "";
  206. }
  207. $arr_nm_info3 = explode("@",$nm_info3);
  208. if(count($arr_nm_info3) == 2){
  209. $nm_info31 = $arr_nm_info3[0];
  210. $nm_info32 = $arr_nm_info3[1];
  211. }else{
  212. $nm_info31 = "";
  213. $nm_info32 = "";
  214. }
  215. $nm_info3 = $col[nm_info3];
  216. */
  217. }else{
  218. AlertBack("진행중인 차량 정보가 존재하지 않습니다.");
  219. }
  220. ?>
  221. <h3>차량 기본정보</h3>
  222. <div class="car_model">
  223. <p><?=$nm_brand." ".$nm_model." ".$nm_model_sub." ".$nm_grade?></p>
  224. <? if($ds_status_sale == "E0" || $ds_status_sale == "F0"){ ?>
  225. <p>입찰 마감 시간 : <em><?=$time_limit_sell?></em></p>
  226. <? } ?>
  227. </div>
  228. <table class="tbl_h">
  229. <colgroup>
  230. <col width="32%">
  231. <col width="*">
  232. </colgroup>
  233. <tr>
  234. <th>차량번호</th>
  235. <td><?=$nm_number?></td>
  236. </tr>
  237. <tr>
  238. <th>제조사</th>
  239. <td><?=$nm_brand?></td>
  240. </tr>
  241. <tr>
  242. <th>모델</th>
  243. <td><?=$nm_model?></td>
  244. </tr>
  245. <tr>
  246. <th>세부모델</th>
  247. <td><?=$nm_model_sub?></td>
  248. </tr>
  249. <tr>
  250. <th>등급</th>
  251. <td><?=$nm_grade?></td>
  252. </tr>
  253. <tr>
  254. <th>연식(최초등록일)</th>
  255. <td><?=$nm_regdate_yyyy."년 ".$nm_regdate_mm."월"?></td>
  256. </tr>
  257. <tr>
  258. <th>형식연도</th>
  259. <td><?=$nm_year?>년</td>
  260. </tr>
  261. <tr>
  262. <th>배기량</th>
  263. <td><?=$nm_cc?>cc</td>
  264. </tr>
  265. <tr>
  266. <th>변속기</th>
  267. <td><?=$nm_transmission?></td>
  268. </tr>
  269. <tr>
  270. <th>연료</th>
  271. <td><?=$nm_oil?></td>
  272. </tr>
  273. <tr>
  274. <th>색상</th>
  275. <td><?=$nm_color?></td>
  276. </tr>
  277. <tr>
  278. <th>주행거리</th>
  279. <td><?=$nm_mileage?>km</td>
  280. </tr>
  281. <tr>
  282. <th>추천인</th>
  283. <td><?= ($nm_recommend_sale == "") ? "없음":$nm_recommend_sale ?></td>
  284. </tr>
  285. <tr>
  286. <th>사고유무</th>
  287. <td><?=$nm_accident?><?=($ds_accident == "A0") ? " - ".$nm_cont_accident : "" ?></td>
  288. </tr>
  289. <tr>
  290. <th>옵션</th>
  291. <td colspan="3"><?=$nm_cont?></td>
  292. </tr>
  293. <tr>
  294. <th>필수사진</th>
  295. <td>
  296. <ul class="photo_list">
  297. <li>
  298. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_front?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_front?>')">
  299. <span>차량전면</span>
  300. </li>
  301. <li>
  302. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_back?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_back?>')">
  303. <span>차량후면</span>
  304. </li>
  305. <li>
  306. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_side1?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_side1?>')">
  307. <span>운전석 측면</span>
  308. </li>
  309. <li>
  310. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_side2?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_side2?>')">
  311. <span>조수석 측면</span>
  312. </li>
  313. <li>
  314. <img src="<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_dashboard?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?>nm_file_main/<?=$nm_file_dashboard?>')">
  315. <span>계기판</span>
  316. </li>
  317. </ul>
  318. </td>
  319. </tr>
  320. <tr>
  321. <th>추가사진</th>
  322. <td>
  323. <ul class="photo_list">
  324. <?
  325. if(!empty($col[cd_car])){
  326. $r = mysql_query("SELECT * FROM car_file WHERE cd_car = '$cd_car' and ds_type='' and ds_delind='N' Order by no_sort asc , cd_car ASC ");
  327. $i=1;
  328. while($imgs = mysql_fetch_array($r)) {
  329. ?>
  330. <li><img src="<?=UPLOAD_PATH_CAR?><?=$imgs[cd_car]?>_detail/<?=$imgs[nm_file]?>" onclick="viewPhoto('<?=UPLOAD_PATH_CAR?><?=$imgs[cd_car]?>_detail/<?=$imgs[nm_file]?>')"></li>
  331. <?
  332. }
  333. }else{
  334. ?>
  335. <?
  336. }
  337. ?>
  338. </ul>
  339. </td>
  340. </tr>
  341. </table>
  342. <div class="btn_center">
  343. <?
  344. if($ds_status_sale == "A0" || $ds_status_sale == "B0" || $ds_status_sale == "C0" || $ds_status_sale == "D0"){ //ds_status_sale=A0,B0,C0,D0 입력중,입력완료,승인대기,반려
  345. ?>
  346. <a href="#" class="button" id="btn_update">수정하기</a>
  347. <?
  348. }
  349. ?>
  350. </div>
  351. <h3>사고이력정보</h3>
  352. <ul class="accident_history">
  353. <li><span>차량번호 변경</span> <em><?=$nm_act_chgno?> 회</em></li>
  354. <li><span>소유자 변경</span> <em><?=$nm_act_chgnm?>회</em></li>
  355. <li><span>자동차 보험 특수 사고</span> <em>전손 : <?=$nm_act_s1?> 회 / 침수전손 : <?=$nm_act_s2?> 회 / 침수분손 : <?=$nm_act_s3?> 회 / 도난 : <?=$nm_act_s4?> 회</em></li>
  356. <li><span>보험사고 (내차피해)</span> <em><?=$nm_act_my?>회 (<?=$nm_act_my_amt?>원)</em></li>
  357. <li><span>보험사고 (타차가해)</span> <em><?=$nm_act_other?>회 (<?=$nm_act_other_amt?>원)</em></li>
  358. <!--<li><span>사고이력 조회일</span> <em>2018-12-05</em></li>-->
  359. </ul>
  360. <div class="btn_center">
  361. <a href="#" class="button" onclick="openLayer('car'); return false;">사고이력 정보 조회 보기</a>
  362. </div>
  363. <!-- layer popup -->
  364. <div class="layer_popup car_popup">
  365. <h3>중고차 보험처리 이력정보 보고서</h3>
  366. <p class="close">레이어팝업닫기</p>
  367. <div class="scr_cont">
  368. <h4>중고차 사고이력 요약 정보</h4>
  369. <table class="tbl_data">
  370. <colgroup>
  371. <col width="44%">
  372. <col width="*">
  373. </colgroup>
  374. <tr>
  375. <th>자동차 일반사양</th>
  376. <td><?=$nm_act_general_spec?></td>
  377. </tr>
  378. <tr>
  379. <th>자동차 용도이력</th>
  380. <td><?=$nm_act_use_record?></td>
  381. </tr>
  382. <tr>
  383. <th>자동차 번호 /<br>소유자 변경횟수</th>
  384. <td><?=$nm_act_chgno?>회 / <?=$nm_act_chgnm?>회</td>
  385. </tr>
  386. <tr>
  387. <th>자동차보험 특수<br>사고이력(전손, 침수, 도난)</th>
  388. <td>전손 : <?=$nm_act_s1?>, 도난 : <?=$nm_act_s4?>, 침수<br>(전손 : <?=$nm_act_s2?>, 분손 : <?=$nm_act_s3?>)</td>
  389. </tr>
  390. <tr>
  391. <th>보험사고이력(내차 피해)</th>
  392. <td><?=$nm_act_my?> 회, <?=$nm_act_my_amt?>원</td>
  393. </tr>
  394. <tr>
  395. <th>보험사고이력(타차 피해)</th>
  396. <td><?=$nm_act_other?> 회, <?=$nm_act_other_amt?> 원</td>
  397. </tr>
  398. </table>
  399. <p class="notice01">자동차보험 사고기록이 없었다고 해서 반드시 무사고라고 할 수는 없습니다.</p>
  400. <h5>1. 자동차 용도 이력정보</h5>
  401. <table class="tbl_data">
  402. <colgroup>
  403. <col width="35%">
  404. <col width="*">
  405. </colgroup>
  406. <tr>
  407. <th>대여용도 사용이력(렌터카)</th>
  408. <td><?=$nm_act_use_record_lend?></td>
  409. </tr>
  410. <tr>
  411. <th>영업용도 사용이력</th>
  412. <td><?=$nm_act_use_record_biz?></td>
  413. </tr>
  414. <tr>
  415. <th>관용용도 사용이력</th>
  416. <td><?=$nm_act_use_record_official?></td>
  417. </tr>
  418. </table>
  419. <p class="notice02">과거 자동차번호 변경기록을 모두 검색하여 제공하는 것으로 대여용(렌트카), 영업용(택시 등)으로 사용된 적이 있는지 확인할 수 있습니다.</p>
  420. <h5>2. 자동차보험 특수 사고 이력 정보</h5>
  421. <table class="tbl_data">
  422. <colgroup>
  423. <col width="35%">
  424. <col width="*">
  425. </colgroup>
  426. <tr>
  427. <th>전손 보험사고</th>
  428. <td><?=$nm_act_ins_loss?></td>
  429. </tr>
  430. <tr>
  431. <th>침수 보험사고</th>
  432. <td><?=$nm_act_ins_wet?></td>
  433. </tr>
  434. <tr>
  435. <th>도난 보험사고</th>
  436. <td><?=$nm_act_ins_robbery?></td>
  437. </tr>
  438. </table>
  439. <h5>3. 보험사고 이력정보 : 내차 피해</h5>
  440. <table class="tbl_data2">
  441. <colgroup>
  442. <col width="20%">
  443. <col width="20%">
  444. <col width="20%">
  445. <col width="20%">
  446. <col width="20%">
  447. </colgroup>
  448. <thead>
  449. <tr>
  450. <th>사고일자</th>
  451. <th>부품</th>
  452. <th>공임</th>
  453. <th>도장</th>
  454. <th>총 수리비용</th>
  455. </tr>
  456. </thead>
  457. <tbody>
  458. <tr>
  459. <th><?=$ds_g1_01?></th>
  460. <td><?=$ds_g1_02?>원</td>
  461. <td><?=$ds_g1_03?>원</td>
  462. <td><?=$ds_g1_04?>원</td>
  463. <td><?=$ds_g1_05?>원</td>
  464. </tr>
  465. <tr>
  466. <th><?=$ds_g2_01?></th>
  467. <td><?=$ds_g2_02?>원</td>
  468. <td><?=$ds_g2_03?>원</td>
  469. <td><?=$ds_g2_04?>원</td>
  470. <td><?=$ds_g2_05?>원</td>
  471. </tr>
  472. <tr>
  473. <th><?=$ds_g3_01?></th>
  474. <td><?=$ds_g3_02?>원</td>
  475. <td><?=$ds_g3_03?>원</td>
  476. <td><?=$ds_g3_04?>원</td>
  477. <td><?=$ds_g3_05?>원</td>
  478. </tr>
  479. <tr>
  480. <th><?=$ds_g4_01?></th>
  481. <td><?=$ds_g4_02?>원</td>
  482. <td><?=$ds_g4_03?>원</td>
  483. <td><?=$ds_g4_04?>원</td>
  484. <td><?=$ds_g4_05?>원</td>
  485. </tr>
  486. </tbody>
  487. </table>
  488. <!--
  489. <h5>4. 보험사고 이력정보 : 타차 가해</h5>
  490. <table class="tbl_data2">
  491. <colgroup>
  492. <col width="20%">
  493. <col width="20%">
  494. <col width="20%">
  495. <col width="20%">
  496. <col width="20%">
  497. </colgroup>
  498. <thead>
  499. <tr>
  500. <th>사고일자</th>
  501. <th>부품</th>
  502. <th>공임</th>
  503. <th>도장</th>
  504. <th>총 수리비용</th>
  505. </tr>
  506. </thead>
  507. <tbody>
  508. <tr>
  509. <th>2017-05-27</th>
  510. <td>857,610원</td>
  511. <td>857,610원</td>
  512. <td>857,610원</td>
  513. <td>857,610원</td>
  514. </tr>
  515. <tr>
  516. <th>2017-05-27</th>
  517. <td>857,610원</td>
  518. <td>857,610원</td>
  519. <td>857,610원</td>
  520. <td>857,610원</td>
  521. </tr>
  522. </tbody>
  523. </table>-->
  524. <ul class="notice03">
  525. <li>중고차 사고 이력정보 서비스는 자동차 보험을 취급하는 14개 손해보험사의 자동차 보험수리비 지급기록(1996년 이후)에 근거하여 제공하고 있습니다.<br>
  526. 따라서 다음과 같은 경우에는 중고차 사고 이력정보 서비스를 제공할 수 없습니다.</li>
  527. <li>
  528. <ol>
  529. <li>사고가 있었다하더라도 보험회사에 사전신고를 하지 않고 자비로 처리한 경우,<br>
  530. 사고신고를 하였더라도 면책, 취소 등의 사유로 보험금이 지급되지 않은경우,<br>
  531. 사고신고 후 자비로 처리한 경우입니다.</li>
  532. <li>사고가 있었다하더라도 종합보험, 즉 자기차량담보나 대물배상담보의 자동차 보험에 가입하지 않아서 자동차 보험으로 수리비용을 청구하지 못한 경우<br>
  533. (단, 이경우라도 타인 자동차보험에서 보상받은 경우에는 사고정보 제공가능)</li>
  534. <li>자동차보험이 아니 운수공제(택시공제, 화물공제, 버스공제 등)에 가입되어 운수공제로부터 자동차의 피해에 대한 손해를 보상받은 경우 등</li>
  535. </ol>
  536. </li>
  537. <li>본 중고차 사고이력정보는 중고차 품질확인을 위한 보조정보이며 결정적인 판단 자료로 사용되어서는 아니됩니다. 따라서 정밀한 중고차 품질확인을<br>
  538. 원하시면 차량진단 전문업체의 진단을 받아보시기 바랍니다.</li>
  539. <li>※ 보험개발원(www.kidi.or.kr)은 보험입법 제 176조에 의하여 설립된 보험요율산출기관이며,<br>
  540. 중고차사고이력정보서비스(www.carhistory.or.kr)는 보험업법시행령 제86조 제1호 근거하여 제공합니다. </li>
  541. </ul>
  542. <p class="sign"><img src="/m/img/img_sign.gif"></p>
  543. </div>
  544. </div>
  545. <!-- // layer popup -->
  546. <?
  547. // $cd_sale = $_REQUEST["cd_sale"];
  548. $PageNo = $_REQUEST['pageno'];
  549. $PageSize = $_REQUEST['PageSize'];
  550. if (empty($PageNo)) {$PageNo=1;}else{$PageNo=$PageNo;}
  551. if (empty($PageSize)) {
  552. $PageSize=10; //목록개수설정
  553. }else{$PageSize=$PageSize;}
  554. $pagestartpoint=($PageNo-1)*$PageSize;
  555. $OrderBy = $_REQUEST['OrderBy'];
  556. if ($OrderBy == "") $OrderBy = "cast(t.nm_price as unsigned) desc, t.cd_tender desc ";
  557. $sOrderBy = "ORDER BY ".$OrderBy;
  558. //$sql = "where ds_delind='N'";
  559. $sql = "";
  560. $totalrows = @mysql_result(mysql_query("select count(*) FROM dealer_master d inner join tender_master t on (d.cd_dealer = t.cd_dealer_p and t.cd_sale = $cd_sale and t.ds_delind='N' $sql) "),0,0);
  561. ?>
  562. <h3>입찰 업체 리스트</h3>
  563. <?
  564. if($totalrows>0) {
  565. $r = mysql_query("SELECT t.*, d.nm_company nm_company_dealer, d.nm_name nm_name_dealer, s.ds_status ds_status_sale, getRemainTimeByPhase(".LIMIT_TIME_TENDER.", ".LIMIT_TIME_SELL.", s.dt_approve, now()) as time_limit_sell, d1.nm_name nm_name_dealer1 FROM dealer_master d inner join tender_master t on (d.cd_dealer = t.cd_dealer_p and t.cd_sale = $cd_sale and t.ds_delind='N' $sql) inner join dealer_master d1 on (t.cd_dealer = d1.cd_dealer) inner join sale_master s on (t.cd_sale = s.cd_sale) $sOrderBy LIMIT $pagestartpoint,$PageSize");
  566. $i=1;
  567. while($col = mysql_fetch_array($r)) {
  568. ?>
  569. <ul class="business_list">
  570. <li><p><?=$col[nm_company_dealer]?> / <?=$col[nm_name_dealer1]?>
  571. <?
  572. if($col[ds_status_sale] == "Z0" || $col[ds_status_sale] == "ZS" || $col[ds_status_sale] == "ZE"){
  573. ?>
  574. <?
  575. if($col[ds_status_sale] == "ZE"){
  576. ?>
  577. <a href="#" class="button">거래실수</a>
  578. <?
  579. }else{
  580. ?>
  581. <a href="#" class="button"><?= ($col[ds_status] == "Z0") ? "낙찰" : "낙첨" ?> </a>
  582. <?
  583. }
  584. ?>
  585. <?
  586. }else{
  587. ?>
  588. <?
  589. if($col[ds_status_sale] == "E0" || $col[ds_status_sale] == "F0"){
  590. if($col[time_limit_sell]=="0분"){
  591. ?>
  592. <a href="#" class="button">낙첨</a>
  593. <?
  594. }else{
  595. ?>
  596. <a href="#" class="button" onclick="selectTender('<?=$col[cd_tender]?>','<?=$col[nm_company_dealer]?>','<?=$col[nm_price]?>')" id="a_Tender" value="<?=$col[cd_tender]?>">낙찰하기</a>
  597. <?
  598. }
  599. ?>
  600. <?
  601. }
  602. ?>
  603. <?
  604. }
  605. ?>
  606. </p>
  607. <ul>
  608. <li><span>입찰금액</span><?=$col[nm_price]?>만원</li>
  609. <li><span>입찰일</span><?=$col[dt_insert]?></li>
  610. <!-- <li><span>연락처</span>010-8***-****</li>-->
  611. <li><span>업체정보</span><a href="#" onclick="openPostScript('<?=$col[cd_dealer_p]?>','<?=$col[cd_tender]?>'); return false;">후기 보기</a></li>
  612. </ul>
  613. </li>
  614. </ul>
  615. <?
  616. $i++;
  617. }
  618. }else{
  619. ?>
  620. <ul class="business_list">
  621. <li><p>데이터가 존재 하지 않습니다.</p>
  622. </li>
  623. </ul>
  624. <?
  625. }
  626. ?>
  627. <div class="paging">
  628. <?
  629. $url = "./sell_view_nomember.php?list_url=$list_url&cd_sale=$cd_sale&ds_status_sale=$ds_status_sale&ListPageNo=$ListPageNo&PageNo=$PageNo&nm_name=$p_nm_name&nm_hp=$p_nm_hp&nm_number=$p_nm_number&mode=$mode";
  630. // ListPg1($url ,$PageNo,$PageSize,10,$totalrows,$leftboard[1],$rootpath);
  631. ?>
  632. <!-- layer popup -->
  633. <div class="layer_popup tender_popup">
  634. <div class="popup_wrap">
  635. <p class="msg"><em id="nm_dealer_popup">고진상사</em>에게 낙찰정보를 보내시겠습니까?</p>
  636. <div class="btn_center">
  637. <a href="#" class="button" id="btn_write">확인</a>
  638. <a href="#" class="button gray" onclick="closeLayer('tender'); return false;">취소</a>
  639. </div>
  640. </div>
  641. </div>
  642. <!-- // layer popup -->
  643. </section>
  644. </section>
  645. <form name="frmForm" id="frmForm" method="post" action="/mypage/dealer_proc.php">
  646. <input type="hidden" name="mode" id="mode" value="TenderSuccessNomember">
  647. <input type="hidden" name="cd_sale" id="cd_sale" value="<?=$cd_sale?>">
  648. <input type="hidden" name="cd_tender" id="cd_tender">
  649. <input type="hidden" name="nm_price" id="nm_price">
  650. <input type="hidden" name="nm_name" id="nm_name" value="<?=$p_nm_name?>">
  651. <input type="hidden" name="nm_hp" id="nm_hp" value="<?=$p_nm_hp?>">
  652. <input type="hidden" name="nm_number" id="nm_number" value="<?=$p_nm_number?>">
  653. </form>
  654. <script laguage="javascript" type="text/javascript">
  655. function openPostScript(arg1, arg2){
  656. var url = "/mypage/sell_view_postscript.php?cd_dealer_p="+arg1+"&cd_tender="+arg2;
  657. // var winname = "winPostscript";
  658. var winname = "_blank";
  659. var opt = "width=600,height=700,scrollbar=no";
  660. popup_window(url, winname, opt);
  661. }
  662. function selectTender(arg1, arg2, arg3){
  663. $("#cd_tender").val(arg1);
  664. $("#nm_dealer_popup").text(arg2);
  665. $("#nm_price").val(arg3);
  666. openLayer('tender'); return false;
  667. }
  668. function viewPhoto(arg1){
  669. $("#photoBig").attr("src", arg1);
  670. openLayer('photo'); return false;
  671. }
  672. $(document).ready(function() {
  673. $("#btn_write").bind("click",function(){
  674. // $("#cd_tender").val($("#a_Tender").attr('value'));
  675. var c=confirm("정보를 등록하시겠습니까?");
  676. if(c){
  677. $("#btn_write").hide();
  678. $("#frmForm").submit();
  679. }else{
  680. $("#btn_write").show();
  681. return false;
  682. }
  683. });
  684. $("#btn_update,#btn_update_return").on("click", function(){
  685. $.post("/sell/proc.php", { mode:"updateCar", cd_car:"<?=$cd_car?>", cd_sale:"<?=$cd_sale?>"},function(data) {
  686. // alert(data);
  687. if(data=="Y"){
  688. location.href = "./sell_step1.php?mode=Step1";
  689. }else{
  690. alert("수정할 수 없습니다.");
  691. return;
  692. }
  693. });
  694. });
  695. //<!-- Postscript -->
  696. <?
  697. if ($ds_status_sale == "ZS"){
  698. ?>
  699. setCodeSelect("listcode","nm_score_postscript", "sale_master","nm_score_postscript","<?=$nm_score_postscript?>","선택하세요","");
  700. $("#btn_write_postscript").bind("click",function(){
  701. var fieldlist = [["nm_score_postscript","고객만족도"],["nm_cont_postscript","내용"]]
  702. if (!fnCheckForm(fieldlist)){
  703. return false;
  704. }
  705. var c=confirm("정보를 등록하시겠습니까?");
  706. if(c){
  707. $("#btn_write_postscript").hide();
  708. $("#frmFormPostscript").submit();
  709. }else{
  710. $("#btn_write_postscript").show();
  711. return false;
  712. }
  713. });
  714. <?
  715. }
  716. ?>
  717. //<!-- // Postscript -->
  718. });
  719. </script>
  720. <!-- s : footer -->
  721. <? include("../inc/inc_footer.php"); ?>
  722. <!-- // e : footer -->
  723. </body>
  724. </html>
  725. <?
  726. mysql_close($connect);
  727. ?>