dealer_tender_view0620.php 23 KB

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