64bb99336097d39f318398bb108929c8b93f2351.svn-base 3.15 KB
<? 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["admin_id"] ?>
				</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>