manager_form.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <?php
  2. include $_SERVER['DOCUMENT_ROOT'].'/common/lib/comm.php';
  3. include $_SERVER['DOCUMENT_ROOT'].'/common/aap_chk.php';
  4. $MENU_ACTV = 8;
  5. $cd_dealerid = $_REQUEST["cd_dealerid"];
  6. $ds_type = "D1";
  7. $sql ="SELECT
  8. *
  9. FROM aap_master
  10. WHERE cd_dealerid='$cd_dealerid' AND ds_type = 'D1' AND ds_delind='N'";
  11. // echo $sql;
  12. $mode = "Add";
  13. $ds_usertype = $_SESSION['s_ds_usertype'];
  14. $ds_company_bp1 = $_SESSION['s_ds_company_bp1'];
  15. $ds_branch1 = $_SESSION['s_ds_branch1'];
  16. $ds_company_bp2 = $_SESSION['s_ds_company_bp2'];
  17. $ds_branch2 = $_SESSION['s_ds_branch2'];
  18. $ds_company_bp3 = $_SESSION['s_ds_company_bp3'];
  19. $ds_branch3 = $_SESSION['s_ds_branch3'];
  20. $col=mysql_fetch_array(mysql_query($sql));
  21. if (!empty($col['cd_dealer'])){
  22. $cd_dealer = $col['cd_dealer'];
  23. $cd_dealerid = $col['cd_dealerid'];
  24. $cd_dealer_p = $col['cd_dealer_p'];
  25. $nm_pass = $col['nm_pass'];
  26. $ds_type = $col['ds_type'];
  27. $ds_usertype = $col['ds_usertype'];
  28. $ds_level = $col['ds_level'];
  29. $nm_company = $col['nm_company'];
  30. $nm_name = $col['nm_name'];
  31. $nm_birth = $col['nm_birth'];
  32. $nm_tel_01 = $col['nm_tel_01'];
  33. $nm_tel_02 = $col['nm_tel_02'];
  34. $nm_tel_03 = $col['nm_tel_03'];
  35. $nm_hp1 = $col['nm_hp_01'];
  36. $nm_hp2 = $col['nm_hp_02'];
  37. $nm_hp3 = $col['nm_hp_03'];
  38. $nm_fax_01 = $col['nm_fax_01'];
  39. $nm_fax_02 = $col['nm_fax_02'];
  40. $nm_fax_03 = $col['nm_fax_03'];
  41. $nm_email = $col['nm_email'];
  42. $nm_zip = $col['nm_zip'];
  43. $nm_addr = $col['nm_addr'];
  44. $nm_addr_sub = $col['nm_addr_sub'];
  45. $nm_etc_01 = $col['nm_etc_01'];
  46. $nm_etc_02 = $col['nm_etc_02'];
  47. $nm_etc_03 = $col['nm_etc_03'];
  48. $ds_status = $col['ds_status'];
  49. $nm_company_biz = $col['nm_company_biz'];
  50. $nm_name_biz = $col['nm_name_biz'];
  51. $nm_no_biz = $col['nm_no_biz'];
  52. $nm_date_biz = $col['nm_date_biz'];
  53. $nm_type_biz = $col['nm_type_biz'];
  54. $nm_condition_biz = $col['nm_condition_biz'];
  55. $nm_tel_biz_01 = $col['nm_tel_biz_01'];
  56. $nm_tel_biz_02 = $col['nm_tel_biz_02'];
  57. $nm_tel_biz_03 = $col['nm_tel_biz_03'];
  58. $nm_hp_biz_01 = $col['nm_hp_biz_01'];
  59. $nm_hp_biz_02 = $col['nm_hp_biz_02'];
  60. $nm_hp_biz_03 = $col['nm_hp_biz_03'];
  61. $nm_fax_biz_01 = $col['nm_fax_biz_01'];
  62. $nm_fax_biz_02 = $col['nm_fax_biz_02'];
  63. $nm_fax_biz_03 = $col['nm_fax_biz_03'];
  64. $nm_email_biz = $col['nm_email_biz'];
  65. $nm_zip_biz = $col['nm_zip_biz'];
  66. $nm_addr_biz = $col['nm_addr_biz'];
  67. $nm_addr_sub_biz = $col['nm_addr_sub_biz'];
  68. $ds_company_bp1 = $col['ds_company_bp1'];
  69. $ds_branch1 = $col['ds_branch1'];
  70. $ds_company_bp2 = $col['ds_company_bp2'];
  71. $ds_branch2 = $col['ds_branch2'];
  72. $ds_company_bp3 = $col['ds_company_bp3'];
  73. $ds_branch3 = $col['ds_branch3'];
  74. $nm_area = $col['nm_area'];
  75. $nm_title = $col['nm_title'];
  76. $nm_file = $col['nm_file'];
  77. $nm_etc = $col['nm_etc'];
  78. $nm_deposit = $col['nm_deposit'];
  79. $dt_insert = $col['dt_insert'];
  80. $nm_insert = $col['nm_insert'];
  81. $dt_update = $col['dt_update'];
  82. $nm_update = $col['nm_update'];
  83. $ds_delind = $col['ds_delind'];
  84. /*
  85. $arr_nm_info1 = explode("-",$nm_info1);
  86. if(count($arr_nm_info1) == 3){
  87. $nm_info11 = $arr_nm_info1['0'];
  88. $nm_info12 = $arr_nm_info1['1'];
  89. $nm_info13 = $arr_nm_info1['2'];
  90. }else{
  91. $nm_info11 = "";
  92. $nm_info12 = "";
  93. $nm_info13 = "";
  94. }
  95. $arr_nm_info3 = explode("@",$nm_info3);
  96. if(count($arr_nm_info3) == 2){
  97. $nm_info31 = $arr_nm_info3['0'];
  98. $nm_info32 = $arr_nm_info3['1'];
  99. }else{
  100. $nm_info31 = "";
  101. $nm_info32 = "";
  102. }
  103. $nm_info3 = $col['nm_info3'];
  104. */
  105. $mode = "Update";
  106. $title_text = "수정";
  107. }else{
  108. $ds_level = "1";
  109. $title_text = "등록";
  110. }
  111. // if()
  112. ?>
  113. <?php include("include/header.php") ?>
  114. <main class="pb123">
  115. <section>
  116. <div class="sub--top--visual">
  117. <div class="contents--inner">
  118. <h2>이차조아 <span>AAP 관리자</span> <?=$title_text?></h2>
  119. <p>이차조아 입찰에 참여할 수 있는 관리자를 등록,수정할 수 있습니다.</p>
  120. </div>
  121. </div>
  122. </section>
  123. <section>
  124. <div class="top--nav--wrap">
  125. <div class="contents--inner">
  126. <div class="breadcrumbs--wrap">
  127. <span></span>
  128. <span>관리자 관리</span>
  129. <span>관리자 관리 <?=$title_text?></span>
  130. </div>
  131. </div>
  132. </div>
  133. </section>
  134. <section class="join--form--wrap">
  135. <div class="join--form--contents">
  136. <form id="frmMember" name="frmMember" method="post" action="manager_proc.php" enctype="multipart/form-data">
  137. <input type="hidden" name="validate" id="validate" value=""/>
  138. <input type="hidden" name="ds_type" id="ds_type" value="D1"/>
  139. <input type="hidden" name="ds_usertype" id="ds_usertype" value="<?=$ds_usertype?>"/>
  140. <input type="hidden" name="ds_company_bp1" id="ds_company_bp1" value="<?=$ds_company_bp1?>"/>
  141. <input type="hidden" name="ds_branch1" id="ds_branch1" value="<?=$ds_branch1?>"/>
  142. <input type="hidden" name="ds_company_bp2" id="ds_company_bp2" value="<?=$ds_company_bp2?>"/>
  143. <input type="hidden" name="ds_branch2" id="ds_branch2" value="<?=$ds_branch2?>"/>
  144. <input type="hidden" name="ds_company_bp3" id="ds_company_bp3" value="<?=$ds_company_bp3?>"/>
  145. <input type="hidden" name="ds_branch3" id="ds_branch3" value="<?=$ds_branch3?>"/>
  146. <input type="hidden" name="ds_level" id="ds_level" value="<?=$ds_level?>"/>
  147. <input type="hidden" name="cd_dealer" id="cd_dealer" value="<?=$cd_dealer?>"/>
  148. <input type="hidden" name="nm_hp" id="nm_hp" value="<?=$nm_hp?>"/>
  149. <input type="hidden" name="mode" id="mode" value="<?=$mode?>"/>
  150. <input type="hidden" name="PageNo" id="PageNo" value="<?=$PageNo?>"/>
  151. <?php if ($mode == "Add"){ ?>
  152. <input type="hidden" name="idchkresult" id="idchkresult" value="N"/>
  153. <?php }else{ ?>
  154. <input type="hidden" name="idchkresult" id="idchkresult" value="Y"/>
  155. <?php } ?>
  156. <table>
  157. <tbody>
  158. <tr>
  159. <th>아이디</th>
  160. <td>
  161. <div class="d-flex align-items-center">
  162. <?php if ($mode == "Add"){ ?>
  163. <input type="text" class="form-control" name="cd_dealerid" id="cd_dealerid" maxlength="20" value="<?=$cd_dealerid?>">
  164. <input type="button" class="form-control ml10 btn btn-secondary" value="ID 중복확인" style="max-width:220px;" id="btn_idchk">
  165. <?php }else { ?>
  166. <input type="text" class="form-control" name="cd_dealerid" id="cd_dealerid" maxlength="20" value="<?=$cd_dealerid?>" readonly>
  167. <?php } ?>
  168. </div>
  169. </td>
  170. </tr>
  171. <tr>
  172. <th>패스워드</th>
  173. <td>
  174. <input type="password" class="form-control" name="nm_pass" id="nm_pass" maxlength="20">
  175. </td>
  176. </tr>
  177. <?php if ($mode == "Add"){ ?>
  178. <tr>
  179. <th>패스워드 확인</th>
  180. <td>
  181. <input type="password" class="form-control" name="nm_pass2" id="nm_pass2" maxlength="20">
  182. </td>
  183. </tr>
  184. <?php } ?>
  185. <tr>
  186. <th>이름</th>
  187. <td>
  188. <input type="text" class="form-control" name="nm_name" id="nm_name" maxlength="20" value="<?=$nm_name?>">
  189. </td>
  190. </tr>
  191. <tr>
  192. <th>핸드폰</th>
  193. <td>
  194. <div class="d-flex align-items-center">
  195. <select id="nm_hp1" name="nm_hp1" class="form-select" style="max-width:90px;"></select>
  196. <label for="nm_hp2" class="ml10 mr10">-</label>
  197. <input type="text" class="form-control" name="nm_hp2" id="nm_hp2" style="max-width:105px;" maxlength="4" value="<?=$nm_hp2?>">
  198. <label for="nm_hp3" class="ml10 mr10">-</label>
  199. <input type="text" class="form-control" name="nm_hp3" id="nm_hp3" style="max-width:105px;" maxlength="4" value="<?=$nm_hp3?>">
  200. </div>
  201. </td>
  202. </tr>
  203. <tr>
  204. <th>부서</th>
  205. <td>
  206. <div class="d-flex align-items-center">
  207. <input type="text" class="form-control" id="nm_title" name="nm_title" style="max-width:350px;" value="<?=$nm_title?>">
  208. </div>
  209. </td>
  210. </tr>
  211. <tr>
  212. <th>사진(필수입력)</th>
  213. <td>
  214. <div class="d-flex align-items-center">
  215. <input type="file" name="nm_file" id="nm_file" hidden />
  216. <label for="nm_file" class="mr10 btn btn-secondary d-flex align-items-center" style="height:43px;">찾아보기</label>
  217. <input type="text" class="form-control" id="upload-name" style="max-width:263px;" readonly value="<?=$nm_file?>">
  218. <? if(!empty($nm_file)){ ?>
  219. <!-- <span class="thumb"><img src="<?=UPLOAD_PATH?>dealer/nm_file/<?=$nm_file?>" alt="" width="100"></span> -->
  220. <? } ?>
  221. </div>
  222. </td>
  223. </tr>
  224. </tbody>
  225. </table>
  226. <div class="col-12 d-flex justify-content-center join--btn--wrap mt90">
  227. <button type="button" class="btn btn-secondary" style="width:180px; height:55px;" id="btn_back">목록</button>
  228. <?php if($mode == "Update") { ?>
  229. <button type="button" class="btn btn-primary ml15" style="width:180px; height:55px;" id="btn_write">정보수정<i class="join--ic"></i></button>
  230. <button type="button" class="btn btn-secondary" style="width:180px; height:55px;" id="btn_delete">삭제</button>
  231. <?php } else {?>
  232. <button type="button" class="btn btn-primary ml15" style="width:180px; height:55px;" id="btn_write">등록<i class="join--ic"></i></button>
  233. <? } ?>
  234. </div>
  235. </form>
  236. </div>
  237. </section>
  238. </main>
  239. <script type="text/javascript">
  240. $(document).ready(function() {
  241. setCodeSelect("listPhone","nm_hp1","","","<?=$nm_hp1?>","선택","");
  242. $("#btn_back").on("click", function() {
  243. history.back(-1);
  244. })
  245. $("#cd_dealerid").bind("keyup",function(){
  246. $("#idchkresult").val("N");
  247. });
  248. $("#btn_idchk").bind("click",function(){
  249. var custom_opts = {
  250. title : '',
  251. btn_close_show : false,
  252. }
  253. var fieldlist = [["cd_dealerid","아이디"]]
  254. if (!fnCheckForm(fieldlist)){
  255. return false;
  256. }
  257. var idReg = /^[a-z]+[a-z0-9]{4,19}$/g;
  258. if( !idReg.test( $("#cd_dealerid").val() ) ) {
  259. custom_opts.title = '아이디는 영문자로 시작하는 5~20자 영문자 또는 숫자이어야 합니다.';
  260. custom_modal_alert(custom_opts);
  261. return false;
  262. }
  263. if(!fnCheckAlphaNumber($("#cd_dealerid").val())){
  264. custom_opts.title = '아이디는 영문/숫자 조합으로 이루어져야 합니다.';
  265. custom_modal_alert(custom_opts);
  266. return false;
  267. }
  268. if($("#cd_dealerid").val().length <5){
  269. custom_opts.title = '5글자 이상 아이디를 입력하세요.';
  270. custom_modal_alert(custom_opts);
  271. return false;
  272. }
  273. $.post("manager_proc.php", { mode: "IdChk", cd_dealerid: $("#cd_dealerid").val()},function(data) {
  274. if(data=="Y"){
  275. custom_opts.title = '이용가능합니다. 아이디를 사용하시겠습니까?';
  276. custom_modal_confirm(custom_opts, function(confirm) {
  277. if(confirm) {
  278. $("#cd_dealerid").attr("readonly",true).css("background","#d2d3d5");
  279. $("#idchkresult").val("Y");
  280. custom_modal_confirm_close();
  281. }
  282. });
  283. }else{
  284. $("#idchkresult").val("N");
  285. $("#cd_dealerid").attr("readonly",false).css("background","#fff");
  286. custom_opts.title = '사용불가능한 아이디 입니다.';
  287. custom_modal_alert(custom_opts);
  288. return false;
  289. }
  290. });
  291. return false;
  292. });
  293. $("#btn_delete").click(function() {
  294. var custom_opts = {
  295. title : '',
  296. btn_close_show : false,
  297. }
  298. custom_opts.title = '관리자를 삭제하시겠습니까?';
  299. custom_modal_confirm(custom_opts, function(confirm) {
  300. if(confirm) {
  301. $("#btn_delete").hide();
  302. var data = $("#frmMember").serialize();
  303. data+= "&mode=Delete";
  304. $.ajax({
  305. url : 'manager_proc.php',
  306. type: 'POST',
  307. dataType : 'json',
  308. data: data,
  309. success: function(res) {
  310. custom_modal_confirm_close();
  311. $("#btn_delete").show();
  312. //세션 종료시 로그인 페이지로 이동
  313. if(res.CODE != "0000") {
  314. custom_opts.title = res.MSG;
  315. if(res.CODE == "4444") {
  316. window.location.href = res.DATAS.URL;
  317. }
  318. custom_modal_alert(custom_opts);
  319. return false;
  320. }
  321. custom_opts.title = '관리자 삭제가 완료되었습니다.';
  322. custom_opts.event_esc_key = false;
  323. custom_modal_alert(custom_opts, function() {
  324. link("manager_list.php");
  325. });
  326. },
  327. error:function(request,status,error){
  328. $("#btn_delete").show();
  329. custom_modal_confirm_close();
  330. alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
  331. }
  332. });
  333. }else {
  334. $("#btn_delete").show();
  335. return false;
  336. }
  337. });
  338. });
  339. $("#btn_write").bind("click",function(){
  340. var custom_opts = {
  341. title : '',
  342. btn_close_show : false,
  343. }
  344. <? if ($mode == "Add"){ ?>
  345. var fieldlist = [["cd_dealerid","아이디"],["nm_pass","비밀번호"],["nm_pass2","비밀번호 확인"],["nm_name","이름"],["nm_hp1","핸드폰"],["nm_hp2","핸드폰"],["nm_hp3","핸드폰"]]
  346. //,["nm_file","사진"]
  347. <? }else{ ?>
  348. var fieldlist = [["nm_name","이름"],["nm_hp1","핸드폰"],["nm_hp2","핸드폰"],["nm_hp3","핸드폰"]]
  349. <? } ?>
  350. if (!fnCheckForm(fieldlist)){
  351. return false;
  352. }else{
  353. /*아이디 관련 처리*/
  354. <? if ($mode == "Add"){ ?>
  355. var idReg1 = /[a-z]/g;
  356. var idReg2 = /[0-9]/g;
  357. // if( !(idReg1.test( $("#cd_dealerid").val() )) || !(idReg2.test( $("#cd_dealerid").val() )) ) {
  358. // alert("아이디는 영문/숫자 조합으로 이루어져야 합니다.");
  359. // $("#cd_dealerid").focus();
  360. // return false;
  361. // }
  362. var idReg = /^[a-z]+[a-z0-9]{4,19}$/g;
  363. if( !idReg.test( $("#cd_dealerid").val() ) ) {
  364. custom_opts.title = '아이디는 영문자로 시작하는 5~20자 영문자 또는 숫자이어야 합니다.';
  365. custom_modal_alert(custom_opts);
  366. return false;
  367. }
  368. if(!fnCheckAlphaNumber($("#cd_dealerid").val())){
  369. custom_opts.title = '아이디는 영문/숫자 조합으로 이루어져야 합니다.';
  370. custom_modal_alert(custom_opts);
  371. return false;
  372. }
  373. if($("#cd_dealerid").val().length <5){
  374. custom_opts.title = '5글자 이상 아이디를 입력하세요.';
  375. custom_modal_alert(custom_opts);
  376. return false;
  377. }
  378. if($("#idchkresult").val() != "Y"){
  379. custom_opts.title = '아이디 중복확인을 해 주세요.';
  380. custom_modal_alert(custom_opts);
  381. return false;
  382. }
  383. if($("#nm_pass").val().length <8){
  384. custom_opts.title = '8글자 이상 패스워드를 입력하세요.';
  385. custom_modal_alert(custom_opts);
  386. return false;
  387. }
  388. var check = /^(?=.*[a-zA-Z])(?=.*[!@#$%^*+=-])(?=.*[0-9]).{6,16}$/;
  389. var nm_pass = $("#nm_pass").val();
  390. if (!check.test(nm_pass)) {
  391. custom_opts.title = "비밀번호는 문자, 숫자, 특수문자의 조합으로 입력해주세요.";
  392. custom_modal_alert(custom_opts);
  393. return false;
  394. }
  395. if (nm_pass.length < 6 || nm_pass.length > 16) {
  396. custom_opts.title = "비밀번호는 6 ~ 16 자리로 입력해주세요.";
  397. custom_modal_alert(custom_opts);
  398. return false;
  399. }
  400. //
  401. // if(!isStrongValidFormPassword($("#nm_pass").val())){
  402. // return false;
  403. // }
  404. <? } ?>
  405. if($("#nm_pass").val().length > 0){
  406. if($("#cd_dealerid").val()==$("#nm_pass").val()){
  407. custom_opts.title = '아이디와 변경할 패스워드를 다르게입력하세요.';
  408. custom_modal_alert(custom_opts);
  409. return false;
  410. }
  411. if($("#nm_pass").val().length <8){
  412. custom_opts.title = '8글자 이상 변경할 패스워드를 입력하세요.';
  413. custom_modal_alert(custom_opts);
  414. return false;
  415. }
  416. if(!isStrongValidFormPassword($("#nm_pass").val())){
  417. return false;
  418. }
  419. }
  420. var nm_hp = $("#nm_hp1").val()+"-"+$("#nm_hp2").val()+"-"+$("#nm_hp3").val();
  421. $("#nm_hp").val(nm_hp);
  422. custom_opts.title = '정보를 등록하시겠습니까?';
  423. custom_modal_confirm(custom_opts, function(confirm) {
  424. if(confirm) {
  425. $("#btn_write").hide();
  426. var data = $("#frmMember").serialize();
  427. var formData = new FormData();
  428. $("#frmMember input, #frmMember select").each(function() {
  429. var input_name = $(this).attr("name");
  430. var input_value = $(this).val();
  431. formData.append(input_name, input_value);
  432. });
  433. $("input[type=file]").each(function() {
  434. var input_name = $(this).attr("name");
  435. var input_value = $(this)[0].files[0];
  436. formData.append(input_name, input_value);
  437. });
  438. $.ajax({
  439. url : 'manager_proc.php',
  440. type: 'POST',
  441. dataType : 'json',
  442. data: formData,
  443. processData: false,
  444. contentType: false,
  445. success: function(res) {
  446. custom_modal_confirm_close();
  447. $("#btn_write").show();
  448. //세션 종료시 로그인 페이지로 이동
  449. if(res.CODE != "0000") {
  450. custom_opts.title = res.MSG;
  451. if(res.CODE == "4444") {
  452. window.location.href = res.DATAS.URL;
  453. }
  454. custom_modal_alert(custom_opts);
  455. return false;
  456. }
  457. custom_opts.title = '관리자 <?=$title_text?>이 완료되었습니다.';
  458. custom_opts.event_esc_key = false;
  459. custom_modal_alert(custom_opts, function() {
  460. reload();
  461. // link("manager_form.php");
  462. });
  463. },
  464. error:function(request,status,error){
  465. $("#btn_write").show();
  466. custom_modal_confirm_close();
  467. alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
  468. }
  469. });
  470. }else {
  471. $("#btn_write").show();
  472. return false;
  473. }
  474. });
  475. // fnCheckForm_ty10("정보를 등록하시겠습니까?");
  476. // var c=confirm("정보를 등록하시겠습니까?");
  477. // if(c){
  478. // $("#btn_write").hide();
  479. // $("#frmMember").submit();
  480. // }else{
  481. // $("#btn_write").show();
  482. // return false;
  483. // }
  484. }
  485. });
  486. $('#nm_file').on('change', function(){
  487. // 값이 변경되면
  488. if(window.FileReader){ // modern browser
  489. var filename = $(this)[0].files[0].name;
  490. } else {
  491. // old IE
  492. var filename = $(this).val().split('/').pop().split('\\').pop(); // 파일명만 추출
  493. } // 추출한 파일명 삽입
  494. $('#upload-name').val(filename);
  495. });
  496. });
  497. </script>
  498. <?php include("include/footer.php") ?>