dealer_review_view.php 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].'/common/dealer_chk.php';
  4. $cd_dealer = $_REQUEST["cd_dealer"];
  5. $PageNo = $_REQUEST["ListPageNo"];
  6. ?>
  7. <? include("../include/inc_top.php") ?>
  8. <? include("../include/inc_header.php") ?>
  9. <section id="wrap">
  10. <section id="visual" class="visual_mypage">
  11. <h2>마이페이지</h2>
  12. <p>쉽고 간편한 내차팔기, 견적산출, 최종 매각까지 어떤 수수료도 요구하지 않습니다.</p>
  13. </section>
  14. <section id="content">
  15. <ul class="location">
  16. <li><a href="/" class="home">홈</a></li>
  17. <li><span class="depth1">마이페이지</span>
  18. <ul class="sub_depth">
  19. <li><a href="#">마이페이지</a></li>
  20. <li><a href="#">입찰정보</a></li>
  21. <li><a href="#">차량정보</a></li>
  22. <li><a href="#">문의내역</a></li>
  23. </ul>
  24. </li>
  25. <li><span class="depth2">딜러</span></li>
  26. </ul>
  27. <? include("./inc_menu_dealer.php") ?>
  28. <?
  29. $s_cd_dealer = $_SESSION['s_cd_dealer'];
  30. $s_cd_dealer_p = $_SESSION['s_cd_dealer_p'];
  31. $s_ds_type = $_SESSION['s_ds_type'];
  32. $sql1 = " cd_dealer_p = '$s_cd_dealer' ";
  33. $cd_sale = $_REQUEST["cd_sale"];
  34. $sql ="SELECT
  35. a.*
  36. , b.nm_model
  37. , c.nm_grade
  38. , d.nm_brand
  39. , e.nm_model_sub
  40. , getCode('car_master','ds_type',a.ds_type) as nm_type
  41. , getCode('car_master','ds_year',a.ds_year) as nm_year
  42. , getCode('car_master','ds_open',a.ds_open) as nm_open
  43. , getCode('car_master','ds_sales',a.ds_sales) as nm_sales
  44. , getCode('car_master','ds_transmission',a.ds_transmission) as nm_transmission
  45. , getCode('car_master','ds_oil',a.ds_oil) as nm_oil
  46. , getCode('car_master','ds_accident',a.ds_accident) as nm_accident
  47. , getCode('sale_master','ds_usertype',s.ds_usertype) as nm_usertype
  48. , getCode('member_master','ds_area',s.ds_area) as nm_area
  49. , getCode('sale_master','ds_status',s.ds_status) as nm_status
  50. , s.nm_name nm_name_sale
  51. , s.ds_status ds_status_sale
  52. , s.nm_hp nm_hp_sale
  53. , s.nm_email nm_email_sale
  54. , s.ds_area ds_area_sale
  55. , s.nm_recommend nm_recommend_sale
  56. , s.nm_cont_return nm_cont_return_sale
  57. , s.nm_cont_postscript nm_cont_postscript_sale
  58. , s.nm_file_postscript nm_file_postscript_sale
  59. , s.nm_score_postscript nm_score_postscript_sale
  60. , t.nm_name nm_name_tender
  61. , case when s.ds_status in ('B0','C0') then '미승인' when s.ds_status in ('D0') then '반려' when s.ds_status in ('E0','F0') then '입찰중' when s.ds_status in ('G0') then '입찰마감' when s.ds_status in ('Z0') then '낙찰' when s.ds_status in ('ZS') then '구매확정' else '' end as nm_status_sale
  62. FROM sale_master s
  63. inner join car_master a
  64. on (s.cd_car = a.cd_car)
  65. inner join tender_master t
  66. on (s.cd_sale = t.cd_sale
  67. and t.ds_status = 'Z0'
  68. )
  69. left outer join car_model b
  70. on (a.cd_model = b.cd_model)
  71. left outer join car_grade c
  72. on (a.cd_grade = c.cd_grade)
  73. left outer join car_brand d
  74. on (a.cd_brand = d.cd_brand)
  75. left outer join car_model_sub e
  76. on (a.cd_model_sub = e.cd_model_sub)
  77. WHERE s.cd_sale='$cd_sale' ";
  78. $col=mysql_fetch_array(mysql_query($sql));
  79. if (!empty($col[cd_car])){
  80. $cd_car = $col[cd_car];
  81. $cd_model = $col[cd_model];
  82. $cd_brand = $col[cd_brand];
  83. $ds_logo = $col[ds_logo];
  84. $cd_category = $col[cd_category];
  85. $cd_grade = $col[cd_grade];
  86. $ds_cate = $col[ds_cate];
  87. $ds_type = $col[ds_type];
  88. $ds_year = $col[ds_year];
  89. $nm_name = $col[nm_name];
  90. $nm_price = $col[nm_price];
  91. $nm_mileage = $col[nm_mileage];
  92. $ds_driving_system = $col[ds_driving_system];
  93. $ds_transmission = $col[ds_transmission];
  94. $nm_file_list = $col[nm_file_list];
  95. $nm_file_main = $col[nm_file_main];
  96. $nm_file_report = $col[nm_file_report];
  97. $nm_file_report_back = $col[nm_file_report_back];
  98. $nm_file_front = $col[nm_file_front];
  99. $nm_file_back = $col[nm_file_back];
  100. $nm_file_side1 = $col[nm_file_side1];
  101. $nm_file_side2 = $col[nm_file_side2];
  102. $nm_file_dashboard = $col[nm_file_dashboard];
  103. $ds_oil = $col[ds_oil];
  104. $nm_gearbox = $col[nm_gearbox];
  105. $nm_color = $col[nm_color];
  106. $nm_incolor = $col[nm_incolor];
  107. $ds_accident = $col[ds_accident];
  108. $nm_regdate = $col[nm_regdate];
  109. $ds_sales = $col[ds_sales];
  110. $nm_btitle = $col[nm_btitle];
  111. $nm_stitle = $col[nm_stitle];
  112. $nm_ltitle = $col[nm_ltitle];
  113. $nm_cont = $col[nm_cont];
  114. $nm_guide = $col[nm_guide];
  115. $ds_open = $col[ds_open];
  116. $ds_status = $col[ds_status];
  117. $dt_insert = $col[dt_insert];
  118. $nm_insert = $col[nm_insert];
  119. $dt_update = $col[dt_update];
  120. $nm_update = $col[nm_update];
  121. $ds_delind = $col[ds_delind];
  122. $nm_number = $col[nm_number];
  123. $nm_cc = $col[nm_cc];
  124. $ds_trade = $col[ds_trade];
  125. $ds_main = $col[ds_main];
  126. $nm_regdate_yyyy = $col[nm_regdate_yyyy];
  127. $nm_regdate_mm = $col[nm_regdate_mm];
  128. $nm_regdate_dd = $col[nm_regdate_dd];
  129. $nm_brand = $col[nm_brand];
  130. $nm_model = $col[nm_model];
  131. $nm_model_sub = $col[nm_model_sub];
  132. $nm_grade = $col[nm_grade];
  133. $nm_year = $col[nm_year];
  134. $nm_type = $col[nm_type];
  135. $nm_open = $col[nm_open];
  136. $nm_sales = $col[nm_sales];
  137. $nm_transmission = $col[nm_transmission];
  138. $nm_oil = $col[nm_oil];
  139. $nm_usertype = $col[nm_usertype];
  140. $nm_accident = $col[nm_accident];
  141. $nm_area = $col[nm_area];
  142. $nm_name_sale = $col[nm_name_sale];
  143. $ds_status_sale = $col[ds_status_sale];
  144. $nm_hp_sale = $col[nm_hp_sale];
  145. $nm_email_sale = $col[nm_email_sale];
  146. $ds_area_sale = $col[ds_area_sale];
  147. $nm_recommend_sale = $col[nm_recommend_sale];
  148. $nm_cont_return_sale = $col[nm_cont_return_sale];
  149. $nm_cont_postscript_sale = $col[nm_cont_postscript_sale];
  150. $nm_file_postscript = $col[nm_file_postscript_sale];
  151. $nm_score_postscript_sale = $col[nm_score_postscript_sale];
  152. $nm_name_tender = $col[nm_name_tender];
  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. /*
  177. $arr_nm_info1 = explode("-",$nm_info1);
  178. if(count($arr_nm_info1) == 3){
  179. $nm_info11 = $arr_nm_info1[0];
  180. $nm_info12 = $arr_nm_info1[1];
  181. $nm_info13 = $arr_nm_info1[2];
  182. }else{
  183. $nm_info11 = "";
  184. $nm_info12 = "";
  185. $nm_info13 = "";
  186. }
  187. $arr_nm_info3 = explode("@",$nm_info3);
  188. if(count($arr_nm_info3) == 2){
  189. $nm_info31 = $arr_nm_info3[0];
  190. $nm_info32 = $arr_nm_info3[1];
  191. }else{
  192. $nm_info31 = "";
  193. $nm_info32 = "";
  194. }
  195. $nm_info3 = $col[nm_info3];
  196. */
  197. }else{
  198. AlertBack("지정되지않은 요청입니다");
  199. }
  200. ?>
  201. <h3>입찰후기</h3>
  202. <dl class="view">
  203. <dt><strong><?=$nm_brand." ".$nm_model?></strong> <span class="name"><em><?=$nm_name_sale?></em> 고객님</span><span class="score">고객만족도 : <em><?=$nm_score_postscript_sale?>점</em></span></dt>
  204. <dd>
  205. <img src="/uploadfile/dealer/contract_step/<?=$cd_sale?>_detail/<?=$nm_file_postscript?>" alt=""><br><br>
  206. <?=$nm_cont_postscript_sale?>
  207. </dd>
  208. </dl>
  209. <div class="btn_right">
  210. <a href="./dealer_review_list.php?PageNo=<?=$PageNo?>" class="button">목록가기</a>
  211. </div>
  212. </section>
  213. </section>
  214. <? include("../include/inc_footer.php") ?>
  215. <? include("../include/inc_bottom.php") ?>
  216. <?
  217. mysql_close($connect);
  218. ?>