66aaa5680581375f37d4ce0d1a5982ea9ab74914.svn-base
3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<? include $_SERVER["DOCUMENT_ROOT"] . "/common/classes/AdminEtc.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/header.php" ?>
<? include $_SERVER["DOCUMENT_ROOT"] . "/admin/inc/php/leftEtcManage.php" ?>
<?
$obj = new AdminEtc($_REQUEST, "");
?>
<script language="javascript">
$(document).ready(function(){
//=====프레입웤 변수들==================================================================================//
var FORM_TARGET_CLS_NM = ".data" ; // 폼을 동적 wrap 할 타겟 ID이름
var FORM_NAME = "alf" ; // 폼이름
var FORM_METHOD = "POST" ; // 폼 메쏘드
var FORM_USE_FILE = false ; // 파일폼 사용 여부
var FORM_ACTION = "/action_front.php" ;
var NEXT_CMD = "" ; // 다은 수행 할 cmd
//=====================================================================================================//
var jForm = $("form[name='nn']").attr("method", FORM_METHOD).attr("action", FORM_ACTION) ;
$(".jBtnSave").click2(function(){
if($("#jNowPWD").val() == "")
{
alert("기존 비밀번호를 입력해주세요.");
$("#jNowPWD").focus();
return false;
}
if($("#jNewPWD").val() == "")
{
alert("새로운 비밀번호를 입력해주세요.");
$("#jNewPWD").focus();
return false;
}
if($("#jNewPWDConfirm").val() == "")
{
alert("새로운 비밀번호 확인를 입력해주세요.");
$("#jNewPWDConfirm").focus();
return false;
}
if($("#jNewPWD").val() != $("#jNewPWDConfirm").val())
{
alert("새로운 비밀번호가 일치하지 않습니다.");
$("#jNewPWDConfirm").focus();
return false;
}
if(!confirm("변경하시겠습니까?"))
return false;
jForm.attr("action", "/action_front.php");
jForm.attr("method", "POST");
jForm.mi("cmd", "AdminEtc.chageAdminPWD");
jForm.mi("flow", "ToS");
jForm.mi("msg", "변경되었습니다..");
jForm.mei("rurl", document.URL) ;
jForm.submit();
}) ;
}) ;
</script>
<div id="Contents" class="notice">
<h1>계정</h1>
<!-- location area -->
<h2>
기타 관리 > <span>계정</span>
</h2>
<!-- location area -->
<form id="fm" name="nn" enctype="multipart/form-data" method="POST">
<div class="data" style="width:60%;">
<h3>계정</h3>
<table class="datav" style="width:100%;">
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<tr>
<th style="height:25px;">ID</th>
<td class="l">
<?= $loginInfo["adminID"] ?>
</td>
</tr>
<tr>
<th style="height:25px;">기존 PW</th>
<td class="l">
<input type="password" id="jNowPWD" name="nowPWD" value="" style="width:95%"/>
</td>
</tr>
<tr>
<th style="height:25px;">새로운 PW</th>
<td class="l">
<input type="password" id="jNewPWD" name="newPWD" value="" style="width:95%"/>
</td>
</tr>
<tr>
<th style="height:25px;">새로운 PW 확인</th>
<td class="l">
<input type="password" id="jNewPWDConfirm" value="" style="width:95%"/>
</td>
</tr>
</table>
<div class="btngroupcenter">
<span class="button bigrounded blue jBtnSave" >변경</span>
</div>
</div>
</form>
</div>