write.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].ADMIN_PATH.'common/auth_chk.php';
  4. ?>
  5. <? include("../inc/inc_top.php") ?>
  6. <? include("../inc/inc_header.php") ?>
  7. <?
  8. $cd_dealer = $_REQUEST["cd_dealer"];
  9. $sql ="SELECT
  10. *
  11. FROM dealer_master
  12. WHERE cd_dealer='$cd_dealer' AND ds_delind='N'";
  13. $mode = "Add";
  14. $col=mysql_fetch_array(mysql_query($sql));
  15. if (!empty($col[cd_dealer])){
  16. $cd_dealer = $col[cd_dealer];
  17. $cd_dealerid = $col[cd_dealerid];
  18. $cd_dealer_p = $col[cd_dealer_p];
  19. $nm_pass = $col[nm_pass];
  20. $ds_type = $col[ds_type];
  21. $ds_level = $col[ds_level];
  22. $nm_company = $col[nm_company];
  23. $nm_name = $col[nm_name];
  24. $nm_birth = $col[nm_birth];
  25. $nm_tel_01 = $col[nm_tel_01];
  26. $nm_tel_02 = $col[nm_tel_02];
  27. $nm_tel_03 = $col[nm_tel_03];
  28. $nm_hp_01 = $col[nm_hp_01];
  29. $nm_hp_02 = $col[nm_hp_02];
  30. $nm_hp_03 = $col[nm_hp_03];
  31. $nm_fax_01 = $col[nm_fax_01];
  32. $nm_fax_02 = $col[nm_fax_02];
  33. $nm_fax_03 = $col[nm_fax_03];
  34. $nm_email = $col[nm_email];
  35. $nm_zip = $col[nm_zip];
  36. $nm_addr = $col[nm_addr];
  37. $nm_addr_sub = $col[nm_addr_sub];
  38. $nm_etc_01 = $col[nm_etc_01];
  39. $nm_etc_02 = $col[nm_etc_02];
  40. $nm_etc_03 = $col[nm_etc_03];
  41. $ds_status = $col[ds_status];
  42. $nm_company_biz = $col[nm_company_biz];
  43. $nm_name_biz = $col[nm_name_biz];
  44. $nm_no_biz = $col[nm_no_biz];
  45. $nm_date_biz = $col[nm_date_biz];
  46. $nm_type_biz = $col[nm_type_biz];
  47. $nm_condition_biz = $col[nm_condition_biz];
  48. $nm_tel_biz_01 = $col[nm_tel_biz_01];
  49. $nm_tel_biz_02 = $col[nm_tel_biz_02];
  50. $nm_tel_biz_03 = $col[nm_tel_biz_03];
  51. $nm_hp_biz_01 = $col[nm_hp_biz_01];
  52. $nm_hp_biz_02 = $col[nm_hp_biz_02];
  53. $nm_hp_biz_03 = $col[nm_hp_biz_03];
  54. $nm_fax_biz_01 = $col[nm_fax_biz_01];
  55. $nm_fax_biz_02 = $col[nm_fax_biz_02];
  56. $nm_fax_biz_03 = $col[nm_fax_biz_03];
  57. $nm_email_biz = $col[nm_email_biz];
  58. $nm_zip_biz = $col[nm_zip_biz];
  59. $nm_addr_biz = $col[nm_addr_biz];
  60. $nm_addr_sub_biz = $col[nm_addr_sub_biz];
  61. $dt_insert = $col[dt_insert];
  62. $nm_insert = $col[nm_insert];
  63. $dt_update = $col[dt_update];
  64. $nm_update = $col[nm_update];
  65. $ds_delind = $col[ds_delind];
  66. /*
  67. $arr_nm_info1 = explode("-",$nm_info1);
  68. if(count($arr_nm_info1) == 3){
  69. $nm_info11 = $arr_nm_info1[0];
  70. $nm_info12 = $arr_nm_info1[1];
  71. $nm_info13 = $arr_nm_info1[2];
  72. }else{
  73. $nm_info11 = "";
  74. $nm_info12 = "";
  75. $nm_info13 = "";
  76. }
  77. $arr_nm_info3 = explode("@",$nm_info3);
  78. if(count($arr_nm_info3) == 2){
  79. $nm_info31 = $arr_nm_info3[0];
  80. $nm_info32 = $arr_nm_info3[1];
  81. }else{
  82. $nm_info31 = "";
  83. $nm_info32 = "";
  84. }
  85. $nm_info3 = $col[nm_info3];
  86. */
  87. $mode = "Update";
  88. }else{
  89. $ds_level = "1";
  90. }
  91. ?>
  92. <section id="contents">
  93. <!-- 제조사 -->
  94. <h2>제조사</h2>
  95. <div class="tbl_wrap">
  96. <table class="tbl_list2 ty2">
  97. <colgroup>
  98. <col width="20%">
  99. <col width="*">
  100. </colgroup>
  101. <tr>
  102. <th>구분</th>
  103. <td>
  104. <div class="radio_chk">
  105. <span class="check_wrap"><input type="radio" name="radiobutton" id="domestic"><i></i><label for="domestic">국내</label></span>
  106. <span class="check_wrap"><input type="radio" name="radiobutton" id="overseas"><i></i><label for="overseas">해외</label></span>
  107. </div>
  108. </td>
  109. </tr>
  110. <tr>
  111. <th>제조사</th>
  112. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  113. </tr>
  114. </table>
  115. </div>
  116. <!-- 모델 -->
  117. <h2>모델</h2>
  118. <div class="tbl_wrap">
  119. <table class="tbl_list2 ty2">
  120. <colgroup>
  121. <col width="20%">
  122. <col width="*">
  123. </colgroup>
  124. <tr>
  125. <th>구분</th>
  126. <td>
  127. <div class="radio_chk">
  128. <span class="check_wrap"><input type="radio" name="radiobutton" id="domestic2"><i></i><label for="domestic2">국내</label></span>
  129. <span class="check_wrap"><input type="radio" name="radiobutton" id="overseas2"><i></i><label for="overseas2">해외</label></span>
  130. </div>
  131. </td>
  132. </tr>
  133. <tr>
  134. <th>제조사</th>
  135. <td>
  136. <span class="select ty2" style="width:60%;">
  137. <select>
  138. <option value="">현대</option>
  139. <option value="">기아</option>
  140. </select>
  141. </span>
  142. </td>
  143. </tr>
  144. <tr>
  145. <th>모델</th>
  146. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  147. </tr>
  148. </table>
  149. </div>
  150. <!-- 세부모델 -->
  151. <h2>세부모델</h2>
  152. <div class="tbl_wrap">
  153. <table class="tbl_list2 ty2">
  154. <colgroup>
  155. <col width="20%">
  156. <col width="*">
  157. </colgroup>
  158. <tr>
  159. <th>구분</th>
  160. <td>
  161. <div class="radio_chk">
  162. <span class="check_wrap"><input type="radio" name="radiobutton" id="domestic3"><i></i><label for="domestic3">국내</label></span>
  163. <span class="check_wrap"><input type="radio" name="radiobutton" id="overseas3"><i></i><label for="overseas3">해외</label></span>
  164. </div>
  165. </td>
  166. </tr>
  167. <tr>
  168. <th>제조사</th>
  169. <td>
  170. <span class="select ty2" style="width:60%;">
  171. <select>
  172. <option value="">현대</option>
  173. <option value="">기아</option>
  174. </select>
  175. </span>
  176. </td>
  177. </tr>
  178. <tr>
  179. <th>모델</th>
  180. <td>
  181. <span class="select ty2" style="width:60%;">
  182. <select>
  183. <option value="">K3</option>
  184. <option value="">K5</option>
  185. </select>
  186. </span>
  187. </td>
  188. </tr>
  189. <tr>
  190. <th>세부모델</th>
  191. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  192. </tr>
  193. </table>
  194. </div>
  195. <!-- 등급 -->
  196. <h2>등급</h2>
  197. <div class="tbl_wrap">
  198. <table class="tbl_list2 ty2">
  199. <colgroup>
  200. <col width="20%">
  201. <col width="*">
  202. </colgroup>
  203. <tr>
  204. <th>구분</th>
  205. <td>
  206. <div class="radio_chk">
  207. <span class="check_wrap"><input type="radio" name="radiobutton" id="domestic3"><i></i><label for="domestic3">국내</label></span>
  208. <span class="check_wrap"><input type="radio" name="radiobutton" id="overseas3"><i></i><label for="overseas3">해외</label></span>
  209. </div>
  210. </td>
  211. </tr>
  212. <tr>
  213. <th>제조사</th>
  214. <td>
  215. <span class="select ty2" style="width:60%;">
  216. <select>
  217. <option value="">현대</option>
  218. <option value="">기아</option>
  219. </select>
  220. </span>
  221. </td>
  222. </tr>
  223. <tr>
  224. <th>모델</th>
  225. <td>
  226. <span class="select ty2" style="width:60%;">
  227. <select>
  228. <option value="">K3</option>
  229. <option value="">K5</option>
  230. </select>
  231. </span>
  232. </td>
  233. </tr>
  234. <tr>
  235. <th>세부모델</th>
  236. <td>
  237. <span class="select ty2" style="width:60%;">
  238. <select>
  239. <option value="">3시리즈 (F30) (12년~현재)</option>
  240. </select>
  241. </span>
  242. </td>
  243. </tr>
  244. <tr>
  245. <th>등급</th>
  246. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  247. </tr>
  248. </table>
  249. </div>
  250. <!-- 변속기 -->
  251. <h2>변속기</h2>
  252. <div class="tbl_wrap">
  253. <table class="tbl_list2 ty2">
  254. <colgroup>
  255. <col width="20%">
  256. <col width="*">
  257. </colgroup>
  258. <tr>
  259. <th>변속기</th>
  260. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  261. </tr>
  262. </table>
  263. </div>
  264. <!-- 연료 -->
  265. <h2>연료</h2>
  266. <div class="tbl_wrap">
  267. <table class="tbl_list2 ty2">
  268. <colgroup>
  269. <col width="20%">
  270. <col width="*">
  271. </colgroup>
  272. <tr>
  273. <th>연료</th>
  274. <td><input type="text" class="inp_txt" style="width:60%;"></td>
  275. </tr>
  276. </table>
  277. </div>
  278. <div class="btn_right">
  279. <a href="#" class="rnd_btn ty2 black">등록</a>
  280. </div>
  281. </section>
  282. <? include("../inc/inc_footer.php") ?>
  283. <? include("../inc/inc_bottom.php") ?>
  284. <?
  285. mysql_close($connect);
  286. ?>